:root {
  color-scheme: light;
  --navy: #182b45;
  --deep-navy: #101e32;
  --body-ink: #435268;
  --gold: #ffd45b;
  --red: #a22627;
  --paper: #fff;
  --surface: #f6f8fb;
  --rule: #d9e0e8;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--body-ink);
  font: 1rem/1.65 system-ui, -apple-system, sans-serif;
}

a { color: inherit; }
a:focus-visible, summary:focus-visible {
  outline: 3px solid currentColor;
  outline-offset: 4px;
}

.frame {
  width: min(100% - clamp(2rem, 7vw, 6rem), 72rem);
  margin-inline: auto;
}

h1, h2, h3 { margin: 0; color: var(--navy); line-height: 1.1; }
h2 { font-size: clamp(1.75rem, 3.2vw, 2.35rem); letter-spacing: -.035em; }
h3 { font-size: 1.25rem; }
p { margin: 0; }

.skip-link {
  position: fixed;
  top: .75rem;
  left: .75rem;
  z-index: 10;
  padding: .6rem 1rem;
  background: var(--navy);
  color: white;
  transform: translateY(-200%);
}

.skip-link:focus { transform: translateY(0); }

.masthead { border-top: 4px solid var(--gold); }
.masthead-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem 2rem;
  min-height: 6rem;
  padding-block: .8rem;
}

.brand {
  display: flex;
  align-items: center;
  width: min(100%, 21.25rem);
  color: var(--red);
  font-weight: 800;
  text-decoration: none;
}

.brand-image {
  display: block;
  width: 100%;
  height: 4rem;
  object-fit: contain;
  object-position: left center;
}

.navigation {
  display: flex;
  flex-wrap: wrap;
  gap: .125rem clamp(.65rem, 2.6vw, 1.8rem);
  padding: 0;
  margin: 0;
  list-style: none;
}

.navigation a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  color: var(--navy);
  font-size: .95rem;
  font-weight: 650;
  text-decoration: none;
  white-space: nowrap;
}

.navigation a:hover, .navigation a[aria-current] {
  text-decoration: underline;
  text-underline-offset: .35em;
  text-decoration-thickness: .12em;
}

.masthead .navigation a[aria-current] { color: var(--red); }

body:has(.information section:target) .masthead .navigation a[aria-current] {
  color: var(--navy);
  text-decoration: none;
}

body:has(#about:target) .masthead a[href="#about"],
body:has(#faqs:target) .masthead a[href="#faqs"],
body:has(#contact:target) .masthead a[href="#contact"] {
  color: var(--red);
  text-decoration: underline .12em;
  text-underline-offset: .35em;
}

.hero {
  padding-block: clamp(2.25rem, 6vw, 5.25rem);
  background: linear-gradient(125deg, var(--deep-navy), #223d60);
  color: white;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

.hero-copy { grid-column: 2; grid-row: 1; }
.hero h1 {
  margin-bottom: .8rem;
  color: white;
  font-size: clamp(2.7rem, 6vw, 4.75rem);
  letter-spacing: -.04em;
}

.hero p { max-width: 40ch; color: #e3ecfa; }
.hero .hero-subtitle { margin-bottom: .65rem; color: var(--gold); font-weight: 700; }
.hero-image {
  display: block;
  grid-column: 1;
  grid-row: 1;
  width: 100%;
  min-width: 0;
  height: auto;
  border-radius: .45rem;
}

.application-action { margin-top: 1.55rem; }

.apply-button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.1rem;
  min-height: 3rem;
  padding: .6rem 1.1rem;
  border: 1px solid transparent;
  border-radius: .4rem;
  background: var(--gold);
  color: var(--deep-navy);
  font-weight: 750;
  list-style: none;
  cursor: pointer;
}

.apply-button::-webkit-details-marker { display: none; }
.apply-button:hover { background: #ffe38d; }
.apply-button:focus-visible { outline-color: white; }
.application-action p { margin-top: .65rem; font-size: .875rem; }
.application-action[open] .apply-arrow { transform: rotate(90deg); }

.apply-arrow {
  position: relative;
  width: .9rem;
  border-top: 1.5px solid currentColor;
}

.apply-arrow::after {
  position: absolute;
  top: -.23rem;
  right: 0;
  width: .36rem;
  height: .36rem;
  border-top: 1.5px solid currentColor;
  border-right: 1.5px solid currentColor;
  transform: rotate(45deg);
  content: "";
}

.information { padding-block: clamp(2rem, 6vw, 4.25rem); }
.information h2 + p { margin-top: .8rem; }
.information section { scroll-margin-block-start: 1rem; }
.about {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 1.5rem 3rem;
  align-items: center;
}
.about p { max-width: 60ch; }

.products {
  padding: 1.2rem 1.35rem;
  border: 1px solid var(--rule);
  border-top-color: var(--gold);
  border-radius: .4rem;
  background: var(--surface);
}

.products ul { margin: .55rem 0 0; padding-left: 1.2em; }
.faqs {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 1rem 3rem;
  padding-top: clamp(1.5rem, 4vw, 3rem);
  padding-bottom: clamp(1.5rem, 4vw, 3rem);
  margin-top: clamp(1.5rem, 4vw, 3rem);
  border-top: 1px solid var(--rule);
}

.questions details { border-bottom: 1px solid var(--rule); }
.questions summary {
  padding: .75rem .25rem;
  color: var(--navy);
  font-weight: 650;
  cursor: pointer;
}

.questions details p { padding: 0 1.3rem 1rem; }

.contact {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: .75rem 1.5rem;
  padding: clamp(1.25rem, 4vw, 2rem);
  border: 1px solid var(--rule);
  border-radius: .45rem;
  background: var(--surface);
}

.contact h2 + p { margin-top: .3rem; }
.phone {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  color: var(--red);
  font-size: 1.15rem;
  font-weight: 750;
  text-underline-offset: .2em;
}

.site-footer {
  padding-block: 2.5rem 1.5rem;
  background: var(--deep-navy);
  color: #dce5f1;
  font-size: .9rem;
}

.notice { font-size: .8125rem; line-height: 1.5; }
.notice h2 { color: white; font-size: .9375rem; }
.notice ol { padding-left: 1.2em; margin-block: .55rem .9rem; }
.notice li + li { margin-top: .25rem; }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: .25rem 1.5rem;
  padding-top: .75rem;
  margin-top: 1.4rem;
  border-top: 1px solid #526179;
}
.footer-bottom .navigation a { color: white; }

.site-information .navigation { column-gap: 1.1rem; }
.site-information .navigation a { color: white; font-size: .875rem; }

.technical-heading {
  padding-block: clamp(2rem, 6vw, 4rem);
  border-block: 1px solid var(--rule);
  background: var(--surface);
}
.technical-heading h1 { font-size: clamp(2.25rem, 5vw, 3.75rem); letter-spacing: -.04em; }
.technical-body { padding-block: clamp(2rem, 5vw, 3.5rem); }
.technical-body > * { max-width: 68ch; }
.technical-body h2 { margin-top: 1.75rem; font-size: 1.375rem; letter-spacing: -.015em; }
.technical-body p + p, .technical-body h2 + p, .technical-body h2 + ul { margin-top: .65rem; }
.technical-body ul { padding-inline-start: 1.3rem; }
.technical-body li + li { margin-top: .45rem; }
.technical-body a { color: var(--red); text-underline-offset: .14em; }
.technical-footer { padding-block: 1.4rem; }
.technical-footer p { margin-top: .35rem; }

@media (max-width: 45rem) {
  .masthead-inner { flex-wrap: wrap; padding-block: .85rem .3rem; justify-content: center; }
  .brand { justify-content: center; width: min(100%, 15.5rem); }
  .brand-image { height: 3.25rem; object-position: center; }
  .masthead nav { flex-basis: 100%; }
  .masthead .navigation { justify-content: center; column-gap: 1rem; }
  .hero-inner, .about, .faqs { grid-template-columns: minmax(0, 1fr); }
  .hero-copy, .hero-image { grid-column: auto; grid-row: auto; }
}

@media (max-width: 21rem) {
  .masthead .navigation { column-gap: .7rem; }
  .navigation a { font-size: .875rem; }
}

.home-hero .hero-inner {
  grid-template-columns: minmax(0, 1.25fr) minmax(0, .85fr);
}
.home-hero .hero-copy { grid-column: 1; }
.home-hero h1 { font-size: clamp(2.55rem, 5.6vw, 4.65rem); text-wrap: balance; }
.home-hero p { max-width: 48ch; }
.home-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .55rem 1.2rem;
  margin-top: 1.35rem;
}
.home-actions .quiet-action { margin-top: 0; }
.primary-action {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  min-height: 2.75rem;
  padding: .55rem 1rem;
  border-radius: 2rem;
  background: var(--gold);
  color: var(--deep-navy);
  font-weight: 700;
  text-decoration: none;
}
.primary-action:hover { background: #ffe8a6; }
.primary-action:focus-visible { outline-color: white; }
.home-summary {
  padding: clamp(1.3rem, 3.4vw, 2.1rem);
  border-radius: .45rem;
  background: var(--surface);
  color: var(--body-ink);
}
.home-summary h2 { font-size: 1.35rem; }
.home-summary dl { margin-block: .85rem 0; }
.home-summary dl > div { padding-block: .7rem; border-bottom: 1px solid var(--rule); }
.home-summary dl > div:last-child { border-bottom: 0; padding-bottom: 0; }
.home-summary dt { color: var(--navy); font-weight: 700; }
.home-summary dd { margin-inline: 0; }
.loan-option-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.2rem;
}
.loan-option-grid p { margin-top: .55rem; }
.home-help-link { color: var(--red); font-weight: 700; text-underline-offset: .2em; }
.notice p { max-width: 78ch; margin-top: .45rem; }
.notice a { text-underline-offset: .2em; }

@media (max-width: 45rem) {
  .home-hero .hero-inner, .loan-option-grid { grid-template-columns: minmax(0, 1fr); }
}

.quiet-action {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  min-height: 2.75rem;
  margin-top: 1rem;
  color: var(--gold);
  text-underline-offset: .24em;
  text-decoration-thickness: .08em;
  font-weight: 650;
}
.quiet-action:hover { color: white; }
.installment-content > section + section { margin-top: clamp(1.65rem, 4vw, 3rem); }
.installment-content section > p { max-width: 68ch; }
.installment-content section > p + p { margin-top: .65rem; }
.installment-content a:not(.skip-link) { text-underline-offset: .22em; }
.installment-summary p { margin-top: .65rem; color: var(--body-ink); }
.installment-summary dl { font-variant-numeric: tabular-nums; }
.installment-note { margin-top: .9rem; font-size: .9rem; }
.installment-schedule table { width: 100%; margin-block: .7rem; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.installment-schedule caption { text-align: left; font-weight: 650; }
.installment-schedule th, .installment-schedule td { padding: .25rem .15rem; border-bottom: 1px solid var(--rule); text-align: left; }
.installment-schedule tr > :last-child { text-align: right; }
.installment-terms { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem 2rem; }
.installment-terms dt { color: var(--navy); font-weight: 700; }
.installment-terms dd { margin-inline-start: 0; }
.installment-process { padding-inline-start: 1.45rem; max-width: 65ch; }
.installment-process li + li { margin-top: .7rem; }
@media (max-width: 45rem) {
  .installment-terms { grid-template-columns: minmax(0, 1fr); }
}

.site-nav { position: relative; }
.menu-toggle { display: none; }
.cluster-menu > summary {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  min-height: 2.75rem;
  color: var(--navy);
  font: 650 .95rem/1.4 system-ui, -apple-system, sans-serif;
  cursor: pointer;
  list-style: none;
  white-space: nowrap;
}
.cluster-menu > summary::-webkit-details-marker { display: none; }
.cluster-menu > summary::after {
  content: "";
  width: .38rem;
  height: .38rem;
  margin-top: -.2rem;
  border: solid currentColor;
  border-width: 0 .11rem .11rem 0;
  transform: rotate(45deg);
}
.cluster-menu[open] > summary::after { transform: rotate(225deg); margin-top: .2rem; }
.cluster-links {
  position: absolute;
  z-index: 5;
  inset-inline-end: 0;
  width: min(30rem, calc(100vw - 2rem));
  max-height: 65vh;
  overflow: auto;
  margin: 0;
  padding: .55rem;
  list-style: none;
  border: 1px solid var(--rule);
  border-radius: .6rem;
  background: var(--paper);
  box-shadow: 0 .75rem 2rem rgb(24 43 69 / 13%);
}
.cluster-menu .cluster-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .55rem;
  padding: .4rem .65rem;
  white-space: normal;
  font-size: .9rem;
}
.cluster-links a:hover { background: var(--surface); }
.cluster-links small { color: var(--body-ink); font-weight: 450; }

.loan-calculator > p { margin-top: .45rem; color: var(--body-ink); }
.calculator-inputs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .65rem;
  margin-top: .9rem;
}
.calculator-inputs label { color: var(--navy); font-size: .85rem; font-weight: 650; }
.calculator-inputs label:last-child { grid-column: 1 / -1; }
.calculator-inputs input {
  display: block;
  width: 100%;
  min-height: 2.6rem;
  box-sizing: border-box;
  margin-top: .25rem;
  padding: .35rem .55rem;
  border: 1px solid #aab6c6;
  border-radius: .35rem;
  background: var(--paper);
  color: var(--deep-navy);
  font: inherit;
  font-size: 1rem;
}
.calculator-inputs input:focus-visible { outline: 2px solid var(--navy); outline-offset: 2px; }
.calculator-inputs input[aria-invalid="true"] { border-color: var(--red); }
.calculator-result dl { margin-top: .7rem; }
.calculator-result dl > div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: .1rem .5rem;
  padding-block: .42rem;
}
.calculator-result dt { font-size: .85rem; }
.calculator-result output { font-weight: 750; font-variant-numeric: tabular-nums; }
.loan-calculator .calculator-note, .loan-calculator .calculator-message { font-size: .8rem; }
.loan-calculator .calculator-message { margin-top: .35rem; color: var(--red); }

@media (max-width: 48rem) {
  .masthead .masthead-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    min-height: auto;
    gap: .35rem .6rem;
    position: relative;
    padding-block: .65rem;
  }
  .masthead .brand { justify-content: start; }
  .masthead .brand-image { height: 2.7rem; object-position: left center; }
  .site-nav { display: contents; }
  .site-nav[data-ready] .menu-toggle {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-height: 2.7rem;
    gap: .5rem;
    padding: .25rem .65rem;
    border: 1px solid #aab6c6;
    border-radius: .45rem;
    background: var(--paper);
    color: var(--navy);
    font: 650 .9rem/1.2 system-ui, -apple-system, sans-serif;
    cursor: pointer;
  }
  .menu-icon { width: .9rem; height: .62rem; border-block: 2px solid; position: relative; }
  .menu-icon::after { content: ""; position: absolute; inset: calc(50% - 1px) 0 auto; border-top: 2px solid; }
  .site-nav[data-ready] .menu-toggle[aria-expanded="false"] + nav { display: none; }
  .masthead .site-nav nav { grid-column: 1 / -1; padding-top: .35rem; }
  .masthead .site-nav .navigation { display: block; padding-top: .25rem; border-top: 1px solid var(--rule); }
  .masthead .site-nav .navigation > li > a, .masthead .cluster-menu summary {
    display: flex;
    min-height: 2.75rem;
    align-items: center;
  }
  .cluster-links { position: static; width: 100%; max-height: 45vh; padding: .2rem; box-shadow: none; }
}

.loan-guide-summary p { margin-top: .7rem; color: var(--body-ink); }
.loan-guide-content { max-width: 58rem; }
.loan-guide-content > section + section { padding-top: 1.4rem; border-top: 1px solid var(--rule); }
.loan-guide-content h2 { text-wrap: balance; }
.guide-table {
  margin-block: 1.15rem;
  padding: clamp(.7rem, 3vw, 1.25rem);
  border: 1px solid var(--rule);
  border-radius: .45rem;
  background: var(--surface);
}
.guide-table table { width: 100%; table-layout: fixed; border-collapse: collapse; font-size: .95rem; }
.guide-table caption { padding-bottom: .55rem; color: var(--navy); font-weight: 750; text-align: left; }
.guide-table th, .guide-table td { padding: .48rem; text-align: left; vertical-align: top; overflow-wrap: anywhere; }
.guide-table tr { border-bottom: 1px solid var(--rule); }
.guide-table th { color: var(--navy); }
.guide-table p { max-width: 65ch; }
.guide-source { margin-top: .75rem; }
.guide-source a, .loan-guide-related a { color: var(--red); font-weight: 650; }
.loan-guide-related { margin-top: 1.25rem; }
.loan-guide-related ul { margin-block: .4rem; padding-inline-start: 1.1rem; }

.breadcrumbs { padding-block: .45rem; font-size: .825rem; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; column-gap: .65rem; list-style: none; padding: 0; margin: 0; }
.breadcrumbs li + li::before { content: "/"; display: inline-block; margin-inline-end: .65rem; }
.breadcrumbs a { color: var(--navy); text-underline-offset: .16em; }
