/* Absolute Mortgage — shared visual theme.
   Loaded AFTER styles.css. Keep site-wide shading, gradients and homepage styling here.
   The original existing visual rules have been moved here without redesigning them.
*/
/* ===== CPM INSPIRED ABSOLUTE THEME: SCOPED NEW DESIGN ===== */
:root {--am-navy:#152d5c;--am-blue:#0866c2;--am-ink:#17233b;--am-muted:#65738a;--am-pale:#f4f7fc;--am-line:#dfe6f1;--am-shadow:0 18px 50px rgba(22,44,84,.09);}
html,body {font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;font-size:16px;line-height:1.5;}
body {background:var(--am-pale);color:var(--am-ink);}
.navbar#navbarContainer {position:sticky;top:0;z-index:1050;background:white!important;min-height:76px;padding:0 18px;box-shadow:0 5px 18px rgba(21,45,92,.35),0 2px 6px rgba(21,45,92,.12);border-bottom:1px solid var(--am-line);}
#navbarContainer>.container{display:flex;align-items:center;justify-content:space-between;gap:12px;max-width:1080px;min-height:76px;padding:0 12px;}
#navbarContainer .navbar-brand img{height:54px!important;max-height:58px;width:auto;}
.am-nav-actions{display:flex;align-items:center;gap:12px}.am-apply{display:inline-flex;align-items:center;justify-content:center;background:var(--am-navy);color:white!important;text-decoration:none;padding:12px 19px;border-radius:11px;font-size:.94rem;font-weight:750}.am-apply:hover{background:#22427c;color:white!important}
.am-menu-button{display:flex;align-items:center;gap:10px;border:1px solid #cbd8e9;border-radius:11px;padding:11px 14px;color:var(--am-navy);background:white;font-weight:700}.am-menu-button:hover{background:#eef3fc}
.am-backdrop{position:fixed;inset:0;background:rgba(12,27,54,.55);z-index:1090;opacity:0;visibility:hidden;transition:.2s}.am-backdrop.is-open{opacity:1;visibility:visible}
.am-drawer{position:fixed;top:0;right:0;bottom:0;width:min(390px,90vw);z-index:1100;background:white;box-shadow:-12px 0 45px rgba(12,27,54,.22);padding:24px;transform:translateX(105%);visibility:hidden;transition:transform .22s,visibility .22s;overflow-y:auto}.am-drawer.is-open{transform:translateX(0);visibility:visible}.am-drawer-top{display:flex;align-items:center;justify-content:space-between;color:var(--am-navy);font-size:1.15rem;margin-bottom:18px}.am-close{border:0;background:#eef3fc;color:var(--am-navy);border-radius:9px;font-size:26px;width:42px;height:42px}.am-menu-link{display:flex;align-items:center;justify-content:space-between;padding:12px 2px;border-bottom:1px solid var(--am-line);text-decoration:none;color:var(--am-ink);font-weight:600}.am-menu-link:hover{color:var(--am-blue)}.am-theme-toggle{display:block;margin:22px 0;background:#eef3fc;border:0;border-radius:9px;color:var(--am-navy);padding:12px;width:100%;text-align:left}.am-drawer>.am-apply{width:100%}.am-menu-open{overflow:hidden}
.am-shell{max-width:1080px;margin:auto;padding:0 24px}.am-hero{padding:65px 0 80px;background:linear-gradient(225deg,color-mix(in srgb,#287dbb 65%,#f4f7fc),#f4f7fc)}.am-hero-grid{display:grid;grid-template-columns:minmax(0,1fr) 420px;gap:60px;align-items:start}.am-eyebrow{font-size:1.3rem;font-weight:850;color:#35598c;letter-spacing:.025em}.am-hero h1{font-size:clamp(2.3rem,4vw,3.6rem)!important;line-height:1.1;letter-spacing:-.05em;color:var(--am-blue)!important;font-weight:850!important;margin:10px 0 16px}.am-lead{font-size:1.08rem;line-height:1.65;color:#526078;max-width:510px}.am-benefits{display:grid;gap:16px;padding:24px 0 0;margin:28px 0 0;border-top:1px solid #d9e2f1;list-style:none}.am-benefits li{display:flex;gap:13px;align-items:center}.am-benefit-icon{display:grid;place-items:center;flex:0 0 42px;height:42px;border:2px solid #a8bfdf;background:#fff;color:var(--am-navy);border-radius:12px;font-size:1.25rem}.am-benefits strong{display:block;font-size:.98rem!important;text-transform:none!important;color:var(--am-navy)}.am-benefits small{color:var(--am-muted);font-size:.83rem}.am-panel{background:white;border:2px solid #5574a3;border-radius:22px;box-shadow:0 18px 50px rgba(22,44,84,.14);padding:30px}.am-panel-kicker{font-size:.75rem;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:#667a9d}.am-panel h2{font-size:1.65rem!important;color:var(--am-navy)!important;font-weight:800!important;margin:8px 0}.am-panel p{color:#526078}.am-quicklinks{display:grid;gap:10px;margin:20px 0}.am-quicklinks a{display:flex;align-items:center;gap:12px;border:1px solid var(--am-line);border-radius:12px;padding:13px;text-decoration:none;color:var(--am-navy);font-weight:700}.am-quicklinks a:hover{background:#f4f7fc;border-color:#a8bfdf}.am-quicklinks i{color:var(--am-blue);width:24px;text-align:center}.am-panel .am-apply{width:100%;margin-top:14px}.am-small{font-size:.78rem;text-align:center;color:var(--am-muted);margin:12px 0 0}.am-section{background:white;padding:54px 0}.am-section.alt{background:var(--am-pale)}.am-section h2{font-size:1.85rem!important;color:var(--am-navy)!important;font-weight:800!important;letter-spacing:-.035em;text-align:center;margin:0 0 12px}.am-section-lead{text-align:center;color:#526078;max-width:680px;margin:0 auto 28px}.am-cards{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}.am-service{background:white;border:1px solid #dce7f5;border-radius:17px;padding:22px 18px;box-shadow:0 4px 15px rgba(21,45,92,.06)}.am-service-icon{display:grid;place-items:center;width:46px;height:46px;border-radius:12px;background:#eaf2ff;color:var(--am-blue);font-size:1.3rem;margin-bottom:14px}.am-service h3{font-size:1.05rem!important;text-transform:none!important;color:var(--am-navy)!important;font-weight:800!important;margin:0 0 9px}.am-service p{font-size:.9rem;color:#526078;margin:0 0 15px}.am-service a{font-size:.9rem;color:var(--am-blue);font-weight:750;text-decoration:none}.am-steps{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}.am-step{text-align:center;padding:12px}.am-step-num{display:inline-grid;place-items:center;background:#eaf2ff;color:var(--am-blue);width:48px;height:48px;border-radius:14px;font-weight:850;margin-bottom:14px}.am-step h3{color:var(--am-navy)!important;text-transform:none!important;font-size:1.08rem!important}.am-step p{color:#526078;font-size:.92rem}.am-cta{text-align:center;background:white;padding:52px 24px}.am-cta .am-apply{margin-top:12px}.am-footer-wrap footer{background:white;color:#526078;border-top:1px solid var(--am-line);padding:28px 0}.am-footer-wrap footer h5{color:var(--am-navy);text-transform:none;font-weight:750;font-size:.92rem}.am-footer-wrap footer a{color:#526078;font-size:.84rem}.am-footer-wrap footer a:hover{color:var(--am-blue)}.am-footer-wrap #copyrightContainer{background:white;color:#65738a;border-top:1px solid var(--am-line);font-size:.8rem}
body.dark-mode .am-hero{background:linear-gradient(225deg,#203c68,#151d2b)}body.dark-mode .am-section,body.dark-mode .am-cta,body.dark-mode .am-panel,body.dark-mode .am-service,body.dark-mode .am-drawer,body.dark-mode #navbarContainer,body.dark-mode .am-footer-wrap footer,body.dark-mode .am-footer-wrap #copyrightContainer{background:#202a3b!important;color:#e4eaf4}body.dark-mode .am-section.alt{background:#151d2b}body.dark-mode .am-lead,body.dark-mode .am-panel p,body.dark-mode .am-service p,body.dark-mode .am-step p,body.dark-mode .am-section-lead{color:#c2cddd}body.dark-mode .am-panel h2,body.dark-mode .am-section h2,body.dark-mode .am-service h3,body.dark-mode .am-step h3,body.dark-mode .am-benefits strong,body.dark-mode .am-footer-wrap footer h5{color:#e8f0ff!important}body.dark-mode .am-hero h1{color:#8dbfff!important}body.dark-mode .am-menu-link,body.dark-mode .am-footer-wrap footer a{color:#e4eaf4}body.dark-mode .am-quicklinks a{color:#e4eaf4}body.dark-mode .am-menu-button{background:#24364f;color:white}
@media(max-width:820px){html{font-size:16px!important}.navbar#navbarContainer{min-height:66px!important;padding:0 10px!important}#navbarContainer>.container{min-height:66px;padding:0 4px!important}#navbarContainer .navbar-brand img{height:40px!important;max-height:44px!important}.am-nav-actions{gap:6px}.am-nav-actions .am-apply{font-size:.8rem;padding:10px}.am-menu-button{padding:9px 11px}.am-menu-button span{display:none}.am-shell{padding:0 16px}.am-hero{padding:32px 0 45px}.am-hero-grid{grid-template-columns:1fr;gap:24px}.am-hero-copy{text-align:center}.am-hero h1{font-size:clamp(2rem,8vw,2.7rem)!important}.am-lead{margin:auto;font-size:1rem;line-height:1.5}.am-benefits{text-align:left;margin-top:20px;padding-top:20px}.am-panel{max-width:520px;width:100%;margin:auto;padding:22px}.am-cards{grid-template-columns:repeat(2,minmax(0,1fr))}.am-steps{grid-template-columns:1fr;gap:4px}.am-section{padding:38px 0}.am-footer-wrap footer .container{text-align:left}.am-footer-wrap footer .row{row-gap:22px!important}.am-footer-wrap footer .col{flex:0 0 50%;max-width:50%}}
@media(max-width:430px){.am-cards{grid-template-columns:1fr}.am-hero h1{font-size:2.05rem!important}.am-panel{padding:20px}.am-footer-wrap footer .col{flex:0 0 50%}}
@media print{.am-hero,.am-section,.am-cta,.am-backdrop,.am-drawer{display:none!important}}


/* ========== HOMEPAGE HERO TYPOGRAPHY — MATCH CPM ========== */
/* Scoped to the test homepage; existing calculators/forms are unchanged. */
@media (min-width: 821px) {
  .am-hero .am-eyebrow {
    font-size: 1.4rem !important;
    font-weight: 850 !important;
    line-height: 1.3 !important;
    letter-spacing: .075em !important;
    color: #35598c !important;
    margin-bottom: 0 !important;
  }
  .am-hero .am-hero-copy h1 {
    font-size: clamp(1.8rem, 2.8vw, 2.5rem) !important;
    font-weight: 800 !important;
    line-height: 1.1 !important;
    letter-spacing: -.035em !important;
    color: #0866c2 !important;
    margin: 8px 0 18px !important;
    max-width: 530px;
  }
  .am-hero .am-lead {
    font-size: 1.07rem !important;
    font-weight: 400 !important;
    line-height: 1.65 !important;
    color: #526078 !important;
    max-width: 500px;
    margin: 0 !important;
  }
}

/* === CPM-aligned content proportions and brokerage logo (test theme) === */
.am-shell { max-width:1080px; padding-left:24px; padding-right:24px; }
.am-hero-grid { grid-template-columns:minmax(0,1fr) 460px; gap:65px; }
.am-nav-right { display:flex; align-items:center; gap:28px; }
.am-quantus-logo { display:block; width:auto; height:56px; max-width:125px; object-fit:contain; }
@media (max-width:820px) {
 .am-hero-grid { grid-template-columns:minmax(0,1fr); gap:24px; }
 .am-nav-right { gap:12px; }
 .am-quantus-logo { height:37px; max-width:78px; }
}
@media (max-width:420px) {
 .am-nav-right { gap:7px; }
 .am-quantus-logo { height:30px; max-width:65px; }
 .am-nav-actions .am-apply { padding:9px 8px; font-size:.73rem; }
}

/* ===== CPM EXACT CONTENT WIDTH / GRID MATCH =====
   CPM .shell: max-width 1080px, 24px inner padding (border-box).
   CPM .hero-grid: 1fr 460px, gap 65px.
   Restrict overrides to Absolute homepage; no calculator/table changes. */
@media (min-width: 821px) {
  body .am-shell {
    box-sizing: border-box;
    width: 100%;
    max-width: 1080px;
    margin-inline: auto;
    padding-inline: 24px;
  }
  body .am-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 460px;
    column-gap: 65px;
    align-items: start;
  }
  body .am-hero-grid > * { min-width: 0; }
  body #navbarContainer > .container {
    box-sizing: border-box;
    width: 100%;
    max-width: 1080px;
    margin-inline: auto;
    padding-inline: 24px;
  }
}
@media (max-width: 820px) {
  body .am-shell {
    box-sizing: border-box;
    width: 100%;
    max-width: 1080px;
    margin-inline: auto;
    padding-inline: 12px;
  }
  body .am-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }
}


/* ===== Mobile-only homepage priority and navbar refinements ===== */
.am-mobile-intro { display:none; }
@media (max-width:820px) {
  /* Navbar order: Absolute | Quantus | hamburger at far right */
  #navbarContainer > .container { display:flex; align-items:center; flex-wrap:nowrap; gap:8px; }
  #navbarContainer .navbar-brand { flex:0 1 auto; min-width:0; margin-right:auto; }
  #navbarContainer .navbar-brand img { height:37px!important; max-height:39px!important; max-width:min(43vw,180px); object-fit:contain; }
  #navbarContainer .am-nav-right { display:flex; align-items:center; gap:9px; flex:0 0 auto; }
  #navbarContainer .am-nav-actions { display:contents; }
  #navbarContainer .am-nav-actions > .am-apply { display:none!important; }
  #navbarContainer .am-quantus-logo { order:1; height:45px!important; max-width:96px!important; width:auto; object-fit:contain; }
  #navbarContainer .am-menu-button { order:2; margin-left:0; flex:0 0 auto; padding:9px 11px; }
  /* Put the short headline, then action choices, then detailed explanation. */
  .am-hero-grid { display:flex; flex-direction:column; gap:17px; }
  .am-mobile-intro { display:block; order:0; width:100%; text-align:center; }
  .am-mobile-intro .am-eyebrow { font-size:1rem; }
  .am-mobile-intro h1 { margin:8px 0 0!important; font-size:clamp(1.85rem,7vw,2.4rem)!important; }
  .am-hero-grid > .am-panel { order:1; }
  .am-hero-grid > .am-hero-copy { order:2; }
  .am-hero-copy > .am-eyebrow, .am-hero-copy > h1 { display:none!important; }
  .am-hero-copy .am-lead { margin:4px auto 0; }
}
@media (max-width:420px) {
  #navbarContainer .navbar-brand img { height:34px!important; max-height:36px!important; max-width:40vw; }
  #navbarContainer .am-quantus-logo { height:42px!important; max-width:88px!important; }
  #navbarContainer .am-nav-right { gap:6px; }
}

/* ===== MOBILE NAVBAR: CPM-SCALE LOGOS, WITH HAMBURGER =====
   Overrides earlier small-phone image caps without affecting desktop. */
@media (max-width: 820px) {
  .navbar#navbarContainer { min-height:78px!important; padding:0 8px!important; }
  #navbarContainer > .container { min-height:78px!important; padding:0 4px!important; gap:5px!important; }
  #navbarContainer .navbar-brand { flex:1 1 48%; min-width:0; margin-right:0; display:flex; align-items:center; }
  #navbarContainer .navbar-brand img { display:block; width:100%; height:72px!important; max-height:76px!important; max-width:100%!important; object-fit:contain; object-position:left center; }
  #navbarContainer .am-nav-right { flex:1 1 52%; min-width:0; gap:5px!important; justify-content:flex-end; }
  #navbarContainer .am-quantus-logo { order:1; flex:1 1 auto; min-width:0; width:100%; height:74px!important; max-height:76px!important; max-width:none!important; object-fit:contain; object-position:right center; }
  #navbarContainer .am-menu-button { order:2; flex:0 0 auto; margin-left:2px; padding:9px 10px; }
}
@media (max-width:390px) {
  #navbarContainer .navbar-brand img { height:70px!important; max-height:74px!important; max-width:100%!important; }
  #navbarContainer .am-quantus-logo { height:72px!important; max-height:74px!important; max-width:none!important; }
}


/* ===== MOBILE INFORMATION-PAGE READABILITY =====
   Applies to informational content only. Homepage, games, forms and calculators
   retain their existing font sizes and behaviour. */
@media (max-width: 820px) {
  main.am-info-page h1,
  .am-hero.am-info-page h1 {
    font-size: 2rem !important;
    line-height: 1.2 !important;
    letter-spacing: -0.035em !important;
  }

  main.am-info-page .card-body p,
  main.am-info-page .card-body li,
  .am-hero.am-info-page .card-body p,
  .am-hero.am-info-page .card-body li {
    font-size: 19px !important;
    line-height: 1.6 !important;
  }

  main.am-info-page .card-body h2,
  .am-hero.am-info-page .card-body h2 {
    font-size: 1.5rem !important;
    line-height: 1.3 !important;
  }

  main.am-info-page .card-body h3,
  .am-hero.am-info-page .card-body h3 {
    font-size: 1.25rem !important;
    line-height: 1.35 !important;
  }
}

/* Ensure mobile informational card paragraphs override older page styles. */
@media screen and (max-width: 820px) {
  body main.am-info-page .card .card-body p,
  body main.am-info-page .card .card-body li,
  body .am-hero.am-info-page .card .card-body p,
  body .am-hero.am-info-page .card .card-body li {
    font-size: 19px !important;
    line-height: 1.6 !important;
    font-weight: 400 !important;
  }
}

/* Mobile information pages: balanced headings and paragraph rhythm.
   Scoped to content pages; desktop, homepage, calculators and navbar unchanged. */
@media screen and (max-width: 820px) {
  body main.am-hero.am-info-page h1 {
    font-size: 30px !important;
    line-height: 1.2 !important;
    letter-spacing: -0.035em !important;
  }
  body main.am-info-page .card .card-body p,
  body main.am-info-page .card .card-body li {
    line-height: 1.55 !important;
  }
}

/* ===== SITE-WIDE PAGE TITLE AND FOOTER ALIGNMENT — 2026-11-18 =====
   Page titles only: leave the homepage's hero headline and component headings intact. */
body main.am-hero:not(:has(.am-hero-grid)) h1,
body main.am-info-page h1 {
  text-transform: uppercase !important;
}

@media (min-width: 821px) {
  body main.am-hero:not(:has(.am-hero-grid)) h1,
  body main.am-info-page h1 {
    font-size: 30px !important;
    line-height: 1.2 !important;
    letter-spacing: -0.035em !important;
  }
  body main.am-info-page .card-body h2 { font-size: 24px !important; }
  body main.am-info-page .card-body h3 { font-size: 20px !important; }
}

@media (max-width: 820px) {
  body main.am-hero:not(:has(.am-hero-grid)) h1,
  body main.am-info-page h1 {
    font-size: 30px !important;
    line-height: 1.2 !important;
  }
  body main.am-info-page .card-body h2 { font-size: 24px !important; }
  body main.am-info-page .card-body h3 { font-size: 20px !important; }
}

/* Footer remains full-width white; its four link columns align with the
   navbar and .am-shell's 1080px desktop content width. */
.am-footer-wrap footer > .container,
.am-footer-wrap footer > .container-fluid,
footer#footerContainer > .container,
footer#footerContainer > .container-fluid,
.am-footer-wrap #copyrightContainer > .container,
.am-footer-wrap #copyrightContainer > .container-fluid {
  box-sizing: border-box;
  width: 100% !important;
  max-width: 1080px !important;
  margin-inline: auto !important;
  padding-inline: 24px !important;
}
@media (max-width: 820px) {
  .am-footer-wrap footer > .container,
  .am-footer-wrap footer > .container-fluid,
  footer#footerContainer > .container,
  footer#footerContainer > .container-fluid,
  .am-footer-wrap #copyrightContainer > .container,
  .am-footer-wrap #copyrightContainer > .container-fluid {
    padding-inline: 12px !important;
  }
}


/* Uppercase main-content headings without changing their font sizes. */
main h1,
main h2,
main h3 {
    text-transform: uppercase !important;
}



/* Footer readability: four-column desktop / two-column mobile layout. */

/* DESKTOP FOOTER */
footer#footerContainer h5 {
  font-size: 18px !important;
  line-height: 1.35 !important;
  font-weight: 750 !important;
}

footer#footerContainer a,
footer#footerContainer li {
  font-size: 17px !important;
  line-height: 1.5 !important;
  overflow-wrap: break-word;
}

/* COPYRIGHT */
#copyrightContainer,
#copyrightContainer p,
#copyrightContainer span,
#copyrightContainer small {
  font-size: 15px !important;
  line-height: 1.5 !important;
}

/* MOBILE FOOTER - MATCH MAIN CONTENT TEXT */
@media (max-width: 820px) {

  footer#footerContainer h5 {
    font-size: 22px !important;
    line-height: 1.3 !important;
  }

  footer#footerContainer a,
  footer#footerContainer li {
    font-size: 20px !important;
    line-height: 1.5 !important;
  }

  #copyrightContainer,
  #copyrightContainer p,
  #copyrightContainer span,
  #copyrightContainer small {
    font-size: 16px !important;
  }
}


/* ===== SIMPLIFIED NAVBAR: logos only on mobile, Contact Us on desktop ===== */
@media (min-width: 821px) {
  #navbarContainer > .container { justify-content: space-between; }
  #navbarContainer .am-nav-right { display: contents; }
  #navbarContainer .am-nav-actions { display: flex; align-items: center; }
  #navbarContainer .am-nav-actions .am-apply { display: inline-flex; }
  #navbarContainer .am-quantus-logo { width: auto; height: 56px; max-width: 125px; }
}
@media (max-width: 820px) {
  #navbarContainer > .container { display: flex; justify-content: space-between; align-items: center; gap: 12px !important; }
  #navbarContainer .navbar-brand { flex: 1 1 54%; min-width: 0; }
  #navbarContainer .am-nav-right { flex: 1 1 46%; min-width: 0; display: flex; justify-content: flex-end; }
  #navbarContainer .am-nav-actions { display: none !important; }
  #navbarContainer .am-quantus-logo { flex: 0 1 auto; width: 100%; max-width: 100% !important; object-fit: contain; object-position: right center; }
}


/* How Can We Help: restore four square option tiles (2 x 2). */
.am-panel .am-quicklinks {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.am-panel .am-quicklinks a {
  min-width: 0;
  aspect-ratio: 1 / 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: 10px;
  padding: 12px;
  line-height: 1.3;
}
.am-panel .am-quicklinks a i {
  width: auto;
  font-size: 1.55rem;
}
@media (max-width: 390px) {
  .am-panel .am-quicklinks { gap: 9px; }
  .am-panel .am-quicklinks a { font-size: .88rem; padding: 9px; }
}

/* Short labels on mobile; preserve full desktop wording. */
.am-quicklinks .am-label-mobile { display: none; }
@media (max-width: 820px) {
  .am-quicklinks .am-label-desktop { display: none; }
  .am-quicklinks .am-label-mobile { display: inline; }
}


/* ===== MOBILE READABILITY AND MORTGAGE OPTION CARDS ===== */
/* Descriptions are mobile-only; desktop tiles and typography stay unchanged. */
.am-panel .am-quicklinks .am-option-desc { display: none; }
@media (max-width: 820px) {
  /* Main copy throughout the homepage, without changing form controls or headings. */
  main .am-lead,
  main .am-section-lead,
  main .am-step p,
  main .am-panel > p:not(.am-small) {
    font-size: 19px !important;
    line-height: 1.55 !important;
  }
  main .am-benefits small { font-size: 18px !important; line-height: 1.45 !important; }
  main .am-benefits strong { font-size: 19px !important; line-height: 1.4 !important; }
  /* Information-page articles already have 19px rules in this stylesheet. */
  /* Limit card styling to the four options in How Can We Help. */
  .am-panel .am-quicklinks a {
    gap: 9px;
    padding: 14px 10px;
    background: #fff;
    border-color: #d5e1f1;
    justify-content: center;
    aspect-ratio: auto;
    min-height: 205px;
  }
  .am-panel .am-quicklinks a i {
    font-size: 36px !important;
    width: 60px;
    height: 60px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: #eaf2ff;
    flex: 0 0 auto;
  }
  .am-panel .am-quicklinks .am-label-mobile {
    display: block;
    font-size: 22px !important;
    font-weight: 800;
    line-height: 1.15;
    overflow-wrap: anywhere;
  }
  .am-panel .am-quicklinks .am-option-desc {
    display: block;
    font-size: 17px !important;
    font-weight: 400;
    line-height: 1.4;
    color: #526078;
    max-width: 100%;
    text-wrap: pretty;
  }
  /* Hide only the introductory sentence, not every paragraph in the panel. */
  .am-panel > p:not(.am-small) { display: none !important; }
}
@media (max-width: 390px) {
  .am-panel .am-quicklinks a { padding: 12px 7px; min-height: 205px; }
  .am-panel .am-quicklinks .am-label-mobile { font-size: 22px !important; }
  .am-panel .am-quicklinks .am-option-desc { font-size: 17px !important; }
}


/* ===== MOBILE TYPOGRAPHY CORRECTION =====
   Match site content readability to the 20px footer links.
   Keep option headings distinct from their regular-weight descriptions. */
@media screen and (max-width: 820px) {
  /* Regular reading text across homepage and interior content pages. */
  body main p,
  body main li,
  body main .card-body p,
  body main .card-body li,
  body main .am-lead,
  body main .am-section-lead,
  body main .am-step p,
  body main .am-benefits small,
  body main .am-panel > p:not(.am-small) {
    font-size: 20px !important;
    line-height: 1.55 !important;
  }

  /* Four mortgage-option tiles: clear title/description hierarchy. */
  body main .am-panel .am-quicklinks a .am-label-mobile {
    font-size: 22px !important;
    font-weight: 800 !important;
    line-height: 1.2 !important;
    color: #152d5c !important;
  }
  body main .am-panel .am-quicklinks a .am-option-desc {
    display: block !important;
    font-size: 17px !important;
    font-weight: 400 !important;
    font-style: normal !important;
    line-height: 1.45 !important;
    letter-spacing: normal !important;
    color: #526078 !important;
  }
  /* Do not enlarge small disclaimers, buttons or form controls. */
  body main .am-panel p.am-small { font-size: 14px !important; }
}

/* Mobile navbar: balance the new Absolute logo with Quantus. */
@media (max-width: 820px) {
  #navbarContainer .navbar-brand img {
    width: 85% !important;
    height: 60px !important;
    max-height: 63px !important;
    max-width: 85% !important;
    object-fit: contain;
    object-position: left center;
  }
}
