.fin-card {
  --fin-gold: #cf9009;
  --fin-navy: #172938;
  --fin-cream: #fff8e8;
}
.fin-hero {
  background: var(--fin-gold);
  border-color: var(--fin-gold);
}
.fin-hero::before {
  background: var(--fin-gold);
  clip-path: polygon(0 0, 68% 0, 63% 100%, 0 100%);
}
.fin-hero .exam-hero-image { width: 39%; object-position: 51% 46%; }
.fin-hero .exam-hero-copy { width: 65%; }
.fin-hero .exam-category, .fin-hero h2 { color: var(--fin-navy); }
.fin-hero h2 { max-width: 37rem; }
.fin-hero .exam-modes span { color: var(--fin-navy); background: #fff8e9; }
.fin-hero .exam-modes svg { color: var(--fin-navy); }
.fin-proof {
  background: var(--fin-cream);
  border-bottom-color: #eadfca;
}
.fin-proof > div { border-color: var(--fin-gold); }
.fin-proof .fin-qa {
  display: grid;
  grid-template-columns: minmax(0,.78fr) minmax(0,1.22fr);
  gap: .7rem clamp(1.4rem, 2.9vw, 3.2rem);
  font-size: clamp(1.2rem, 1.7vw, 1.55rem);
  letter-spacing: -.035em;
}
.fin-qa small {
  display: block;
  margin-bottom: .24rem;
  color: #6a5a3d;
  font: 700 .875rem/1.3 "DM Sans", Arial, sans-serif;
  letter-spacing: 0;
}
.fin-proof figcaption { margin-top: .7rem; }
.fin-plan .exam-compare { grid-template-columns: minmax(0,.9fr) minmax(0,1.1fr); }
.fin-plan h3 { margin-bottom: .7rem; font-size: clamp(1.35rem, 1.8vw, 1.65rem); }
.fin-formats .exam-tier-1 { background: #e8bb60; }
.fin-formats .exam-tier-2 { background: #ad7406; }
.fin-formats .exam-tier-3 { background: #76500c; }
.fin-card .exam-hour-recommendation {
  display: table;
  margin: .3rem 0 0 auto;
  padding: .2rem .5rem;
  border-radius: 1rem;
  color: #664600;
  background: #fff1cc;
  font-size: .78rem;
  font-weight: 700;
}
.fin-formats .exam-formats strong { color: #735000; text-align: right; }
.fin-formats .format-note {
  margin-top: .85rem;
  color: #425e63;
  font-size: .875rem;
  line-height: 1.45;
}
.fin-borrowing { min-width: 0; }
.fin-borrowing h3 { margin: 0 0 .55rem; font-size: clamp(1.2rem, 1.75vw, 1.5rem); }
.fin-range-label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: .65rem;
  color: var(--navy);
}
.fin-range-label label { font-size: .94rem; font-weight: 700; line-height: 1.25; }
.fin-range-label strong {
  color: var(--teal);
  font: 750 1.1rem/1.15 var(--face);
  font-variant-numeric: tabular-nums;
}
.fin-range {
  display: block;
  width: 100%;
  height: 1.5rem;
  margin: 0;
  padding: 0;
  accent-color: var(--teal);
  cursor: pointer;
}
.fin-range-ends {
  display: flex;
  justify-content: space-between;
  color: #4b6267;
  font-size: .8rem;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.fin-payoff-lead {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  grid-template-rows: auto auto;
  column-gap: .7rem;
  row-gap: .12rem;
  margin-top: .55rem;
  padding: .5rem .75rem;
  border-left: 3px solid var(--fin-gold);
  background: var(--fin-cream);
}
.fin-payoff-principal, .fin-payoff-total {
  display: grid;
  grid-row: 1 / 3;
  grid-template-rows: subgrid;
  min-width: 0;
}
.fin-payoff-total { border-left: 1px solid #dfcea5; padding-left: .7rem; }
.fin-payoff-lead small { align-self: end; font-size: .85rem; line-height: 1.15; color: #605132; }
.fin-payoff-lead strong {
  font: 750 clamp(1.25rem, 2.3vw, 1.85rem)/1.05 var(--face);
  font-variant-numeric: tabular-nums;
  letter-spacing: -.045em;
  white-space: nowrap;
  color: var(--fin-navy);
}
.fin-payoff-total strong { color: #805609; }
.fin-payoff-lead:has([data-position="above"]) .fin-payoff-total strong { color: #b4232e; }
.fin-target-line {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .15rem .55rem;
  margin-top: .22rem;
  color: #524830;
  font-size: .85rem;
  line-height: 1.3;
}
.fin-target-gap {
  padding-inline: .35rem;
  border-radius: .2rem;
  background: #def0e8;
  color: #155748;
  font-weight: 700;
  white-space: nowrap;
}
.fin-target-gap[data-position="at"] { background: #f4e4c3; color: #654c20; }
.fin-target-gap[data-position="above"] { background: #f7dfd7; color: #852f1c; }
.fin-borrowing .fin-terms-inline { margin: .33rem 0 0; color: #4b6267; font-size: .85rem; line-height: 1.3; }
.fin-options-toggle {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  max-width: 100%;
  min-height: 2.3rem;
  padding: .3rem 0;
  border: 0;
  background: transparent;
  color: var(--teal);
  font-size: .94rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: left;
  text-decoration: underline;
  text-underline-offset: .18em;
  cursor: pointer;
}
.fin-options-toggle::after {
  content: "";
  width: .45rem;
  height: .45rem;
  flex-shrink: 0;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-.1rem) rotate(45deg);
}
.fin-options-toggle[aria-expanded="true"]::after { transform: translateY(.1rem) rotate(225deg); }
.fin-payoff {
  grid-column: 1 / -1;
  min-width: 0;
  margin-top: .65rem;
  padding-top: 1rem;
  border-top: 1px solid #cfdfda;
}
.fin-payoff[hidden] { display: none; }
.fin-payoff > h4 { margin: 0 0 .55rem; font-size: 1.08rem; }
.fin-options-layout { display: grid; grid-template-columns: minmax(0,.85fr) minmax(0,1.15fr); column-gap: clamp(1rem, 2.5vw, 2.4rem); }
.fin-options-layout > * { min-width: 0; }
.fin-options-layout p, .fin-payoff-details { font-size: .92rem; line-height: 1.45; color: #355159; }
.fin-scholarship, .fin-payoff-controls {
  display: flex;
  align-items: center;
  gap: .5rem;
  min-height: 2.45rem;
  color: var(--navy);
  font-size: .94rem;
  font-weight: 700;
  line-height: 1.3;
}
.fin-scholarship { cursor: pointer; }
.fin-scholarship input { margin: 0; width: 1.1rem; height: 1.1rem; flex-shrink: 0; accent-color: var(--teal); }
.fin-payoff-controls { flex-wrap: wrap; }
.fin-payoff-controls select {
  width: auto;
  max-width: 100%;
  min-height: 2.45rem;
  padding: .3rem .55rem;
  border: 1px solid #829e99;
  border-radius: .3rem;
  background-color: white;
  color: var(--teal);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
}
.fin-plan-table {
  width: 100%;
  margin-top: .4rem;
  border-collapse: collapse;
  color: var(--navy);
  font-size: .9rem;
  font-variant-numeric: tabular-nums;
  line-height: 1.35;
}
.fin-plan-table :is(th, td) { text-align: right; padding: .35rem .3rem; border-bottom: 1px solid #d9e5e1; }
.fin-plan-table :is(th, td):first-child { text-align: left; padding-left: 0; }
.fin-plan-table :is(th, td):last-child { padding-right: 0; }
.fin-plan-table thead th { color: #405a62; }
.fin-plan-table tbody tr:last-child { font-weight: 700; }
.fin-options-layout .fin-payoff-summary { margin-top: .55rem; color: var(--navy); font-weight: 700; }
.fin-payoff-details { margin-top: .65rem; }
.fin-payoff-details summary { width: fit-content; padding-block: .4rem; color: var(--teal); font-weight: 700; text-decoration: underline; text-underline-offset: .18em; cursor: pointer; }
.fin-payoff-details p { max-width: 75ch; margin-top: .35rem; }
.fin-payoff-details a { color: var(--teal); }
.fin-borrowing :is(input, button):focus-visible, .fin-payoff :is(input, select, summary):focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; }
.fin-borrowing .fin-range:focus-visible { outline-width: 2px; outline-offset: -1px; }
.fin-grant-modules { margin: .2rem 0 .4rem; padding-left: 1.3rem; }
.fin-grant-modules li { color: #355159; font-size: .94rem; line-height: 1.45; }
.fin-modules { margin: .75rem 0 0; padding-left: 1.65rem; }
.fin-modules li { padding: .45rem 0 .45rem .25rem; border-top: 1px solid #dce5e1; }
.fin-modules li::marker { color: #7b5b16; font-weight: 700; }
.fin-modules strong, .fin-modules span { display: block; }
@media (max-width: 760px) {
  .fin-plan .exam-compare { grid-template-columns: 1fr; }
  .fin-borrowing { background: transparent; padding: .85rem 0 0; border-radius: 0; border-top: 1px solid #dbe4df; }
  .fin-payoff { margin: 0; padding-top: .85rem; }
  .fin-options-layout { grid-template-columns: 1fr; row-gap: .65rem; }
}
@media (max-width: 600px) {
  .fin-hero {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
    row-gap: .55rem;
    padding-bottom: .85rem;
  }
  .fin-hero::before { content: none; }
  .fin-hero .exam-hero-copy { display: contents; }
  .fin-hero .exam-hero-image {
    position: static;
    grid-area: 1 / 2 / 3 / 3;
    align-self: stretch;
    width: 100%;
    height: 100%;
    min-height: 0;
    object-position: 53% 44%;
    clip-path: polygon(10% 0,100% 0,100% 100%,0 100%);
  }
  .fin-hero .exam-category, .fin-hero h2 { padding-left: .85rem; }
  .fin-hero .exam-category {
    grid-area: 1 / 1;
    align-self: end;
    margin: .65rem 0 0;
    font-size: .9rem;
  }
  .fin-hero h2 {
    grid-area: 2 / 1;
    align-self: start;
    max-width: none;
    padding-bottom: .3rem;
    font-size: clamp(1.45rem, 6.7vw, 2rem);
  }
  .fin-hero .exam-modes {
    grid-column: 1 / -1;
    margin: 0;
    padding-inline: .85rem;
  }
  .fin-proof .fin-qa { grid-template-columns: 1fr; gap: .55rem; }
  .fin-payoff-lead { padding: .5rem .6rem; column-gap: .5rem; }
  .fin-payoff-total { padding-left: .5rem; }
  .fin-options-toggle { min-height: 2.75rem; }
}
