/* bamrg.com — site.css
   Brand: red, white, black + neutral grays. Red #B40101 is sampled from the KW logo file (kw-logo-red.webp).
   Fonts: system stacks only (no third-party font calls, no cookies).
   COMPLIANCE LAYOUT (Fred, Oct 19 2026, modeled on fredmoore1.kw.com): header = kw | pin icon lockup (no wordmark, CT DCP naming rule Oct 24 2026), then
   "Fred Moore III, REALTOR®" at body size; his name may also appear in H1s. The supervising-broker line is in the footer on every page, in the same .agent-id__line
   class (same size, weight, color) as Fred's name there. Pending Jennifer/KW sign-off: see LAUNCH-NOTES.md. */

:root {
  --red: #B40101;        /* KW logo red; 7.1:1 on white, 6.4:1 on --paper */
  --red-dark: #8A0101;   /* hover/active; 10.1:1 on white */
  --black: #000000;
  --white: #FFFFFF;
  --paper: #F2F2F2;      /* alternate section ground */
  --gray: #4D4D4D;       /* secondary text, 7.5:1 on --paper */
  --rule: #CCCCCC;
  --mark-bg: #FFF1A8;    /* review markers */

  --font: "Helvetica Neue", Helvetica, Arial, "Nimbus Sans", "Liberation Sans", sans-serif;
  --font-alt: Georgia, "Times New Roman", serif;  /* transcripts + pull quotes only */

  --fs-body: 1.0625rem;  /* 17px — ceiling for Fred's name */
  --fs-small: 0.9375rem;
  --fs-h3: 1.25rem;
  --fs-h2: clamp(1.625rem, 1.1rem + 1.8vw, 2.375rem);
  --fs-h1: clamp(2.25rem, 1.2rem + 4.2vw, 4.5rem);

  --measure: 66ch;
  --wrap: 76rem;
  --gutter: clamp(1rem, 3vw, 2rem);
  --space: clamp(3rem, 2rem + 4vw, 5.5rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 5rem; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: 1.6;
  color: var(--black);
  background: var(--white);
  overflow-wrap: break-word;
}
img { max-width: 100%; height: auto; display: block; background: #DDDDDD; }
a { color: var(--red); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { color: var(--red-dark); text-decoration-thickness: 2px; }
p, ul, ol, dl, table { margin: 0 0 1rem; }
ul, ol { padding-left: 1.25rem; }
li { margin-bottom: 0.35rem; }

h1, h2, h3 { font-family: var(--font); line-height: 1.08; letter-spacing: -0.02em; margin: 0 0 1rem; font-weight: 800; }
h1 { font-size: var(--fs-h1); letter-spacing: -0.035em; }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); line-height: 1.25; letter-spacing: -0.01em; font-weight: 700; }

:focus-visible { outline: 3px solid var(--black); outline-offset: 3px; }
.band-dark :focus-visible { outline-color: var(--white); }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.prose { max-width: var(--measure); }
.section { padding-top: var(--space); padding-bottom: var(--space); }
.section--paper { background: var(--paper); }
.band-dark { background: var(--black); color: var(--white); }
.band-dark a { color: var(--white); }
.lede { font-size: 1.1875rem; max-width: 52ch; }
.muted { color: var(--gray); }
.band-dark .muted { color: #CFCFCF; }

/* Skip link */
.skip { position: absolute; left: 0.5rem; top: -4rem; background: var(--black); color: var(--white); padding: 0.75rem 1rem; z-index: 100; }
.skip:focus { top: 0.5rem; color: var(--white); }

/* ---------- Agent ID (compliance component) ---------- */
.agent-id { margin: 0; }
.agent-id__line {
  font-size: var(--fs-body) !important;
  font-weight: 400 !important;
  line-height: 1.5;
  margin: 0;
  color: inherit;
}
.agent-id__line * { font-size: inherit !important; font-weight: inherit !important; }
.agent-id a { color: inherit; }

/* ---------- Header ---------- */
.site-header { border-bottom: 4px solid var(--black); background: var(--white); }
.header-row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.25rem; padding-top: 0.9rem; padding-bottom: 0.9rem; }
.mainnav { order: 3; flex-basis: 100%; }
.mainnav > ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.25rem 1rem; }
.mainnav > ul > li { margin: 0; position: relative; }
.mainnav a, .mainnav summary { display: inline-flex; align-items: center; min-height: 2.75rem; color: var(--black); font-weight: 700; text-decoration: none; cursor: pointer; }
.mainnav a:hover, .mainnav summary:hover { color: var(--red); }
.mainnav a[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--red); }
.mainnav summary { list-style: none; }
.mainnav summary::-webkit-details-marker { display: none; }
.mainnav summary::after { content: ""; width: 0.45rem; height: 0.45rem; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); margin: -0.2rem 0 0 0.5rem; }
.mainnav details[open] summary::after { transform: rotate(-135deg); margin-top: 0.25rem; }
.menu { position: absolute; z-index: 20; left: 0; top: 100%; width: min(92vw, 34rem); background: var(--white); border: 2px solid var(--black); padding: 1.25rem; }
.menu ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.6rem; }
.menu li { margin: 0; }
.menu a { min-height: 1.5rem; }
.menu .villages { display: block; font-size: var(--fs-small); color: var(--gray); font-weight: 400; }
.menu .menu-group { font-weight: 800; margin-bottom: 0.5rem; }
.header-actions { margin-left: auto; display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 0.75rem; }
.tel { font-weight: 700; color: var(--black); text-decoration: none; min-height: 2.75rem; display: inline-flex; align-items: center; }
@media (max-width: 63.99em) {
  .header-row { gap: 0.6rem 0.75rem; }
  .header-actions { display: contents; }
  .tel { order: 1; margin-left: auto; }
  .header-actions .btn { order: 2; font-size: var(--fs-small); padding: 0.45rem 0.75rem; }
  .mainnav { order: 3; }
}
@media (min-width: 64em) {
  .header-actions { order: 2; gap: 0.5rem; }
  .header-actions .btn { padding: 0.5rem 0.8rem; }
  .mainnav { order: 3; flex-basis: 100%; border-top: 1px solid var(--rule); padding-top: 0.15rem; margin-bottom: -0.5rem; }
}

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 2.75rem; padding: 0.6rem 1.15rem; font-weight: 700; font-size: var(--fs-body); text-decoration: none; border: 2px solid transparent; line-height: 1.2; }
.btn-red { background: var(--red); color: var(--white); border-color: var(--red); }
.btn-red:hover { background: var(--red-dark); border-color: var(--red-dark); color: var(--white); }
.btn-black { background: var(--black); color: var(--white); border-color: var(--black); }
.btn-black:hover { background: #333333; color: var(--white); }
.btn-ghost { background: transparent; color: var(--black); border-color: var(--black); }
.btn-ghost:hover { background: var(--black); color: var(--white); }
.band-dark .btn-ghost { color: var(--white); border-color: var(--white); }
.band-dark .btn-ghost:hover { background: var(--white); color: var(--black); }
.band-dark .btn-red { color: var(--white); }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 1.5rem 0 1rem; }

/* ---------- Review markers (pre-launch only) ---------- */
.mk { overflow-wrap: anywhere; background: var(--mark-bg); color: var(--black); outline: 1px dashed #7A6200; padding: 0 0.2em; font-style: normal; }
.band-dark .mk { color: var(--black); }

/* ---------- Breadcrumbs + meta ---------- */
.crumbs { font-size: var(--fs-small); padding-top: 1.25rem; }
.crumbs ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 0.25rem; }
.crumbs li { margin: 0; }
.crumbs li + li::before { content: "/"; margin: 0 0.4rem 0 0.15rem; color: var(--gray); }
.crumbs a { color: var(--black); }
.updated { font-size: var(--fs-small); color: var(--gray); margin: 0 0 1.5rem; }
.page-head { padding-top: 1.5rem; padding-bottom: 2.5rem; border-bottom: 1px solid var(--rule); }
.page-head h1 { max-width: 20ch; }

/* ---------- Home hero ---------- */
.hero { display: grid; gap: 2rem; padding-top: clamp(2rem, 1rem + 4vw, 4.5rem); padding-bottom: var(--space); align-items: end; }
.hero h1 { margin-bottom: 1.25rem; }
.hero h1 span { display: block; }

.hero__media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
@media (min-width: 56em) {
  .hero { grid-template-columns: 1.15fr 0.85fr; gap: 3.5rem; }
}

/* ---------- Stat bar ---------- */
.statbar { border-top: 4px solid var(--black); border-bottom: 1px solid var(--rule); }
.statbar__h { font-size: var(--fs-h3); letter-spacing: -0.01em; margin: 1.25rem 0 0; }
.statbar dl { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); margin: 0; }
.statbar div { padding: 1.25rem 1.25rem 1.25rem 0; }
.statbar dt { font-size: var(--fs-small); color: var(--gray); }
.statbar dd { margin: 0.25rem 0 0; font-weight: 700; }

/* ---------- Town index (the signature element) ---------- */
.region-label { font-size: var(--fs-small); font-weight: 700; color: var(--gray); margin-bottom: 0.25rem; }
.town-index { list-style: none; padding: 0; margin: 0 0 2rem; border-top: 4px solid var(--black); }
.town-index > li { margin: 0; border-bottom: 1px solid var(--rule); display: grid; grid-template-columns: 1fr; gap: 1rem; padding: 1.5rem 0; }
.town-index img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.town-index h3 { font-size: clamp(2rem, 1.2rem + 3vw, 3.25rem); letter-spacing: -0.04em; margin-bottom: 0.4rem; font-weight: 800; }
.town-index h3 a { color: var(--black); text-decoration: none; }
.town-index h3 a:hover { color: var(--red); }
.town-index .villages { color: var(--gray); margin-bottom: 0.5rem; }
.town-index .town-links { display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; font-weight: 700; margin: 0; }
.status { display: inline-block; font-size: var(--fs-small); font-weight: 700; border: 1px solid var(--black); padding: 0 0.4rem; margin-left: 0.35rem; vertical-align: middle; letter-spacing: 0; }
@media (min-width: 48em) {
  .town-index > li { grid-template-columns: 14rem 1fr; gap: 2rem; align-items: center; }
}

/* ---------- Generic grids ---------- */
.split { display: grid; gap: 2.5rem; }
@media (min-width: 56em) { .split { grid-template-columns: 1fr 1fr; gap: 4rem; } .split--wide-left { grid-template-columns: 1.4fr 1fr; } }
.cols-2 { display: grid; gap: 2rem; }
@media (min-width: 48em) { .cols-2 { grid-template-columns: 1fr 1fr; } }

.guide-list { list-style: none; padding: 0; margin: 0; border-top: 4px solid var(--black); }
.guide-list > li { border-bottom: 1px solid var(--rule); padding: 1.25rem 0; margin: 0; }
.guide-list h3 { margin-bottom: 0.4rem; }
.guide-list h3 a { color: var(--black); text-decoration: none; }
.guide-list h3 a:hover { color: var(--red); text-decoration: underline; }
.guide-list p { margin: 0; color: var(--gray); max-width: var(--measure); }

/* ---------- Meet band ---------- */
.meet { display: grid; gap: 2rem; align-items: center; }
.meet img { width: 100%; max-width: 26rem; aspect-ratio: 4 / 5; object-fit: cover; }
@media (min-width: 48em) { .meet { grid-template-columns: 22rem 1fr; gap: 4rem; } }

/* ---------- Quick Read / callouts ---------- */
.quickread { border-left: 6px solid var(--red); background: var(--paper); padding: 1.25rem 1.5rem; margin: 0 0 2.5rem; max-width: var(--measure); }
.quickread h2 { font-size: var(--fs-h3); margin-bottom: 0.75rem; letter-spacing: -0.01em; }
.quickread ul { margin: 0; }
.answer { font-size: 1.125rem; }
.cta-box { border: 2px solid var(--black); padding: 1.5rem; margin: 2.5rem 0; max-width: var(--measure); }
.cta-box h2, .cta-box h3 { margin-bottom: 0.5rem; }
.disclaimer { font-size: var(--fs-small); color: var(--gray); border-top: 1px solid var(--rule); padding-top: 1rem; max-width: var(--measure); }

.article-body { max-width: var(--measure); }
.article-body h2 { margin-top: 3rem; }
.article-body h3 { margin-top: 2rem; }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; margin: 0 0 2rem; max-width: 100%; }
table { border-collapse: collapse; width: 100%; min-width: 32rem; font-size: var(--fs-small); }
caption { text-align: left; font-weight: 700; padding-bottom: 0.5rem; font-size: var(--fs-body); }
th, td { text-align: left; vertical-align: top; padding: 0.6rem 0.75rem 0.6rem 0; border-bottom: 1px solid var(--rule); }
thead th { border-bottom: 2px solid var(--black); }
.table-wrap:focus-visible { outline-offset: 0; }

/* ---------- Video facade ---------- */
.video { max-width: 52rem; margin: 0 0 1.5rem; }
.facade { position: relative; display: block; aspect-ratio: 16 / 9; background: #222222; color: var(--white); text-decoration: none; }
.facade img { width: 100%; height: 100%; object-fit: cover; }
.facade__play { position: absolute; left: 1rem; bottom: 1rem; display: inline-flex; align-items: center; gap: 0.6rem; background: var(--red); color: var(--white); font-weight: 700; padding: 0.6rem 1rem; }
.facade__play::before { content: ""; border-left: 0.75rem solid currentColor; border-top: 0.45rem solid transparent; border-bottom: 0.45rem solid transparent; }
.facade:hover .facade__play { background: var(--red-dark); }
.facade:hover { color: var(--white); }
.video iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; display: block; }
.video figcaption { font-size: var(--fs-small); color: var(--gray); padding-top: 0.5rem; }
.band-dark .video figcaption { color: #CFCFCF; }
details.transcript { border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); padding: 0.75rem 0; max-width: var(--measure); margin-bottom: 1.5rem; }
details.transcript summary { cursor: pointer; font-weight: 700; min-height: 2rem; display: flex; align-items: center; }
details.transcript .transcript__body { font-family: var(--font-alt); line-height: 1.75; padding-top: 0.75rem; }

.video-list { list-style: none; padding: 0; margin: 0 0 1rem; display: grid; gap: 2rem; grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr)); }
.video-list li { margin: 0; }
.video-list h3 { margin: 0.75rem 0 0.25rem; }
.video-list .meta { font-size: var(--fs-small); color: var(--gray); margin: 0 0 0.35rem; }
.chips { list-style: none; padding: 0; margin: 0 0 2rem; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chips li { margin: 0; }
.chips a { display: inline-flex; min-height: 2.75rem; align-items: center; padding: 0 1rem; border: 2px solid var(--black); color: var(--black); font-weight: 700; text-decoration: none; }
.chips a:hover { background: var(--black); color: var(--white); }

/* ---------- Town page sticky sub-nav ---------- */
.subnav { position: sticky; top: 0; z-index: 10; background: var(--white); border-bottom: 2px solid var(--black); }
.subnav .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 0 1.25rem; }
.subnav ul { list-style: none; display: flex; flex-wrap: wrap; gap: 0 1.25rem; padding: 0; margin: 0; }
.subnav li { margin: 0; }
.subnav a:not(.btn) { display: inline-flex; align-items: center; min-height: 2.75rem; color: var(--black); font-weight: 700; text-decoration: none; }
.subnav a:not(.btn):hover { color: var(--red); }
.subnav .btn { margin-left: auto; min-height: 2.5rem; padding: 0.35rem 0.9rem; }

.data-block { border: 2px solid var(--black); padding: 1.25rem 1.5rem; max-width: var(--measure); margin-bottom: 1.5rem; }
.data-block dl { display: grid; grid-template-columns: 1fr; gap: 0.25rem 1.5rem; margin: 0 0 1rem; }
@media (min-width: 30em) { .data-block dl { grid-template-columns: minmax(10rem, max-content) 1fr; gap: 0.5rem 1.5rem; } }
.data-block dd + dt { margin-top: 0.5rem; }
@media (min-width: 30em) { .data-block dd + dt { margin-top: 0; } }
.data-block dt { font-weight: 700; }
.data-block dd { margin: 0; }
.highlights { counter-reset: none; }
.facts dl { display: grid; gap: 0.75rem 2rem; grid-template-columns: 1fr; }
@media (min-width: 40em) { .facts dl { grid-template-columns: minmax(9rem, max-content) 1fr; } }
.facts dt { font-weight: 700; }
.facts dd { margin: 0; }

/* ---------- FAQ ---------- */
.faq h3 { margin-top: 1.75rem; margin-bottom: 0.5rem; }
.faq p { max-width: var(--measure); }

/* ---------- Author box ---------- */
.author-box { border-top: 4px solid var(--black); padding-top: 1rem; margin-top: 3rem; max-width: var(--measure); }

/* ---------- Footer ---------- */
.site-footer { padding: 3rem 0 2rem; margin-top: 0; }
.footer-legal { border-bottom: 1px solid #555555; padding-bottom: 1.5rem; margin-bottom: 1.5rem; }
.footer-legal .agent-id__line + .agent-id__line { margin-top: 0.75rem; }
.footer-logos { display: flex; flex-wrap: wrap; align-items: center; gap: 1.5rem; margin-bottom: 2rem; }
.footer-logos img { background: transparent; }
.footer-cols { display: grid; gap: 1.5rem 2rem; grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); margin-bottom: 2rem; }
.footer-cols h2 { font-size: var(--fs-body); letter-spacing: 0; margin-bottom: 0.5rem; }
.footer-cols ul { list-style: none; padding: 0; margin: 0; }
.footer-cols li { margin: 0; }
.footer-cols a, .footer-links a { display: inline-flex; min-height: 2rem; align-items: center; }
.footer-links { list-style: none; padding: 0; margin: 0 0 1rem; display: flex; flex-wrap: wrap; gap: 0.25rem 1.5rem; }
.footer-links li { margin: 0; }
.footer-small { font-size: var(--fs-small); color: #CFCFCF; margin: 0.5rem 0 0; }

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: no-preference) {
  .btn, .chips a { transition: background-color 120ms ease, color 120ms ease; }
}
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}

@media print {
  .site-header nav, .header-actions, .subnav, .skip { display: none; }
  .mk { outline: none; }
}

.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }

/* Home-value band */
.band-red { background: var(--red); color: var(--white); }
.band-red h2 { color: var(--white); max-width: 18ch; }
.band-red p { max-width: 52ch; font-size: 1.1875rem; }
.band-red .btn-white { background: var(--white); color: var(--black); border-color: var(--white); }
.band-red .btn-white:hover { background: var(--black); color: var(--white); border-color: var(--black); }
.band-red :focus-visible { outline-color: var(--white); }
.band-red .split { align-items: end; }

/* Boxed headings never take the article's section spacing */
.article-body .quickread h2, .article-body .cta-box h2, .article-body .cta-box h3 { margin-top: 0; }


/* Home H1 lockup */
.hero h1 .h1-a, .hero h1 .h1-b { display: block; }
.hero h1 .h1-b { font-size: 0.48em; letter-spacing: -0.015em; margin-top: 0.5rem; font-weight: 700; }

/* Mobile: one compact, horizontally scrolling nav row; Towns links to the valley hub */
.towns-mobile { display: none; }
@media (max-width: 63.99em) {
  .towns-desktop { display: none; }
  .towns-mobile { display: block; }
  .mainnav { overflow-x: auto; scrollbar-width: thin; margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter);
    -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 2.5rem), transparent);
            mask-image: linear-gradient(to right, #000 calc(100% - 2.5rem), transparent); }
  .mainnav > ul { flex-wrap: nowrap; gap: 0 1rem; white-space: nowrap; padding: 4px 2.5rem 4px 4px; }
  .mainnav a { font-size: var(--fs-small); }
  .mainnav a:focus-visible { outline-offset: -3px; }
}

/* Simsbury (town) layout: photo on top, Quick Facts sidebar on desktop */
.town-photo { padding-top: 2rem; }
.town-photo img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; max-height: 34rem; }
.town-layout { display: grid; gap: 2rem; padding-top: 1rem; padding-bottom: var(--space); }
.town-aside .facts { border-top: 4px solid var(--black); padding-top: 1rem; }
.town-aside .facts h2 { font-size: var(--fs-h3); margin-top: 0; }
@media (min-width: 64em) {
  .town-layout { grid-template-columns: minmax(0, 1fr) 20rem; gap: 4rem; align-items: start; }
  .town-layout > .article-body { grid-column: 1; grid-row: 1; }
  .town-layout > .town-aside { grid-column: 2; grid-row: 1; }
  .town-aside { position: sticky; top: 4rem; margin-top: 3rem; }
  .town-aside .facts dl { grid-template-columns: 1fr; gap: 0.25rem; }
  .town-aside .facts dd { margin-bottom: 0.75rem; }
}

/* Header lockup: kw | pin icon (links home), name at body size beside it */
.brand { display: flex; align-items: center; flex-wrap: wrap; gap: 0.25rem 0.9rem; }
.lockup { display: inline-flex; align-items: center; gap: 0.6rem; text-decoration: none; min-height: 2.75rem; }
.lockup img { height: 2.25rem; width: auto; background: transparent; }
.lockup__divider { width: 1px; align-self: stretch; margin: 0.35rem 0; background: var(--black); }
.brand__name { font-size: var(--fs-body); font-weight: 700; line-height: 1.25; color: var(--black); }
@media (max-width: 63.99em) {
  .brand { flex-direction: column; align-items: flex-start; gap: 0.1rem; }
  .lockup { min-height: 0; }
  .lockup img { height: 2rem; }
}

/* ---------- v5: town index without photos ---------- */
.town-index > li.no-img { grid-template-columns: 1fr; }
@media (min-width: 48em) { .town-index > li.no-img { grid-template-columns: 1fr; } }

/* ---------- v5: forms (Web3Forms, no JavaScript) ---------- */
.form { display: grid; gap: 1rem; max-width: 36rem; margin: 0 0 1.5rem; }
.field { display: grid; gap: 0.35rem; }
.field label { font-weight: 700; }
.field .req, .field .opt { font-weight: 400; color: var(--gray); font-size: var(--fs-small); }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field select, .field textarea {
  font: inherit; color: var(--black); background: var(--white); border: 2px solid var(--gray); border-radius: 0; padding: 0.6rem 0.75rem; width: 100%;
}
.field textarea { resize: vertical; min-height: 6rem; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; border-color: var(--black); }
.field--check { grid-template-columns: auto 1fr; align-items: start; gap: 0.6rem; }
.field--check input { width: 1.25rem; height: 1.25rem; margin: 0.2rem 0 0; accent-color: var(--red); }
.field--check label { font-weight: 400; font-size: var(--fs-small); }
.form .btn { justify-self: start; cursor: pointer; font: inherit; font-weight: 700; }
.form-note { font-size: var(--fs-small); margin: 0; }
.hp { display: none !important; }

/* ---------- v5: schools page (no home-value CTAs) ---------- */
.no-home-ctas .header-actions .btn-ghost[href="/home-value/"] { display: none; }

/* ---------- needs-fred: visible slots for photos, reviews, numbers, videos and confirmations Fred still owes ---------- */
.needs-fred { border: 2px dashed var(--gray); background: var(--paper); color: var(--black); padding: 1rem 1.25rem; margin: 0 0 1.5rem; max-width: var(--measure); }
.needs-fred__tag { display: inline-block; font-size: var(--fs-small); font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--red); margin-bottom: 0.35rem; }
.needs-fred__text { margin: 0; }
.needs-fred--photo { display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; width: 100%; max-width: none; margin: 0; padding: 1rem; }
.needs-fred--photo .needs-fred__text { font-size: var(--fs-small); max-width: 32ch; }
.needs-fred--inline { display: inline; padding: 0.1rem 0.4rem; margin: 0; font-size: var(--fs-small); border-width: 1px; }
.town-photo .needs-fred--photo { margin-bottom: 2rem; max-height: 34rem; }

/* ---------- Oct 21 2026 (Fred's notes): stacked contact block, editorial home-value band, reviews, towns list ---------- */
:root { --font-serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif; --cream: #FBF8F3; }
.agent-id--stack { margin: 0.5rem 0 0; }
.footer-legal .agent-id__line + .agent-id__line { margin-top: 0; }
.footer-legal .agent-id__broker { margin-top: 0.75rem !important; }
.footer-legal .agent-id__fine { margin-top: 0.75rem !important; color: #CFCFCF; }

.hv-feature { background: var(--cream); border-bottom: 1px solid var(--rule); padding: clamp(3.5rem, 2rem + 6vw, 7rem) 0; text-align: center; }
.hv-feature__inner { max-width: 62rem; }
.hv-feature__kicker { font-size: var(--fs-small); letter-spacing: 0.16em; text-transform: uppercase; color: var(--red); margin: 0 0 1.25rem; }
.hv-feature h2 { font-family: var(--font-serif); font-weight: 300; font-size: clamp(2.25rem, 1.3rem + 3.8vw, 4.25rem); line-height: 1.12; letter-spacing: -0.01em; max-width: 20ch; margin: 0 auto 1.5rem; }
.hv-feature h2 em { font-style: italic; color: var(--red); }
.hv-feature__lede { font-family: var(--font-serif); font-style: italic; font-size: clamp(1.15rem, 1rem + 0.6vw, 1.4rem); color: var(--gray); max-width: 44ch; margin: 0 auto 2rem; line-height: 1.5; }
.hv-feature .btn-row { justify-content: center; align-items: center; gap: 1rem 2rem; }
.hv-feature .btn { font-weight: 400; letter-spacing: 0.02em; padding: 0.9rem 1.75rem; }
.hv-feature__link { color: var(--black); }

.reviews { list-style: none; padding: 0; margin: 0 0 1.5rem; display: grid; gap: 2rem 2.5rem; grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); }
.reviews li { margin: 0; }
.review { margin: 0; border-top: 1px solid var(--black); padding-top: 1.25rem; }
.review blockquote { margin: 0 0 0.75rem; font-family: var(--font-serif); font-size: 1.125rem; line-height: 1.6; font-weight: 400; }
.review blockquote p { margin: 0; }
.review figcaption { font-size: var(--fs-small); color: var(--gray); font-style: italic; }

.towns-served .lede-sm { max-width: var(--measure); font-size: 1.125rem; }
.town-groups { display: grid; gap: 2rem 2.5rem; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); margin: 2rem 0 0; }
.town-groups h3 { font-size: var(--fs-body); text-transform: uppercase; letter-spacing: 0.08em; font-weight: 700; border-bottom: 1px solid var(--rule); padding-bottom: 0.5rem; margin-bottom: 0.75rem; }
.town-groups h3 a { color: var(--black); }
.town-groups ul { list-style: none; padding: 0; margin: 0; }
.town-groups li { margin: 0 0 0.3rem; }
/* Oct 21 (Fred): subtler "Guide coming soon" tags */
.status { font-size: 0.6875rem; font-weight: 400; letter-spacing: 0.06em; text-transform: uppercase; color: var(--gray); border: 1px solid var(--rule); padding: 0.05rem 0.4rem; margin-left: 0.5rem; vertical-align: middle; line-height: 1.5; }
.town-index h3 .status { font-size: 0.6875rem; letter-spacing: 0.06em; }
.menu .status { font-size: 0.625rem; }

/* Oct 21: split address fields */
.addr-row { display: grid; grid-template-columns: 2fr 0.8fr 1.2fr; gap: 0.75rem; }
@media (max-width: 30em) { .addr-row { grid-template-columns: 1fr 1fr; } .addr-row .field:first-child { grid-column: 1 / -1; } }
.field input[type="number"] { font: inherit; }

/* Photo + content two-column blocks (/buy/, /sell/), Oct 21 2026 */
.photo-split { display: grid; gap: 2rem; align-items: start; margin: 0 0 2.5rem; }
.photo-split > img { width: 100%; max-width: 22rem; aspect-ratio: 4 / 5; object-fit: cover; }
.photo-split .quickread { margin: 0; }
@media (min-width: 48em) { .photo-split { grid-template-columns: 18rem 1fr; gap: 3rem; } }
.photo-split--wide > img { max-width: none; aspect-ratio: 3 / 2; }
@media (min-width: 56em) { .photo-split--wide { grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; } }

/* ---------- Oct 22 2026 (Fred): distraction-free, step-by-step home value flow (/home-value/, /home-value/details/) ---------- */
.hv-page { background: var(--cream); }
.hv-head { border-bottom: 1px solid var(--rule); background: var(--white); }
.hv-head__row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1rem; padding-top: 0.8rem; padding-bottom: 0.8rem; }
.hv-head .brand__name { font-size: var(--fs-body); font-weight: 400; }
.hv-wrap { max-width: 44rem; }
.hv-intro { padding: clamp(2rem, 1rem + 4vw, 4rem) 0 1.5rem; }
.hv-kicker { font-size: var(--fs-small); letter-spacing: 0.14em; text-transform: uppercase; color: var(--red); margin: 0 0 1rem; }
.hv-page h1 { font-family: var(--font-serif); font-weight: 300; font-size: clamp(2.2rem, 1.4rem + 3.4vw, 3.6rem); line-height: 1.1; letter-spacing: -0.01em; margin: 0 0 1rem; max-width: 18ch; }
.hv-page h1 em, .step__h em { font-style: italic; color: var(--red); }
.hv-lede { font-family: var(--font-serif); font-style: italic; font-size: clamp(1.1rem, 1rem + 0.4vw, 1.3rem); color: var(--gray); line-height: 1.5; max-width: 48ch; margin: 0; }
.stepform { max-width: none; gap: 1.25rem; margin-bottom: clamp(2.5rem, 2rem + 3vw, 4.5rem); }
.stepform .field label, .stepform .field legend { font-weight: 400; }
.stepform fieldset.field { border: 0; padding: 0; margin: 0; }
.stepform fieldset.field legend { padding: 0; margin-bottom: 0.4rem; }
.stepform .choices { display: flex; flex-wrap: wrap; gap: 0.5rem 0.6rem; }
.stepform .choice { display: inline-flex; align-items: center; gap: 0.5rem; background: var(--white); border: 1px solid var(--rule); padding: 0.5rem 0.9rem; min-height: 2.75rem; cursor: pointer; font-weight: 400; }
.stepform .choice:hover { border-color: var(--gray); }
.stepform .choice:has(input:checked) { border-color: var(--red); box-shadow: inset 0 0 0 1px var(--red); }
.stepform .choice input { width: 1.1rem; height: 1.1rem; margin: 0; accent-color: var(--red); }
.stepform .hint { font-size: var(--fs-small); color: var(--gray); margin: 0; }
.stepform .row3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr)); gap: 0.75rem; }
.stepform .row2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 0.75rem 1rem; }
.stepform .field input[type="text"], .stepform .field input[type="email"], .stepform .field input[type="tel"], .stepform .field select, .stepform .field textarea { border-width: 1px; border-color: var(--gray); }
.step { border: 0; border-top: 1px solid var(--rule); margin: 0; padding: 1.75rem 0 0; min-width: 0; }
.step__h { font-family: var(--font-serif); font-weight: 300; font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.3rem); line-height: 1.15; letter-spacing: -0.005em; margin: 0 0 0.5rem; }
.step__h:focus { outline: none; }
.step__h:focus-visible { outline: 2px solid var(--black); outline-offset: 4px; }
.step__n { display: block; font-family: var(--font); font-size: var(--fs-small); font-weight: 400; letter-spacing: 0.14em; color: var(--gray); margin-bottom: 0.4rem; }
.step__lede { font-family: var(--font-serif); font-style: italic; color: var(--gray); margin: 0 0 1rem; }
.step__body { display: grid; gap: 1.1rem; margin-top: 1rem; }
.step__nav { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1rem; margin-top: 1.75rem; }
.step__nav .btn { font-weight: 400; letter-spacing: 0.02em; min-width: 7rem; cursor: pointer; font-family: inherit; font-size: var(--fs-body); }
.step__skip { background: none; border: 0; padding: 0.5rem 0; min-height: 2.75rem; color: var(--gray); text-decoration: underline; text-underline-offset: 0.18em; font: inherit; font-size: var(--fs-small); cursor: pointer; margin-left: auto; }
.step__skip:hover { color: var(--black); }
.stepbar { position: sticky; top: 0; z-index: 5; background: var(--cream); padding: 0.75rem 0 0.25rem; }
.stepbar__track { height: 3px; background: var(--rule); }
.stepbar__fill { height: 3px; width: 0; background: var(--red); transition: width 0.25s ease; }
.stepbar__label { font-size: var(--fs-small); color: var(--gray); margin: 0.4rem 0 0; letter-spacing: 0.04em; }
@media (prefers-reduced-motion: reduce) { .stepbar__fill { transition: none; } }
/* without JS every step shows and the step buttons hide: the full form still works */
.step__nav[data-stepnav] { display: none; }
.js .stepform[data-ready] .step__nav[data-stepnav] { display: flex; }
.js .stepform[data-ready] .step { display: none; border-top: 0; padding-top: 0.5rem; }
.js .stepform[data-ready] .step.is-current { display: block; }
.js .stepform[data-ready] .form-note { margin-top: 0.5rem; }
.field input[aria-invalid="true"], .field select[aria-invalid="true"] { border-color: var(--red); }
.hv-more { background: var(--white); border-top: 1px solid var(--rule); padding: clamp(2.5rem, 2rem + 3vw, 4.5rem) 0; }
.hv-more__h { font-family: var(--font-serif); font-weight: 300; font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem); line-height: 1.2; }
.hv-more .faq h3 { font-family: var(--font-serif); font-weight: 400; font-size: 1.2rem; }
.hv-more section + section { margin-top: 2.5rem; }
.hv-foot { background: var(--white); border-top: 1px solid var(--rule); padding: 2rem 0 2.5rem; font-size: var(--fs-small); color: var(--gray); }
.hv-foot .agent-id__line { color: var(--gray); }
.hv-foot .agent-id__broker, .hv-foot .agent-id__fine { margin-top: 0.6rem; }
.hv-foot__row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.5rem; margin-top: 1.25rem; }
.hv-foot__row img { background: none; }
.hv-foot__links { list-style: none; display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; padding: 0; margin: 0; }
.hv-foot__links a { color: var(--gray); display: inline-flex; min-height: 2.75rem; align-items: center; }
.hv-foot__small { margin: 0.75rem 0 0; }
@media (max-width: 30em) { .step__skip { margin-left: 0; flex-basis: 100%; text-align: left; } .step__nav .btn { flex: 1 1 auto; } }

/* ---------- Oct 23 2026: buy/sell step timeline (numbers styled like .step__n, titles in the light serif) ---------- */
.timeline { list-style: none; padding: 0; margin: 0 0 2rem; border-top: 4px solid var(--black); counter-reset: tl; }
.timeline > li { counter-increment: tl; border-bottom: 1px solid var(--rule); padding: 1.25rem 0; margin: 0; display: grid; gap: 0.25rem 1.5rem; }
.timeline > li::before { content: counter(tl, decimal-leading-zero); font-size: var(--fs-small); letter-spacing: 0.14em; color: var(--gray); padding-top: 0.3rem; }
@media (min-width: 40em) { .timeline > li { grid-template-columns: 3rem 1fr; } }
.timeline h3, .article-body .timeline h3 { font-family: var(--font-serif); font-weight: 300; font-size: clamp(1.35rem, 1.15rem + 0.8vw, 1.75rem); line-height: 1.2; letter-spacing: -0.005em; margin: 0 0 0.4rem; }
.timeline p { margin: 0 0 0.4rem; }
.timeline__note { font-family: var(--font-serif); font-style: italic; color: var(--gray); font-size: var(--fs-small); }
.article-body .cols-2 h3 { margin-top: 1rem; }
.article-body .video-list { margin: 1.5rem 0 2rem; }

/* ---------- launch mode (2026-10-27): <html class="launch"> hides every Needed-from-Fred slot and any wrapper left empty without it.
   Slots stay in the source. To show them again on the preview, remove class="launch" from <html>. ---------- */
html.launch .needs-fred, html.launch .launch-hide { display: none !important; }
html.launch .town-index > li:has(> .needs-fred) { grid-template-columns: 1fr; }
/* Equal Housing Opportunity mark: inline SVG, inherits text color (white on dark footer, black on light pages) */
.eho-logo { display: block; flex: none; color: inherit; }
/* Teaser cards that link to a market update page: "See the full update →", no play icon (2026-10-27) */
.facade__more { position: absolute; left: 1rem; bottom: 1rem; display: inline-flex; align-items: center; gap: 0.4rem; background: var(--red); color: var(--white); font-weight: 700; padding: 0.6rem 1rem; }
.facade--link:hover .facade__more { background: var(--red-dark); }

/* Google Maps embed on /contact/ and Google Business Profile links (2026-10-27) */
.map-embed { position: relative; width: 100%; aspect-ratio: 4 / 3; max-height: 400px; margin: 1rem 0 0.75rem; border-top: 4px solid var(--black); background: var(--paper, #f5f5f5); overflow: hidden; }
.map-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }
@media (max-width: 40rem) { .map-embed { aspect-ratio: auto; height: 300px; } }
.gbp-line { font-weight: 700; margin: 0.75rem 0 0; }
