.home-tool-intro {
  padding-bottom: clamp(1.65rem, 3.5vw, 3rem);
}
.home-tool-heading, .home-tool-spread {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr);
}
.home-tool-heading {
  align-items: end;
  gap: clamp(1rem, 4vw, 4rem);
  margin-bottom: clamp(1.25rem, 2.6vw, 2.2rem);
}
.home-tool-heading h1 {
  font-size: clamp(2.85rem, 5.2vw, 4.7rem);
  max-width: 16ch;
}
.home-tool-heading .page-deck {
  max-width: 46ch;
  margin: 0;
  font-size: clamp(1rem, 1.4vw, 1.13rem);
}
.home-tool-spread {
  grid-template-areas: "photo tool";
  align-items: stretch;
}
.home-tool-spread figure {
  grid-area: photo;
  position: relative;
  min-width: 0;
  min-height: clamp(14rem, 23vw, 21rem);
  background: var(--brand-deep-navy);
}
.home-tool-spread figure a, .home-tool-spread figure img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.home-tool-spread figure a { overflow: hidden; }
.home-tool-spread figure img { object-fit: cover; }
.home-photo-caption {
  display: flex;
  align-items: end;
  justify-content: space-between;
  position: absolute;
  inset: auto 0 0;
  padding: 3rem clamp(1rem, 2vw, 1.8rem) 1.25rem;
  background: linear-gradient(transparent, rgba(11, 22, 35, .85));
  color: white;
  line-height: 1.2;
}
.home-photo-caption small { display: block; margin-bottom: .35rem; font: 600 .78rem/1.4 var(--body); letter-spacing: .045em; }
.home-photo-caption strong { font: 400 clamp(1.45rem, 2.2vw, 2rem)/1.1 var(--display); }
.home-photo-caption > span:last-child { font-size: 1.4rem; }
.home-tool-spread figure a:is(:hover, :focus-visible) strong { color: var(--brand-gold); }
.home-tool-spread figure a:focus-visible { z-index: 1; outline: 2px solid var(--brand-navy); }
.home-tool-spread > :is(.realscout-tool, .property-search-panel) {
  grid-area: tool;
  position: relative;
  align-self: stretch;
  align-content: center;
  min-width: 0;
  padding: clamp(1rem, 2.5vw, 2.2rem);
  border: 1px solid var(--line);
  background: white;
  scroll-margin-top: calc(var(--header-height) + 1rem);
}
.property-search-form, #listing-alerts { scroll-margin-top: calc(var(--header-height) + 1rem); }
.property-search-form label { display: block; margin-bottom: .45rem; font-weight: 650; }
.property-search-field { display: flex; flex-wrap: wrap; gap: .55rem; }
.property-search-field input {
  flex: 1 1 12rem;
  min-width: 0;
  width: 100%;
  min-height: 2.9rem;
  padding: .6rem .75rem;
  border: 1px solid var(--control-line);
  border-radius: .2rem;
  color: var(--ink);
  background: var(--white);
  font: 1rem var(--body);
}
.property-search-field .button { min-height: 2.9rem; }
.property-search-field input:focus-visible { outline: 2px solid var(--brand-navy); outline-offset: 2px; }
#property-matches:not(:empty) { margin-top: .85rem; }
#property-matches p { font-size: .94rem; color: var(--muted); }
.property-search-results { list-style: none; margin: 0; padding: 0; }
.property-search-results li + li { border-top: 1px solid var(--line); }
.property-search-results a {
  display: flex; flex-direction: column; justify-content: center; gap: .08rem;
  min-height: 2.75rem; padding: .4rem 0; line-height: 1.4;
}
.property-search-results small { color: var(--muted); }
.market-search-options { margin-top: 1rem; border-top: 1px solid var(--line); }
.market-search-options summary { padding-block: .8rem; cursor: pointer; font-weight: 650; }
.market-search-options summary:is(:hover, :focus-visible) { color: var(--menu-bronze); }
.market-search-options .realscout-tool { position: relative; min-width: 0; }
.home-tool-spread:not(:has(figure)) {
  grid-template-columns: minmax(0, 48rem);
  grid-template-areas: "tool";
}
.realscout-tool [hidden] {
  display: none;
}
.realscout-tool .realscout-status {
  margin: .6rem 0;
  font-size: .92rem;
}
.realscout-tool .realscout-status:empty {
  margin: 0;
}
/* Keep the photograph and next section in place while the form loads. */
.realscout-tool:has(iframe) > .realscout-status:not(:empty) { position: absolute; }
.realscout-status:not(:empty) + .realscout-frame:has(iframe) { min-height: 15rem; }
#home-value-estimate .realscout-status:not(:empty) + .realscout-frame:has(iframe) { min-height: 11.25rem; }
.realscout-note, .seller-pricing-help {
  color: var(--muted);
  max-width: 42rem;
}
.realscout-note {
  margin-top: 1rem;
  padding-top: .85rem;
  border-top: 1px solid var(--line);
  font-size: .92rem;
}
.seller-pricing-help {
  margin-top: 2rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--line);
}
.realscout-frame iframe {
  display: block;
  width: 100%;
  max-width: 100%;
  border: 0;
}
.buyer-next-steps, .seller-worksheet {
  padding-block: clamp(2.4rem, 4.8vw, 4.2rem);
}
.buyer-next-steps > div + div {
  border-left: 1px solid var(--line);
  padding-left: clamp(1.25rem, 3.2vw, 3.2rem);
}
.buyer-next-steps h2, .seller-worksheet h2 { font-size: clamp(2.1rem, 3.8vw, 3.25rem); }
.seller-worksheet .seller-worksheet-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr);
  column-gap: clamp(1rem, 4vw, 4rem);
  align-items: end;
}
.seller-worksheet-intro .eyebrow { grid-column: 1/-1; }
.seller-worksheet .seller-worksheet-intro h2 { max-width: none; margin: .5rem 0 0; }
@media (max-width: 820px) {
  .home-tool-heading, .seller-worksheet .seller-worksheet-intro { grid-template-columns: minmax(0, 1fr); gap: .65rem; }
  .home-tool-heading h1, .home-tool-heading .page-deck { max-width: none; }
  .home-tool-spread, .home-tool-spread:not(:has(figure)) { grid-template-columns: minmax(0, 1fr); grid-template-areas: "tool"; }
  .home-tool-spread:has(figure) { grid-template-areas: "tool" "photo"; }
  .home-tool-spread figure { width: 100%; min-height: 0; aspect-ratio: 3 / 1; }
  .home-tool-spread > :is(.realscout-tool, .property-search-panel) { padding: 1rem; }
  .seller-worksheet .seller-worksheet-intro h2 { margin: 0; }
}
@media (max-width: 620px) {
  .home-tool-spread figure { aspect-ratio: 2.15 / 1; }
  .buyer-next-steps > div + div { padding: 1.35rem 0 0; border-left: 0; border-top: 1px solid var(--line); }
}
