/* home-hero 2026-11-17 — homepage top section only (linked from / only).
   Declutters the form card, fills the left column, removes the duplicate button. */
.hero2 .leadform .lf-copy{display:block}
.hero2 .leadform .lf-copy>p:not(.lf-trust):not(.lf-intro-sm){font-size:15px;line-height:1.5;margin:0}
.hero2 .leadform .hh-rate{margin:8px 0 0;font-size:13.5px}
.hero2 .leadform .hh-ehl{margin:14px 0 0;font-size:12px;color:var(--muted);justify-content:center}
.hero2 .leadform .hh-ehl .ehl{width:18px;height:21px}
/* the step row already says "The basics"; keep the legend for screen readers only */
.hero2 .lf fieldset.lf-step[data-step="1"]>legend{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}
.hero2 .leadform.lf-stack{gap:14px}
.hero2 .leadform .lf-steps{margin-top:16px}
/* both fields in a row line up even if a label wraps */
.hero2 .lf .lf-row{align-items:end}
/* client quote beside the headline */
.hh-quote{margin:26px 0 0;padding:2px 0 2px 18px;border-left:3px solid var(--cyan);max-width:46ch;font-size:16px;line-height:1.55;color:var(--navy)}
.hh-quote cite{display:block;margin-top:8px;font-style:normal;font-size:13px;color:var(--slate)}
.hh-quote cite a{color:var(--cyan-ink);font-weight:700}
.hero2 .lede{margin-bottom:0}
.hero2-copy .co-id{margin-top:22px}
/* one quiet link instead of two buttons */
.hero2-cta.hh-cta{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 8px;font-size:15px;color:var(--slate);margin:0}
.hero2-cta.hh-cta a{color:var(--cyan-ink);font-weight:700;text-decoration:underline;text-underline-offset:3px;min-height:44px;display:inline-flex;align-items:center}
@media (min-width:901px){
  .hero2>.wrap:first-child{grid-template-rows:auto 1fr;row-gap:10px}
  /* 155px of blank space sat above the headline; bring the form up */
  section.hero2{padding-top:28px}
  .hero2>.wrap:first-child>.hero2-form{grid-row:1 / -1;align-self:center}
}
@media (max-width:900px){
  .hh-quote,.hero2 .leadform .hh-ehl{display:none}
  .hero2-cta.hh-cta{justify-content:center;margin:2px 0 12px}
  /* the one-line intro was cut off with an ellipsis on phones */
  .hero2 .leadform .lf-intro-sm{white-space:normal;overflow:visible;text-overflow:clip}
}
@media (max-width:420px){
  /* "Within 3 months" was clipped in the narrow two-column row */
  .hero2 .lf .lf-row select{padding-left:8px;padding-right:18px;letter-spacing:-.01em;background-position:right 4px center}
  .hero2 .lf fieldset[data-step="1"] .lf-row[data-show="Purchase"]{grid-template-columns:minmax(0,.84fr) minmax(0,1.16fr)!important}
}

/* t176u — topic cards below the stats row (How it works, First-time buyers, Refinance).
   Also tightens the stats wrap and restores the other homepage sections on desktop. */

/* The later .hero2 .wrap grid is for the first wrap only. The stats wrap inherited
   its top padding, so the column rules sat in empty space when the numbers scrolled
   under the sticky header. */
.hero2 > .wrap:has(.hero2-stats){
  display:block;
  grid-template-areas:none;
  grid-template-columns:none;
  gap:0;
  padding-top:20px;
}
.hero2-stats{margin-top:0}

/* One compact band of cards instead of three padded, empty accordion rows. */
.home-topics{
  background:var(--wash);
  border-top:1px solid var(--border);
  border-bottom:1px solid var(--border);
  padding:clamp(28px,4vw,48px) 0;
}
.home-topics > .wrap{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:20px;
  align-items:stretch;
}
.home-topics .home-topic,
.home-topics section.process{
  margin:0;
  padding:0;
  background:transparent;
  border:0;
  color:inherit;
  height:100%;
}
.home-topics details.home-acc{
  height:100%;
  display:flex;
  flex-direction:column;
  margin:0;
  padding:0;
  border:1px solid var(--border);
  border-radius:12px;
  background:var(--white);
  box-shadow:0 1px 0 #1838500d, 0 10px 28px #1838500d;
}
.home-topics details.home-acc[open]{
  border-color:#c5e4f3;
  box-shadow:0 1px 0 #1838500d, 0 12px 32px #18385014;
}

/* Override the FAQ "plus" and the desktop "always open / pointer-events:none" rules. */
.home-topics details.home-acc > summary{
  list-style:none;
  cursor:pointer;
  pointer-events:auto;
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  gap:8px;
  padding:22px 24px 20px;
  flex:1 1 auto;
}
.home-topics details.home-acc > summary::-webkit-details-marker,
.home-topics details.home-acc > summary::marker{display:none;content:none}
.home-topics details.home-acc > summary:after{content:none!important}
.home-topics details.home-acc > summary h2{
  margin:0;
  padding:0;
  position:static;
  font-size:clamp(22px,2.1vw,26px);
  line-height:1.25;
  letter-spacing:-.03em;
  max-width:18ch;
  color:var(--navy);
}
.home-topics details.home-acc > summary h2:after{display:none!important;content:none}
.home-topics details.home-acc > summary:hover h2{color:var(--navy)}
.home-topics .eyebrow{color:var(--cyan-ink)}

.home-topic-teaser{
  margin:2px 0 4px;
  font-size:15px;
  line-height:1.5;
  color:var(--muted);
  max-width:42ch;
}
.home-topics details[open] > summary .home-topic-teaser{display:none}

.home-topic-toggle{
  display:inline-flex;
  align-items:center;
  gap:8px;
  min-height:44px;
  margin-top:auto;
  padding:0 2px;
  font-family:var(--f-display);
  font-weight:700;
  font-size:14.5px;
  color:var(--cyan-ink);
}
.home-topic-toggle .when-open{display:none}
.home-topics details[open] .home-topic-toggle .when-closed{display:none}
.home-topics details[open] .home-topic-toggle .when-open{display:inline}
.home-topic-toggle:after{
  content:"";
  width:7px;
  height:7px;
  border-right:2px solid currentColor;
  border-bottom:2px solid currentColor;
  transform:rotate(45deg);
  margin-top:-3px;
  transition:transform .15s;
}
.home-topics details[open] .home-topic-toggle:after{
  transform:rotate(225deg);
  margin-top:2px;
}
.home-topics details.home-acc > summary:hover .home-topic-toggle{color:var(--navy)}
.home-topics details.home-acc > summary:focus-visible{
  outline:3px solid var(--cyan-deep);
  outline-offset:-3px;
  border-radius:12px;
}

.home-topic-body{padding:4px 24px 28px}
.home-topics .sec-head,
.home-topics .process .sec-head,
.home-topics .sec-head p,
.home-topics .process .sec-head p{
  max-width:62ch;
  margin:0 0 20px;
  text-align:left;
}
.home-topics .sec-head p,
.home-topics .process .sec-head p{margin:0}

/* When a card is open, it takes the full row so steps / HFA grids have room.
   The other two cards sit as a pair underneath. */
@media (min-width:901px){
  .home-topics > .wrap:has(details[open]){grid-template-columns:1fr 1fr}
  .home-topics > .wrap > section:has(details[open]){
    grid-column:1 / -1;
    order:-1;
  }
  .home-topics details[open] > summary{
    flex:0 0 auto;
    flex-direction:row;
    flex-wrap:wrap;
    align-items:center;
    column-gap:18px;
    border-bottom:1px solid var(--border);
    padding:20px 28px 18px;
  }
  .home-topics details[open] > summary .eyebrow{flex:1 0 100%}
  .home-topics details[open] > summary h2{flex:1 1 auto;max-width:none}
  .home-topics details[open] .home-topic-toggle{margin-top:0;margin-left:auto}
  .home-topics details[open] .home-topic-body{padding:22px 28px 32px}
}

@media (max-width:900px){
  .home-topics{padding:22px 0}
  .home-topics > .wrap{grid-template-columns:1fr;gap:14px}
  .home-topics details.home-acc > summary{padding:18px 18px 14px}
  .home-topics details.home-acc > summary h2{max-width:none}
  .home-topic-body{padding:2px 18px 22px}
}

/* site.css uses display:revert on .programs and .photo-split inside details.home-acc
   at desktop, which turns those grids into blocks. Restore them in these cards. */
@media (min-width:901px){
  .home-topics details.home-acc .photo-split{display:grid;grid-template-columns:1fr 1fr}
  .home-topics details.home-acc .photo-split > :only-child{grid-column:1 / -1}
  .home-topics details.home-acc .programs{display:grid;grid-template-columns:repeat(3,1fr)}
}
@media (min-width:901px) and (max-width:960px){
  .home-topics details.home-acc .programs{grid-template-columns:1fr 1fr}
}

/* t177u — remaining homepage sections (#programs through #faq) as finished,
   always-open content. Hide the leftover accordion chrome and restore grids
   that site.css had set to display:revert inside details.home-acc. */
main > section details.home-acc.home-sec{
  border-bottom:0;
  padding:0;
}
main > section details.home-acc.home-sec > summary{
  list-style:none;
  cursor:default;
  pointer-events:none;
  display:block;
  padding:0;
}
main > section details.home-acc.home-sec > summary::-webkit-details-marker,
main > section details.home-acc.home-sec > summary::marker{display:none;content:none}
main > section details.home-acc.home-sec > summary:after{content:none!important}
main > section details.home-acc.home-sec > summary h2{padding-right:0;position:static}
main > section details.home-acc.home-sec > summary h2:after{display:none!important;content:none}
main > section details.home-acc.home-sec .sec-head:empty{display:none}

/* Restore intended grids (site.css used display:revert at min-width 901px). */
main > section details.home-acc.home-sec .programs{
  display:grid;
  grid-template-columns:repeat(3,1fr);
}
main > section details.home-acc.home-sec .lend-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
}
main > section details.home-acc.home-sec .lo-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:24px;
}
main > section details.home-acc.home-sec .lo-ph{
  display:block;
  aspect-ratio:1/1;
  overflow:hidden;
}
main > section details.home-acc.home-sec .lo-ph img,
main > section details.home-acc.home-sec .lo-ph picture,
main > section details.home-acc.home-sec .lo-ph picture img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}
main > section details.home-acc.home-sec .cardgrid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
}
main > section details.home-acc.home-sec .home-reviews .lo-reviews,
main > section.home-reviews details.home-acc.home-sec .lo-reviews{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:22px;
}
main > section details.home-acc.home-sec .photo-split{
  display:grid;
  grid-template-columns:1fr 1fr;
}
main > section details.home-acc.home-sec .photo-split > :only-child{grid-column:1 / -1}
/* The site-wide details[open] summary:after {content:"–"} also matches nested
   FAQ question summaries when the outer section wrapper is open. */
#faq details.home-acc.home-sec > details:not([open]) > summary:after{content:"+"!important}
#faq details.home-acc.home-sec > details[open] > summary:after{content:"–"!important}

@media (max-width:960px){
  main > section details.home-acc.home-sec .programs,
  main > section details.home-acc.home-sec .cardgrid{grid-template-columns:1fr 1fr}
  main > section.home-reviews details.home-acc.home-sec .lo-reviews{grid-template-columns:1fr}
}
@media (max-width:900px){
  main > section details.home-acc.home-sec .lo-grid,
  main > section details.home-acc.home-sec .lend-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width:600px){
  main > section details.home-acc.home-sec .programs,
  main > section details.home-acc.home-sec .cardgrid,
  main > section details.home-acc.home-sec .lo-grid{grid-template-columns:1fr}
}
