/* ==========================================================================
   Rates pages (New Design): /tools/rates, the /x/rates tab pages and the
   compare pages. Loaded after ui.css, home.css and area.css (see
   layouts/public.php). Values from Emmanuel's "Mariana Rates" Paper frames.
   Sections: hero + step 1 card, live search (tabs, inputs, filters), results
   table + details, compliance notes, split sections (how to read, explainer),
   calculator card.
   ========================================================================== */

/* 1. Hero ----------------------------------------------------------------- */
.mfs-rh-hero__grid {
  display: grid;
  gap: 32px;
  padding-block: 40px 56px;
}
@media (min-width: 1024px) {
  .mfs-rh-hero__grid {
    grid-template-columns: minmax(0, 1fr) 456px;
    align-items: start;
    gap: 64px;
    padding-block: 80px;
  }
}
.mfs-rh-hero__copy { display: flex; flex-direction: column; gap: 20px; max-width: 760px; }
.mfs-rh-hero__copy > .mfs-eyebrow { color: rgb(0 47 106 / 0.8); }
.mfs-rh-hero__title { color: var(--mfs-navy); }
.mfs-rh-hero__subtitle { font-size: 20px; line-height: 28px; font-weight: 500; color: var(--mfs-navy); }
@media (min-width: 640px) { .mfs-rh-hero__subtitle { font-size: 24px; line-height: 32px; } }
.mfs-rh-hero__date { font-size: 15px; line-height: 23px; color: var(--mfs-navy); }
.mfs-rh-hero__intro { font-size: 17px; line-height: 27px; color: var(--mfs-navy); }
@media (min-width: 640px) { .mfs-rh-hero__intro { font-size: 19px; line-height: 28px; } }

.mfs-rh-crumbs { padding-bottom: 20px; }
.mfs-rh-crumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; padding: 0; list-style: none; }
.mfs-rh-crumbs li { display: flex; align-items: center; gap: 8px; font-size: 14px; line-height: 21px; font-weight: 600; color: var(--mfs-navy); }
.mfs-rh-crumbs li + li::before { content: "›"; font-weight: 400; color: rgb(0 47 106 / 0.6); }
.mfs-rh-crumbs a { font-weight: 500; color: rgb(0 47 106 / 0.7); text-decoration: underline; text-decoration-thickness: 1px; text-underline-position: from-font; }
.mfs-rh-crumbs a:hover { color: var(--mfs-navy); }

/* Step 1 card: the journey's first step, opened at the chosen branch. */
.mfs-rh-card {
  display: flex;
  flex-direction: column;
  padding: 24px;
  border: 1px solid var(--mfs-line);
  border-radius: var(--mfs-radius);
  background: #fff;
}
@media (min-width: 640px) { .mfs-rh-card { padding: 28px; } }
.mfs-rh-card__progress { display: flex; gap: 6px; }
.mfs-rh-card__progress span { flex: 1; height: 4px; border-radius: 999px; background: rgb(0 47 106 / 0.15); }
.mfs-rh-card__progress .is-done { background: var(--mfs-action); }
.mfs-rh-card__count { margin-top: 8px; font-size: 12px; line-height: 18px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: rgb(0 47 106 / 0.7); }
.mfs-rh-card__title { margin-top: 14px; font-size: 22px; line-height: 30px; font-weight: 700; color: var(--mfs-navy); }
@media (min-width: 640px) { .mfs-rh-card__title { font-size: 24px; line-height: 32px; } }
.mfs-rh-card__body { margin-top: 8px; font-size: 15px; line-height: 24px; color: var(--mfs-body); }
.mfs-rh-card__choices { display: grid; gap: 12px; margin-top: 20px; }
.mfs-rh-card__choice-title { display: block; font-size: 19px; line-height: 28px; font-weight: 600; color: var(--mfs-navy); }
.mfs-rh-card__choice.is-selected { border-color: var(--mfs-action); background: var(--mfs-action-tint); }
.mfs-rh-card__choice.is-selected .mfs-journey__choice-icon { background: #fff; }
.mfs-rh-card__choice .mfs-icon--action { color: var(--mfs-action); }
.mfs-rh-card__rating { display: flex; align-items: flex-start; gap: 10px; margin-top: 20px; font-size: 14px; line-height: 21px; color: var(--mfs-navy); }
.mfs-rh-card__rating .mfs-stars { flex-shrink: 0; margin-top: 3px; }
.mfs-rh-card__rating strong { font-weight: 600; }
.mfs-rh-card__rating:hover span { text-decoration: underline; }

/* 2. Live search: tabs, inputs, filters ----------------------------------- */
.mfs-rh { padding-block: 56px; }
@media (min-width: 1024px) { .mfs-rh { padding-block: 80px; } }

.mfs-rh__tabs { display: flex; flex-wrap: wrap; gap: 10px; }
.mfs-rh-tab {
  padding: 12px 22px;
  border: 1px solid rgb(0 47 106 / 0.25);
  border-radius: 999px;
  background: #fff;
  font-size: 17px;
  line-height: 26px;
  font-weight: 600;
  color: var(--mfs-navy);
  transition: border-color 0.2s, background-color 0.2s, color 0.2s;
}
.mfs-rh-tab:hover { border-color: var(--mfs-navy); }
.mfs-rh-tab.is-active { border-color: var(--mfs-navy); background: var(--mfs-navy); color: #fff; }

.mfs-rh__form { margin-top: 28px; }
.mfs-rh__inputs { display: grid; gap: 20px; }
@media (min-width: 640px) { .mfs-rh__inputs { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .mfs-rh__inputs { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.mfs-rh-field { display: flex; flex-direction: column; gap: 10px; }
.mfs-rh-label { padding: 0; font-size: 16px; line-height: 24px; font-weight: 600; color: var(--mfs-navy); }
.mfs-rh-input {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid rgb(0 47 106 / 0.6);
  border-radius: var(--mfs-radius-sm);
  background: #fff;
  font: inherit;
  font-size: 17px;
  line-height: 27px;
  font-weight: 450;
  color: var(--mfs-navy);
}
.mfs-rh-input:focus { outline: 2px solid var(--mfs-action); outline-offset: 1px; border-color: var(--mfs-action); }
.mfs-rh-select {
  appearance: none;
  padding-right: 44px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23002F6A' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  cursor: pointer;
}

.mfs-rh__filters { display: flex; flex-wrap: wrap; gap: 24px 40px; margin-top: 32px; }
.mfs-rh-group { margin: 0; padding: 0; border: 0; min-width: 0; }
.mfs-rh-group[hidden] { display: none; }
.mfs-rh-group legend { margin-bottom: 10px; }
.mfs-rh-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.mfs-rh-pill { position: relative; margin: 0; cursor: pointer; }
.mfs-rh-pill input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.mfs-rh-pill span {
  display: block;
  padding: 10px 18px;
  border: 1px solid rgb(0 47 106 / 0.25);
  border-radius: 999px;
  background: #fff;
  font-size: 16px;
  line-height: 24px;
  font-weight: 600;
  color: var(--mfs-navy);
  transition: border-color 0.2s, background-color 0.2s, color 0.2s;
}
.mfs-rh-pill:hover span { border-color: var(--mfs-navy); }
.mfs-rh-pill input:checked + span { border-color: var(--mfs-navy); background: var(--mfs-navy); color: #fff; }
.mfs-rh-pill input:focus-visible + span { outline: 2px solid var(--mfs-action); outline-offset: 2px; }
.mfs-rh-pill.is-disabled { cursor: not-allowed; }
.mfs-rh-pill.is-disabled input { cursor: not-allowed; }
.mfs-rh-pill.is-disabled span { opacity: 0.45; border-color: rgb(0 47 106 / 0.25); }

/* Phones: inputs and filters sit behind "Edit your details" (closed by
   default, with a one-line summary); "Show results" only closes it. */
.mfs-rh__edit,
.mfs-rh__show { display: none; }
@media (max-width: 767px) {
  .mfs-rh__edit {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    margin-top: 24px;
    padding: 14px 16px;
    border: 1px solid rgb(0 47 106 / 0.25);
    border-radius: var(--mfs-radius-sm);
    background: #fff;
    color: var(--mfs-navy);
    text-align: left;
  }
  .mfs-rh__edit .mfs-icon { flex-shrink: 0; transition: transform 0.2s; }
  .mfs-rh__edit[aria-expanded="true"] .mfs-icon { transform: rotate(180deg); }
  .mfs-rh__edit-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
  .mfs-rh__edit-label { font-size: 16px; line-height: 24px; font-weight: 600; }
  .mfs-rh__edit-summary { font-size: 14px; line-height: 21px; color: var(--mfs-body); }
  .mfs-rh__edit[aria-expanded="true"] .mfs-rh__edit-summary { display: none; }
  .mfs-rh__form { display: none; margin-top: 24px; }
  .mfs-rh__form.is-open { display: block; }
  .mfs-rh__filters { flex-direction: column; gap: 20px; margin-top: 20px; }
  .mfs-rh__show { display: flex; margin-top: 24px; }
  .mfs-rh-tab { padding: 10px 20px; font-size: 16px; line-height: 24px; }
}

/* 3. Results table -------------------------------------------------------- */
.mfs-rh-table {
  margin-top: 40px;
  border: 1px solid var(--mfs-line);
  border-radius: var(--mfs-radius);
  background: #fff;
  overflow: hidden;
  transition: opacity 0.2s;
}
.mfs-rh-table[aria-busy="true"] { opacity: 0.55; }
.mfs-rh-table__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px; }
@media (min-width: 768px) { .mfs-rh-table__head { padding: 28px; } }
.mfs-rh-table__title { font-family: var(--mfs-font-heading); font-size: 24px; line-height: 30px; font-weight: 700; color: var(--mfs-navy); }
@media (min-width: 768px) { .mfs-rh-table__title { font-size: 28px; line-height: 34px; } }
.mfs-rh-table__head { align-items: flex-start; }
.mfs-rh-table__basis { margin-top: 6px; max-width: 640px; font-size: 14px; line-height: 22px; color: var(--mfs-body); }
.mfs-rh-table__icon { flex-shrink: 0; }
.mfs-rh-table__icon { flex-shrink: 0; color: var(--mfs-navy); }

/* Columns: lender + product | initial rate | APRC | details toggle. */
.mfs-rh-table__cols,
.mfs-rh-row__main { display: grid; grid-template-columns: minmax(0, 1fr) 72px 64px; column-gap: 16px; }
@media (min-width: 768px) {
  .mfs-rh-table__cols,
  .mfs-rh-row__main { grid-template-columns: minmax(0, 1fr) 180px 150px 170px; column-gap: 0; }
  .mfs-rh-table--compare .mfs-rh-table__cols,
  .mfs-rh-table--compare .mfs-rh-row__main { grid-template-columns: minmax(0, 1fr) 240px 150px; }
}
@media (min-width: 1280px) {
  .mfs-rh-table__cols,
  .mfs-rh-row__main { grid-template-columns: minmax(0, 620px) 240px 200px minmax(0, 1fr); }
}
.mfs-rh-table__cols {
  display: none;
  padding: 18px 28px;
  background: var(--mfs-line);
  font-size: 13px;
  line-height: 16px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--mfs-navy);
}
@media (min-width: 768px) { .mfs-rh-table__cols { display: grid; } }

.mfs-rh-table__rows { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--mfs-line); }
@media (min-width: 768px) { .mfs-rh-table__rows { border-top: 0; } }
.mfs-rh-row { border-bottom: 1px solid var(--mfs-line); }
.mfs-rh-row__main { align-items: center; padding: 20px; }
@media (min-width: 768px) { .mfs-rh-row__main { padding: 22px 28px; } }
.mfs-rh-row__lender { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; min-width: 0; }
.mfs-rh-row__logo { display: block; width: auto; height: 32px; max-width: 120px; object-fit: contain; object-position: left center; }
.mfs-rh-row__name { font-family: var(--mfs-font-heading); font-size: 20px; line-height: 26px; font-weight: 700; color: var(--mfs-navy); }
.mfs-rh-row__product { font-size: 13px; line-height: 19px; color: var(--mfs-body); }
.mfs-rh-row__fig { font-family: var(--mfs-font-heading); font-size: 20px; line-height: 26px; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--mfs-navy); }
@media (min-width: 768px) { .mfs-rh-row__fig { font-size: 26px; line-height: 28px; } }
.mfs-rh-row__toggle {
  display: inline-flex;
  align-items: center;
  justify-self: end;
  gap: 6px;
  padding: 4px 0;
  border: 0;
  background: none;
  font-size: 15px;
  line-height: 22px;
  font-weight: 600;
  color: var(--mfs-action);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-position: from-font;
  cursor: pointer;
}
.mfs-rh-row__toggle .mfs-icon { transition: transform 0.2s; }
.mfs-rh-row__toggle[aria-expanded="true"] .mfs-icon { transform: rotate(180deg); }
.mfs-rh-row__toggle:hover { color: var(--mfs-action-hover); }
@media (max-width: 767px) {
  /* Phones: figures on the right, the toggle under the product line. */
  .mfs-rh-row__main { grid-template-areas: "lender initial aprc" "toggle . ."; align-items: start; row-gap: 12px; }
  .mfs-rh-row__lender { grid-area: lender; }
  .mfs-rh-row__fig:nth-of-type(2) { grid-area: initial; }
  .mfs-rh-row__fig:nth-of-type(3) { grid-area: aprc; }
  .mfs-rh-row__toggle { grid-area: toggle; justify-self: start; }
  .mfs-rh-row__logo { height: 28px; }
}

/* Details: the row opens in place, one at a time. */
.mfs-rh-details { padding: 24px 20px 28px; background: var(--mfs-band); }
@media (min-width: 768px) { .mfs-rh-details { padding: 28px 28px 32px; } }
.mfs-rh-details[hidden] { display: none; }
.mfs-rh-details__fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 20px; margin: 0; }
@media (min-width: 1024px) { .mfs-rh-details__fields { grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: 28px; } }
.mfs-rh-details__fields div { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.mfs-rh-details__fields dt { font-size: 13px; line-height: 16px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: rgb(0 47 106 / 0.7); }
.mfs-rh-details__fields dd { margin: 0; font-size: 16px; line-height: 24px; font-weight: 600; color: var(--mfs-navy); overflow-wrap: anywhere; }
@media (min-width: 768px) { .mfs-rh-details__fields dd { font-size: 17px; line-height: 26px; } }
.mfs-rh-details__actions { display: flex; flex-direction: column; gap: 12px; margin-top: 28px; padding-top: 24px; border-top: 1px solid rgb(0 47 106 / 0.15); }
.mfs-rh-details__actions .mfs-btn { min-height: 52px; }
@media (min-width: 768px) {
  .mfs-rh-details__actions { flex-direction: row; align-items: center; }
  .mfs-rh-details__actions .mfs-btn--primary { min-width: 260px; }
}

.mfs-rh-table__foot { padding: 20px; }
@media (min-width: 768px) { .mfs-rh-table__foot { padding: 24px; } }
.mfs-rh-table__foot[hidden] { display: none; }
.mfs-rh-more {
  display: block;
  width: 100%;
  min-height: 54px;
  border: 1px solid rgb(0 47 106 / 0.25);
  border-radius: 6px;
  background: #fff;
  font-size: 16px;
  font-weight: 600;
  color: var(--mfs-navy);
  transition: border-color 0.2s;
}
.mfs-rh-more:hover { border-color: var(--mfs-navy); }

.mfs-rh-empty { padding: 48px 20px 56px; text-align: center; border-top: 1px solid var(--mfs-line); }
@media (min-width: 768px) { .mfs-rh-empty { border-top: 0; } }
.mfs-rh-empty[hidden] { display: none; }
.mfs-rh-empty__text { max-width: 640px; margin-inline: auto; font-size: 17px; line-height: 27px; color: var(--mfs-navy); }
.mfs-rh-empty__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 24px; }

/* 4. Compliance notes ----------------------------------------------------- */
.mfs-rh-notes { margin-top: 28px; }
.mfs-rh-rep { margin-bottom: 24px; padding: 24px; border: 1px solid var(--mfs-line); border-radius: var(--mfs-radius); background: #fff; }
@media (min-width: 768px) { .mfs-rh-rep { padding: 32px; } }
.mfs-rh-rep[hidden] { display: none; }
.mfs-rh-rep p { font-size: 13px; line-height: 19px; color: var(--mfs-body); }
.mfs-rh-notes__warning { font-size: 17px; line-height: 27px; font-weight: 600; color: var(--mfs-navy); }
.mfs-rh-notes__btl { margin-top: 12px; font-size: 15px; line-height: 23px; font-weight: 600; color: var(--mfs-navy); }
.mfs-rh-notes__btl[hidden] { display: none; }
.mfs-rh-notes__small { margin-top: 12px; font-size: 14px; line-height: 22px; color: var(--mfs-navy); }
.mfs-rh-notes__aprc { margin-top: 8px; font-size: 15px; line-height: 23px; color: var(--mfs-navy); }
.mfs-rh-notes__calc { display: inline-flex; align-items: center; gap: 6px; margin-top: 28px; font-size: 16px; line-height: 20px; font-weight: 600; color: var(--mfs-navy); }
.mfs-rh-notes__calc:hover { text-decoration: underline; }

/* 5. Split sections: how to read this, compare explainer ------------------ */
.mfs-rh-split { display: grid; gap: 24px; }
@media (min-width: 1024px) { .mfs-rh-split { grid-template-columns: 440px minmax(0, 760px); justify-content: space-between; gap: 80px; } }
.mfs-rh-split__title { margin-top: 16px; color: var(--mfs-navy); }
.mfs-rh-read p { font-size: 16px; line-height: 28px; color: var(--mfs-navy); }
.mfs-rh-read p + p { margin-top: 18px; }
.mfs-rh-read .mfs-rh-read__last { color: var(--mfs-body); }

.mfs-rh-explainer__block { padding-block: 32px; border-top: 1px solid var(--mfs-line); }
.mfs-rh-explainer__block:first-child { padding-top: 0; border-top: 0; }
.mfs-rh-explainer__block:last-child { padding-bottom: 0; }
.mfs-rh-explainer__title { font-family: var(--mfs-font-heading); font-size: 24px; line-height: 32px; font-weight: 700; color: var(--mfs-navy); }
@media (min-width: 640px) { .mfs-rh-explainer__title { font-size: 26px; line-height: 34px; } }
.mfs-rh-explainer__block p { margin-top: 12px; font-size: 16px; line-height: 27px; color: var(--mfs-body); }
.mfs-rh-explainer__list { margin: 24px 0 0; }
.mfs-rh-explainer__list div { display: grid; gap: 4px; padding-block: 16px; border-top: 1px solid var(--mfs-line); }
.mfs-rh-explainer__list div:first-child { padding-top: 0; border-top: 0; }
@media (min-width: 640px) { .mfs-rh-explainer__list div { grid-template-columns: 150px minmax(0, 1fr); gap: 24px; } }
.mfs-rh-explainer__list dt { font-size: 16px; line-height: 26px; font-weight: 600; color: var(--mfs-navy); }
.mfs-rh-explainer__list dd { margin: 0; font-size: 15px; line-height: 26px; color: var(--mfs-body); }

/* The page's existing article (first-time buyer compare page). */
.mfs-rh-explainer > h3,
.mfs-rh-explainer > h4,
.mfs-rh-explainer > h5,
.mfs-rh-explainer > h6 { font-family: var(--mfs-font-heading); font-weight: 700; color: var(--mfs-navy); }
.mfs-rh-explainer > h3 { margin-top: 40px; padding-top: 32px; border-top: 1px solid var(--mfs-line); font-size: 26px; line-height: 34px; }
.mfs-rh-explainer > h3:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.mfs-rh-explainer > h4 { margin-top: 24px; font-size: 21px; line-height: 28px; }
.mfs-rh-explainer > h5,
.mfs-rh-explainer > h6 { margin-top: 20px; font-size: 18px; line-height: 26px; }
.mfs-rh-explainer > p,
.mfs-rh-explainer > ul { margin-top: 12px; font-size: 16px; line-height: 27px; color: var(--mfs-body); }
.mfs-rh-explainer > ul { padding-left: 20px; list-style: disc; }
.mfs-rh-explainer > ul li + li { margin-top: 6px; }
.mfs-rh-explainer a { color: var(--mfs-navy); text-decoration: underline; text-underline-position: from-font; }
.mfs-rh-explainer a:hover { color: var(--mfs-action); }
.mfs-rh-explainer > table { width: 100%; margin-top: 20px; border-collapse: collapse; font-size: 15px; line-height: 23px; color: var(--mfs-navy); }
.mfs-rh-explainer > table td { padding: 12px 16px; border-bottom: 1px solid var(--mfs-line); }
.mfs-rh-explainer > table tr:first-child td { background: var(--mfs-line); font-weight: 600; }

/* 6. Calculator card ------------------------------------------------------ */
.mfs-rh-calc {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
  padding: 28px 24px;
  border: 1px solid var(--mfs-line);
  border-radius: var(--mfs-radius);
  background: #fff;
}
@media (min-width: 768px) {
  .mfs-rh-calc { flex-direction: row; align-items: center; justify-content: space-between; gap: 40px; padding: 48px 40px; }
}
.mfs-rh-calc__title { margin-top: 12px; font-family: var(--mfs-font-heading); font-size: 26px; line-height: 32px; font-weight: 700; color: var(--mfs-navy); }
@media (min-width: 768px) { .mfs-rh-calc__title { font-size: 28px; line-height: 34px; } }
.mfs-rh-calc__body { max-width: 740px; margin-top: 10px; font-size: 16px; line-height: 27px; color: var(--mfs-body); }
.mfs-rh-calc .mfs-btn { flex-shrink: 0; }


/* 7. Lender pages (lender_new, guide layout) ------------------------------- */
.mfs-rh-notes__lender { margin-bottom: 16px; font-size: 16px; line-height: 25px; font-weight: 600; color: var(--mfs-navy); }
.mfs-rh-notes__affiliation { margin-top: 20px; font-size: 16px; line-height: 24px; font-weight: 600; color: var(--mfs-navy); }
.mfs-rh-article { border-top: 1px solid var(--mfs-line); }
.mfs-rh-article__toc { margin-top: 0; }

/* Contact box inside the copy. */
.mfs-rh-contact { display: flex; flex-direction: column; gap: 20px; padding: 24px; border-radius: var(--mfs-radius); background: var(--mfs-band); }
@media (min-width: 640px) { .mfs-rh-contact { padding: 32px; } }
.mfs-ui .mfs-guide__section > .mfs-rh-contact { margin-top: 24px; }
.mfs-rh-contact__title { font-family: var(--mfs-font-heading); font-size: 23px; line-height: 28px; font-weight: 700; letter-spacing: -0.015em; color: var(--mfs-navy); }
@media (min-width: 640px) { .mfs-rh-contact__title { font-size: 25px; line-height: 30px; } }
.mfs-ui .mfs-guide__section .mfs-rh-contact__fee { margin-top: -8px; font-size: 15px; line-height: 23px; color: var(--mfs-body); scroll-margin-top: calc(var(--mfs-header-h) + 24px); }
.mfs-ui .mfs-guide__section .mfs-rh-contact > * + * { margin-top: 0; }
.mfs-rh-contact__call { font-size: 15px; line-height: 24px; color: var(--mfs-navy); }
.mfs-rh-contact__call a { font-weight: 600; color: var(--mfs-navy); text-decoration: underline; text-underline-position: from-font; }
.mfs-ui .mfs-guide__section .mfs-rh-contact .mfs-btn { text-decoration: none; }
.mfs-ui .mfs-guide__section .mfs-rh-contact .mfs-btn--primary { color: #fff; }
.mfs-ui .mfs-guide__section .mfs-rh-contact .mfs-btn--secondary { color: var(--mfs-navy); }

/* About this lender: title and a line or two per row, ruled. */
.mfs-rh-about { margin: 0; border-bottom: 1px solid var(--mfs-line); }
.mfs-rh-about div { display: grid; gap: 4px; padding-block: 18px; border-top: 1px solid var(--mfs-line); }
.mfs-rh-about dt { font-size: 18px; line-height: 26px; font-weight: 600; color: var(--mfs-navy); }
@media (min-width: 640px) { .mfs-rh-about dt { font-size: 19px; line-height: 28px; } }
.mfs-rh-about dd { margin: 0; font-size: 16px; line-height: 25px; color: var(--mfs-body); }

/* Key criteria: label | value card on the band. */
.mfs-rh-criteria { margin: 0; overflow: hidden; border: 1px solid var(--mfs-line); border-radius: var(--mfs-radius); background: #fff; }
.mfs-rh-criteria div { display: grid; gap: 4px; padding: 16px 20px; border-top: 1px solid var(--mfs-line); }
.mfs-rh-criteria div:first-child { border-top: 0; }
@media (min-width: 640px) { .mfs-rh-criteria div { grid-template-columns: 180px minmax(0, 1fr); gap: 24px; padding-inline: 24px; } }
.mfs-rh-criteria dt { font-size: 16px; line-height: 24px; font-weight: 600; color: var(--mfs-navy); }
.mfs-rh-criteria dd { margin: 0; font-size: 15px; line-height: 23px; color: var(--mfs-body); }
.mfs-rh-criteria__foot { margin-top: 20px; font-size: 15px; line-height: 23px; color: var(--mfs-body); }
.mfs-rh-about a, .mfs-rh-criteria a { color: var(--mfs-navy); text-decoration: underline; text-underline-position: from-font; }

/* Going direct, or through us: heading, the page's line, two cards. */
.mfs-rh-direct__head { max-width: 760px; }
.mfs-rh-direct__intro { margin-top: 16px; }
.mfs-rh-direct { display: grid; gap: 24px; margin-top: 32px; }
@media (min-width: 768px) { .mfs-rh-direct { grid-template-columns: 1fr 1fr; gap: 32px; } }
.mfs-rh-direct__title { font-family: var(--mfs-font-heading); font-size: 23px; line-height: 30px; font-weight: 700; color: var(--mfs-navy); }
@media (min-width: 640px) { .mfs-rh-direct__title { font-size: 25px; line-height: 32px; } }
.mfs-rh-direct__body { margin-top: 10px; font-size: 16px; line-height: 25px; color: var(--mfs-navy); }

/* Other lenders: two columns of links. */
.mfs-rh-others { display: grid; margin: 0; padding: 0; list-style: none; column-gap: 40px; }
@media (min-width: 640px) { .mfs-rh-others { grid-template-columns: 1fr 1fr; } }
.mfs-rh-others a { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 18px; border-bottom: 1px solid var(--mfs-line); font-size: 17px; line-height: 24px; font-weight: 500; color: var(--mfs-navy); }
.mfs-rh-others li:nth-child(-n+2) a { padding-top: 0; }
@media (max-width: 639px) { .mfs-rh-others li:nth-child(2) a { padding-top: 18px; } }
.mfs-rh-others a:hover span { text-decoration: underline; }
.mfs-rh-others .mfs-icon { flex-shrink: 0; transition: transform 0.2s; }
.mfs-rh-others a:hover .mfs-icon { transform: translateX(4px); }

/* guide.css (loaded for the copy) shares class names with the homepage
   guide cards: put the cards back to their homepage values. */
.mfs-guides .mfs-guide__title { margin-top: 12px; font-size: 25px; line-height: 32px; letter-spacing: 0; }
@media (min-width: 1024px) { .mfs-guides .mfs-guide__title { margin-top: 16px; font-size: 27px; } }
.mfs-guides .mfs-guide__body { flex: 1; margin-top: 8px; padding-block: 0; line-height: 24px; }
@media (min-width: 1024px) { .mfs-guides .mfs-guide__body { margin-top: 12px; padding-block: 0; } }
