/* The adult family home seller page: personal hero, range calculator, guide card.
   Tokens come from the site stylesheet (--ink, --rust, --ember, --surface, --border, --r12, --r20 ...).
   Selectors that must beat the shared .wrap / .section padding carry a second class on purpose. */

/* ---------------------------------------------------------------- headings and small text */
.afs-h2{font-size:clamp(1.75rem,3.2vw,2.375rem);margin:0 0 .75rem}
.afs-intro{max-width:58ch;color:var(--s700);font-size:1.0625rem;line-height:1.65;margin:0 0 1rem}
.afs-fine{font-size:.875rem;line-height:1.5;color:var(--s500);margin:1.25rem 0 0}

/* ---------------------------------------------------------------- hero */
.afs-hero{background:var(--sunken);border-bottom:1px solid var(--border)}
.wrap.afs-hero-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,360px);
  gap:clamp(28px,5vw,72px);align-items:center;padding-top:clamp(36px,6vw,72px);padding-bottom:clamp(36px,6vw,72px)}
.afs-hero h1{font-size:clamp(2.25rem,4.6vw,3.5rem);max-width:17ch;margin:0 0 1.25rem}
.afs-lede{font-size:1.1875rem;line-height:1.7;color:var(--s700);max-width:54ch;margin:0 0 1rem}
.afs-lede a{text-decoration:underline;text-underline-offset:3px}
.afs-cta{display:flex;flex-wrap:wrap;gap:.8rem;margin-top:1.5rem}
.afs-portrait{margin:0}
.afs-portrait img{width:100%;height:auto;aspect-ratio:4/5;object-fit:cover;object-position:50% 14%;
  border-radius:var(--r20);box-shadow:var(--sh2)}
.afs-portrait figcaption{display:grid;gap:2px;margin-top:.9rem;font-size:.9375rem;color:var(--s500)}
.afs-portrait figcaption b{font-family:var(--display);font-size:1.125rem;color:var(--ink)}
@media(max-width:860px){
  .wrap.afs-hero-grid{grid-template-columns:1fr}
  .afs-portrait{max-width:260px}
}

/* ---------------------------------------------------------------- two ways */
.afs-ways{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;margin:1.5rem 0}
.afs-way{background:var(--surface);border:1px solid var(--border);border-radius:var(--r20);padding:clamp(20px,3vw,28px)}
.afs-way h3{margin:0 0 .5rem}
.afs-way p{margin:0;color:var(--s700)}
@media(max-width:700px){.afs-ways{grid-template-columns:1fr}}

/* ---------------------------------------------------------------- the calculator */
.afc{scroll-margin-top:84px}
.wrap.afc-split{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,540px);
  gap:clamp(28px,5vw,64px);align-items:start}
.afc-copy h2{margin:0 0 1rem}
/* the form is taller than the words, so the words stay in view beside it */
@media(min-width:901px){.afc-copy{position:sticky;top:110px}}
.afc-card{background:var(--surface);border:1px solid var(--border);border-radius:var(--r20);
  padding:clamp(20px,3vw,32px);box-shadow:var(--sh2)}
@media(max-width:900px){.wrap.afc-split{grid-template-columns:1fr;gap:28px}}

.afc-rail{list-style:none;display:flex;gap:6px;margin:0 0 1.25rem;padding:0}
.afc-dot{flex:1;display:flex;align-items:center;gap:8px;padding-bottom:10px;border-bottom:3px solid var(--border);
  font-size:.8125rem;font-weight:600;color:var(--s500)}
.afc-dot span{flex:none;width:22px;height:22px;border-radius:50%;display:grid;place-items:center;
  background:var(--sunken);font-size:.75rem;color:var(--s700)}
.afc-dot.is-on{color:var(--ink);border-bottom-color:var(--rust)}
.afc-dot.is-on span{background:var(--rust);color:#fff}
.afc-dot.is-done{color:var(--s700);border-bottom-color:var(--ink)}
.afc-dot.is-done span{background:var(--ink);color:#fff}

.afc-step[hidden]{display:none}
.afc-step h3{margin:0 0 .4rem}
.afc-step h3:focus{outline:none}
.afc-sub{margin:0 0 1.1rem;color:var(--s700)}

/* the line from Henos, with his face, where somebody is about to hand over a phone number */
.afc-me{display:flex;gap:14px;align-items:center;margin:0 0 1.1rem;padding:12px 14px;
  border:1px solid var(--border);border-radius:var(--r12);background:var(--paper)}
.afc-me img{flex:none;width:56px;height:56px;border-radius:50%;object-fit:cover;object-position:50% 15%}
.afc-me p{margin:0;color:var(--ink);font-size:.9375rem;line-height:1.5}
.afc-me p:empty{display:none}

.afc-form{display:grid;gap:1rem}
.afc-f{display:grid;gap:.35rem;min-width:0}
.afc-f[hidden]{display:none}
.afc-f > label,.afc-q > legend{padding:0;font-weight:600;font-size:.9375rem;color:var(--ink)}
.afc-opt{font-weight:400;color:var(--s500)}
.afc-hint{margin:0;font-size:.8125rem;color:var(--s500)}
.afc-sum{margin:0;font-size:.9375rem;font-weight:600;color:var(--ink)}
.afc-sum:empty{display:none}
/* The site styles every `form input` with a selector stronger than one class (margin-top, padding,
   border), so the controls here carry enough specificity to win, and the form's buttons lose the
   site's 1.5rem top margin. */
.afc-card form .afc-f input:not([type=radio]):not([type=checkbox]),
.afc-card form .afc-f select{width:100%;min-width:0;min-height:52px;margin:0;padding:0 1rem;font:inherit;font-size:1rem;
  color:var(--ink);background:var(--surface);border:1px solid var(--s300);border-radius:var(--r12)}
.afc-card form .afc-f input:not([type=radio]):not([type=checkbox]):focus-visible,
.afc-card form .afc-f select:focus-visible{outline:3px solid var(--ember);outline-offset:1px;border-color:var(--rust)}
.afc-card form .afc-f input[aria-invalid="true"]{border-color:#B45309;background:#FFFBF0}
.afc-money{position:relative}
.afc-money::before{content:"$";position:absolute;left:1rem;top:50%;transform:translateY(-50%);color:var(--s500);pointer-events:none}
.afc-card form .afc-money input:not([type=radio]):not([type=checkbox]){padding-left:1.9rem}
.afc-card form button{margin-top:0}
.afc-row{display:grid;grid-template-columns:1fr 1fr;gap:1rem;align-items:end}
@media(max-width:520px){.afc-row{grid-template-columns:1fr}}

.afc-q{border:0;margin:0;padding:0;min-width:0}
.afc-opts{display:flex;flex-wrap:wrap;gap:.5rem;margin-top:.45rem}
.afc-opts label{position:relative;display:block}
.afc-opts input{position:absolute;inset:0;width:100%;height:100%;margin:0;opacity:0;cursor:pointer}
.afc-opts span{display:inline-flex;align-items:center;min-height:44px;padding:0 1.1rem;border:1px solid var(--s300);
  border-radius:var(--pill);background:var(--surface);font-size:.9375rem;color:var(--ink)}
.afc-opts input:checked + span{background:var(--ink);border-color:var(--ink);color:#fff}
.afc-opts input:focus-visible + span{outline:3px solid var(--ember);outline-offset:2px}

.afc-link{justify-self:start;padding:0;border:0;background:none;font:inherit;font-size:.9375rem;
  color:var(--clay);text-decoration:underline;text-underline-offset:3px;cursor:pointer}
.afc-actions{display:flex;flex-wrap:wrap;gap:.7rem 1rem;align-items:center}
.afc-actions + .afc-fine{margin-top:1rem}
.afc-fine{margin:0;font-size:.8125rem;line-height:1.5;color:var(--s500)}
.afc-err{margin:0;padding:10px 14px;border:1px solid #EBD38F;border-radius:var(--r12);
  background:#FFF8E6;color:#4A3610;font-size:.9375rem;line-height:1.45}
.afc-err[hidden]{display:none}

/* the optional email box inside the gate: keep it quiet */
.afc-card .optin{margin:0;padding:0;border:0}
.afc-card .optin legend{padding:0;font-size:.875rem;color:var(--s700)}
.afc-card .optin label{font-size:.9375rem}

/* ---------------------------------------------------------------- the result */
.afc-tag{display:inline-block;margin:0 0 .75rem;padding:3px 10px;border:1px solid #EBD38F;border-radius:var(--pill);
  background:#FFF1CC;color:#4A3610;font-size:.75rem;font-weight:700;letter-spacing:.06em;text-transform:uppercase}
.afc-tag[hidden]{display:none}
.afc-range{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:1rem 0 1.1rem}
.afc-range[hidden]{display:none}
.afc-tile{display:grid;gap:3px;padding:14px 12px;border:1px solid var(--border);border-radius:var(--r12);background:var(--surface)}
.afc-tile--mid{background:var(--ember-tint);border-color:var(--ember-tint-bd)}
.afc-tl{font-size:.8125rem;font-weight:600;color:var(--s700)}
.afc-tile b{font-family:var(--display);font-size:clamp(1.25rem,3.2vw,1.625rem);line-height:1.15;color:var(--ink)}
.afc-tile span:last-child{font-size:.8125rem;line-height:1.35;color:var(--s500)}
@media(max-width:520px){
  .afc-range{grid-template-columns:1fr}
  .afc-tile{grid-template-columns:1fr auto;align-items:baseline;column-gap:12px}
  .afc-tile .afc-tl{grid-column:1}
  .afc-tile b{grid-column:2;grid-row:1 / span 2;text-align:right}
}
#afc-how{margin:0 0 1rem;color:var(--s700)}
.afc-move{margin:0 0 1rem;padding:14px 16px;border:1px solid var(--border);border-radius:var(--r12);background:var(--paper)}
.afc-move h4{margin:0 0 .4rem;font-size:1rem}
.afc-move ul{margin:0;padding-left:1.15rem;color:var(--s700);font-size:.9375rem;line-height:1.55}
.afc-move li + li{margin-top:.25rem}
#afc-house{margin:0 0 1rem;color:var(--s700)}
#afc-house[hidden]{display:none}

/* ---------------------------------------------------------------- the seller's guide card */
.afg{display:grid;grid-template-columns:minmax(0,240px) minmax(0,1fr);gap:clamp(24px,5vw,56px);align-items:center;
  padding:clamp(22px,4vw,40px);background:var(--surface);border:1px solid var(--border);border-radius:var(--r20);box-shadow:var(--sh1)}
.afg-cover{display:block;justify-self:center;width:100%;max-width:240px}
.afg-cover img{width:100%;height:auto;border-radius:6px;transform:rotate(-1.5deg);
  box-shadow:0 18px 34px -14px rgba(28,33,39,.4),0 2px 6px rgba(28,33,39,.18)}
.afg-copy h2{margin:0 0 .75rem}
.afg-copy p{max-width:54ch}
@media(max-width:700px){.afg{grid-template-columns:1fr}.afg-cover{max-width:190px}}

@media(prefers-reduced-motion:reduce){.afg-cover img{transform:none}}
