.closing-page { background: #f7f2e9; }
.closing-page [hidden] { display: none !important; }
.closing-page h1, .closing-page h2, .closing-page h3 { font-family: var(--serif); font-weight: 500; }
.closing-page h2 { font-size: clamp(1.8rem, 3vw, 2.65rem); line-height: 1.1; }
.closing-page h3 { font-size: 1.55rem; line-height: 1.2; }
.closing-page .header-apply { border-color: #a88c61; background: transparent; color: #f0ce8e; }
.closing-page .header-apply:hover { background: #30261c; }

.closing-hero {
  position: relative;
  isolation: isolate;
  background: #211a15;
  color: #fff8eb;
  border-bottom: 1px solid #a9834d;
}
.closing-hero-photo { position: absolute; inset: 0 0 0 43%; z-index: -2; }
.closing-hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 53%; }
.closing-hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(90deg, #211a15 0%, #211a15 40%, #211a15e6 49%, #211a1533 69%, transparent 100%);
}
.closing-hero-copy { padding-block: 2.3rem 3.15rem; }
.closing-crumbs { color: #f4e1c3; font-size: .875rem; }
.closing-crumbs ol { display: flex; flex-wrap: wrap; gap: .4rem; padding: 0; margin: 0; list-style: none; }
.closing-crumbs li + li::before { content: " / "; color: #c8a674; margin-inline-end: .3rem; }
.closing-hero .eyebrow { margin-block: 1.65rem .7rem; color: #f2ce8d; font-size: .75rem; }
.closing-hero h1 { max-width: 11.6ch; font-size: clamp(3rem, 5.8vw, 4.7rem); line-height: .99; letter-spacing: -.045em; }
.closing-hero h1 em { color: #efce91; white-space: nowrap; }
.closing-hero h1 + p { max-width: 42ch; margin-top: 1.15rem; color: #fbecd9; font-size: 1.08rem; }
.closing-hero .button { margin-top: 1.35rem; }
.closing-hero :focus-visible, .closing-endcap :focus-visible { outline-color: #f2ce8d; }

.closing-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(15rem, 19rem);
  gap: clamp(1.25rem, 4vw, 3.25rem);
  padding-block: clamp(1.6rem, 4vw, 3.4rem) clamp(2.5rem, 6vw, 5rem);
  align-items: start;
}
.closing-content { min-width: 0; }
.closing-section + .closing-section { margin-top: clamp(2.4rem, 6vw, 4.2rem); }
.closing-section-heading { margin-bottom: 1.15rem; }
.closing-section-heading p, .closing-note { margin-top: .55rem; color: #524738; }
.closing-card { border: 1px solid #d9c9af; border-radius: .45rem; background: #fffdf8; }
.closing-form, .closing-results { padding: clamp(1rem, 3.5vw, 1.75rem); }
.closing-form { border-top: 3px solid #ad844c; }
.closing-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.05rem 1.25rem; }
.closing-field { min-width: 0; display: flex; flex-direction: column; }
.closing-field label { font-size: .97rem; font-weight: 670; line-height: 1.32; }
.closing-field p { color: #635544; font-size: .88rem; margin-block: .25rem .55rem; }
.closing-field input {
  display: block;
  width: 100%;
  padding: .55rem .75rem;
  min-height: 46px;
  border: 1px solid #9d8c75;
  border-radius: .25rem;
  background: #fff;
  color: #201913;
  font: inherit;
  font-variant-numeric: tabular-nums;
}
.closing-field input[aria-invalid=true] { border-color: #942d20; background: #fff5f2; }
.closing-error:not(:empty) { color: #902c20; margin-top: .28rem; font-size: .88rem; }
.closing-options { margin-block: 1.35rem; padding-block: .45rem; border-block: 1px solid #ded0bc; }
.closing-options summary, .closing-faq summary { cursor: pointer; font-weight: 680; padding-block: .4rem; }
.closing-options[open] .closing-fields { margin-block: .55rem .85rem; }
.closing-budget { border: 0; padding: 0; margin: 0; min-width: 0; }
.closing-budget legend { margin-bottom: .15rem; font-family: var(--serif); font-size: 1.4rem; }
.closing-budget > p { color: #635544; margin-bottom: .75rem; }
.closing-budget .closing-field input { margin-top: auto; }
.closing-budget .closing-field label { padding-bottom: .45rem; }
.closing-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .65rem 1rem; margin-top: 1.25rem; }
.closing-quiet {
  border: 0;
  padding: .45rem .1rem;
  min-height: 44px;
  background: transparent;
  color: #69471f;
  font-weight: 660;
  text-decoration: underline;
  text-underline-offset: .2rem;
  cursor: pointer;
}
.closing-quiet:disabled { color: #665d54; opacity: .7; cursor: default; }
.closing-status { min-height: 1.35em; margin-top: .5rem; color: #524738; }
.closing-results { margin-top: 1.1rem; }
.closing-results[data-current=false] .closing-totals { opacity: .65; }
.closing-result-heading { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .4rem 1rem; }
.closing-totals {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .6rem;
  margin-block: 1rem 1.3rem;
}
.closing-totals > div { min-width: 0; border-radius: .25rem; padding: .8rem .7rem; background: #f0e6d5; }
.closing-totals .closing-totals-main { background: #30261c; color: #fff5e0; }
.closing-totals dt { font-size: .9rem; font-weight: 650; }
.closing-totals dd {
  margin: .2rem 0 0;
  font: 500 clamp(1.2rem, 2.15vw, 1.65rem)/1.15 var(--serif);
  font-variant-numeric: lining-nums tabular-nums;
  overflow-wrap: anywhere;
}
.closing-review { border-left: 3px solid #a04428; margin-block: -.3rem 1rem; padding: .5rem .7rem; color: #772818; }
.closing-ledger { width: 100%; border-collapse: collapse; }
.closing-ledger caption { text-align: left; font-weight: 670; padding-bottom: .45rem; }
.closing-ledger th, .closing-ledger td { border-bottom: 1px solid #e3d8c6; padding: .35rem 0; font-size: .92rem; }
.closing-ledger th { text-align: left; font-weight: 500; }
.closing-ledger td { padding-left: .65rem; text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.closing-ledger-separate tr:first-child > * { border-top: 2px solid #b99c73; }
.closing-results .closing-note { margin-top: 1rem; }

.closing-estimate-figure {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 1rem 1.25rem;
  margin-top: 1.2rem;
  padding: clamp(.75rem, 2.5vw, 1.25rem);
  border-radius: .45rem;
  background: #eae0cf;
}
.closing-paper { padding: 1rem .7rem; border-top: 4px solid #443424; border-radius: .15rem; background: #fffdf9; }
.closing-paper > p { color: #66523a; font-size: .83rem; font-weight: 700; }
.closing-paper dl { margin: .65rem 0 0; }
.closing-paper dl > div { display: flex; align-items: center; justify-content: space-between; gap: .5rem; border-bottom: 1px solid #e1d4bd; padding: .4rem .25rem; font-size: .86rem; }
.closing-paper dd { margin: 0; font-weight: 650; white-space: nowrap; }
.closing-paper-highlight { color: #452d16; background: #f4e1b9; font-weight: 680; }
.closing-estimate-figure figcaption { align-self: center; color: #493c30; }
.closing-estimate-figure figcaption p + p { margin-top: .75rem; }
.closing-journey {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .75rem;
  margin-top: 1.15rem;
  padding: 1.15rem;
  background: #35291f;
  color: #fff5e7;
  border-radius: .4rem;
}
.closing-journey > div + div { padding-left: .85rem; border-left: 1px solid #8f7350; }
.closing-journey strong { display: block; color: #f2ce8d; font: 500 clamp(1.4rem, 3vw, 2rem)/1.05 var(--serif); }
.closing-journey span { display: block; margin-block: .26rem .4rem; font-weight: 650; }
.closing-journey p { color: #ede1d1; font-size: .9rem; }
.closing-faq h2 { margin-bottom: .75rem; }
.closing-faq details { border-bottom: 1px solid #d6c5ab; }
.closing-faq details:first-of-type { border-top: 1px solid #d6c5ab; }
.closing-faq summary { padding-block: .7rem; }
.closing-faq details p { max-width: 64ch; margin-bottom: .8rem; color: #4b4035; }

.closing-sidebar { display: grid; gap: 1rem; }
.closing-sidebar > section { padding: 1rem 1.15rem; }
.closing-sidebar h2 { font-size: 1.5rem; }
.closing-sidebar li { margin-block: .52rem; }
.closing-sidebar ol, .closing-sidebar ul { padding-left: 1.2rem; margin-block: .6rem 0; }
.closing-sidebar ol li::marker { color: #775121; font-weight: 740; }
.closing-sidebar a { text-underline-offset: .15rem; }
.closing-sources > p { margin-top: .85rem; padding-top: .75rem; border-top: 1px solid #dfd2be; color: #524738; font-size: .9rem; }

.closing-endcap .contact-inner { padding-bottom: clamp(2.1rem, 4.5vw, 3.75rem); }
.closing-page .closing-endcap h2 { font-size: clamp(2.5rem, 5vw, 4.3rem); line-height: 1.04; }
.closing-endcap .contact-apply { display: grid; min-height: 44px; place-items: center; }
.closing-related { padding-block: 1.35rem clamp(2rem, 4.5vw, 3.4rem); border-top: 1px solid #f2ce8d55; }
.closing-related h3 { margin-bottom: .85rem; }
.closing-related ul { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .75rem; padding: 0; margin: 0; list-style: none; }
.closing-related a { display: grid; align-content: start; gap: .25rem; height: 100%; padding: .8rem .95rem; border: 1px solid #f2ce8d61; border-radius: .35rem; color: #fff9ed; text-decoration: none; }
.closing-related a strong { color: var(--gold); text-decoration: underline; text-underline-offset: .2em; }
.closing-related a span { color: #e9ebdf; font-size: .94rem; }
.closing-related a:hover, .closing-related a:focus-visible { background: #fff9ed13; border-color: var(--gold); }

@media (max-width: 760px) {
  .closing-endcap .contact-inner { gap: 1.25rem; }
  .closing-endcap .contact-actions { width: 100%; }
  .closing-related ul { grid-template-columns: 1fr; gap: .6rem; }
}

.closing-shortcuts {
  display: flex;
  gap: .45rem 1rem;
  flex-wrap: wrap;
  margin-top: .85rem;
  font-size: .9rem;
  color: #f2dec1;
}
.closing-shortcuts a { padding-block: .25rem; text-underline-offset: .18rem; }

.home-comparison-choices, .closing-question-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}
.home-comparison-home, .closing-question-grid > div {
  min-width: 0;
  margin: 0;
  padding: clamp(.8rem, 2vw, 1.2rem);
}
.home-comparison-home legend {
  padding-inline: .4rem;
  color: var(--ink);
  font: 500 1.5rem/1.2 var(--serif);
}
.home-comparison-home .closing-fields { gap: .8rem; }
.home-comparison-home .closing-field label { padding-bottom: .3rem; font-size: .9rem; }
.home-comparison-home .closing-field input, .home-comparison-home .closing-field select { margin-top: auto; }
.home-comparison-home select {
  width: 100%;
  min-height: 46px;
  border: 1px solid #9d8c75;
  border-radius: .25rem;
  padding: .55rem .65rem;
  background: #fff;
  color: #201913;
  font: inherit;
}
.home-comparison-monthly { margin: 1rem 0 0; }
.home-comparison-monthly p { color: #635544; font-size: .9rem; }
.home-comparison-results .closing-ledger { margin-top: .85rem; table-layout: fixed; }
.home-comparison-results thead th:first-child { width: 40%; }
.home-comparison-results thead th:not(:first-child) { text-align: right; }
.home-comparison-results .closing-ledger :is(th, td) { padding: .5rem .35rem; }
.home-comparison-results .closing-ledger td { white-space: normal; overflow-wrap: anywhere; }
.home-comparison-results [data-current=false] td { color: #665d54; }
.home-comparison-key { background: #f2e6d0; }
.home-comparison-key :is(th, td) { font-weight: 700; }
.home-comparison-summary { margin-top: .85rem; color: #513b25; font-weight: 650; }
.closing-question-grid ul, .closing-buyer-steps { margin: .7rem 0 0; padding-left: 1.1rem; }
.closing-question-grid li + li, .closing-buyer-steps li + li { margin-top: .5rem; }

@media (max-width: 730px) {
  .home-comparison-choices { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .home-comparison-home .closing-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .closing-question-grid { grid-template-columns: 1fr; }
  .home-comparison-results .closing-ledger :is(th, td) { font-size: .8rem; }
}

@media (max-width: 1050px) {
  .closing-estimate-figure { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .closing-layout { grid-template-columns: 1fr; }
  .closing-sidebar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .closing-estimate-figure { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); }
}
@media (max-width: 700px) {
  .closing-page .frame { width: calc(100% - 2rem); }
  .closing-hero-photo { inset: 0 0 0 16%; }
  .closing-hero-photo img { object-position: 58% 52%; }
  .closing-hero::before {
    background: linear-gradient(90deg, #211a15fa, #211a15b8 60%, #211a1557), linear-gradient(0deg, #211a15f0, transparent 78%);
  }
  .closing-hero-copy { padding-block: 1.25rem 1.55rem; }
  .closing-hero h1 { max-width: 13ch; font-size: clamp(2.45rem, 8.5vw, 4rem); }
  .closing-hero .eyebrow { margin-top: 1rem; }
  .closing-hero h1 + p { font-size: 1rem; margin-top: .8rem; }
  .closing-hero .button { margin-top: 1rem; }
}
@media (max-width: 560px) {
  .closing-estimate-figure, .closing-fields, .closing-sidebar { grid-template-columns: 1fr; }
  .closing-totals { grid-template-columns: 1fr; }
  .closing-totals > div { display: flex; align-items: center; justify-content: space-between; gap: .65rem; }
  .closing-totals dd { margin: 0; text-align: right; }
  .closing-journey { grid-template-columns: 1fr; }
  .closing-journey > div + div { padding: .65rem 0 0; border: 0; border-top: 1px solid #8f7350; }
}
@media print {
  @page { margin: .55in; }
  html:has(.closing-page), .closing-page { color: #000; background: #fff; font-size: 10pt; }
  .closing-page .site-header, .closing-page .skip-link, .closing-page .site-footer, .closing-hero, .closing-endcap,
  .closing-form, .closing-guide, .closing-faq, .closing-sources, .closing-section-heading, .closing-results .closing-quiet,
  .home-comparison, .closing-guide-topic { display: none; }
  .closing-layout, .closing-sidebar { display: block; width: 100%; margin: 0; padding: 0; }
  .closing-layout::before { content: "The Coutu Team · Minnesota Cash to Close"; font: 18pt var(--serif); }
  .closing-card { border: 0; background: #fff; padding: 0; }
  .closing-results, .closing-sidebar > section { margin: .55rem 0; padding: 0; }
  .closing-results[data-current=false] { display: none; }
  .closing-totals { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .closing-totals > div, .closing-totals .closing-totals-main { display: block; border: 1px solid #777; color: #000; background: #fff; }
  .closing-totals dd { margin: .15rem 0 0; text-align: left; }
  .closing-ledger tr, .closing-checklist { break-inside: avoid; }
  .closing-sidebar h2 { font-size: 14pt; }
  .closing-page[data-print=comparison] #estimate { display: none; }
  .closing-page[data-print=comparison] .home-comparison { display: block; margin: .8rem 0; }
  .closing-page[data-print=comparison] .home-comparison-form { display: none; }
  .closing-page[data-print=comparison] .home-comparison-key { background: #fff; }
}
