/* MIRÓ Real Advisors — miroreal.com
   Tokens come from the MIRÓ Real Advisors design system on claude.ai (tokens.json, checked
   2026-11-04: identical). Website/design/style-guide.md records how the site applies them. */

:root {
  --navy: #07274E;
  --navy-deep: #031938;
  --navy-slate: #2A4364;
  --gold: #C7AD7B;        /* brand gold from the MIRÓ banner (John, 2026-10-19) */
  --gold-text: #7A6A3C;   /* gold-colored text on light backgrounds */
  --copper: #C38736;      /* Ó accent and small rules only */
  --ink: #1E2733;
  --muted: #4A5361;
  --paper: #FFFFFF;
  --tint: #F6F3EC;
  --rule: #DAD5C7;
  --on-navy: #D5DCE6;

  --font-display: "Jost", "Futura", "Century Gothic", system-ui, sans-serif;
  --font-body: "Source Sans 3", "Segoe UI", system-ui, sans-serif;

  --wrap: 1160px;
  --gutter: clamp(16px, 4vw, 32px);
  --radius: 6px;
  --shadow: 0 1px 2px rgba(7, 39, 78, .06), 0 8px 24px rgba(7, 39, 78, .08);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.125rem/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); text-underline-offset: .18em; }
a:hover { color: var(--gold-text); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 2px; }
h1, h2, h3 { font-family: var(--font-display); color: var(--navy); line-height: 1.15; margin: 0 0 .5em; font-weight: 500; }
h1 { font-size: clamp(2.1rem, 2.6vw + 1.2rem, 3.4rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.6rem, 1.2vw + 1.1rem, 2.1rem); }
h3 { font-size: 1.25rem; font-weight: 600; }
p { margin: 0 0 1em; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--gold); color: var(--navy); padding: 8px 14px; z-index: 50; font-family: var(--font-display); }
.skip:focus { left: 8px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

.kicker {
  font: 500 .8rem/1.2 var(--font-display);
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--gold-text); margin: 0 0 .9rem;
}
.on-navy .kicker, .hero .kicker, .cta-band .kicker { color: var(--gold); }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 62ch; }

/* ---------- Logo (official files from the design system; never set in type) ---------- */
/* Header: horizontal lockup, 36px tall = 215px wide (min 150px). Phones: wordmark (min 50px). */
.logo { display: block; line-height: 0; flex: none; }
.logo img { height: 36px; width: auto; }
.logo--footer img { height: auto; width: 180px; } /* primary lockup, min 110px wide */

/* ---------- Header ---------- */
.site-header { background: var(--navy); color: #fff; position: sticky; top: 0; z-index: 20; border-bottom: 1px solid rgba(199, 173, 123, .35); }
.header-row { display: flex; align-items: center; gap: 24px; min-height: 76px; }
.brand-group { display: flex; align-items: center; gap: 16px; margin-right: auto; } /* ≥ half the M: logo clear space */
.site-header .wrap { max-width: 1280px; } /* the full EN/ES menu needs ~1190px next to the logo */
.brand-divider { width: 1px; align-self: stretch; margin: 18px 0; background: var(--gold); opacity: .6; }
/* C21 North East is secondary to John's own brand (John, 2026-10-19): about 62% of the M's
   height, after a thin gold rule (design system, Co-branding) */
.c21-logo { height: 17px; width: auto; }
.site-nav ul { display: flex; gap: 18px; list-style: none; margin: 0; padding: 0; }
.site-nav a, .nav-soon { white-space: nowrap; }
.site-nav a { color: var(--on-navy); text-decoration: none; font: 500 .95rem/1 var(--font-display); letter-spacing: .02em; padding: 6px 0; border-bottom: 2px solid transparent; }
.site-nav a:hover { color: #fff; border-bottom-color: rgba(199, 173, 123, .45); }
.site-nav a[aria-current="page"] { color: #fff; border-bottom-color: var(--gold); }
.nav-soon { color: rgba(213, 220, 230, .45); font: 500 .95rem/1 var(--font-display); letter-spacing: .02em; padding: 6px 0; cursor: default; }
.header-actions { display: flex; align-items: center; gap: 14px; }
.header-actions .btn--sm, .lang-switch { white-space: nowrap; }
.lang-switch { color: var(--gold); font: 500 .9rem/1 var(--font-display); text-decoration: none; letter-spacing: .04em; }
.lang-switch:hover { color: #fff; }
.menu-toggle { display: none; background: none; border: 1px solid rgba(255,255,255,.4); color: #fff; border-radius: 4px; padding: 8px 12px; font: 500 .9rem/1 var(--font-display); cursor: pointer; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  font: 500 1rem/1 var(--font-display); letter-spacing: .03em; text-decoration: none;
  padding: 15px 22px; border-radius: 4px; border: 1.5px solid transparent; cursor: pointer;
  transition: background-color .15s, color .15s, border-color .15s;
}
.btn svg { width: 18px; height: 18px; }
.btn--gold { background: var(--gold); color: var(--navy); border-color: var(--gold); }
.btn--gold:hover { background: #fff; color: var(--navy); border-color: #fff; }
.btn--outline-light { color: #fff; border-color: rgba(255,255,255,.7); }
.btn--outline-light:hover { background: #fff; color: var(--navy); border-color: #fff; }
.btn--navy { background: var(--navy); color: #fff; border-color: var(--navy); }
.btn--navy:hover { background: var(--navy-slate); color: #fff; border-color: var(--navy-slate); }
.btn--outline-navy { color: var(--navy); border-color: var(--navy); }
.btn--outline-navy:hover { background: var(--navy); color: #fff; }
.btn--sm { padding: 10px 14px; font-size: .9rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Stripes motif ---------- */
.striped { position: relative; overflow: hidden; isolation: isolate; }
.striped::before, .striped::after {
  content: ""; position: absolute; top: -20%; bottom: -20%; z-index: -1;
  background: var(--gold); transform: skewX(-22deg);
}
.striped::before { right: 31%; width: 7px; }
.striped::after { right: calc(31% + 22px); width: 2px; opacity: .75; }

/* ---------- Hero ---------- */
.hero { background: var(--navy); color: var(--on-navy); padding: clamp(48px, 7vw, 96px) 0; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.hero h1 { color: #fff; }
.hero .sub { font-size: 1.22rem; max-width: 56ch; margin-bottom: 1.8rem; }
.hero--compact { padding: clamp(40px, 5vw, 72px) 0; }
.hero--compact .wrap { grid-template-columns: 1fr; }
.hero--compact .sub:last-child { margin-bottom: 0; }
.hero-panel {
  margin: 0; justify-self: center; text-align: center; color: #fff;
  background: rgba(42, 67, 100, .55); border: 1px solid rgba(199, 173, 123, .35);
  padding: 28px 32px 24px; border-radius: var(--radius); backdrop-filter: blur(2px);
}
.portrait { width: 220px; height: 220px; border-radius: 50%; object-fit: cover; object-position: 50% 18%; border: 3px solid var(--gold); margin: 0 auto 16px; background: var(--navy-slate); }
.portrait-name { font: 600 1.15rem/1.3 var(--font-display); margin: 0; }
.portrait-meta { font-size: .95rem; color: var(--on-navy); margin: .2rem 0 0; }
.portrait-meta strong { color: var(--gold); font-weight: 600; }

/* ---------- Sections ---------- */
.section { padding: clamp(56px, 7vw, 88px) 0; }
.section--tint { background: var(--tint); }
.section-head { max-width: 760px; margin-bottom: 40px; }
.section-head--center { text-align: center; margin-left: auto; margin-right: auto; }
.section-head--center .lead { margin-left: auto; margin-right: auto; }

.split { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 56px; align-items: start; }
.prose p { max-width: 66ch; }
.pull { font: 500 1.35rem/1.4 var(--font-display); color: var(--navy); border-left: 3px solid var(--gold); padding-left: 18px; margin: 1.6rem 0 0; max-width: 40ch; }

.pay-card { background: var(--navy); color: var(--on-navy); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow); position: relative; overflow: hidden; }
.pay-card h3 { color: #fff; }
.pay-card .kicker { color: var(--gold); }
.pay-card.striped::before { right: 18px; }
.pay-card.striped::after { right: 40px; }
.checklist { list-style: none; margin: 0; padding: 0; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; border-top: 1px solid rgba(213, 220, 230, .14); }
.checklist li:first-child { border-top: 0; }
.checklist svg { flex: none; width: 22px; height: 22px; color: var(--gold); margin-top: 3px; }

/* ---------- Cards ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 22px; }
.cards--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.cards--4 .card p { overflow-wrap: anywhere; }
.cards--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } /* Contact page, 3 cards since 2026-11-12 */
.card { background: #fff; border: 1px solid var(--rule); border-top: 3px solid var(--gold); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.card p { color: var(--muted); margin: 0; }
.icon-circle { width: 52px; height: 52px; border-radius: 50%; background: var(--navy); border: 2px solid var(--gold); display: grid; place-items: center; margin-bottom: 18px; }
.icon-circle svg { width: 24px; height: 24px; color: var(--gold); }
.card--cta { background: var(--navy); border-color: var(--navy); border-top-color: var(--gold); color: var(--on-navy); display: flex; flex-direction: column; justify-content: center; gap: 18px; }
.card--cta h3 { color: #fff; margin: 0; }
.card--cta p { color: var(--on-navy); }
.card--cta .btn { align-self: flex-start; }
.card--guide { border-top-width: 1px; box-shadow: none; display: flex; flex-direction: column; gap: 14px; }
.card--guide h3 { font-size: 1.08rem; margin: 0; }
.badge { align-self: flex-start; font: 500 .72rem/1 var(--font-display); letter-spacing: .14em; text-transform: uppercase; color: var(--gold-text); border: 1px solid var(--gold); border-radius: 999px; padding: 6px 10px; }

/* ---------- Steps ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 34px 28px; counter-reset: step; }
.steps li { counter-increment: step; position: relative; padding-top: 64px; }
.steps li::before {
  content: counter(step); position: absolute; top: 0; left: 0;
  width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center;
  border: 2px solid var(--gold); color: var(--navy); background: #fff;
  font: 600 1.1rem/1 var(--font-display);
}
.steps--plain { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.steps--plain li { padding-top: 0; }
.steps--plain li::before { content: none; }
.steps--three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.steps h3 { margin-bottom: .3em; }
.steps p { color: var(--muted); margin: 0; }

/* ---------- Form ---------- */
.form-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 56px; align-items: start; }
.direct-contact { list-style: none; padding: 0; margin: 1.5rem 0 0; }
.direct-contact li { display: flex; gap: 12px; align-items: center; padding: 8px 0; }
.direct-contact svg { width: 22px; height: 22px; color: var(--gold-text); flex: none; }
.form-card { background: #fff; border: 1px solid var(--rule); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow); }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field--full { grid-column: 1 / -1; }
.field label, .field legend { font: 500 .92rem/1.3 var(--font-display); color: var(--navy); }
.req { color: var(--gold-text); }
.field input, .field select, .field textarea {
  font: 400 1rem/1.4 var(--font-body); color: var(--ink);
  border: 1px solid #B9B3A3; border-radius: var(--radius); padding: 12px 14px; background: #fff; width: 100%;
}
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid var(--gold); outline-offset: 1px; border-color: var(--navy); }
fieldset.field { border: 0; padding: 0; margin: 0; }
.radio-row { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.radio-row label { font: 400 1rem/1.4 var(--font-body); color: var(--ink); display: flex; gap: 8px; align-items: center; }
.radio-row input { width: 18px; height: 18px; accent-color: var(--navy); }
.form-actions { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.form-note { font-size: .95rem; color: var(--muted); margin: 0; }
.form-status { margin-top: 16px; padding: 12px 14px; border-radius: var(--radius); background: var(--tint); border-left: 3px solid var(--gold); color: var(--navy); font-size: .98rem; }

/* Placeholders that need John's input — visible on purpose in the prototype */
.todo { border: 1.5px dashed var(--copper); border-radius: var(--radius); padding: 10px 12px; font-size: .92rem; color: var(--muted); background: rgba(195, 135, 54, .06); }
.on-navy .todo, .site-footer .todo { color: var(--on-navy); background: rgba(195, 135, 54, .12); }

/* ---------- Towns ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; margin: 0; padding: 0; }
.chips li { border: 1px solid var(--navy); color: var(--navy); border-radius: 999px; padding: 9px 18px; font: 500 .98rem/1 var(--font-display); background: #fff; }
/* "Your MA town? →" after each town list (John, 2026-11-10): gold, like the home page. */
.chips li.ask-town { background: var(--gold); border-color: var(--gold); }
.chips li.ask-town a { color: var(--navy); }
.town-card--ask { border-color: var(--gold); justify-content: center; }
.town-card--ask a { color: var(--navy); text-decoration-color: var(--gold); }
.footer-towns .ask-town a { color: var(--gold); }

/* ---------- FAQ ---------- */
.faq { max-width: 860px; }
.faq details { border-top: 1px solid var(--rule); }
.faq details:last-child { border-bottom: 1px solid var(--rule); }
.faq summary {
  cursor: pointer; list-style: none; padding: 22px 44px 22px 0; position: relative;
  font: 500 1.12rem/1.4 var(--font-display); color: var(--navy);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 50%; transform: translateY(-50%); font: 400 1.6rem/1 var(--font-display); color: var(--gold-text); }
.faq details[open] summary::after { content: "−"; }
.faq details p { color: var(--muted); margin: 0 0 22px; max-width: 70ch; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--navy); color: var(--on-navy); padding: 64px 0; }
.cta-band .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px; }
.cta-band h2 { color: #fff; margin: 0 0 .3em; }
.cta-band p { margin: 0; }
.cta-band a:not(.btn) { color: #fff; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-deep); color: var(--on-navy); padding: 56px 0 28px; font-size: 1rem; border-top: 3px solid var(--gold); }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 40px; }
.footer-towns { columns: 2; column-gap: 18px; }
.footer-brand .logo { margin-bottom: 22px; }
.tagline { font: 500 1.05rem/1.4 var(--font-display); color: #fff; margin: 0 0 .3rem; }
.tagline-sub { color: var(--gold); font-style: italic; margin: 0; }
.site-footer h3 { color: var(--gold); font: 500 .8rem/1.2 var(--font-display); letter-spacing: .18em; text-transform: uppercase; margin-bottom: 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { padding: 3px 0; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: var(--gold); text-decoration: underline; }
.footer-c21 { height: 24px; width: auto; margin-bottom: 14px; } /* 62% of the M in the footer lockup: C21 stays secondary */
.eho { display: flex; align-items: center; gap: 10px; margin-top: 16px; font-size: .92rem; }
.eho img { height: 34px; width: auto; flex: none; opacity: .85; } /* official HUD logo, white for dark grounds */
.footer-bottom { margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(213, 220, 230, .16); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: .9rem; }

/* ---------- Breadcrumbs ---------- */
.breadcrumbs { background: var(--navy-deep); font-size: .9rem; }
.breadcrumbs ol { list-style: none; margin: 0; padding: 10px 0; display: flex; flex-wrap: wrap; gap: 6px; }
.breadcrumbs li { color: var(--on-navy); }
.breadcrumbs li + li::before { content: "›"; margin-right: 6px; color: var(--gold); }
.breadcrumbs a { color: var(--on-navy); text-decoration: none; }
.breadcrumbs a:hover { color: #fff; text-decoration: underline; }

/* ---------- Town facts ---------- */
.facts { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--rule); border-radius: var(--radius); overflow: hidden; }
.facts th, .facts td { text-align: left; vertical-align: top; padding: 14px 18px; border-bottom: 1px solid var(--rule); }
.facts tr:last-child th, .facts tr:last-child td { border-bottom: 0; }
.facts th { font: 500 .98rem/1.4 var(--font-display); color: var(--navy); width: 38%; background: var(--tint); }
.facts sup a { text-decoration: none; color: var(--gold-text); font-size: .75em; margin-left: 2px; }
.sources { margin-top: 14px; font-size: .9rem; color: var(--muted); }
.sources summary { cursor: pointer; font: 500 .9rem/1.4 var(--font-display); color: var(--navy); }
.sources ol { margin: 10px 0 0; padding-left: 22px; }
.sources a { color: var(--muted); }
.know-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.know-list li { background: #fff; border: 1px solid var(--rule); border-left: 3px solid var(--gold); border-radius: var(--radius); padding: 16px 18px; }
.know-list strong { font-family: var(--font-display); font-weight: 600; color: var(--navy); display: block; margin-bottom: 4px; }
.know-list p { margin: 0; color: var(--muted); }
.flag { display: block; margin-top: 6px; font-size: .92rem; color: var(--gold-text); font-style: italic; }
.know-src { display: block; margin-top: 6px; font-size: .85rem; }
.know-src a { color: var(--muted); }
.john-note { background: var(--navy); color: var(--on-navy); border-radius: var(--radius); padding: 26px 28px; border-left: 4px solid var(--gold); }
.john-note h3 { color: #fff; margin-bottom: .4em; }
.john-note .todo { color: var(--on-navy); }
.areas-src { font-size: .85rem; color: var(--muted); margin-top: 10px; }
.areas-src a { color: var(--muted); }

/* ---------- Town cards (home page) ---------- */
.town-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.town-card { background: #fff; border: 1px solid var(--rule); border-radius: var(--radius); padding: 18px; display: flex; flex-direction: column; gap: 10px; }
.town-card h3 { margin: 0; font-size: 1.12rem; }
.town-card .links { display: flex; gap: 14px; font: 500 .95rem/1 var(--font-display); }
.town-card .badge { font-size: .68rem; }

/* ---------- RealScout search ---------- */
.rs-search { background: #fff; border: 1px solid var(--rule); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); display: flex; flex-direction: column; align-items: center; gap: 10px; }
.rs-search .form-note { text-align: center; }
realscout-advanced-search {
  --rs-as-button-text-color: #07274E;
  --rs-as-background-color: #ffffff;
  --rs-as-button-color: #C7AD7B;
  --rs-as-widget-width: 100% !important;
  display: block; width: 100%; max-width: 640px;
}

/* ---------- Boston skyline (original drawing) ---------- */
.skyline { position: absolute; left: 0; bottom: 0; width: 100%; height: auto; max-height: 62%; z-index: -1; pointer-events: none; }
.skyline--solid > *:not(.cable) { fill: currentColor; }
.skyline--line > *:not(.cable) { fill: none; stroke: currentColor; stroke-width: 1.4; }
.skyline .cable { stroke: currentColor; stroke-width: 1; fill: none; }

/* ---------- Home page design options (temporary, for John's review 2026-11-04) ---------- */
.option-bar { background: var(--navy-slate); color: #fff; font: 500 .9rem/1.3 var(--font-display); }
.option-bar .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 20px; padding-top: 9px; padding-bottom: 9px; }
.option-bar a { color: var(--gold); }

/* A · Skyline at dusk: navy, gold line-drawn skyline, see-through portrait card */
.hero--sky { padding-bottom: clamp(110px, 13vw, 190px); }
.hero--sky .skyline { color: var(--gold); opacity: .34; }
.hero--sky .hero-panel { background: rgba(255, 255, 255, .05); border-color: rgba(199, 173, 123, .5); backdrop-filter: blur(6px); }

/* B · Light and open: warm light ground, navy type, faint navy skyline, frosted card */
.hero--light { position: relative; overflow: hidden; isolation: isolate; background: linear-gradient(180deg, #fff 0%, var(--tint) 100%); color: var(--ink); padding-bottom: clamp(110px, 13vw, 190px); border-bottom: 1px solid var(--rule); }
.hero--light h1 { color: var(--navy); }
.hero--light .kicker { color: var(--gold-text); }
.hero--light .sub { color: var(--muted); }
.hero--light .skyline { color: var(--navy); opacity: .08; }
.hero--light .hero-panel { background: rgba(255, 255, 255, .72); border: 1px solid var(--rule); box-shadow: var(--shadow); backdrop-filter: blur(6px); color: var(--navy); }
.hero--light .portrait-meta { color: var(--muted); }
.hero--light .portrait-meta strong { color: var(--gold-text); }

/* C · Search first: deep navy, large faint skyline, glass search panel, slim agent strip */
.hero--glass { position: relative; overflow: hidden; isolation: isolate; background: linear-gradient(180deg, var(--navy) 0%, var(--navy-deep) 100%); padding: clamp(48px, 6vw, 84px) 0 clamp(120px, 14vw, 200px); }
.hero--glass .wrap { grid-template-columns: 1fr; justify-items: center; text-align: center; gap: 30px; }
.hero--glass .sub { margin-left: auto; margin-right: auto; margin-bottom: 0; }
.hero--glass .skyline { color: #fff; opacity: .1; max-height: 72%; }
.glass-card { width: 100%; max-width: 780px; background: rgba(255, 255, 255, .07); border: 1px solid rgba(199, 173, 123, .45); border-radius: var(--radius); padding: 22px; backdrop-filter: blur(8px); }
.glass-card-title { font: 500 .8rem/1.2 var(--font-display); letter-spacing: .18em; text-transform: uppercase; color: var(--gold); margin: 0 0 14px; }
.glass-card .rs-search { box-shadow: none; }
.agent-strip { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px 22px; text-align: left; }
.agent-strip .portrait-name { color: #fff; }
.portrait--sm { width: 72px; height: 72px; margin: 0; }

/* D · El Pálido's Revere Beach spec (2026-11-04): photo + tint, glass panel, header over the photo */
.option-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; box-shadow: 0 -4px 16px rgba(3, 25, 56, .25); }
.has-header-overlay { --hdr: 112px; }
.has-header-overlay .site-header { background: linear-gradient(90deg, rgba(7, 39, 78, .9) 0%, rgba(7, 39, 78, .74) 100%); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-bottom-color: rgba(255, 255, 255, .14); }
.has-header-overlay .header-row { min-height: var(--hdr); }
.has-header-overlay .site-nav a { color: #fff; font-size: 1rem; }
.lang-pair { font: 500 1rem/1 var(--font-display); color: rgba(255, 255, 255, .55); white-space: nowrap; }
.lang-pair .is-current { color: #fff; }
/* Over a photo, gold text can fall to 3:1 against bright sky: links go white with a gold underline (6.6:1 worst case) */
.has-header-overlay .lang-switch { color: #fff; text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: .3em; }
.menu-toggle--icon { border: 0; padding: 14px 8px; }
.burger, .burger::before, .burger::after { display: block; width: 24px; height: 2px; background: #fff; border-radius: 1px; }
.burger { position: relative; }
.burger::before, .burger::after { content: ""; position: absolute; left: 0; }
.burger::before { top: -7px; }
.burger::after { top: 7px; }

.hero--photo {
  position: relative; isolation: isolate; overflow: hidden; color: #fff;
  margin-top: calc(-1 * var(--hdr, 0px)); padding: calc(var(--hdr, 0px) + clamp(56px, 7vw, 104px)) 0 clamp(56px, 7vw, 104px); min-height: clamp(560px, 44vw, 720px);
  display: flex; align-items: center;
  /* Placeholder until John picks the real Revere Beach photo: a navy-to-slate wash */
  background: linear-gradient(110deg, var(--navy-deep) 0%, var(--navy-slate) 70%, #4F6E8F 100%);
}
.hero--photo.has-photo { background: var(--navy-slate) var(--hero-photo) 68% center / cover no-repeat; }
.photo-tag { position: absolute; right: 16px; bottom: 14px; z-index: 1; font: 500 .75rem/1 var(--font-display); letter-spacing: .06em; color: #fff; background: rgba(3, 25, 56, .7); padding: 6px 10px; border-radius: 4px; }
.hero--photo::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  /* Smooth, eased fade (no visible edge), lighter as in El Pálido's original, plus a soft glow behind the words */
  background: radial-gradient(ellipse 60% 85% at 26% 52%, rgba(7, 39, 78, 0.62) 0%, rgba(7, 39, 78, 0.62) 5%, rgba(7, 39, 78, 0.62) 10%, rgba(7, 39, 78, 0.62) 15%, rgba(7, 39, 78, 0.62) 20%, rgba(7, 39, 78, 0.62) 25%, rgba(7, 39, 78, 0.62) 30%, rgba(7, 39, 78, 0.62) 35%, rgba(7, 39, 78, 0.62) 40%, rgba(7, 39, 78, 0.62) 45%, rgba(7, 39, 78, 0.606) 50%, rgba(7, 39, 78, 0.566) 55%, rgba(7, 39, 78, 0.507) 60%, rgba(7, 39, 78, 0.434) 65%, rgba(7, 39, 78, 0.352) 70%, rgba(7, 39, 78, 0.268) 75%, rgba(7, 39, 78, 0.186) 80%, rgba(7, 39, 78, 0.113) 85%, rgba(7, 39, 78, 0.054) 90%, rgba(7, 39, 78, 0.014) 95%, rgba(7, 39, 78, 0) 100%), linear-gradient(90deg, rgba(7, 39, 78, 0.74) 0%, rgba(7, 39, 78, 0.725) 5%, rgba(7, 39, 78, 0.71) 10%, rgba(7, 39, 78, 0.695) 15%, rgba(7, 39, 78, 0.68) 20%, rgba(7, 39, 78, 0.666) 25%, rgba(7, 39, 78, 0.626) 30%, rgba(7, 39, 78, 0.567) 35%, rgba(7, 39, 78, 0.493) 40%, rgba(7, 39, 78, 0.41) 45%, rgba(7, 39, 78, 0.322) 50%, rgba(7, 39, 78, 0.236) 55%, rgba(7, 39, 78, 0.156) 60%, rgba(7, 39, 78, 0.087) 65%, rgba(7, 39, 78, 0.035) 70%, rgba(7, 39, 78, 0.005) 75%, rgba(7, 39, 78, 0) 80%, rgba(7, 39, 78, 0) 85%, rgba(7, 39, 78, 0) 90%, rgba(7, 39, 78, 0) 95%, rgba(7, 39, 78, 0) 100%);
}
.hero--photo .wrap { display: block; width: 100%; max-width: 1240px; }
/* No box (John, 2026-11-04): the words sit on the photo; the navy tint behind them keeps them readable */
.hero-glass { max-width: min(700px, 46vw); text-shadow: 0 2px 14px rgba(3, 25, 56, .5); }
.hero-glass h1 { font: 700 clamp(2.5rem, 3vw + 1rem, 4.25rem)/1.05 "Playfair Display", Georgia, serif; color: #fff; margin: 0 0 .32em; }
.hero-glass h1 em { color: var(--gold); font-style: italic; }
.hero-glass .sub { font: 400 clamp(1.15rem, .5vw + 1rem, 1.45rem)/1.4 var(--font-body); color: #fff; max-width: 34em; margin: 0 0 1.9rem; }
.btn--xl { min-height: 64px; padding: 0 44px; font-size: 1.3rem; font-weight: 600; }
.hero-glass .btn--gold.btn--xl { min-width: min(100%, 330px); }
.btn--lg { min-height: 48px; padding: 14px 26px; font-size: 1rem; font-weight: 600; }
.btn--glass { background: rgba(7, 39, 78, .2); color: #fff; border: 1.5px solid #fff; }
.btn--glass:hover { background: #fff; color: var(--navy); border-color: #fff; }
/* Brand stripes, 3px + 1px at ~68°, only where there is a navy margin wide enough to stay clear of copy and logos */
.hero-stripes { position: absolute; z-index: 0; width: 22px; transform: skewX(-22deg); transform-origin: bottom left; pointer-events: none; display: none; }
.hero-stripes::before, .hero-stripes::after { content: ""; position: absolute; top: 0; bottom: 0; background: var(--gold); }
.hero-stripes::before { left: 0; width: 3px; }
.hero-stripes::after { left: 18px; width: 1px; }
.hero-stripes--top { left: 16px; top: var(--hdr, 0px); height: 150px; }
.hero-stripes--bottom { left: 40px; bottom: 0; height: 130px; }
@media (min-width: 1440px) { .hero-stripes { display: block; } }

.rule-under::after { content: ""; display: block; width: 72px; height: 3px; background: var(--gold); margin-top: 14px; }
.duo { display: grid; grid-template-columns: minmax(0, 1fr) 2px minmax(0, 1fr); gap: 56px; align-items: start; }
.duo-divider { width: 2px; height: 56px; background: var(--gold); margin-top: 6px; }
.duo h2 { font-family: "Playfair Display", Georgia, serif; font-weight: 700; font-size: clamp(1.9rem, 1.5vw + 1.2rem, 2.6rem); }
.checklist--light li { border-top-color: var(--rule); color: var(--muted); }
.checklist--light strong { color: var(--navy); font-family: var(--font-display); font-weight: 600; }
.checklist--light svg { color: var(--gold-text); }
@media (max-width: 1100px) {
  /* Narrow screens: the text spans the photo, so the tint runs top to bottom, eased */
  .hero--photo::before { background: linear-gradient(180deg, rgba(7, 39, 78, 0.84) 0%, rgba(7, 39, 78, 0.831) 5%, rgba(7, 39, 78, 0.822) 10%, rgba(7, 39, 78, 0.813) 15%, rgba(7, 39, 78, 0.804) 20%, rgba(7, 39, 78, 0.796) 25%, rgba(7, 39, 78, 0.787) 30%, rgba(7, 39, 78, 0.778) 35%, rgba(7, 39, 78, 0.769) 40%, rgba(7, 39, 78, 0.76) 45%, rgba(7, 39, 78, 0.747) 50%, rgba(7, 39, 78, 0.711) 55%, rgba(7, 39, 78, 0.658) 60%, rgba(7, 39, 78, 0.592) 65%, rgba(7, 39, 78, 0.518) 70%, rgba(7, 39, 78, 0.442) 75%, rgba(7, 39, 78, 0.368) 80%, rgba(7, 39, 78, 0.302) 85%, rgba(7, 39, 78, 0.249) 90%, rgba(7, 39, 78, 0.213) 95%, rgba(7, 39, 78, 0.2) 100%); }
  .hero-glass { max-width: 760px; }
}
@media (max-width: 900px) {
  .hero--photo::before { background: linear-gradient(180deg, rgba(7, 39, 78, 0.84) 0%, rgba(7, 39, 78, 0.831) 5%, rgba(7, 39, 78, 0.822) 10%, rgba(7, 39, 78, 0.813) 15%, rgba(7, 39, 78, 0.804) 20%, rgba(7, 39, 78, 0.796) 25%, rgba(7, 39, 78, 0.787) 30%, rgba(7, 39, 78, 0.778) 35%, rgba(7, 39, 78, 0.769) 40%, rgba(7, 39, 78, 0.76) 45%, rgba(7, 39, 78, 0.747) 50%, rgba(7, 39, 78, 0.711) 55%, rgba(7, 39, 78, 0.658) 60%, rgba(7, 39, 78, 0.592) 65%, rgba(7, 39, 78, 0.518) 70%, rgba(7, 39, 78, 0.442) 75%, rgba(7, 39, 78, 0.368) 80%, rgba(7, 39, 78, 0.302) 85%, rgba(7, 39, 78, 0.249) 90%, rgba(7, 39, 78, 0.213) 95%, rgba(7, 39, 78, 0.2) 100%); }
  .hero--glassbox::before { background: linear-gradient(180deg, rgba(7, 39, 78, 0.72) 0%, rgba(7, 39, 78, 0.706) 5%, rgba(7, 39, 78, 0.691) 10%, rgba(7, 39, 78, 0.677) 15%, rgba(7, 39, 78, 0.663) 20%, rgba(7, 39, 78, 0.649) 25%, rgba(7, 39, 78, 0.634) 30%, rgba(7, 39, 78, 0.62) 35%, rgba(7, 39, 78, 0.612) 40%, rgba(7, 39, 78, 0.588) 45%, rgba(7, 39, 78, 0.552) 50%, rgba(7, 39, 78, 0.507) 55%, rgba(7, 39, 78, 0.455) 60%, rgba(7, 39, 78, 0.399) 65%, rgba(7, 39, 78, 0.341) 70%, rgba(7, 39, 78, 0.285) 75%, rgba(7, 39, 78, 0.233) 80%, rgba(7, 39, 78, 0.188) 85%, rgba(7, 39, 78, 0.152) 90%, rgba(7, 39, 78, 0.128) 95%, rgba(7, 39, 78, 0.12) 100%); }
  .hero--photo { min-height: 700px; align-items: flex-start; }
  .hero--photo.has-photo { background-position: 80% center; } /* toward the buildings */
  .duo { grid-template-columns: 1fr; gap: 36px; }
  .duo-divider { display: none; }
}
@media (max-width: 640px) {
  .has-header-overlay { --hdr: 72px; }
  .has-header-overlay .site-header .wrap { padding-left: 20px; padding-right: 20px; }
  .lang-pair .is-current, .lang-pair .sep { display: none; }
  .hero--photo { padding: calc(var(--hdr) + 24px) 0 220px; }
  .photo-tag { bottom: 64px; }
  .hero--photo .wrap { padding: 0 20px; }
  .hero-glass { max-width: none; }
  .hero-glass h1 { font-size: 2.4rem; line-height: 1.08; }
  .hero-glass .sub { font-size: 1.125rem; }
  .btn--xl { min-height: 56px; font-size: 1.15rem; }
  .hero-glass .btn-row { flex-direction: column; gap: 12px; }
  .hero-glass .btn { width: 100%; }
}

/* E · El Pálido's glass box: lighter tint so the photo shows through a see-through panel */
.hero--glassbox::before { background: radial-gradient(ellipse 44% 62% at 30% 57%, rgba(7, 39, 78, 0.4) 0%, rgba(7, 39, 78, 0.4) 5%, rgba(7, 39, 78, 0.4) 10%, rgba(7, 39, 78, 0.4) 15%, rgba(7, 39, 78, 0.4) 20%, rgba(7, 39, 78, 0.4) 25%, rgba(7, 39, 78, 0.4) 30%, rgba(7, 39, 78, 0.4) 35%, rgba(7, 39, 78, 0.4) 40%, rgba(7, 39, 78, 0.4) 45%, rgba(7, 39, 78, 0.391) 50%, rgba(7, 39, 78, 0.365) 55%, rgba(7, 39, 78, 0.327) 60%, rgba(7, 39, 78, 0.28) 65%, rgba(7, 39, 78, 0.227) 70%, rgba(7, 39, 78, 0.173) 75%, rgba(7, 39, 78, 0.12) 80%, rgba(7, 39, 78, 0.073) 85%, rgba(7, 39, 78, 0.035) 90%, rgba(7, 39, 78, 0.009) 95%, rgba(7, 39, 78, 0) 100%), linear-gradient(90deg, rgba(7, 39, 78, 0.6) 0%, rgba(7, 39, 78, 0.583) 5%, rgba(7, 39, 78, 0.567) 10%, rgba(7, 39, 78, 0.55) 15%, rgba(7, 39, 78, 0.537) 20%, rgba(7, 39, 78, 0.502) 25%, rgba(7, 39, 78, 0.45) 30%, rgba(7, 39, 78, 0.385) 35%, rgba(7, 39, 78, 0.312) 40%, rgba(7, 39, 78, 0.238) 45%, rgba(7, 39, 78, 0.165) 50%, rgba(7, 39, 78, 0.1) 55%, rgba(7, 39, 78, 0.048) 60%, rgba(7, 39, 78, 0.013) 65%, rgba(7, 39, 78, 0) 70%, rgba(7, 39, 78, 0) 75%, rgba(7, 39, 78, 0) 80%, rgba(7, 39, 78, 0) 85%, rgba(7, 39, 78, 0) 90%, rgba(7, 39, 78, 0) 95%, rgba(7, 39, 78, 0) 100%); }
.glass-box {
  max-width: 650px; padding: 48px; border-radius: var(--radius);
  /* Clear glass, no blur (John: "not blurry"): 50% navy so the beach shows through sharp, a light sheen and edge.
     Measured on the photo with the glow underneath: white >= 6.8:1, gold >= 3.4:1. */
  background: linear-gradient(160deg, rgba(255, 255, 255, .06) 0%, rgba(255, 255, 255, 0) 45%), rgba(7, 39, 78, .5);
  border: 1px solid rgba(255, 255, 255, .35);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18), 0 10px 40px rgba(3, 25, 56, .22);
}
.glass-box h1 { font: 700 clamp(2.25rem, 2.4vw + 1.4rem, 3.5rem)/1.08 var(--font-display); color: #fff; letter-spacing: -.01em; margin: 0 0 .45em; text-shadow: 0 1px 8px rgba(3, 25, 56, .35); }
.glass-box h1 .gold { color: var(--gold); }
.glass-box .sub { font: 400 1.3125rem/1.45 var(--font-body); color: #fff; margin: 0 0 1.6rem; text-shadow: 0 1px 6px rgba(3, 25, 56, .35); }
.btn--glass-gold { background: rgba(7, 39, 78, .3); color: #fff; border: 1px solid var(--gold); }
.btn--glass-gold:hover { background: #fff; color: var(--navy); border-color: #fff; }
.duo-section--sans .duo h2 { font-family: var(--font-display); font-weight: 500; }
@media (max-width: 1100px) {
  .hero--glassbox::before { background: linear-gradient(180deg, rgba(7, 39, 78, 0.72) 0%, rgba(7, 39, 78, 0.706) 5%, rgba(7, 39, 78, 0.691) 10%, rgba(7, 39, 78, 0.677) 15%, rgba(7, 39, 78, 0.663) 20%, rgba(7, 39, 78, 0.649) 25%, rgba(7, 39, 78, 0.634) 30%, rgba(7, 39, 78, 0.62) 35%, rgba(7, 39, 78, 0.612) 40%, rgba(7, 39, 78, 0.588) 45%, rgba(7, 39, 78, 0.552) 50%, rgba(7, 39, 78, 0.507) 55%, rgba(7, 39, 78, 0.455) 60%, rgba(7, 39, 78, 0.399) 65%, rgba(7, 39, 78, 0.341) 70%, rgba(7, 39, 78, 0.285) 75%, rgba(7, 39, 78, 0.233) 80%, rgba(7, 39, 78, 0.188) 85%, rgba(7, 39, 78, 0.152) 90%, rgba(7, 39, 78, 0.128) 95%, rgba(7, 39, 78, 0.12) 100%); }
}
@media (max-width: 640px) {
  .glass-box { padding: 24px; }
  .glass-box h1 { font-size: 2.25rem; line-height: 1.12; }
  .glass-box .sub { font-size: 1.125rem; }
  .glass-box .btn-row { flex-direction: column; gap: 12px; }
  .glass-box .btn { width: 100%; }
}

/* ---------- "How I can help" — El Pálido's section code (2026-11-04), option E ----------
   Two changes for John's rule "no flat surfaces": a lighter photo tint and clearer cards (his 90% would read
   as flat navy). Contrast measured on the photo before publishing. */
.help-paths {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: var(--paper);
  background: var(--navy-deep) var(--help-photo, none) center / cover no-repeat;
}
.help-paths::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(3, 25, 56, .85) 0%, rgba(7, 39, 78, .66) 55%, rgba(7, 39, 78, .58) 100%);
}
.help-paths .kicker { color: var(--gold); }
.help-paths__heading { max-width: 46rem; margin-bottom: 2rem; }
.help-paths__heading h2, .help-paths__card h3 { color: var(--paper); font-family: var(--font-display); }
.help-paths__heading p { margin-bottom: 0; color: var(--paper); }
.help-paths__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; list-style: none; padding: 0; margin: 0; }
.help-paths__card {
  display: flex; flex-direction: column; align-items: flex-start; min-width: 0;
  padding: clamp(1.5rem, 2.5vw, 2rem);
  border: 1px solid rgba(199, 173, 123, .65);
  border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(255, 255, 255, .06) 0%, rgba(255, 255, 255, 0) 45%), rgba(3, 25, 56, .55);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14), var(--shadow);
}
.help-paths__card h3 { font-size: 1.35rem; margin: 0 0 .65rem; }
.help-paths__card p { color: var(--paper); margin: 0 0 1.5rem; }
.help-paths__card a { margin-top: auto; color: var(--paper); font-family: var(--font-display); font-weight: 600; text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: .25em; }
.help-paths__card a:hover { color: var(--gold); }
.help-paths__card a:focus-visible { outline: 3px solid var(--paper); outline-offset: 4px; }
@media (max-width: 900px) { .help-paths__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .help-paths__grid { grid-template-columns: 1fr; gap: 1rem; } .help-paths__card { padding: 1.5rem; } }

/* ---------- F · El Pálido's full home page mockup, built (2026-11-04) ---------- */
.has-header-transparent .site-header { position: absolute; top: auto; left: 0; right: 0; background: linear-gradient(180deg, rgba(3, 25, 56, .62) 0%, rgba(3, 25, 56, .3) 60%, rgba(3, 25, 56, 0) 100%); border-bottom: 0; }
.has-header-transparent .header-row { min-height: 96px; }
.has-header-transparent .site-nav a { color: #fff; font-size: 1rem; }
.has-header-transparent .lang-switch { color: #fff; text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: .3em; }
.header-phone { display: inline-flex; align-items: center; gap: 8px; color: #fff; text-decoration: none; font: 600 1.05rem/1 var(--font-display); white-space: nowrap; padding-left: 16px; border-left: 1px solid rgba(199, 173, 123, .6); }
.header-phone svg { width: 20px; height: 20px; color: var(--gold); }
.header-phone:hover { color: var(--gold); }
.kicker--rule::after { content: ""; display: inline-block; width: 110px; height: 1px; background: var(--gold); margin-left: 14px; vertical-align: middle; }

.f-hero {
  position: relative; isolation: isolate; overflow: hidden; color: #fff;
  padding: 136px 0 56px;
  background: var(--navy-slate) var(--hero-photo) 60% 35% / cover no-repeat;
}
/* Smooth layers only (no edges): a soft top fade for the menu, and a soft glow behind the headline.
   The lower part, with the search bar and the cards, keeps the beach bright. */
.f-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(ellipse 62% 46% at 26% 28%, rgba(7, 39, 78, .8) 0%, rgba(7, 39, 78, .76) 40%, rgba(7, 39, 78, .46) 65%, rgba(7, 39, 78, .15) 85%, rgba(7, 39, 78, 0) 100%),
    linear-gradient(90deg, rgba(7, 39, 78, .52) 0%, rgba(7, 39, 78, .4) 25%, rgba(7, 39, 78, .2) 45%, rgba(7, 39, 78, .05) 58%, rgba(7, 39, 78, 0) 66%);
}
.f-hero__copy { max-width: 640px; margin-bottom: 44px; text-shadow: 0 1px 10px rgba(3, 25, 56, .45); }
.f-hero .kicker { color: var(--gold); }
.f-hero h1 { font: 700 clamp(2.3rem, 2.6vw + 1.3rem, 3.6rem)/1.08 var(--font-display); color: #fff; letter-spacing: -.01em; margin: 0 0 .4em; }
.f-hero h1 .gold { color: var(--gold); }
.f-hero .sub { font-size: 1.25rem; color: #fff; max-width: 34em; margin: 0 0 1.6rem; }
.f-search { margin-bottom: 26px; padding: 12px; background: rgba(255, 255, 255, .4); border: 1px solid rgba(255, 255, 255, .75); border-radius: var(--radius); box-shadow: 0 10px 30px rgba(3, 25, 56, .18); }
.f-search .rs-search { background: transparent; border: 0; box-shadow: none; padding: 4px 6px; }
.f-search realscout-advanced-search { --rs-as-background-color: rgba(255, 255, 255, .9); max-width: none; } /* fields must stay readable: RealScout draws them on this background */
.f-search .rs-search .form-note { color: var(--navy); font-size: .9rem; }
.f-cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
/* Clear glass, not frosted: the sand shows through */
.f-card {
  position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px; align-items: start;
  padding: 22px; color: var(--ink); border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(255, 255, 255, .74) 0%, rgba(255, 255, 255, .62) 100%);
  border: 1px solid rgba(255, 255, 255, .9); box-shadow: 0 8px 26px rgba(3, 25, 56, .14);
  transition: background-color .15s;
}
.f-card:hover, .f-card:focus-within { background-color: rgba(255, 255, 255, .25); }
.f-card__icon svg { width: 42px; height: 42px; color: var(--gold-text); }
.f-card h3 { font-size: 1.3rem; margin: 0 0 6px; }
.f-card h3 a { color: var(--navy); text-decoration: none; }
.f-card h3 a::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius); } /* whole card clickable */
.f-card h3 a:focus-visible { outline: none; }
.f-card:focus-within { outline: 3px solid var(--gold); outline-offset: 2px; }
.f-card p { margin: 0; color: var(--ink); font-size: .98rem; line-height: 1.45; text-shadow: none; }
.f-card__arrow { align-self: end; }
.f-card__arrow svg { width: 24px; height: 24px; color: var(--gold-text); }

.f-towns { background: #fff; border-bottom: 1px solid var(--rule); padding: 22px 0; }
.f-towns__inner { display: flex; align-items: center; gap: 26px; }
.f-towns h2 { flex: none; margin: 0; padding-right: 26px; border-right: 2px solid var(--gold); font: 600 .92rem/1.25 var(--font-display); letter-spacing: .16em; text-transform: uppercase; color: var(--navy); max-width: 9em; }
.f-towns ul { display: flex; flex-wrap: wrap; gap: 8px 22px; list-style: none; margin: 0; padding: 0; }
.f-towns a { display: inline-block; padding: 8px 0; color: var(--navy); font: 500 1rem/1.2 var(--font-display); text-decoration: none; border-bottom: 2px solid transparent; }
.f-towns a:hover { border-bottom-color: var(--gold); }

.f-about__inner { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 52px; align-items: center; }
.f-about__photo { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: 50% 22%; border-radius: var(--radius); box-shadow: var(--shadow); }
.f-about h2, .f-guides h2, .f-faq h2 { font-weight: 700; font-size: clamp(1.9rem, 1.6vw + 1.2rem, 2.6rem); }
.f-about p:not(.kicker) { color: var(--muted); max-width: 52ch; margin-bottom: 1.4rem; }
.f-about .btn svg, .f-cta .btn svg { width: 20px; height: 20px; }

.f-guides__inner { display: grid; grid-template-columns: minmax(0, .75fr) minmax(0, 2.25fr); gap: 36px; align-items: start; }
.f-guides__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; list-style: none; margin: 0; padding: 0; }
.f-guide { background: #fff; border: 1px solid var(--rule); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.f-guide__img { aspect-ratio: 16 / 9; display: grid; place-items: center; background: linear-gradient(135deg, var(--navy-slate) 0%, #6F8DAE 100%); }
.f-guide__img svg { width: 44px; height: 44px; color: rgba(255, 255, 255, .7); }
.f-guide__body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 10px; }
.f-guide h3 { font-size: 1.05rem; margin: 0; }

.f-faq__inner { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.6fr); gap: 44px; align-items: start; }
.f-faq .faq { max-width: none; }
.f-faq .faq details { border: 1px solid var(--rule); border-radius: var(--radius); padding: 0 18px; margin-bottom: 10px; background: #fff; }
.f-faq .faq details:last-child { border-bottom: 1px solid var(--rule); }
.f-faq .faq summary { padding: 16px 36px 16px 0; font-size: 1.02rem; }
.f-faq .faq details p { margin-bottom: 16px; }

.f-cta { position: relative; isolation: isolate; overflow: hidden; color: #fff; padding: 72px 0; background: var(--navy) var(--cta-photo) center 72% / cover no-repeat; }
.f-cta::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(7, 39, 78, .9) 0%, rgba(7, 39, 78, .8) 35%, rgba(7, 39, 78, .5) 60%, rgba(7, 39, 78, .25) 80%, rgba(7, 39, 78, .12) 100%); }
.f-cta__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px; }
.f-cta .kicker { color: var(--gold); }
.f-cta h2 { color: #fff; font-weight: 700; font-size: clamp(1.9rem, 1.6vw + 1.2rem, 2.6rem); margin: 0 0 .3em; }
.f-cta p:not(.kicker) { margin: 0; font-size: 1.1rem; }

@media (max-width: 1100px) {
  /* Tablets and phones: the text spans the photo, so the fade runs top to bottom */
  .f-hero::before { background: linear-gradient(180deg, rgba(7, 39, 78, .84) 0%, rgba(7, 39, 78, .8) 18%, rgba(7, 39, 78, .74) 30%, rgba(7, 39, 78, .5) 40%, rgba(7, 39, 78, .2) 52%, rgba(7, 39, 78, .05) 62%, rgba(7, 39, 78, 0) 70%); }
  .f-cards { grid-template-columns: 1fr; }
  .f-card { grid-template-columns: auto minmax(0, 1fr) auto; }
  .f-guides__inner, .f-faq__inner { grid-template-columns: 1fr; gap: 22px; }
}
@media (max-width: 900px) {
  .f-towns__inner { display: block; }
  .f-towns h2 { border-right: 0; padding-right: 0; max-width: none; margin-bottom: 14px; }
  .f-towns ul { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .f-towns a { display: block; text-align: center; padding: 11px 6px; border: 1px solid var(--rule); border-radius: 4px; background: #fff; }
  .f-about__inner { gap: 28px; }
  .f-guides__grid { grid-template-columns: 1fr; }
  .f-guide { display: grid; grid-template-columns: 40% minmax(0, 1fr); }
  .f-guide__img { aspect-ratio: auto; min-height: 96px; }
}
@media (max-width: 640px) {
  .header-phone { border-left: 0; padding-left: 0; }
  .header-phone span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .has-header-transparent .header-row { min-height: 72px; }
  .has-header-transparent .lang-pair .is-current, .has-header-transparent .lang-pair .sep { display: none; }
  .f-hero { padding-top: 104px; }
  .f-hero h1 { font-size: 2.15rem; }
  .f-hero .sub { font-size: 1.1rem; }
  .f-hero .btn-row .btn { flex: 1 1 100%; }
  .f-card { padding: 18px; }
  .f-about__inner { grid-template-columns: 1fr; }
  .f-cta__inner .btn { width: 100%; }
}

/* ---------- Home search bar (El Pálido's design; the site's own form, MLS PIN later) ---------- */
/* Column widths fit the longest text of each field at 1440 px: "Type a town, ZIP or MLS #",
   "Condo / townhouse", "Up to $1.25M" (measured 2026-11-04). */
.searchbar { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1.35fr) minmax(0, .7fr) minmax(0, .7fr) minmax(0, 1.15fr) auto; gap: 10px; align-items: stretch; }
.sb-field {
  position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 12px;
  align-items: center; padding: 10px 14px; background: rgba(255, 255, 255, .92); border: 1px solid rgba(255, 255, 255, .95); border-radius: var(--radius);
}
.sb-field__icon { grid-row: 1 / 3; display: grid; place-items: center; }
.sb-field__icon svg { width: 24px; height: 24px; color: var(--navy); }
.sb-field label { font: 600 .82rem/1.2 var(--font-display); color: var(--navy); }
.sb-field select {
  appearance: none; -webkit-appearance: none; width: 100%; border: 0; background: transparent; padding: 2px 22px 0 0;
  font: 400 .98rem/1.3 var(--font-body); color: var(--ink); cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2307274E' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right center; background-size: 16px;
}
.sb-field:focus-within { outline: 3px solid var(--gold); outline-offset: 1px; }
.sb-field select:focus, .sb-field input:focus { outline: none; }
.sb-field input[type="text"] { width: 100%; border: 0; background: transparent; padding: 2px 0 0; font: 400 .98rem/1.3 var(--font-body); color: var(--ink); }
.sb-field input[type="text"]::placeholder { color: var(--muted); }
/* Town suggestions while typing */
.sb-suggest { position: absolute; left: -1px; right: -1px; top: calc(100% + 6px); z-index: 30; list-style: none; margin: 0; padding: 6px; max-height: 320px; overflow-y: auto; background: #fff; border: 1px solid var(--rule); border-radius: var(--radius); box-shadow: 0 12px 32px rgba(3, 25, 56, .22); }
.sb-suggest li { padding: 10px 12px; border-radius: 4px; font: 400 1rem/1.3 var(--font-body); color: var(--ink); cursor: pointer; }
.sb-suggest li strong { font-weight: 700; color: var(--navy); }
.sb-suggest li[aria-selected="true"], .sb-suggest li:hover { background: var(--tint); }
.f-search, .f-hero__inner { position: relative; z-index: 2; }
.sb-submit { min-height: 100%; padding: 0 28px; font-size: 1.05rem; font-weight: 600; }
.sb-submit svg { width: 20px; height: 20px; }
.searchbar__foot { grid-column: 1 / -1; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.searchbar__msg { margin: 0; padding: 8px 16px; background: rgba(255, 255, 255, .92); border-radius: var(--radius); color: var(--navy); font: 500 .98rem/1.35 var(--font-body); text-align: center; }
/* Centered, larger (John, 2026-11-04). Its own light glass so it reads over any part of the photo. */
.searchbar__advanced { display: inline-flex; align-items: center; gap: 8px; padding: 10px 24px; background: rgba(255, 255, 255, .88); border-radius: var(--radius); color: var(--navy); font: 600 1.15rem/1.2 var(--font-display); text-decoration: underline; text-decoration-color: var(--gold); text-decoration-thickness: 2px; text-underline-offset: .3em; }
.searchbar__advanced svg { width: 20px; height: 20px; }
.searchbar__advanced:hover { color: var(--gold-text); }
@media (max-width: 1100px) { .searchbar { grid-template-columns: 1fr 1fr; } .sb-field:first-child, .sb-submit { grid-column: 1 / -1; } .sb-submit { min-height: 52px; } }
@media (max-width: 640px) { .searchbar { grid-template-columns: 1fr; } }

/* ---------- Prototype banner ---------- */
.proto-bar { background: var(--copper); color: #fff; text-align: center; font: 500 .85rem/1.3 var(--font-display); letter-spacing: .04em; padding: 7px 12px; }

/* ---------- Responsive ---------- */
@media (max-width: 1279px) {
  /* Folded menu = a small dropdown under the menu button, on the right, words aligned right (John, 2026-11-04). */
  .site-nav { display: none; position: absolute; right: var(--gutter); top: calc(100% - 6px); z-index: 40; min-width: 230px; max-width: calc(100vw - 2 * var(--gutter)); background: linear-gradient(180deg, rgba(7, 39, 78, .98) 0%, rgba(7, 39, 78, .95) 100%); border: 1px solid rgba(199, 173, 123, .5); border-top: 2px solid var(--gold); border-radius: var(--radius); box-shadow: 0 18px 40px rgba(3, 25, 56, .4); }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; gap: 0; padding: 6px 22px; }
  .site-nav li:last-child a { border-bottom: 0; }
  .site-nav a, .has-header-overlay .site-nav a, .has-header-transparent .site-nav a, .site-nav .nav-soon { display: block; padding: 13px 0; text-align: right; font-size: 1.05rem; line-height: 1; border-bottom: 1px solid rgba(213, 220, 230, .14); }
  .site-nav a[aria-current="page"] { color: var(--gold); border-bottom-color: rgba(213, 220, 230, .14); }
  .site-nav li:last-child a[aria-current="page"] { border-bottom: 0; }
  .menu-toggle { display: inline-block; }
  .header-row { position: relative; }
  /* Option F2: every tab stays visible, no ☰ (John, 2026-11-04). */
  .has-nav-visible .menu-toggle { display: none; }
  .has-nav-visible .site-nav { display: block; position: static; min-width: 0; max-width: none; background: none; border: 0; border-radius: 0; box-shadow: none; }
  .has-nav-visible .site-nav ul { flex-direction: row; gap: 16px; padding: 0; }
  .has-nav-visible .site-nav a, .has-nav-visible .site-nav li:last-child a { padding: 6px 0; text-align: left; font-size: .98rem; border-bottom: 2px solid transparent; }
  .has-nav-visible .site-nav a[aria-current="page"], .has-nav-visible .site-nav li:last-child a[aria-current="page"] { color: #fff; border-bottom-color: var(--gold); }
}
/* F2 on narrower screens: the phone shows as an icon, then the tabs move to a second line under the logo. */
@media (max-width: 1180px) {
  .has-nav-visible .header-phone { border-left: 0; padding-left: 0; }
  .has-nav-visible .header-phone span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
@media (max-width: 1020px) {
  .has-nav-visible .lang-pair .is-current, .has-nav-visible .lang-pair .sep { display: none; }
  .has-nav-visible .site-nav ul { gap: 14px; }
}
@media (max-width: 920px) {
  .has-nav-visible .header-row { flex-wrap: wrap; row-gap: 0; }
  .has-nav-visible .site-nav { order: 3; flex: 1 0 100%; padding: 0 0 10px; border-top: 1px solid rgba(255, 255, 255, .16); }
  .has-nav-visible .site-nav ul { justify-content: space-between; gap: 8px; padding-top: 8px; }
  .has-nav-visible .f-hero { padding-top: 140px; }
}
@media (max-width: 640px) { .has-nav-visible .f-hero { padding-top: 124px; } }
@media (max-width: 374px) {
  .has-nav-visible .site-nav ul { gap: 6px; overflow-x: auto; }
  .has-nav-visible .site-nav a, .has-nav-visible .site-nav li:last-child a { font-size: .85rem; }
}
@media (max-width: 900px) {
  .hero .wrap, .split, .form-layout { grid-template-columns: 1fr; }
  .hero-panel { justify-self: start; }
  .steps { grid-template-columns: 1fr 1fr; }
  .footer-grid, .cards--4 { grid-template-columns: 1fr 1fr; }
  .striped::before { right: 8%; }
  .striped::after { right: calc(8% + 22px); }
}
@media (max-width: 640px) {
  body { font-size: 1.0625rem; }
  .logo img { height: 30px; } /* wordmark, 104px wide */
  .brand-group { gap: 12px; }
  .c21-logo { height: 16px; }
  .header-actions .btn--sm { display: none; }
  .steps, .fields, .footer-grid, .cards--4, .cards--3 { grid-template-columns: 1fr; }
  .hero-panel { justify-self: stretch; }
  .btn-row .btn { flex: 1 1 100%; }
  .striped::before, .striped::after { opacity: .35; }
}
@media (max-width: 380px) {
  .logo img { height: 26px; } /* 90px wide; clear space = half the M ≈ 10px */
  .c21-logo { height: 14px; }
  .brand-group { gap: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}

/* ---------- Home options F/F2: Claude's changes to El Pálido's code (2026-11-04) ----------
   His CSS, untouched, is in palido.css (loaded after this file on F, F2 and /design-options/palido/).
   Everything below applies only on F/F2 (body.mr-integrated), except the header clearance, and each
   rule says why. */

/* All three pages: the shared header floats over the photo, so the hero starts below it. */
.has-header-transparent .home-intro { padding-top: calc(96px + clamp(1rem, 3vw, 3rem)); }
@media (max-width: 640px) { .has-header-transparent .home-intro { padding-top: calc(72px + 1.5rem); } }
@media (max-width: 920px) { .has-nav-visible .home-intro { padding-top: calc(96px + 1.5rem); } }
@media (max-width: 640px) { .has-nav-visible .home-intro { padding-top: calc(92px + 1.25rem); } }

/* One photo behind sections 1 and 2 (El Pálido: "put the hero and cards inside a shared photo
   wrapper"), so the sand runs on without a seam. */
.mr-integrated .home-photo { position: relative; isolation: isolate; background: var(--navy) var(--hero-photo) center 62% / cover no-repeat; }
.mr-integrated .home-intro, .mr-integrated .home-services { background: none; }
/* His overlay, plus a soft glow behind the headline: without it the gold "Greater Boston" (2.35:1) and
   the line under it (3.68:1) fail contrast over the clouds; with it 3.81:1 and 6.93:1 (1440 px). The
   overlay fades out at the bottom so the cards sit on the bright sand. */
.mr-integrated .home-intro::before {
  background:
    radial-gradient(ellipse 40% 32% at 34% 31%, rgba(7, 39, 78, .45) 0%, rgba(7, 39, 78, .4) 50%, rgba(7, 39, 78, .2) 80%, rgba(7, 39, 78, 0) 100%),
    linear-gradient(90deg, rgba(3, 25, 56, .94) 0%, rgba(7, 39, 78, .84) 34%, rgba(7, 39, 78, .38) 66%, rgba(7, 39, 78, .14) 100%);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 70%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 0%, #000 70%, transparent 100%);
}
@media (max-width: 900px) {
  .mr-integrated .home-photo { background-position: 70% center; }
  .mr-integrated .home-intro::before { background: linear-gradient(180deg, rgba(3, 25, 56, .94) 0%, rgba(7, 39, 78, .80) 50%, rgba(7, 39, 78, .35) 100%); }
}
.mr-integrated .home-intro__search-wrap { z-index: 3; } /* the town list opens over the cards */

/* His search slot holds the site's own search bar. Advanced Search centered on its own line, a bit
   larger (John, 2026-11-04). Fields get a visible edge (WCAG 1.4.11) and fit their text. */
.mr-integrated .home-search { justify-content: center; }
.mr-integrated .home-search__widget { flex-basis: 100%; }
.mr-integrated .home-search .searchbar__foot:has(.searchbar__msg[hidden]) { display: none; }
.mr-integrated .home-search__advanced { display: inline-flex; align-items: center; gap: 8px; font-size: 1.15rem; text-decoration-color: var(--gold); text-decoration-thickness: 2px; text-underline-offset: .3em; margin-left: 0; }
.mr-integrated .home-search__advanced svg { width: 20px; height: 20px; }
.mr-integrated .home-search .sb-field { padding: 10px 12px; column-gap: 10px; border-color: rgba(7, 39, 78, .45); }
.mr-integrated .home-search .sb-submit { padding: 0 22px; }

/* Clearer cards, as he asked ("tune it against the actual photo"): at his 78% every card text measured
   11.8:1 or more; at 55% the lowest is still above 6:1 (4.5:1 needed). */
.mr-integrated .home-services__card { background: rgba(255, 255, 255, .55); }

/* His layers flipped where two sections meet, so there is no visible line between them. */
.mr-integrated .home-communities { background: linear-gradient(rgba(246,243,236,.92), rgba(255,255,255,.92)), var(--mr-community-photo, none) center / cover no-repeat; background-color: var(--paper); }
.mr-integrated .mr-guides { background: linear-gradient(175deg, var(--tint), var(--paper)); }

/* Guides: no guide photos yet, so a photo placeholder holds his 16:10 image space. */
.mr-integrated .mr-guides__img { display: grid; place-items: center; aspect-ratio: 16 / 10; background: linear-gradient(150deg, var(--navy) 0%, var(--navy-slate) 100%); }
.mr-integrated .mr-guides__img svg { width: 44px; height: 44px; color: var(--gold); }
.mr-integrated .mr-guides__img--photo { display: block; overflow: hidden; } /* card pictures (John, 2026-11-23) */
.mr-integrated .mr-guides__img--photo img { display: block; width: 100%; height: 100%; object-fit: cover; aspect-ratio: auto; }
.mr-integrated .mr-guides > .wrap > p { color: var(--muted); margin: 0 0 1.5rem; }

/* Footer: white icon drawings instead of his missing icon files; the legal line from the current footer. */
.mr-integrated .mr-footer__socials svg { width: 24px; height: 24px; }
.mr-integrated .mr-footer__socials a { color: var(--paper); }
.mr-integrated .mr-footer__socials a:hover { color: var(--gold); }
.mr-integrated .mr-footer__contact p a { color: var(--paper); }
.mr-integrated .mr-footer__legal p { margin: 0 0 .4rem; font-size: .92rem; color: var(--on-navy); }
.mr-integrated .mr-footer__legal a { color: var(--gold); }

/* Section 6 (FAQ) on F/F2: El Pálido's HTML; his CSS hasn't arrived, so this follows his image
   (2026-11-04). Heading on the left, white panels with a gold chevron on the right, on a soft layer. */
.mr-integrated .mr-faq { background: linear-gradient(175deg, var(--paper), var(--tint)); }
.mr-integrated .mr-faq__layout { display: grid; grid-template-columns: minmax(0, .75fr) minmax(0, 1.6fr); gap: clamp(28px, 4vw, 56px); align-items: start; }
.mr-integrated .mr-faq__intro h2 { margin: 0 0 .5rem; font-weight: 700; font-size: clamp(1.9rem, 1.6vw + 1.2rem, 2.6rem); line-height: 1.1; color: var(--navy); }
.mr-integrated .mr-faq__intro p:not(.kicker) { margin: 0; color: var(--muted); }
.mr-integrated .mr-faq__list { display: grid; gap: .6rem; }
.mr-integrated .mr-faq__list details { background: rgba(255, 255, 255, .85); border: 1px solid var(--rule); border-radius: 3px; box-shadow: 0 1px 2px rgba(7, 39, 78, .04); }
.mr-integrated .mr-faq__list summary { position: relative; list-style: none; cursor: pointer; padding: .95rem 3rem .95rem 1.1rem; font: 600 1.02rem/1.35 var(--font-display); color: var(--navy); }
.mr-integrated .mr-faq__list summary::-webkit-details-marker { display: none; }
.mr-integrated .mr-faq__list summary::after { content: ""; position: absolute; right: 1.1rem; top: 50%; width: 9px; height: 9px; border-right: 2px solid var(--gold-text); border-bottom: 2px solid var(--gold-text); transform: translateY(-70%) rotate(45deg); transition: transform .2s; }
.mr-integrated .mr-faq__list details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.mr-integrated .mr-faq__list summary:focus-visible { outline: 3px solid var(--navy); outline-offset: 2px; }
.mr-integrated .mr-faq__list details p { margin: 0; padding: 0 1.1rem 1rem; color: var(--ink); }
@media (max-width: 900px) { .mr-integrated .mr-faq__layout { grid-template-columns: 1fr; gap: 1.25rem; } }

/* Front page change 1 (John, 2026-11-04): show more of the buildings and beach above the search bar,
   less sky. Desktop only: the photo is zoomed a little past "cover" and anchored at the bottom, which
   lifts the skyline. The current 1774 px photo gets softer at this zoom; a taller, larger version is
   requested from El Pálido. */
@media (min-width: 901px) {
  .mr-integrated .home-photo { background-size: auto 135%; background-position: 50% 100%; }
}

/* Front page change 2 (John, 2026-11-04): the search bar's frame more transparent (was El Pálido's 82%
   white), no blur. The fields stay solid for reading. */
.mr-integrated .home-search { background: rgba(255, 255, 255, .5); border-color: rgba(255, 255, 255, .7); }

/* Front page changes 9 and 10 (John, 2026-11-04). 9: MIRÓ alone in the header, lined up with the page
   content (Century 21 moves to John's photo card). 10: John's photo on the first screen, top right over
   the buildings, thin gold frame, name below on a soft navy layer so it reads over any part of the photo.
   Desktop and laptop only; on tablets and phones the About section shows his photo. */
.mr-integrated .site-header .wrap { max-width: var(--wrap); }
.mr-integrated .home-intro__inner { justify-content: space-between; gap: 2rem; }
.home-agent { display: none; }
@media (min-width: 901px) {
  .mr-integrated .home-agent { display: block; align-self: flex-start; flex: 0 0 auto; width: 168px; margin: 0; text-align: center; }
  .mr-integrated .home-agent__photo { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 20%; border: 2px solid var(--gold); border-radius: 3px; box-shadow: 0 10px 28px rgba(3, 25, 56, .35); }
  .mr-integrated .home-agent figcaption { margin-top: 8px; padding: 8px 10px 10px; border-radius: 3px; background: linear-gradient(180deg, rgba(3, 25, 56, .72), rgba(7, 39, 78, .6)); display: grid; justify-items: center; gap: 2px; }
  .mr-integrated .home-agent strong { color: #fff; font: 600 1.08rem/1.2 var(--font-display); letter-spacing: .02em; }
  .mr-integrated .home-agent span { color: var(--on-navy); font: 500 .85rem/1.2 var(--font-display); }
  .mr-integrated .home-agent__c21 { width: 104px; height: auto; margin-top: 6px; }
}

/* Part 6 photo test page (John, 2026-11-04): the photo smaller than El Pálido's .8fr column. */
.photo-test .mr-about__layout { grid-template-columns: minmax(0, 260px) minmax(0, 1fr); }
.photo-test .mr-about { border-bottom: 1px solid var(--rule); }
@media (max-width: 640px) { .photo-test .mr-about__layout { grid-template-columns: 1fr; } .photo-test .mr-about__portrait { width: min(100%, 240px); } }

/* Front page part 1 (John, 2026-11-04): the tagline next to the logo, stacked in three short lines
   after a thin gold rule, so the header doesn't get longer; tab names a little bigger. The tagline hides
   when the header gets tight (below 1180 px). */
.header-tagline { display: flex; flex-direction: column; gap: 1px; color: var(--gold); font: 500 .66rem/1.25 var(--font-display); letter-spacing: .16em; text-transform: uppercase; white-space: nowrap; }
@media (max-width: 1180px) { .header-tagline { display: none; } .mr-integrated .brand-group .brand-divider { display: none; } }
@media (min-width: 1280px) { .mr-integrated .site-nav a { font-size: 1.08rem; } }

/* John, 2026-11-04: the photo card a little toward the center, away from the right edge. */
@media (min-width: 901px) { .mr-integrated .home-agent { margin-right: clamp(24px, 7vw, 120px); } }

/* Front page change 11 (John, 2026-11-04): on a 14" laptop the search bar fell below the first screen.
   - Photo: square, closer to the face. Little space above the head, the hand cropped out. The 720x874
     photo shows at 125% width, starting 90 px down in the original.
   - Card a little lower, level with the headline.
   - Less space between the menu and the headline, and no minimum height, so the search bar moves up. */
@media (min-width: 901px) {
  .mr-integrated .home-agent { align-self: center; }
  .mr-integrated .home-agent__frame { position: relative; display: block; aspect-ratio: 1 / 1; overflow: hidden; border: 2px solid var(--gold); border-radius: 3px; box-shadow: 0 10px 28px rgba(3, 25, 56, .35); }
  .mr-integrated .home-agent__frame .home-agent__photo { position: absolute; left: -12.5%; top: -15.6%; width: 125%; max-width: none; height: auto; aspect-ratio: auto; border: 0; border-radius: 0; box-shadow: none; }
  .mr-integrated .home-intro__inner { min-height: 0; }
  .mr-integrated .home-intro__content { padding: .5rem 0 2rem; }
  .mr-integrated.has-header-transparent .home-intro { padding-top: calc(96px + clamp(.5rem, 1.5vw, 1.5rem)); }
}
@media (min-width: 901px) { .mr-integrated .home-intro__inner { padding-bottom: .75rem; } }

/* John, 2026-11-04: a finer, more refined hero. Everything a little smaller and lighter: the headline,
   the line under it, the two buttons and the search bar. On phones the fields keep a 16 px font so the
   iPhone doesn't zoom in when one is tapped. */
.mr-integrated .home-intro__content h1 { font-size: clamp(2rem, 2.6vw + .6rem, 3rem); font-weight: 500; letter-spacing: -.005em; line-height: 1.1; }
.mr-integrated .home-intro__content p { font-size: clamp(1.02rem, .4vw + .9rem, 1.15rem); margin-bottom: 1.25rem; }
.mr-integrated .home-intro__actions .btn { min-height: 42px; padding: 0 20px; font-size: .95rem; }
.mr-integrated .home-search { padding: .75rem; gap: .5rem .75rem; }
.mr-integrated .home-search .searchbar { gap: 8px; }
.mr-integrated .home-search .sb-field { padding: 7px 10px; column-gap: 8px; }
.mr-integrated .home-search .sb-field__icon svg { width: 20px; height: 20px; }
.mr-integrated .home-search .sb-field label { font-size: .74rem; letter-spacing: .01em; }
.mr-integrated .home-search .sb-field select, .mr-integrated .home-search .sb-field input[type="text"] { font-size: .9rem; }
.mr-integrated .home-search .sb-submit { padding: 0 18px; font-size: .95rem; }
.mr-integrated .home-search .sb-submit svg { width: 17px; height: 17px; }
.mr-integrated .home-search__advanced { font-size: 1rem; }
@media (max-width: 640px) {
  .mr-integrated .home-search .sb-field select, .mr-integrated .home-search .sb-field input[type="text"] { font-size: 16px; }
}

/* John, 2026-11-04: headline in two lines ("Real Estate Guidance" / "Across Greater Boston"), a more
   refined font, and a little smaller. Playfair Display is a test, headline only; adopting it means
   adding it to the design system. */
.mr-integrated .home-intro__content h1 { font-family: 'Playfair Display', Georgia, 'Times New Roman', serif; font-weight: 500; font-size: clamp(1.85rem, 2vw + .7rem, 2.7rem); line-height: 1.15; letter-spacing: 0; }

/* John, 2026-11-04: the line under the headline in Jost, the font of the menu tabs and buttons. */
.mr-integrated .home-intro__content p { font-family: var(--font-display); font-weight: 400; letter-spacing: .01em; }

/* John, 2026-11-04: the gold line under a tab lights up on hover (it was too faint, and on some widths
   a later rule hid it). Same for keyboard focus. */
.mr-integrated .site-nav a { transition: border-color .15s ease, color .15s ease; }
.mr-integrated .site-nav a:hover, .mr-integrated .site-nav a:focus-visible, .mr-integrated.has-nav-visible .site-nav a:hover { color: #fff; border-bottom-color: var(--gold); }

/* John, 2026-11-04: the gold line marks the language you are reading (English on English pages, Español
   on Spanish ones), the same way it marks the current tab. The other language is a plain link, gold on hover. */
.mr-integrated .lang-pair .is-current { color: #fff; padding-bottom: 4px; border-bottom: 2px solid var(--gold); }
.mr-integrated .lang-pair .lang-switch { color: rgba(255, 255, 255, .8); text-decoration: none; padding-bottom: 4px; border-bottom: 2px solid transparent; transition: border-color .15s ease, color .15s ease; }
.mr-integrated .lang-pair .lang-switch:hover, .mr-integrated .lang-pair .lang-switch:focus-visible { color: #fff; border-bottom-color: var(--gold); }

/* John, 2026-11-04: the line between the logo and the tagline a little taller, in the copper of the logo
   accent (the design system keeps copper for the Ó accent and small rules). Same width. */
.mr-integrated .brand-group .brand-divider { margin: 6px 0; background: var(--copper); opacity: 1; }

/* John, 2026-11-04: the stacked logo (MIRÓ above REAL ADVISORS) so there is one vertical line in the
   header, not two side by side, and MIRÓ can be bigger. The copper line and the tagline follow it. */
.logo--stacked img { height: 58px; width: auto; }
.mr-integrated .brand-group .brand-divider { margin: 4px 0; }
@media (max-width: 640px) { .logo--stacked img { height: 30px; } }

/* John, 2026-11-04: more air in the brand group: the logo a little in from the left, and wider gaps
   around the copper line and the tagline. */
@media (min-width: 1181px) { .mr-integrated .brand-group { gap: 16px; margin-left: 20px; } } /* 16px (was 24): tagline closer to the logo (John, 2026-11-14); still the logo clear space */

/* John, 2026-11-04, phone and tablet:
   - the stacked logo (MIRÓ + REAL ADVISORS) so the full name shows
   - his photo card as one compact line under the buttons (square photo with the gold frame, name,
     Realtor®, Century 21 logo) */
@media (max-width: 640px) { .logo--stacked img { height: 46px; } }
@media (max-width: 900px) {
  .mr-integrated .home-intro__inner { flex-direction: column; align-items: stretch; gap: 0; }
  .mr-integrated .home-agent { display: flex; align-items: center; gap: 12px; margin: 0 0 1.25rem; padding: 8px 12px 8px 8px; width: fit-content; max-width: 100%; border-radius: 3px; background: linear-gradient(90deg, rgba(3, 25, 56, .72), rgba(7, 39, 78, .55)); }
  .mr-integrated .home-agent__frame { position: relative; display: block; flex: none; width: 56px; height: 56px; overflow: hidden; border: 2px solid var(--gold); border-radius: 3px; }
  .mr-integrated .home-agent__frame .home-agent__photo { position: absolute; left: -12.5%; top: -15.6%; width: 125%; max-width: none; height: auto; }
  .mr-integrated .home-agent figcaption { display: grid; gap: 1px; }
  .mr-integrated .home-agent strong { color: #fff; font: 600 1rem/1.2 var(--font-display); }
  .mr-integrated .home-agent span { color: var(--on-navy); font: 500 .82rem/1.2 var(--font-display); }
  .mr-integrated .home-agent__c21 { width: 92px; height: auto; margin-top: 4px; }
}

/* John, 2026-11-04, phone and tablet: no photo in the card, just "John Miro", "Realtor®" and the
   Century 21 logo, centered under the buttons. */
@media (max-width: 900px) {
  .mr-integrated .home-agent { justify-content: center; margin-left: auto; margin-right: auto; padding: 8px 18px; text-align: center; }
  .mr-integrated .home-agent__frame { display: none; }
  .mr-integrated .home-agent figcaption { justify-items: center; }
}

/* John, 2026-11-04: on phones the search bar starts with the gold Home Search button, then Advanced
   Search, then the fields. The second Advanced Search link (inside the bar) shows only on phones; the
   one under the bar shows on larger screens. */
.sb-advanced-phone { display: none; }
@media (max-width: 640px) {
  .mr-integrated .home-search .sb-submit { order: -2; min-height: 48px; }
  .mr-integrated .home-search .sb-advanced-phone { display: inline-flex; order: -1; justify-self: center; align-items: center; gap: 8px; margin: 2px 0 4px; color: var(--navy); font: 600 1rem/1.3 var(--font-display); text-decoration: underline; text-decoration-color: var(--gold); text-decoration-thickness: 2px; text-underline-offset: .3em; }
  .mr-integrated .home-search .sb-advanced-phone svg { width: 18px; height: 18px; }
  .mr-integrated .home-search > .home-search__advanced { display: none; }
}

/* John, 2026-11-04, phone: no white box behind Advanced Search (the frame is enough), so the space
   between Home Search and Location is smaller. */
@media (max-width: 640px) { .mr-integrated .home-search .sb-advanced-phone { background: none; padding: 0; border-radius: 0; margin: 0; } }

/* John, 2026-11-04, phones:
   - Home Search: bigger text, the magnifier twice the size
   - the two hero buttons 20% bigger
   - Century 21 in the header, between the logo and "Español"
   - the card under the buttons: "John Miro / Realtor®" a little bigger on the left, "Book a Call" on
     the right */
.c21-logo--phone, .home-agent__book { display: none; }
@media (max-width: 640px) {
  .mr-integrated .home-search .sb-submit { font-size: 1.3rem; min-height: 58px; }
  .mr-integrated .home-search .sb-submit svg { width: 34px; height: 34px; }
  .mr-integrated .home-intro__actions .btn { min-height: 50px; font-size: 1.14rem; }
  .mr-integrated .brand-group { gap: 12px; }
  .mr-integrated .c21-logo--phone { display: block; height: 15px; width: auto; }
  .mr-integrated .home-agent { width: 100%; justify-content: space-between; padding: 10px 16px; text-align: left; }
  .mr-integrated .home-agent figcaption { justify-items: start; }
  .mr-integrated .home-agent strong { font-size: 1.15rem; }
  .mr-integrated .home-agent span { font-size: .92rem; }
  .mr-integrated .home-agent__c21 { display: none; }
  .mr-integrated .home-agent__book { display: inline-flex; align-items: center; gap: 6px; color: var(--gold); font: 600 1.05rem/1.2 var(--font-display); text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: .3em; white-space: nowrap; }
}

/* Smallest phones (360 px and under): the header has no room for Century 21, so it goes back into the card. */
@media (max-width: 360px) { .mr-integrated .c21-logo--phone { display: none; } .mr-integrated .home-agent__c21 { display: block; width: 80px; } }

/* John, 2026-11-04, phones: Century 21 a little further from the logo, with the copper line between
   them, as on the desktop header. */
@media (max-width: 640px) {
  .mr-integrated .brand-group { gap: 12px; }
  .mr-integrated .brand-group .brand-divider { display: block; align-self: center; height: 28px; margin: 0; }
}
@media (max-width: 360px) { .mr-integrated .brand-group .brand-divider { display: none; } }
@media (max-width: 640px) {
  .mr-integrated .logo--stacked img { height: 40px; }
  .mr-integrated .c21-logo--phone { height: 13px; }
  .mr-integrated .header-row { gap: 12px; }
  .mr-integrated .header-actions { gap: 12px; }
  .mr-integrated .brand-group .brand-divider { height: 26px; }
}

/* John, 2026-11-04 (his phone): more room on each side of the copper line; the gap grows with the screen
   width, so Century 21 sits further right on wider phones. */
@media (max-width: 640px) { .mr-integrated .brand-group { gap: clamp(14px, 5.6vw, 28px); } }
/* John, 2026-11-04: Century 21 bigger on phones, growing with the screen width. */
@media (max-width: 640px) { .mr-integrated .c21-logo--phone { height: clamp(13px, 4.1vw, 18px); } }
/* Phone header sizes by width, so the logo, the copper line, Century 21 and Español fit on every phone. */
@media (max-width: 399px) { .mr-integrated .brand-group { gap: 14px; } .mr-integrated .c21-logo--phone { height: 15px; } }
@media (max-width: 374px) { .mr-integrated .brand-group { gap: 10px; } .mr-integrated .c21-logo--phone { height: 13px; } }

/* Part 5 (John, 2026-11-04), from El Pálido's image: the towns band over the skyline photo, gold kicker,
   "Explore Greater Boston Communities" with "Communities" in gold, a line under it, then the town chips
   and a "Your town?" CTA box.  Background photo (John, 2026-11-06): aerial of a neighborhood in autumn at sunset (Listings to Leads, John's pick), replacing the AI beach image. Full width (John): the photo runs across the whole band; the veil fades evenly from left (.74, for the text) to right (.42), with no visible line (John). A soft shadow keeps the text readable. */
.mr-integrated .home-communities { padding: clamp(2.25rem, 4vw, 3.25rem) 0; color: #fff; background: linear-gradient(90deg, rgba(3, 25, 56, .74) 0%, rgba(7, 39, 78, .42) 100%), url('/assets/img/hero/aerial-autumn-neighborhood.webp') 50% 45% / cover no-repeat var(--navy); }
.mr-integrated .home-communities h2, .mr-integrated .home-communities p { text-shadow: 0 1px 14px rgba(3, 25, 56, .7); }
/* A thin gold line between the video above and this band (John, 2026-11-06). */
.mr-integrated .home-communities { border-top: 1px solid rgba(199, 173, 123, .85); }
.mr-integrated .home-communities__inner { display: block; }
.mr-integrated .home-communities__intro { max-width: 40rem; margin-bottom: 1.4rem; }
.mr-integrated .home-communities__intro .kicker { color: var(--gold); margin-bottom: .6rem; }
.mr-integrated .home-communities h2 { flex: none; margin: 0 0 .4rem; color: #fff; font: 600 clamp(1.7rem, 1.6vw + 1rem, 2.4rem)/1.15 var(--font-display); }
.mr-integrated .home-communities h2 span { color: var(--gold); }
.mr-integrated .home-communities__intro p:not(.kicker) { margin: 0; color: #fff; font: 400 1.05rem/1.45 var(--font-display); }
.mr-integrated .home-communities__list { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: .6rem; }
.mr-integrated .home-communities__list li { min-width: 0; }
.mr-integrated .home-communities__list a { width: 100%; justify-content: center; min-height: 46px; padding: .5rem .6rem; color: var(--navy); background: rgba(255, 255, 255, .9); border: 1px solid rgba(255, 255, 255, .95); font-weight: 600; }
.mr-integrated .home-communities__list a:hover { background: #fff; border-color: var(--gold); }
.mr-integrated .home-communities__ask a { color: var(--navy); background: var(--gold); border-color: var(--gold); }
.mr-integrated .home-communities__ask a:hover { background: #fff; }
.mr-integrated .home-communities__list a:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
@media (max-width: 900px) { .mr-integrated .home-communities__list { grid-template-columns: repeat(4, minmax(0, 1fr)); } .mr-integrated .home-communities { background: linear-gradient(180deg, rgba(3, 25, 56, .9) 0%, rgba(7, 39, 78, .75) 45%, rgba(7, 39, 78, .5) 100%), var(--navy) url('/assets/img/hero/aerial-autumn-neighborhood.webp') 50% 62% / cover no-repeat; } }
@media (max-width: 420px) { .mr-integrated .home-communities__list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Part 6 (John, 2026-11-04): a smaller photo in About, as on the photo test page. */
.mr-integrated .mr-about__layout { grid-template-columns: minmax(0, 260px) minmax(0, 1fr); }
@media (max-width: 640px) { .mr-integrated .mr-about__layout { grid-template-columns: 1fr; } .mr-integrated .mr-about__portrait { width: min(100%, 240px); } }

/* Part 9 (John, 2026-11-04): "[Book a Meeting] or [Request a Call Back]". */
.mr-integrated .f-cta__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 16px; }
.mr-integrated .f-cta__or { color: #fff; font: 500 1.05rem/1 var(--font-display); }
.mr-integrated #faq { scroll-margin-top: 96px; }
@media (max-width: 640px) {
  .mr-integrated .f-cta__actions { flex-direction: column; align-items: stretch; width: 100%; text-align: center; }
}

/* Part 7 (John, 2026-11-04): the Price-Reduced Homes card links to the free list. */
.mr-integrated .mr-guides__card a { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; }

/* Part 10 (John, 2026-11-04): shorter footer. Logo with the social icons under it (own colors in white
   circles), links in 2 columns, Century 21 North East and the marks on the right, one bottom line.
   palido.css loads after this file, so these rules carry .mr-integrated .mr-footer to win. */
.mr-integrated .mr-footer { padding: 40px 0 20px; }
.mr-integrated .mr-footer .mr-footer__layout { grid-template-columns: auto minmax(0, 1fr) auto; gap: 1.75rem 4rem; }
.mr-integrated .mr-footer .mr-footer__brand > a { display: inline-block; }
.mr-integrated .mr-footer .mr-footer__brand img { width: 150px; height: auto; margin: 0 0 1rem; }
.mr-integrated .mr-footer .mr-footer__socials { gap: .6rem; }
.mr-integrated .mr-footer .mr-footer__socials a { width: 40px; height: 40px; border-radius: 50%; background: #fff; transition: box-shadow .15s ease, transform .15s ease; }
.mr-integrated .mr-footer .mr-footer__socials a:hover { transform: translateY(-2px); box-shadow: 0 0 0 2px var(--gold); }
.mr-integrated .mr-footer .mr-footer__socials svg { width: 22px; height: 22px; }
.mr-integrated .mr-footer .mr-footer__nav { display: grid; grid-template-columns: repeat(2, max-content); gap: 0 3.5rem; justify-content: center; }
.mr-integrated .mr-footer .mr-footer__nav a { min-height: 34px; }
.mr-integrated .mr-footer .mr-footer__nav a:hover { color: var(--gold); }
.mr-integrated .mr-footer .mr-footer__right { display: grid; justify-items: end; gap: 1rem; }
.mr-integrated .mr-footer .mr-footer__c21 { width: auto; height: 26px; max-width: 100%; }
.mr-integrated .mr-footer .mr-footer__marks { margin: 0; }
.mr-integrated .mr-footer .mr-footer__legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .4rem 1.5rem; margin-top: 1.5rem; padding-top: .9rem; }
.mr-integrated .mr-footer .mr-footer__legal p { margin: 0; }
.mr-integrated .mr-footer .mr-footer__legal a[href^="tel:"] { color: var(--on-navy); }
@media (max-width: 900px) {
  .mr-integrated .mr-footer .mr-footer__layout { grid-template-columns: minmax(0, 1fr) auto; }
  .mr-integrated .mr-footer .mr-footer__nav { grid-column: 1 / -1; grid-row: 2; justify-content: start; }
}
@media (max-width: 640px) {
  .mr-integrated .mr-footer .mr-footer__layout { grid-template-columns: 1fr; }
  .mr-integrated .mr-footer .mr-footer__nav { grid-row: auto; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 1.25rem; }
  .mr-integrated .mr-footer .mr-footer__nav a { min-height: 44px; }
  .mr-integrated .mr-footer .mr-footer__right { justify-items: start; }
}
/* Part 9: the outline button sits over the bright end of the photo; a navy fill keeps its text readable. */
.mr-integrated .f-cta .btn--outline-light { background: rgba(3, 25, 56, .62); }
.mr-integrated .f-cta .btn--outline-light:hover { background: rgba(3, 25, 56, .85); }
/* Footer, John's review (2026-11-04): Century 21 North East bigger and a little to the left; the REALTOR®
   and Equal Housing marks lowered to the row of "Price-Reduced Homes" (4th link row: rows are 40px, so
   its center is at 140px; marks are 30px tall: 140 - 15 - 36px of C21 = 89px). */
.mr-integrated .mr-footer .mr-footer__right { display: block; margin-right: 40px; text-align: right; }
.mr-integrated .mr-footer .mr-footer__c21 { display: block; height: 36px; margin-left: auto; }
.mr-integrated .mr-footer .mr-footer__marks { margin-top: 89px; justify-content: flex-end; }
@media (max-width: 900px) {
  .mr-integrated .mr-footer .mr-footer__right { margin-right: 0; }
  .mr-integrated .mr-footer .mr-footer__marks { margin-top: 1rem; }
}
@media (max-width: 640px) {
  .mr-integrated .mr-footer .mr-footer__right { text-align: left; }
  .mr-integrated .mr-footer .mr-footer__c21 { margin-left: 0; }
  .mr-integrated .mr-footer .mr-footer__marks { justify-content: flex-start; }
}
/* Footer, John's review (2026-11-04): the MIRÓ logo a little to the right, the social icons lower, on the
   same row as the marks and "Price-Reduced Homes" (row center 140px; icons 40px tall, so top at 120px;
   the 150px logo is 65.5px tall). */
.mr-integrated .mr-footer .mr-footer__brand { padding-left: 24px; }
.mr-integrated .mr-footer .mr-footer__brand > a { display: block; width: fit-content; line-height: 0; }
.mr-integrated .mr-footer .mr-footer__brand img { margin: 0; }
.mr-integrated .mr-footer .mr-footer__socials { margin-top: 54.5px; }
@media (max-width: 900px) {
  .mr-integrated .mr-footer .mr-footer__brand { padding-left: 0; }
  .mr-integrated .mr-footer .mr-footer__socials { margin-top: 1rem; }
}
/* Footer, John's review (2026-11-04): the REALTOR® and Equal Housing marks centered under Century 21
   North East, with more space between them. */
.mr-integrated .mr-footer .mr-footer__marks { justify-content: center; gap: 2rem; }
@media (max-width: 640px) { .mr-integrated .mr-footer .mr-footer__marks { justify-content: flex-start; } }
.mr-integrated .mr-footer .mr-footer__marks img { height: 30px; width: auto; max-width: none; }
/* The column takes the width of the 36px-tall Century 21 logo (1289x282), so the marks center under it. */
.mr-integrated .mr-footer .mr-footer__right { width: 165px; }
.mr-integrated .mr-footer .mr-footer__c21 { width: 165px; height: auto; max-width: none; }
/* Footer, John's review (2026-11-04): the MIRÓ logo and the social icons on one center line, as Century 21
   and its marks are on the right. */
.mr-integrated .mr-footer .mr-footer__brand { display: grid; justify-items: center; align-content: start; width: fit-content; }
@media (max-width: 640px) { .mr-integrated .mr-footer .mr-footer__brand { justify-items: start; } }
.mr-integrated .mr-footer .mr-footer__right .mr-footer__marks { width: 100%; }

/* ---------- Resource pages (John, 2026-11-04): Real Estate Guides, Helpful Links, Calculators ---------- */
.section-note { margin: 1.25rem 0 0; color: var(--muted); }
.section-note--top { max-width: 62ch; margin: -.25rem 0 1.25rem; }
.card--guide .icon-circle { margin-bottom: 12px; }
.card__link { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; color: var(--navy); font: 600 1rem/1.2 var(--font-display); text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: .25em; }
.card__link:hover { color: var(--gold-text); }
.link-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.link-card { padding: 20px 22px; background: #fff; border: 1px solid var(--rule); border-radius: var(--radius); }
.link-card a { color: var(--navy); font: 600 1.1rem/1.3 var(--font-display); text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: .25em; }
.link-card a:hover { color: var(--gold-text); }
.link-card p { margin: .5rem 0 .7rem; }
.link-card__src { color: var(--muted); font: 500 .78rem/1 var(--font-display); letter-spacing: .08em; text-transform: uppercase; }

.calc-layout { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 32px; align-items: start; }
.calc { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 20px; }
.calc__field label { display: block; margin-bottom: 6px; color: var(--navy); font: 600 .95rem/1.3 var(--font-display); }
.calc__field input, .calc__field select { width: 100%; min-height: 48px; padding: 10px 12px; background: #fff; border: 1px solid #7a8797; border-radius: var(--radius); color: var(--navy); font: 400 1rem/1.3 var(--font-body); }
.calc__field input:focus-visible, .calc__field select:focus-visible { outline: 3px solid var(--gold); outline-offset: 1px; }
.calc__hint { margin: 6px 0 0; color: var(--muted); font-size: .88rem; }
.calc__opt { color: var(--muted); font-weight: 400; }
.calc-out { position: sticky; top: 100px; padding: 24px; background: var(--navy); border-top: 3px solid var(--gold); border-radius: var(--radius); color: #fff; }
.calc-out h2 { margin: 0 0 12px; color: #fff; font-size: 1.3rem; }
.calc-out__total { display: grid; gap: 4px; margin: 0 0 12px; }
.calc-out__total span { color: var(--gold); font: 500 .85rem/1.2 var(--font-display); letter-spacing: .12em; text-transform: uppercase; }
.calc-out__total strong { font: 600 2.4rem/1.1 var(--font-display); }
.calc-out__empty { margin: 0 0 12px; color: var(--on-navy); }
.calc-out__rows { margin: 0; }
.calc-out__rows div { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-top: 1px solid rgba(255, 255, 255, .15); }
.calc-out__rows dt { color: var(--on-navy); }
.calc-out__rows dd { margin: 0; font-weight: 600; }
.calc-out__note { margin: 14px 0 0; color: var(--on-navy); font-size: .88rem; }
@media (max-width: 900px) { .calc-layout { grid-template-columns: 1fr; } .calc-out { position: static; } }
@media (max-width: 520px) { .calc { grid-template-columns: 1fr; } }

/* Header "More" menu (John, 2026-11-04, option F2): the tabs stay; the extra pages sit in a small dropdown
   on the right, like the folded menu. */
.nav-more__toggle { display: inline-flex; align-items: center; gap: 10px; padding: 6px 0; background: none; border: 0; border-bottom: 2px solid transparent; color: #fff; font: 500 1.02rem/1 var(--font-display); cursor: pointer; }
.nav-more__toggle .burger, .nav-more__toggle .burger::before, .nav-more__toggle .burger::after { width: 18px; }
.nav-more__toggle .burger::before { top: -5px; }
.nav-more__toggle .burger::after { top: 5px; }
.nav-more__toggle:hover, .nav-more__toggle[aria-expanded="true"] { border-bottom-color: var(--gold); }
.nav-more__toggle:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }
.has-nav-visible .header-row { position: relative; }
.site-nav .nav-more .nav-more__menu { display: none; }
.site-nav .nav-more.is-open .nav-more__menu { display: block; position: absolute; right: var(--gutter); top: calc(100% - 6px); z-index: 40; min-width: 240px; margin: 0; padding: 6px 22px; overflow: visible; list-style: none; background: linear-gradient(180deg, rgba(7, 39, 78, .98) 0%, rgba(7, 39, 78, .95) 100%); border: 1px solid rgba(199, 173, 123, .5); border-top: 2px solid var(--gold); border-radius: var(--radius); box-shadow: 0 18px 40px rgba(3, 25, 56, .4); }
.site-nav .nav-more .nav-more__menu a, .has-nav-visible .site-nav .nav-more .nav-more__menu a { display: block; padding: 12px 0; color: #fff; font-size: 1rem; line-height: 1.1; text-align: right; border-bottom: 1px solid rgba(213, 220, 230, .14); }
.site-nav .nav-more .nav-more__menu li:last-child a, .has-nav-visible .site-nav .nav-more .nav-more__menu li:last-child a { border-bottom: 0; }
.site-nav .nav-more .nav-more__menu a:hover, .mr-integrated.has-nav-visible .site-nav .nav-more .nav-more__menu a:hover { color: var(--gold); border-bottom-color: rgba(213, 220, 230, .14); }

/* Footer in 3 columns with gold headings (John, 2026-11-04). The side columns stretch to the links'
   height, so the social icons and the marks sit on the last link row. */
.mr-integrated .mr-footer .mr-footer__layout { align-items: stretch; }
.mr-integrated .mr-footer .mr-footer__nav { grid-template-columns: repeat(3, max-content); gap: 0 3rem; }
.mr-integrated .mr-footer .mr-footer__col h2 { margin: 0 0 6px; color: var(--gold); font: 500 .8rem/1.2 var(--font-display); letter-spacing: .18em; text-transform: uppercase; }
.mr-integrated .mr-footer .mr-footer__brand { display: flex; flex-direction: column; align-items: center; justify-content: space-between; }
.mr-integrated .mr-footer .mr-footer__socials { margin-top: 1rem; }
.mr-integrated .mr-footer .mr-footer__right { display: flex; flex-direction: column; align-items: center; justify-content: space-between; text-align: center; }
.mr-integrated .mr-footer .mr-footer__c21 { margin: 0; }
.mr-integrated .mr-footer .mr-footer__right .mr-footer__marks { margin: 1rem 0 5px; }
@media (max-width: 900px) {
  .mr-integrated .mr-footer .mr-footer__brand, .mr-integrated .mr-footer .mr-footer__right { justify-content: flex-start; }
}
@media (max-width: 640px) {
  .mr-integrated .mr-footer .mr-footer__nav { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem 1.25rem; }
  .mr-integrated .mr-footer .mr-footer__brand, .mr-integrated .mr-footer .mr-footer__right { align-items: flex-start; }
}
/* "More" uses the same size as the tabs. */
.has-nav-visible .nav-more__toggle { font-size: .98rem; }
@media (min-width: 1280px) { .mr-integrated .nav-more__toggle { font-size: 1.08rem; } }
@media (max-width: 374px) { .has-nav-visible .nav-more__toggle { font-size: .85rem; gap: 6px; } }
/* F2 on phones (front page item 4, John: "the mobile site should use the 3 lines option"): with "More"
   added, the tabs no longer fit on one line, so phones get the 3-lines dropdown, as on F. The "More"
   pages show in the same list. */
@media (max-width: 640px) {
  .has-nav-visible .menu-toggle { display: inline-block; }
  .has-nav-visible .header-row { flex-wrap: nowrap; }
  .has-nav-visible .site-nav { display: none; order: 0; flex: none; position: absolute; right: var(--gutter); top: calc(100% - 6px); z-index: 40; min-width: 240px; max-width: calc(100vw - 2 * var(--gutter)); padding: 0; background: linear-gradient(180deg, rgba(7, 39, 78, .98) 0%, rgba(7, 39, 78, .95) 100%); border: 1px solid rgba(199, 173, 123, .5); border-top: 2px solid var(--gold); border-radius: var(--radius); box-shadow: 0 18px 40px rgba(3, 25, 56, .4); }
  .has-nav-visible .site-nav.is-open { display: block; }
  .has-nav-visible .site-nav ul { flex-direction: column; justify-content: flex-start; gap: 0; padding: 6px 22px; overflow: visible; }
  .has-nav-visible .site-nav a, .has-nav-visible .site-nav li:last-child a { display: block; padding: 13px 0; font-size: 1.05rem; line-height: 1; text-align: right; border-bottom: 1px solid rgba(213, 220, 230, .14); }
  .has-nav-visible .site-nav a[aria-current="page"] { color: var(--gold); border-bottom-color: rgba(213, 220, 230, .14); }
  .has-nav-visible .nav-more__toggle { display: none; }
  .site-nav .nav-more .nav-more__menu, .site-nav .nav-more.is-open .nav-more__menu { display: block; position: static; min-width: 0; padding: 0; background: none; border: 0; border-radius: 0; box-shadow: none; }
  .has-nav-visible .site-nav .nav-more .nav-more__menu li:last-child a { border-bottom: 0; }
  .has-nav-visible .site-nav .nav-more .nav-more__menu a { font-size: 1.05rem; }
  .mr-integrated.has-nav-visible .home-intro { padding-top: 96px; }
}
/* Footer: the 3 link columns need the full width below ~1100px, so they move to their own row. */
@media (max-width: 1100px) {
  .mr-integrated .mr-footer .mr-footer__layout { grid-template-columns: minmax(0, 1fr) auto; }
  .mr-integrated .mr-footer .mr-footer__nav { grid-column: 1 / -1; grid-row: 2; justify-content: start; }
  .mr-integrated .mr-footer .mr-footer__brand { padding-left: 0; }
  .mr-integrated .mr-footer .mr-footer__right { margin-right: 0; }
  .mr-integrated .mr-footer .mr-footer__brand, .mr-integrated .mr-footer .mr-footer__right { justify-content: flex-start; }
}
@media (max-width: 640px) { .mr-integrated .mr-footer .mr-footer__layout { grid-template-columns: 1fr; } .mr-integrated .mr-footer .mr-footer__nav { grid-row: auto; } }

/* ---------- Connected forms (John, 2026-11-04): Request a Call Back, Your Current Market ---------- */
.form-layout--aside { grid-template-columns: minmax(0, 1fr) 280px; gap: 40px; } /* Your Current Market only: form + 280px note. Was a global .form-layout rule that squeezed the Contact and Sell forms (fixed 2026-11-06). */
.form-intro { margin: 0 0 20px; font-size: 1.08rem; }
.form-aside { padding: 22px; background: var(--tint); border-left: 3px solid var(--gold); border-radius: var(--radius); }
.form-aside p { margin: 0 0 12px; }
.form-aside p:last-child { margin-bottom: 0; }
.form-aside__next { margin-top: 22px !important; padding-top: 18px; border-top: 1px solid rgba(7, 39, 78, .12); }
.form-aside a:not(.btn) { color: var(--navy); font-weight: 600; text-decoration-color: var(--gold); text-underline-offset: .25em; }
.form-book-link { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin: 0 0 20px; font-size: 1.02rem; }
.form-book-link svg { width: 20px; height: 20px; color: var(--gold, #C7AD7B); }
.form-book-link a { color: var(--navy); font-weight: 600; text-decoration-color: var(--gold, #C7AD7B); text-decoration-thickness: 2px; text-underline-offset: .25em; }
.form-reason { margin: 0 0 18px; padding: 12px 16px; border-left: 3px solid var(--gold, #C7AD7B); background: #FBF7EF; font-weight: 700; font-size: 1.18rem; line-height: 1.45; color: var(--navy); } /* larger and bold (John, 2026-11-06) */
.hp-field { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.consent__label { display: flex; gap: 10px; align-items: flex-start; font: 400 .95rem/1.45 var(--font-body) !important; color: var(--ink) !important; }
.consent__label input { flex: none; width: 20px; height: 20px; margin-top: 2px; accent-color: var(--navy); }
.api-form [aria-invalid="true"] { border-color: #b3261e; box-shadow: 0 0 0 1px #b3261e; }
.api-form .consent:has([aria-invalid="true"]) .consent__label { color: #b3261e !important; }
.api-form .form-status[data-kind="error"] { border-left-color: #b3261e; }
.api-form .form-status[data-kind="ok"] { border-left-color: #2e7d32; }
.hero-link { margin: 14px 0 0; }
.hero-link a { color: #fff; font: 600 1rem/1.3 var(--font-display); text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: .3em; }
.hero-link a:hover { color: var(--gold); }
@media (max-width: 900px) { .form-layout { grid-template-columns: 1fr; } }
.api-form .field-error { color: #b3261e; font-weight: 600; }
/* Header (John, 2026-11-04): English above Español, to free room in the header. The gold line still
   marks the current language. */
.mr-integrated .lang-pair { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 4px; font-size: .95rem; line-height: 1; }
.mr-integrated .lang-pair .sep { display: none; }
.mr-integrated .lang-pair .is-current, .mr-integrated .lang-pair .lang-switch { padding-bottom: 2px; }
/* Call button in the form side box: "Call or text" on one line, the number underneath (John, 2026-11-04). */
.btn--stack { flex-direction: column; align-items: center; gap: 4px; padding-top: 12px; padding-bottom: 12px; line-height: 1.1; text-align: center; }
.btn--stack .btn__num { white-space: nowrap; font-size: 1.15em; letter-spacing: .02em; }
/* Calculator, compact (John, 2026-11-04: it barely fit a 14" screen). */
.hero--slim { padding-top: 36px; padding-bottom: 32px; }
.hero--slim h1 { font-size: clamp(1.8rem, 1.6vw + 1rem, 2.3rem); margin-bottom: .3em; }
.hero--slim .sub { font-size: 1rem; margin: 0; }
.section--calc { padding-top: 28px; padding-bottom: 36px; }
.section--calc .calc-layout { gap: 24px; }
.section--calc .calc { gap: 10px 16px; }
.section--calc .calc__field label { margin-bottom: 4px; font-size: .85rem; }
.section--calc .calc__field input, .section--calc .calc__field select { min-height: 38px; padding: 6px 10px; font-size: .95rem; }
.section--calc .calc__hint { margin-top: 3px; font-size: .76rem; line-height: 1.3; }
.section--calc .calc-out { top: 90px; padding: 16px 18px; }
.section--calc .calc-out h2 { margin-bottom: 6px; font-size: 1rem; }
.section--calc .calc-out__total { margin-bottom: 6px; }
.section--calc .calc-out__total span { font-size: .75rem; }
.section--calc .calc-out__total strong { font-size: 1.9rem; }
.section--calc .calc-out__empty { margin-bottom: 6px; font-size: .88rem; }
.section--calc .calc-out__rows div { padding: 5px 0; font-size: .92rem; }
.section--calc .calc-out__note { margin-top: 8px; font-size: .78rem; }
/* "☰ More" sat about 4px lower than the tabs; lift it so its text lines up with "Contact" (John, 2026-11-05). */
.has-nav-visible .nav-more__toggle { position: relative; top: -4px; }

/* Book a Meeting (John, 2026-11-05): Google's booking page embedded, slim header so it starts high. */
.section--book { padding-top: 24px; padding-bottom: 40px; }
.book-frame { overflow: hidden; background: #fff; border: 1px solid var(--rule); border-radius: var(--radius); }
.book-frame iframe { display: block; width: 100%; height: 680px; border: 0; }
.book-fallback { margin: 12px 0 0; font-size: .92rem; }
.book-fallback a { color: var(--navy); text-decoration-color: var(--gold); text-underline-offset: .25em; }
@media (max-width: 640px) { .book-frame iframe { height: 900px; } }
.nowrap { white-space: nowrap; }
/* "Calendar not loading?" sits above the calendar box, on the right (John, 2026-11-05). */
.section--book .book-fallback { margin: 0 0 8px; text-align: right; }

/* ---------- One look on every page (front page items 3–5; John, 2026-11-04/05) ---------- */
/* Pages without a photo: the header sits on a navy-to-lighter-blue gradient (John, 2026-11-04). */
.mr-integrated:not(.has-header-transparent) .site-header { background: linear-gradient(90deg, #031938 0%, #07274e 55%, #1d4a7e 100%); border-bottom: 0; }
.mr-integrated:not(.has-header-transparent) .header-row { min-height: 96px; }
/* Inner pages: finer, smaller headlines (style guide §9: delicate, not big). */
.mr-integrated .hero h1 { font-size: clamp(1.9rem, 1.4vw + 1.15rem, 2.6rem); line-height: 1.15; max-width: 24ch; }
.mr-integrated .hero .sub { font-size: 1.08rem; }
.mr-integrated .hero:not(.hero--slim) { padding: clamp(40px, 5vw, 72px) 0; }

/* Header hides when scrolling down and comes back, thinner, when scrolling up (John, 2026-11-04). */
.mr-integrated .site-header { transition: transform .28s ease, box-shadow .28s ease; }
.mr-integrated .site-header.is-hidden { transform: translateY(-100%); }
.mr-integrated .site-header.is-compact { box-shadow: 0 8px 24px rgba(3, 25, 56, .25); }
.mr-integrated .site-header.is-compact .header-row { min-height: 64px; }
.mr-integrated .site-header.is-compact .logo--stacked img { height: 44px; }
.mr-integrated .site-header.is-compact .header-tagline { font-size: .6rem; }
/* On the home page the header floats over the photo; coming back, it is fixed and solid. */
.has-header-transparent .site-header.is-compact { position: fixed; top: 0; background: linear-gradient(90deg, #031938 0%, #07274e 55%, #1d4a7e 100%); animation: hdr-in .28s ease; }
.has-header-transparent .site-header.is-compact.is-hidden { transform: translateY(-100%); }
@keyframes hdr-in { from { transform: translateY(-100%); } to { transform: none; } }
@media (prefers-reduced-motion: reduce) { .mr-integrated .site-header { transition: none; } .has-header-transparent .site-header.is-compact { animation: none; } }

/* RealScout widgets in MIRÓ colors (John, 2026-11-05). */
realscout-home-value {
  --rs-hvw-background-color: #ffffff; --rs-hvw-input-text-color: #07274e;
  --rs-hvw-title-color: #07274e; --rs-hvw-subtitle-color: #5b6b7f;
  --rs-hvw-primary-button-color: #c7ad7b; --rs-hvw-primary-button-text-color: #07274e;
  --rs-hvw-secondary-button-color: #ffffff; --rs-hvw-secondary-button-text-color: #07274e;
  --rs-hvw-widget-width: auto; display: block;
}
.home-search__widget realscout-advanced-search {
  --rs-as-background-color: rgba(255, 255, 255, .92); --rs-as-button-color: #c7ad7b; --rs-as-button-text-color: #07274e;
  --rs-as-font-family: 'Jost', sans-serif; --rs-as-widget-width: 100% !important; display: block;
}
/* Home Value page: the widget, then John's note for multi-family homes. */
.section--value { padding-top: 32px; }
.value-layout { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 32px; align-items: start; }
.value-widget h2 { margin: 0 0 12px; font-size: 1.5rem; }
.value-widget realscout-home-value { border: 1px solid var(--rule); border-radius: var(--radius); overflow: hidden; }
.value-note { margin: 10px 0 0; color: var(--muted); font-size: .9rem; }
.value-mf { padding: 22px; background: var(--tint); border-left: 3px solid var(--gold); border-radius: var(--radius); }
.value-mf h3 { margin: 0 0 8px; font-size: 1.2rem; }
.value-mf p { margin: 0 0 12px; }
.value-mf__call a { color: var(--navy); font-weight: 600; text-decoration-color: var(--gold); text-underline-offset: .25em; }
.value-mf__cma { margin-bottom: 0; font-size: .9rem; color: var(--muted); }
@media (max-width: 900px) { .value-layout { grid-template-columns: 1fr; } }
.home-search__widget realscout-advanced-search { max-width: none; width: 100%; }
.value-widget realscout-home-value { border: 0; border-radius: 0; overflow: visible; } /* the widget draws its own card */

/* My Listings (was Office Listings; John, 2026-11-05): RealScout's widget, full width, MIRÓ fonts and rules. */
.section--listings { padding-top: 28px; }
realscout-office-listings, realscout-your-listings { display: block; --rs-wc-font-family: 'Source Sans 3', sans-serif; --rs-listing-divider-color: #c7ad7b; }
.value-widget h2 { margin-bottom: 4px; }
.value-sub { margin: 0 0 14px; color: var(--muted); }
/* John (2026-11-05): don't cut sentences. Header lines get room for a full sentence on a laptop. */
.mr-integrated .hero .sub { max-width: 72ch; }
.value-sub, .value-note { max-width: 72ch; }
/* Home Value header (John, 2026-11-05): headline in capitals on the left, the two lines on the right,
   a bit larger, after a thin gold line. Stacks on phones. */
.hero-split { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 44px; align-items: center; }
.hero--split h1 { margin: 0; text-transform: uppercase; letter-spacing: .02em; }
.mr-integrated .hero--split .hero-split .sub { margin: 0; padding-left: 28px; border-left: 2px solid var(--gold); font-size: 1.25rem; line-height: 1.5; max-width: none; }
@media (max-width: 900px) {
  .hero-split { grid-template-columns: 1fr; gap: 16px; }
  .mr-integrated .hero--split .hero-split .sub { padding-left: 16px; font-size: 1.1rem; }
}
/* Home Value header: the gold stripes move to the right edge so they don't cross the text. */
.hero--split.striped::before { right: 7%; }
.hero--split.striped::after { right: calc(7% + 22px); }
@media (max-width: 900px) { .hero--split.striped::before, .hero--split.striped::after { opacity: .35; } }
/* The note sits right under the value card, same width, centered (John, 2026-11-05). */
.value-widget .value-note { max-width: 494px; margin: 8px auto 0; text-align: center; font-size: .85rem; }
/* Closing band without the photo, on inner pages (John, 2026-11-05). */
.f-cta--plain { background: linear-gradient(90deg, #031938 0%, #07274e 55%, #1d4a7e 100%); }
.f-cta--plain::before { display: none; }
.mr-integrated .f-cta--plain .btn--outline-light { background: transparent; }
.mr-integrated .f-cta--plain .btn--outline-light:hover { background: rgba(255, 255, 255, .1); }
/* Closing band, smaller heading and buttons (John, 2026-11-05: "they are really large"). Trial on the
   home page first. */
.f-cta--compact { padding: 52px 0; }
.f-cta--compact h2 { font-size: clamp(1.5rem, 1vw + 1.1rem, 2rem); }
.f-cta--compact p:not(.kicker) { font-size: 1rem; }
.f-cta--compact .btn--lg { min-height: 46px; padding: 10px 22px; font-size: 1rem; }
.f-cta--compact .btn--lg svg { width: 18px; height: 18px; }
.f-cta--compact .f-cta__or { font-size: .95rem; }
/* Footer, less tall (John, 2026-11-05): tighter link rows, smaller social circles, less padding. The icons
   and the marks still sit on the last link row. Phones keep 44px touch rows. */
.mr-integrated .mr-footer { padding: 28px 0 14px; }
.mr-integrated .mr-footer .mr-footer__nav li { display: flex; }
.mr-integrated .mr-footer .mr-footer__nav a { min-height: 30px; font-size: .95rem; }
.mr-integrated .mr-footer .mr-footer__col h2 { margin-bottom: 4px; }
.mr-integrated .mr-footer .mr-footer__brand img { width: 130px; }
.mr-integrated .mr-footer .mr-footer__socials a { width: 32px; height: 32px; }
.mr-integrated .mr-footer .mr-footer__socials svg { width: 18px; height: 18px; }
.mr-integrated .mr-footer .mr-footer__c21 { width: 150px; }
.mr-integrated .mr-footer .mr-footer__right { width: 150px; }
.mr-integrated .mr-footer .mr-footer__right .mr-footer__marks { margin-bottom: 1px; }
.mr-integrated .mr-footer .mr-footer__marks img { height: 28px; }
.mr-integrated .mr-footer .mr-footer__legal { margin-top: 1rem; padding-top: .7rem; }
@media (max-width: 640px) { .mr-integrated .mr-footer .mr-footer__nav a { min-height: 44px; } }
/* Footer: keep the one-row layout down to 901px (John, 2026-11-05: it broke into two rows with Chrome's
   side panel open). */
@media (min-width: 901px) and (max-width: 1100px) {
  .mr-integrated .mr-footer .mr-footer__layout { grid-template-columns: auto minmax(0, 1fr) auto; gap: 1.5rem 2rem; }
  .mr-integrated .mr-footer .mr-footer__nav { grid-column: auto; grid-row: auto; justify-content: center; gap: 0 2rem; }
  .mr-integrated .mr-footer .mr-footer__brand, .mr-integrated .mr-footer .mr-footer__right { justify-content: space-between; }
  .mr-integrated .mr-footer .mr-footer__right .mr-footer__marks { margin-top: 1rem; }
}

/* New tabs (John, 2026-11-05): Buy, Sell, Communities, Blog on one line, then the two-line items,
   "Price-Reduced / Homes", "More / ☰" and "English / Español" ("de mayor a menor"). Every item is
   centered on the same middle line. In the phone menu the two-line tab reads as one line. */
.has-nav-visible .site-nav ul { align-items: center; }
.site-nav a.nav-2l { display: inline-flex; flex-direction: column; align-items: center; gap: 4px; line-height: 1; text-align: center; }
.has-nav-visible .nav-more__toggle { top: 0; flex-direction: column; align-items: center; gap: 11px; padding: 4px 0 6px; line-height: 1; }
.has-nav-visible .nav-more__toggle .burger { margin-bottom: 5px; }
@media (max-width: 640px) {
  .has-nav-visible .site-nav a.nav-2l { display: block; text-align: right; }
}

/* Price-Reduced Homes page (John, 2026-11-05): slim split header; left = what you'll see + the big
   button; right = why this list, then one card (tour a home · other types of properties).
   Stacked on smaller screens. */
.section.pr-main { padding-top: 48px; padding-bottom: 68px; } /* more room (John, 2026-11-05) */
.pr-main .section-head { margin-bottom: 10px; }
/* The towns line in the header, a little smaller than on Home Value (John, 2026-11-05). */
.mr-integrated .pr-hero .hero-split .sub { font-size: .95rem; }
.mr-integrated .hero.pr-hero h1 { font-size: clamp(1.71rem, 1.3vw + 1rem, 2.2rem); } /* about 10% smaller (John, 2026-11-05) */
@media (max-width: 900px) { .mr-integrated .pr-hero .hero-split .sub { font-size: .95rem; } .pr-hero .sub br { display: none; } }
.pr-search .checklist li { padding: 6px 0; }
.hero--split:has(+ .pr-main) { padding-top: 22px; padding-bottom: 22px; }
.pr-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 56px; align-items: start; }
.pr-search .checklist { margin-top: 8px; font-size: 1.05rem; }
.pr-why p:not(.kicker) { margin: 0 0 12px; font-size: 1.08rem; line-height: 1.6; }
.pr-side { display: grid; gap: 24px; }
.pr-box { padding: 24px 26px; background: #fff; border: 1px solid var(--rule, #DAD5C7); border-radius: 6px; }
.pr-side .pr-box { background: var(--tint, #F6F3EC); border-color: transparent; }
.pr-box h2 { margin: 0 0 8px; font-size: 1.3rem; }
.pr-box p { margin: 0 0 8px; }
.pr-box__links a { font-weight: 600; white-space: nowrap; }
/* The main action, big (John, 2026-11-05). */
.pr-cta { margin-top: 18px; }
.pr-cta .pr-cta__btn { display: inline-flex; align-items: center; gap: 12px; padding: 20px 40px; font-size: 1.3rem; letter-spacing: .08em; text-transform: uppercase; box-shadow: 0 10px 28px rgba(7, 39, 78, .18); }
.pr-cta .section-note { margin-top: 10px; }
@media (max-width: 900px) {
  .pr-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
}
@media (max-width: 640px) { .pr-cta .pr-cta__btn { display: flex; justify-content: center; padding: 18px 20px; font-size: 1.05rem; letter-spacing: .05em; } }

/* Hero prototypes (John, 2026-11-06): depth instead of flat navy. A = photo behind navy "glass";
   B = layered navy with the translucent skyline. Text on a frosted panel; John's photo leaves the header. */
.proto-bar { background: #FBEFD9; color: #5A3D00; font: 600 .85rem/1.3 var(--font-body, sans-serif); padding: 8px 16px; text-align: center; }
.proto-bar a { color: inherit; }
.hero-x { position: relative; overflow: hidden; isolation: isolate; color: #fff; padding: 44px 0 48px; background: #07274E; }
.hero-x__photo { position: absolute; inset: -12px; z-index: -3; background-size: cover; background-position: center 62%; filter: saturate(.9); }
.hero-x__photo--flip { transform: scaleX(-1); }
.hero-x__photo--side { left: auto; width: calc(62% + 12px); -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 38%); mask-image: linear-gradient(90deg, transparent 0, #000 38%); }
@media (max-width: 760px) { .hero-x__photo--side { left: -12px; width: auto; -webkit-mask-image: none; mask-image: none; } }
/* Home page video (John, 2026-11-06): behind sections 1 and 2, under the same overlay the photo had. */
.home-video { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; pointer-events: none; }
.mr-integrated .home-intro__inner { position: relative; }
.home-video__toggle { position: absolute; right: 44px; bottom: 20px; z-index: 4; display: grid; place-items: center; width: 32px; height: 32px; padding: 0; border-radius: 50%; border: 1px solid rgba(199, 173, 123, .6); background: rgba(7, 39, 78, .6); color: #fff; cursor: pointer; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.home-video__toggle[hidden] { display: none; }
.home-video__toggle:hover { background: rgba(7, 39, 78, .85); }
.home-video__toggle:focus-visible { outline: 2px solid var(--gold, #C7AD7B); outline-offset: 2px; }
.proto-label { margin: 0; padding: 22px 16px 8px; text-align: center; font: 500 1rem/1.3 var(--font-body, sans-serif); color: #1d2733; background: #fff; }
.proto-label strong { font-family: var(--font-display, sans-serif); letter-spacing: .04em; }
.hero-x__veil { position: absolute; inset: 0; z-index: -2; background:
  linear-gradient(90deg, rgba(3, 25, 56, .93) 0%, rgba(7, 39, 78, .80) 42%, rgba(7, 39, 78, .45) 72%, rgba(7, 39, 78, .25) 100%),
  linear-gradient(0deg, rgba(3, 25, 56, .55) 0%, rgba(3, 25, 56, 0) 45%); }
.hero-x--b { background:
  radial-gradient(ellipse 50% 70% at 22% 30%, rgba(46, 96, 150, .50) 0%, rgba(46, 96, 150, 0) 70%),
  radial-gradient(ellipse 40% 60% at 85% 80%, rgba(199, 173, 123, .14) 0%, rgba(199, 173, 123, 0) 70%),
  linear-gradient(125deg, #031938 0%, #07274E 45%, #0F3A6B 78%, #12467F 100%); }
.hero-x__sky { position: absolute; right: 0; bottom: 0; width: min(68%, 980px); z-index: -2; pointer-events: none; }
.hero-x__sky .skyline { position: static !important; display: block; width: 100%; height: auto !important; aspect-ratio: 16 / 3; fill: currentColor; stroke: currentColor; }
.hero-x__sky svg .cable { stroke-width: 1.2; fill: none; }
.hero-x__sky--back { bottom: 22px; right: -4%; width: min(80%, 1150px); color: rgba(120, 160, 205, .18); }
.hero-x__sky--front { color: rgba(4, 22, 48, .78); }
.hero-x.striped::before, .hero-x.striped::after { z-index: -1; }
.hero-x__wrap { position: relative; }
.hero-x__glass { max-width: 640px; padding: 26px 30px 28px; border-radius: 6px; background: rgba(7, 39, 78, .38); border: 1px solid rgba(199, 173, 123, .38);
  box-shadow: 0 18px 44px rgba(3, 25, 56, .35), inset 0 1px 0 rgba(255, 255, 255, .08); -webkit-backdrop-filter: blur(10px) saturate(120%); backdrop-filter: blur(10px) saturate(120%); }
.hero-x__glass .kicker { margin: 0 0 8px; color: var(--gold, #C7AD7B); }
.hero-x__glass h1, .hero-x__glass h2 { margin: 0 0 10px; color: #fff; font-size: clamp(1.8rem, 1.6vw + 1rem, 2.4rem); line-height: 1.15; }
.hero-x__glass .sub { margin: 0 0 18px; color: #E3E8EF; font-size: 1.02rem; line-height: 1.55; }
.hero-x__glass .btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
@media (max-width: 640px) { .hero-x { padding: 28px 0 32px; } .hero-x__glass { padding: 20px 18px 22px; } }

/* Cookie notice (John, 2026-11-06): a small navy bar at the bottom, not a pop-up. */
/* Compact card at the bottom left (John, 2026-12-01: "make the cookies bar smaller"); the right side stays free for the FUB pop-up. */
.cookie-notice { position: fixed; left: 16px; right: auto; bottom: 16px; z-index: 2147483647; /* above the FUB pop-up on phones, so OK stays reachable */ width: calc(100% - 32px); max-width: 360px; margin: 0; padding: 10px 12px; border: 1px solid rgba(199, 173, 123, .55); border-radius: 8px; background: #07274E; color: #fff; box-shadow: 0 12px 32px rgba(3, 25, 56, .35); font-size: .8rem; line-height: 1.4; }
.cookie-notice[hidden] { display: none; }
/* Phones: at the top, so FUB's call/text pop-up at the bottom never covers the OK button (2026-12-01). */
@media (max-width: 640px) { .cookie-notice { top: calc(env(safe-area-inset-top, 0px) + 10px); bottom: auto; left: 12px; width: calc(100% - 24px); max-width: none; } }
.cookie-notice__bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.cookie-notice__text { flex: 1 1 100%; margin: 0; }
.cookie-notice__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.cookie-notice .btn { min-height: 28px; padding: 2px 12px; font-size: .78rem; }
/* Wider and one line on larger screens (John, 2026-11-06). */
.cookie-notice .btn--outline-light { background: transparent; color: #fff; border: 1px solid rgba(255, 255, 255, .7); }
.cookie-notice .btn--outline-light:hover, .cookie-notice .btn--outline-light:focus-visible { background: rgba(255, 255, 255, .12); }
.cookie-notice__panel { margin-top: 10px; padding-top: 10px; border-top: 1px solid rgba(255, 255, 255, .18); }
.cookie-notice__panel p { margin: 0 0 8px; color: #E3E8EF; }
.cookie-notice__panel .cookie-notice__state { color: #fff; font-weight: 600; }
.cookie-notice__panel a { color: var(--gold); text-decoration: underline; text-underline-offset: .2em; } /* Privacy Policy link (2026-11-12) */
.link-button { padding: 0; border: 0; background: none; color: inherit; font: inherit; text-decoration: underline; text-underline-offset: .2em; cursor: pointer; }

/* Request a Call or Book a Meeting (John, 2026-11-06): three options side by side, the form below. */
.contact-options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin: 0 0 48px; padding: 0; list-style: none; }
.contact-option { display: flex; flex-direction: column; align-items: flex-start; padding: 24px 24px 26px; background: var(--tint); border-top: 3px solid var(--gold, #C7AD7B); border-radius: var(--radius); }
.contact-option__icon { display: grid; place-items: center; width: 46px; height: 46px; margin-bottom: 14px; border-radius: 50%; background: #fff; color: var(--navy); }
.contact-option__icon svg { width: 22px; height: 22px; }
.contact-option h2 { margin: 0 0 8px; font-size: 1.3rem; }
.contact-option p { flex: 1; margin: 0 0 20px; }
.contact-option .btn svg { width: 18px; height: 18px; }
.callback-form-wrap { max-width: 760px; scroll-margin-top: 110px; }
.callback-form-wrap h2 { margin: 0 0 18px; scroll-margin-top: 110px; }
@media (max-width: 860px) { .contact-options { grid-template-columns: 1fr; gap: 16px; margin-bottom: 36px; } }

/* Two-line titles built by site.js (Get Pre-Approved): a little space between the lines (John, 2026-11-06). */
.h1-line { display: block; }
.h1-line + .h1-line { margin-top: .3em; }
.h1--lines { max-width: none !important; }
.contact-option .btn .btn__arrow-down { width: 18px; height: 18px; margin-left: 4px; color: #fff; }
.nowrap { white-space: nowrap; } /* keeps hyphenated words like "pre-approved" on one line */
/* Call Back: card under the form, listing sign-up or Price-Reduced Homes (John, 2026-11-06) */
.listings-card { display: flex; gap: 18px; align-items: flex-start; max-width: 760px; margin: 44px 0 0; padding: 24px 24px 26px; background: var(--tint); border-top: 3px solid var(--gold, #C7AD7B); border-radius: var(--radius); }
.listings-card .contact-option__icon { flex: none; margin: 0; }
.listings-card h2 { margin: 0 0 8px; font-size: 1.3rem; }
.listings-card p { margin: 0 0 18px; }
.listings-card__actions { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 560px) { .listings-card { flex-direction: column; gap: 12px; } }
/* Contact consent (John, 2026-11-06): the wording above, then the "Ok to Contact" checkbox */
.consent__para { margin: 0; font-size: .875rem; line-height: 1.5; color: var(--ink); } /* 14px, John's minimum (2026-11-06) */
.field .consent__inline { display: inline-flex; align-items: center; gap: 6px; margin-left: 4px; white-space: nowrap; vertical-align: middle; font: 600 .95rem/1.3 var(--font-body); color: var(--navy); cursor: pointer; } /* checkbox after "unsubscribe" (John, 2026-11-06) */
.consent__inline input { width: 18px; height: 18px; margin: 0; accent-color: var(--navy); }
.api-form .consent:has([aria-invalid="true"]) .consent__inline { color: #b3261e; }
.consent__box { font-weight: 600; }
/* Contact page (John, 2026-11-06): compact contact cards (icon beside the text) and a narrower form */
.section--compact { padding: 36px 0; }
.cards .card--row { display: flex; gap: 12px; align-items: flex-start; padding: 18px 16px; }
.card--row .icon-circle { flex: none; width: 40px; height: 40px; margin: 0; }
.card--row .icon-circle svg { width: 18px; height: 18px; }
.card--row h3 { margin: 2px 0 4px; font-size: 1.02rem; }
.card--row p { font-size: .95rem; overflow-wrap: normal !important; } /* the email breaks only after the @ (<wbr>) */
@media (min-width: 901px) {
  .form-layout--compact { grid-template-columns: minmax(0, 1fr) 470px; gap: 48px; }
  .form-layout--compact .form-card { padding: 26px; }
}
/* Contact form wider again so the consent runs about 6 lines (John, 2026-11-06) */
@media (min-width: 901px) { .form-layout--compact { grid-template-columns: minmax(0, 1fr) 640px; } } /* Contact and Sell forms (John, 2026-11-06) */
/* Contact form (John, 2026-11-06): language beside "I would like help with"; message box about 3 lines */
.field--lang .radio-row { min-height: 46px; align-items: center; }
#contact-form textarea, #seller-form textarea { min-height: 0; height: auto; } /* 3 lines (John, 2026-11-06) */
.field textarea::placeholder { color: #6B7280; opacity: 1; }
/* Beside the forms (John, 2026-11-06): photo + What happens next, replacing the phone/email list */
.next-steps { margin-top: 1.6rem; }
.next-steps__agent { display: flex; gap: 18px; align-items: center; margin-bottom: 22px; }
.next-steps__photo { flex: none; width: 120px; height: 120px; border-radius: 50%; object-fit: cover; border: 0; box-shadow: 0 0 0 2px var(--gold); background: #fff; } /* square crop with headroom, exact 1x/2x/3x files (John, 2026-11-06) */
.next-steps__name { margin: 0; font: 500 1.08rem/1.2 var(--font-display); color: var(--navy); }
.next-steps__role { margin: 3px 0 0; color: var(--muted); font-size: .95rem; }
.next-steps h3 { margin: 0 0 12px; font-size: 1.08rem; }
.next-steps__list { list-style: none; counter-reset: step; margin: 0; padding: 0; display: grid; gap: 10px; }
.next-steps__list li { counter-increment: step; display: flex; gap: 12px; align-items: center; }
.next-steps__list li::before { content: counter(step); flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--navy); color: var(--gold); font: 600 .9rem/1 var(--font-display); }

/* Home hero on phones (John, 2026-11-08): the minimalist version he approved from mockups.
   - Title and his name in Tenor Sans (Italiana until 2026-11-26, then Marcellus for a day); every other hero text in Raleway (fonts load only on phone-size screens).
   - "Thinking of Selling?" and "Get Your Home Value" become centered text links, no boxes.
   - The search is one rounded field with a small gold button; the other filters stay behind Advanced Search.
   - His photo, name and Book a Meeting join in one card under the search; the old name bar is hidden.
   Laptops and tablets are unchanged. */
.home-agent-card { display: none; }
@media (max-width: 640px) {
  .mr-integrated .home-intro .home-intro__content h1 { font-family: 'Tenor Sans', 'Segoe UI', system-ui, sans-serif; font-weight: 400; font-size: 1.95rem; line-height: 1.12; letter-spacing: .01em; }
  .mr-integrated .home-intro .home-intro__content p { font-family: 'Raleway', var(--font-body); font-weight: 400; font-size: 1.125rem; line-height: 1.5; } /* Raleway ~10% larger (John, 2026-11-08) */

  .mr-integrated .home-intro .home-intro__actions { flex-direction: row; flex-wrap: wrap; justify-content: center; width: 100%; gap: 12px 18px; margin-top: 22px; }
  .mr-integrated .home-intro .home-intro__actions .btn { flex: none; width: auto; min-height: 0; padding: 0 0 4px; background: none; border: 0; border-bottom: 1px solid rgba(199, 173, 123, .85); border-radius: 0; box-shadow: none; font: 600 1.03rem/1.3 'Raleway', var(--font-body); letter-spacing: .01em; text-shadow: 0 1px 10px rgba(3, 25, 56, .75); }
  .mr-integrated .home-intro .home-intro__actions .btn::after { content: " \2192"; }
  .mr-integrated .home-intro .home-intro__actions .btn--outline-light,
  .mr-integrated .home-intro .home-intro__actions .btn--outline-light:hover { color: #fff; background: none; }
  .mr-integrated .home-intro .home-intro__actions .btn--gold,
  .mr-integrated .home-intro .home-intro__actions .btn--gold:hover { color: #D4BC8C; background: none; }

  .mr-integrated .home-intro .home-search { background: none; border: 0; padding: 0; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
  .mr-integrated .home-intro .home-search .searchbar { display: flex; flex-wrap: wrap; position: relative; gap: 0; }
  .mr-integrated .home-intro .home-search .sb-field:not(.sb-field--text),
  .mr-integrated .home-intro .home-search .sb-advanced-phone { display: none; }
  .mr-integrated .home-intro .home-search .sb-field--text { flex: 1 1 100%; display: block; position: relative; background: #fff; border: 0; border-radius: 999px; padding: 9px 56px 9px 20px; box-shadow: 0 6px 18px rgba(3, 25, 56, .25); }
  .mr-integrated .home-intro .home-search .sb-field--text .sb-field__icon { display: none; }
  .mr-integrated .home-intro .home-search .sb-field--text label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .mr-integrated .home-intro .home-search .sb-field--text input { padding: 4px 0; color: var(--ink); font: 500 1.1rem/1.3 'Raleway', var(--font-body); }
  .mr-integrated .home-intro .home-search .sb-field--text input::placeholder { font-family: 'Raleway', var(--font-body); }
  .mr-integrated .home-intro .home-search .sb-submit { position: absolute; top: 50%; right: 5px; transform: translateY(-50%); width: 42px; height: 42px; min-height: 42px; padding: 0; border-radius: 50%; font-size: 0; display: grid; place-items: center; }
  .mr-integrated .home-intro .home-search .sb-submit svg { width: 19px; height: 19px; margin: 0; }
  .mr-integrated .home-intro .home-search > .home-search__advanced { display: inline-flex; align-items: center; gap: 6px; margin: 12px 0 0 auto; color: #fff; font: 600 1rem/1.2 'Raleway', var(--font-body); text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: .35em; }
  .mr-integrated .home-intro .home-search > .home-search__advanced svg { width: 15px; height: 15px; }

  .mr-integrated .home-intro .home-agent { display: none; }
  .mr-integrated .home-intro .home-intro__search-wrap { margin-top: 22px; padding-top: 0; }
  .mr-integrated .home-agent-card { display: block; margin-top: 26px; }
  .home-agent-card__inner { display: flex; gap: 16px; align-items: center; padding: 12px; background: rgba(3, 25, 56, .6); border: 1px solid rgba(199, 173, 123, .55); border-radius: 4px; box-shadow: 0 10px 28px rgba(3, 25, 56, .3); }
  .home-agent-card__inner img { flex: none; width: 96px; height: 116px; object-fit: cover; object-position: 50% 12%; border: 1px solid rgba(199, 173, 123, .9); border-radius: 3px; }
  .home-agent-card__name { margin: 0; color: #fff; font: 400 1.65rem/1.15 'Tenor Sans', 'Segoe UI', system-ui, sans-serif; letter-spacing: .02em; }
  .home-agent-card__role { margin: 4px 0 12px; color: #BAC4D1; font: 400 .97rem/1.3 'Raleway', var(--font-body); }
  .home-agent-card__book { color: var(--gold); font: 600 1.1rem/1.2 'Raleway', var(--font-body); text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: .3em; }
}

/* Spanish home on phones (John, 2026-11-08): the same fonts as the English home. Title and John's name in
   Tenor Sans (was Italiana, then Marcellus); the kicker, the text, the buttons and the photo caption in Raleway, about 10% larger. The page
   keeps its older layout until the Spanish adaptation. */
@media (max-width: 640px) {
  .mr-integrated .hero--home h1 { font-family: 'Tenor Sans', 'Segoe UI', system-ui, sans-serif; font-weight: 400; font-size: 1.95rem; line-height: 1.12; letter-spacing: .01em; }
  .mr-integrated .hero--home .kicker { font-family: 'Raleway', var(--font-body); font-weight: 600; }
  .mr-integrated .hero--home .sub { font-family: 'Raleway', var(--font-body); font-weight: 400; font-size: 1.125rem; line-height: 1.5; }
  .mr-integrated .hero--home .btn { font-family: 'Raleway', var(--font-body); font-weight: 600; font-size: 1.03rem; letter-spacing: .01em; }
  .mr-integrated .hero--home .portrait-name { font-family: 'Tenor Sans', 'Segoe UI', system-ui, sans-serif; font-weight: 400; font-size: 1.65rem; letter-spacing: .02em; }
  .mr-integrated .hero--home .portrait-meta { font-family: 'Raleway', var(--font-body); font-size: .97rem; }
}

/* Footer on phones (John, 2026-11-08): Century 21 North East on the same line as the MIRÓ logo, smaller and
   near the right edge; the social icons in one row under both logos; the REALTOR® and Equal Housing logos at
   the bottom, one in each corner. Laptops and tablets are unchanged. */
@media (max-width: 640px) {
  .mr-integrated .mr-footer .mr-footer__layout { grid-template-columns: auto 1fr; align-items: center; column-gap: 16px; }
  .mr-integrated .mr-footer .mr-footer__layout .mr-footer__brand { display: contents; }
  .mr-integrated .mr-footer .mr-footer__layout .mr-footer__brand > a { grid-column: 1; grid-row: 1; }
  .mr-integrated .mr-footer .mr-footer__layout .mr-footer__socials { grid-column: 1 / -1; grid-row: 2; margin-top: 4px; }
  .mr-integrated .mr-footer .mr-footer__layout .mr-footer__right { display: contents; }
  .mr-integrated .mr-footer .mr-footer__layout .mr-footer__right .mr-footer__c21 { grid-column: 2; grid-row: 1; justify-self: end; align-self: center; height: 30px; width: auto; max-width: none; margin: 0 -6px 0 0; }
  .mr-integrated .mr-footer .mr-footer__layout .mr-footer__nav { grid-column: 1 / -1; grid-row: 3; }
  .mr-integrated .mr-footer .mr-footer__layout .mr-footer__right .mr-footer__marks { grid-column: 1 / -1; grid-row: 4; display: flex; justify-content: space-between; width: 100%; margin-top: 28px; }
}

/* Home page background on phones (John, 2026-11-30): the Back Bay at blue hour video, cut for the phone around
   the Hancock and Prudential towers (home-back-bay-blue-hour-phone.mp4; John: "looks great"), instead of the
   Revere Beach clock (2026-11-08), which John found old-fashioned and too tied to Revere. The video fills the top 515px; a navy veil above it keeps the text
   readable and fades into navy below. */
@media (max-width: 640px) {
  .mr-integrated .home-photo { background: #07274E; }
  .mr-integrated .home-photo .home-video { display: block; inset: 0 0 auto; height: 515px; object-position: 50% 50%; }
  .mr-integrated .home-photo::after { content: ''; position: absolute; inset: 0 0 auto; height: 520px; z-index: -1; pointer-events: none;
    background: linear-gradient(180deg, rgba(3, 25, 56, .62) 0, rgba(3, 25, 56, .5) 165px, rgba(3, 25, 56, .44) 245px, rgba(3, 25, 56, .46) 300px, rgba(3, 25, 56, .42) 345px, rgba(3, 25, 56, .36) 385px, rgba(3, 25, 56, .4) 440px, rgba(3, 25, 56, .6) 485px, #07274E 515px); }
  /* Pause button at the right edge, beside the two links, clear of the title in both languages. */
  .mr-integrated .home-intro .home-video__toggle { right: 16px; }
}
@media (max-width: 640px) {
  /* The hero's own navy layer would hide the clock and the beach; the veil above does that job on phones. */
  .mr-integrated .home-photo .home-intro::before { background: none; }
  .mr-integrated .home-photo .home-intro .home-intro__content h1,
  .mr-integrated .home-photo .home-intro .home-intro__content p { text-shadow: 0 1px 12px rgba(3, 25, 56, .7); }
}
@media (max-width: 640px) {
  /* Brighter gold over the sunset sky (John, 2026-11-08). */
  .mr-integrated .home-intro .home-intro__actions .btn--gold,
  .mr-integrated .home-intro .home-intro__actions .btn--gold:hover { color: #E8D3A6; text-shadow: 0 1px 12px rgba(3, 25, 56, .9); }
}

/* Communities band (John, 2026-11-08): less boxy. Town names as plain white links, "Your town?" in gold;
   a gold underline on hover. All screen sizes. */
.mr-integrated .home-communities .home-communities__list { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 30px; }
.mr-integrated .home-communities .home-communities__list li { flex: none; min-width: 0; }
.mr-integrated .home-communities .home-communities__list a { width: auto; min-height: 0; padding: 4px 0; background: none; border: 0; border-bottom: 1px solid transparent; border-radius: 0; box-shadow: none; color: #fff; font: 500 1.12rem/1.3 var(--font-display); letter-spacing: .01em; text-decoration: none; text-shadow: 0 1px 8px rgba(3, 25, 56, .6); }
.mr-integrated .home-communities .home-communities__list a:hover { background: none; color: #fff; border-bottom-color: var(--gold); }
.mr-integrated .home-communities .home-communities__ask a,
.mr-integrated .home-communities .home-communities__ask a:hover { color: var(--gold); background: none; }

/* Service blocks without boxes (John, 2026-11-08: "make the design less boxy"): plain text on the
   photo, thin gold lines between them. On laptops a soft navy shade behind the row keeps the text
   readable over the city lights. */
.mr-integrated .home-services .home-services__card { background: none; border: 0; border-radius: 0; box-shadow: none; padding: 20px 0; }
.mr-integrated .home-services .home-services__card h3 { color: #fff; }
.mr-integrated .home-services .home-services__card p { color: rgba(255, 255, 255, .86); }
.mr-integrated .home-services .home-services__card a { color: #E8D3A6; text-decoration-color: var(--gold); }
.mr-integrated .home-services .home-services__card a:hover { color: #fff; }
.mr-integrated .home-services .home-services__card a:focus-visible { outline-color: #fff; }
.mr-integrated .home-services .home-services__card h3,
.mr-integrated .home-services .home-services__card p,
.mr-integrated .home-services .home-services__card a { text-shadow: 0 1px 3px rgba(3, 25, 56, .9), 0 2px 14px rgba(3, 25, 56, .8); }
@media (min-width: 901px) {
  .mr-integrated .home-photo .home-services { background: linear-gradient(180deg, rgba(3, 25, 56, 0) 0, rgba(3, 25, 56, .55) 22%, rgba(3, 25, 56, .62) 80%, rgba(3, 25, 56, .3) 100%); }
  .mr-integrated .home-services .home-services__card { padding: 8px 28px; }
  .mr-integrated .home-services .home-services__card:first-child { padding-left: 0; }
  .mr-integrated .home-services .home-services__card + .home-services__card { border-left: 1px solid rgba(199, 173, 123, .55); }
}
@media (max-width: 900px) {
  .mr-integrated .home-services .home-services__grid { grid-template-columns: 1fr; gap: 0; }
  .mr-integrated .home-services .home-services__card + .home-services__card { border-top: 1px solid rgba(199, 173, 123, .55); }
}

/* Home page fonts (John, 2026-11-08: "Build it on the whole home page"): every title and his name in
   Tenor Sans (John, 2026-11-26: "use Tenor Sans everywhere"; Italiana until then, Marcellus briefly that day), all other text in Raleway, on phones and laptops, EN + ES. Header and footer keep the
   brand fonts (Jost / Source Sans); the other pages are unchanged. */
.home-page main, .home-page main * { font-family: 'Raleway', 'Segoe UI', system-ui, sans-serif !important; }
.home-page main :is(h1, h2, h3), .home-page main :is(h1, h2, h3) *,
.home-page main .home-agent-card__name, .home-page main .home-agent figcaption strong { font-family: 'Tenor Sans', 'Segoe UI', system-ui, sans-serif !important; font-weight: 400 !important; letter-spacing: 0; }
.home-page main h2 { font-size: clamp(1.44rem, 2.32vw, 1.8rem) !important; } /* 20% smaller (John, 2026-11-26), one size for every home section title */
.home-page main h3 { font-size: 1.6rem; }
/* Small titles (the "How I can help" and guide cards) in Raleway 600 (John, 2026-11-23: Italiana's hairlines were hard
   to read at card size). The big titles and his name are in Tenor Sans. */
/* Home title in Tenor Sans, like every big title and his name (John, 2026-11-26), EN + ES. The id rule outranks the
   older hero rules above. */
.home-page main #home-intro-title, .home-page main #home-intro-title * { font-family: 'Tenor Sans', 'Segoe UI', system-ui, sans-serif !important; font-weight: 400 !important; letter-spacing: 0 !important; }
/* Tenor Sans is wider than Italiana: a little smaller on phones keeps the title compact. */
@media (max-width: 640px) { .home-page main #home-intro-title { font-size: 1.6rem !important; } }
.home-page main h3, .home-page main h3 * { font-family: 'Raleway', 'Segoe UI', system-ui, sans-serif !important; font-weight: 600 !important; letter-spacing: 0; }
.home-page main h3 { text-wrap: balance; } /* never "multi-" / "family" */

/* Sell page services card (John, 2026-11-10): the longer title breaks evenly, never leaving "to:" alone. */
.pay-card h3 { text-wrap: balance; }

/* ===== Buy page (John, 2026-11-10): home page search bar, small photo card and shorter sections on phones ===== */
/* The search block reuses the home page markup (.home-intro .home-search); these rules undo the home hero's own
   layout and place it on the white search section. */
.page-buy .buy-search.home-intro { position: static; padding: 0; min-height: 0; background: none; }
.page-buy .buy-search.home-intro::before, .page-buy .buy-search.home-intro::after { display: none; }
.page-buy .buy-search .home-search { max-width: 1080px; margin: 0 auto; padding: 16px; border-radius: 14px; background: var(--navy); box-shadow: 0 10px 30px rgba(3, 25, 56, .18); }
.page-buy .buy-search .home-search__advanced { color: #fff; }
@media (max-width: 640px) {
  .page-buy .buy-search .home-search { padding: 0; background: none; box-shadow: none; }
  .mr-integrated.page-buy .buy-search.home-intro .home-search .sb-field--text { border: 1px solid rgba(7, 39, 78, .28); box-shadow: 0 6px 18px rgba(3, 25, 56, .10); }
  .mr-integrated.page-buy .buy-search.home-intro .home-search > .home-search__advanced { color: var(--navy); text-shadow: none; text-decoration-color: var(--gold); }
}
/* Photo card on phones: round photo beside the name instead of a full-screen portrait. */
@media (max-width: 640px) {
  .page-buy .hero .hero-panel { display: grid; grid-template-columns: 92px 1fr; gap: 16px; align-items: center; padding: 14px 16px; text-align: left; }
  .page-buy .hero .hero-panel .portrait { width: 92px; height: 92px; max-width: none; border-radius: 50%; object-fit: cover; object-position: 50% 18%; margin: 0; }
  .page-buy .hero .hero-panel figcaption { text-align: left; margin: 0; padding: 0; }
  .page-buy .hero .hero-panel .portrait-name { font-size: 1.1rem; margin: 0 0 2px; }
  .page-buy .hero .hero-panel .portrait-meta { font-size: .92rem; margin: 0; }
}
/* Shorter on phones: check marks and step numbers beside each heading, tighter spacing. */
@media (max-width: 640px) {
  .page-buy .steps { gap: 20px; }
  .page-buy .steps--plain li { display: grid; grid-template-columns: 34px 1fr; column-gap: 12px; align-items: start; }
  .page-buy .steps--plain li .icon-circle { width: 34px; height: 34px; margin: 0 !important; grid-row: 1 / span 2; }
  .page-buy .steps--plain li .icon-circle svg { width: 16px; height: 16px; }
  .page-buy .steps--plain li h3 { margin: 5px 0 4px; font-size: 1.08rem; }
  .page-buy .steps--plain li p { margin: 0; grid-column: 2; }
  .page-buy .steps:not(.steps--plain) li { position: relative; min-height: 34px; padding: 0 0 0 48px; }
  .page-buy .steps:not(.steps--plain) li::before { top: 0; left: 0; width: 34px; height: 34px; font-size: .9rem; }
  .page-buy .steps:not(.steps--plain) li h3 { margin: 5px 0 4px; font-size: 1.08rem; }
  .page-buy .steps:not(.steps--plain) li p { margin: 0; }
  .page-buy main .section { padding-top: 44px; padding-bottom: 44px; }
}

/* ===== Buy page steps as a path (John, 2026-11-10): 8 steps, 4 and 4 ===== */
/* Laptop: 1→4 left to right, the arrow turns down at 4, then 5→8 right to left. Phone: top to bottom.
   Step 8 (the closing) is filled in gold. The list order stays 1–8 for screen readers. */
.page-buy section[aria-labelledby="steps-title"] ul.steps li { position: relative; }
.page-buy section[aria-labelledby="steps-title"] ul.steps li:last-child::before { background: var(--gold); color: var(--navy); border-color: var(--gold); }
@media (min-width: 901px) {
  .page-buy section[aria-labelledby="steps-title"] ul.steps { grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: 28px; row-gap: 44px; }
  .page-buy section[aria-labelledby="steps-title"] ul.steps li { padding-top: 64px; }
  .page-buy section[aria-labelledby="steps-title"] ul.steps li::before { top: 0; left: 0; }
  .page-buy section[aria-labelledby="steps-title"] ul.steps li:nth-child(5) { grid-column: 4; grid-row: 2; }
  .page-buy section[aria-labelledby="steps-title"] ul.steps li:nth-child(6) { grid-column: 3; grid-row: 2; }
  .page-buy section[aria-labelledby="steps-title"] ul.steps li:nth-child(7) { grid-column: 2; grid-row: 2; }
  .page-buy section[aria-labelledby="steps-title"] ul.steps li:nth-child(8) { grid-column: 1; grid-row: 2; }
  .page-buy section[aria-labelledby="steps-title"] ul.steps li:nth-child(-n+3)::after {
    content: ''; position: absolute; top: 17px; left: 56px; right: -18px; height: 12px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2 1l7 5-7 5' fill='none' stroke='%23C7AD7B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") right center / 12px 12px no-repeat,
      linear-gradient(var(--gold), var(--gold)) left center / calc(100% - 4px) 2px no-repeat;
  }
  .page-buy section[aria-labelledby="steps-title"] ul.steps li:nth-child(4)::after {
    content: ''; position: absolute; left: 17px; top: 54px; bottom: -36px; width: 12px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M1 3l5 6 5-6' fill='none' stroke='%23C7AD7B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center bottom / 12px 12px no-repeat,
      linear-gradient(var(--gold), var(--gold)) center top / 2px calc(100% - 4px) no-repeat;
  }
  .page-buy section[aria-labelledby="steps-title"] ul.steps li:nth-child(4) h3,
  .page-buy section[aria-labelledby="steps-title"] ul.steps li:nth-child(4) p { padding-left: 44px; }
  .page-buy section[aria-labelledby="steps-title"] ul.steps li:nth-child(n+5):nth-child(-n+7)::after {
    content: ''; position: absolute; top: 17px; height: 12px; left: calc(56px - 100% - 28px); width: calc(100% - 38px);
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M10 1L3 6l7 5' fill='none' stroke='%23C7AD7B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") left center / 12px 12px no-repeat,
      linear-gradient(var(--gold), var(--gold)) right center / calc(100% - 4px) 2px no-repeat;
  }
  .page-buy section[aria-labelledby="steps-title"] ul.steps li h3 { font-size: 1.08rem; }
  .page-buy section[aria-labelledby="steps-title"] ul.steps li p { font-size: .97rem; line-height: 1.55; }
}
@media (max-width: 640px) {
  .page-buy section[aria-labelledby="steps-title"] ul.steps { gap: 26px; }
  .page-buy section[aria-labelledby="steps-title"] ul.steps li:not(:last-child)::after {
    content: ''; position: absolute; left: 11px; top: 40px; bottom: -22px; width: 12px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M1 3l5 6 5-6' fill='none' stroke='%23C7AD7B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center bottom / 12px 12px no-repeat,
      linear-gradient(var(--gold), var(--gold)) center top / 2px calc(100% - 4px) no-repeat;
  }
}

/* Spanish pages: "(… solo está disponible en inglés)" in smaller type (John, 2026-11-10). */
small.note-en { font-size: .82em; }
/* In a checklist, the note sits on its own line under the item (John, 2026-11-10). */
.checklist small.note-en { display: block; line-height: 1.35; margin-top: .15rem; }

/* ===== Sell page steps as a path (John, 2026-11-10): 6 steps, 3 and 3, like the Buy page ===== */
/* Laptop: 1→3 left to right, down at 3, then 4→6 right to left. Phone: top to bottom, number beside the heading.
   The last step is filled in gold. */
.steps--path3 li { position: relative; }
.steps--path3 li:last-child::before { background: var(--gold); color: var(--navy); border-color: var(--gold); }
@media (min-width: 901px) {
  .steps--path3 { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 28px; row-gap: 44px; }
  .steps--path3 li { padding-top: 64px; }
  .steps--path3 li::before { top: 0; left: 0; }
  .steps--path3 li:nth-child(4) { grid-column: 3; grid-row: 2; }
  .steps--path3 li:nth-child(5) { grid-column: 2; grid-row: 2; }
  .steps--path3 li:nth-child(6) { grid-column: 1; grid-row: 2; }
  .steps--path3 li:nth-child(-n+2)::after {
    content: ''; position: absolute; top: 17px; left: 56px; right: -18px; height: 12px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2 1l7 5-7 5' fill='none' stroke='%23C7AD7B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") right center / 12px 12px no-repeat,
      linear-gradient(var(--gold), var(--gold)) left center / calc(100% - 4px) 2px no-repeat;
  }
  .steps--path3 li:nth-child(3)::after {
    content: ''; position: absolute; left: 17px; top: 54px; bottom: -36px; width: 12px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M1 3l5 6 5-6' fill='none' stroke='%23C7AD7B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center bottom / 12px 12px no-repeat,
      linear-gradient(var(--gold), var(--gold)) center top / 2px calc(100% - 4px) no-repeat;
  }
  .steps--path3 li:nth-child(3) h3, .steps--path3 li:nth-child(3) p { padding-left: 44px; }
  .steps--path3 li:nth-child(n+4):nth-child(-n+5)::after {
    content: ''; position: absolute; top: 17px; height: 12px; left: calc(56px - 100% - 28px); width: calc(100% - 38px);
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M10 1L3 6l7 5' fill='none' stroke='%23C7AD7B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") left center / 12px 12px no-repeat,
      linear-gradient(var(--gold), var(--gold)) right center / calc(100% - 4px) 2px no-repeat;
  }
}
@media (max-width: 640px) {
  .steps--path3 { gap: 26px; }
  .steps--path3 li { min-height: 34px; padding: 0 0 0 48px; }
  .steps--path3 li::before { top: 0; left: 0; width: 34px; height: 34px; font-size: .9rem; }
  .steps--path3 li h3 { margin: 5px 0 4px; font-size: 1.08rem; }
  .steps--path3 li:not(:last-child)::after {
    content: ''; position: absolute; left: 11px; top: 40px; bottom: -22px; width: 12px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M1 3l5 6 5-6' fill='none' stroke='%23C7AD7B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center bottom / 12px 12px no-repeat,
      linear-gradient(var(--gold), var(--gold)) center top / 2px calc(100% - 4px) no-repeat;
  }
}

/* ===== Step path, 8 steps, 4 and 4 (reusable; Sell page since 2026-11-10) ===== */
/* Laptop: 1→4 left to right, down at 4, then 5→8 right to left. Phone: top to bottom, number beside the heading. */
.steps--path4 li { position: relative; }
.steps--path4 li:last-child::before { background: var(--gold); color: var(--navy); border-color: var(--gold); }
@media (min-width: 901px) {
  .steps--path4 { grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: 28px; row-gap: 44px; }
  .steps--path4 li { padding-top: 64px; }
  .steps--path4 li::before { top: 0; left: 0; }
  .steps--path4 li:nth-child(5) { grid-column: 4; grid-row: 2; }
  .steps--path4 li:nth-child(6) { grid-column: 3; grid-row: 2; }
  .steps--path4 li:nth-child(7) { grid-column: 2; grid-row: 2; }
  .steps--path4 li:nth-child(8) { grid-column: 1; grid-row: 2; }
  .steps--path4 li:nth-child(-n+3)::after {
    content: ''; position: absolute; top: 17px; left: 56px; right: -18px; height: 12px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2 1l7 5-7 5' fill='none' stroke='%23C7AD7B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") right center / 12px 12px no-repeat,
      linear-gradient(var(--gold), var(--gold)) left center / calc(100% - 4px) 2px no-repeat;
  }
  .steps--path4 li:nth-child(4)::after {
    content: ''; position: absolute; left: 17px; top: 54px; bottom: -36px; width: 12px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M1 3l5 6 5-6' fill='none' stroke='%23C7AD7B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center bottom / 12px 12px no-repeat,
      linear-gradient(var(--gold), var(--gold)) center top / 2px calc(100% - 4px) no-repeat;
  }
  .steps--path4 li:nth-child(4) h3, .steps--path4 li:nth-child(4) p { padding-left: 44px; }
  .steps--path4 li:nth-child(n+5):nth-child(-n+7)::after {
    content: ''; position: absolute; top: 17px; height: 12px; left: calc(56px - 100% - 28px); width: calc(100% - 38px);
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M10 1L3 6l7 5' fill='none' stroke='%23C7AD7B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") left center / 12px 12px no-repeat,
      linear-gradient(var(--gold), var(--gold)) right center / calc(100% - 4px) 2px no-repeat;
  }
  .steps--path4 li h3 { font-size: 1.08rem; }
  .steps--path4 li p { font-size: .97rem; line-height: 1.55; }
}
@media (max-width: 640px) {
  .steps--path4 { gap: 26px; }
  .steps--path4 li { min-height: 34px; padding: 0 0 0 48px; }
  .steps--path4 li::before { top: 0; left: 0; width: 34px; height: 34px; font-size: .9rem; }
  .steps--path4 li h3 { margin: 5px 0 4px; font-size: 1.08rem; }
  .steps--path4 li:not(:last-child)::after {
    content: ''; position: absolute; left: 11px; top: 40px; bottom: -22px; width: 12px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M1 3l5 6 5-6' fill='none' stroke='%23C7AD7B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center bottom / 12px 12px no-repeat,
      linear-gradient(var(--gold), var(--gold)) center top / 2px calc(100% - 4px) no-repeat;
  }
}

/* Town pages: school links line (John, 2026-11-10). */
.schools-line { font-size: .92rem; color: var(--muted); margin-top: 14px; }
.schools-line a { color: var(--navy); }

/* Town facts: an optional small note under a value (John, 2026-11-10). */
.facts .fact-note { display: block; margin-top: 4px; font-size: .85rem; line-height: 1.45; color: var(--muted); }

/* ===== Market Scoreboard box, town Sell pages (John, 2026-11-10) ===== */
/* Friendlier on purpose: Fredoka for numbers and headings, little houses, sticker cards.
   Brand colors only: buyers navy, sellers gold, as in the Scoreboard video and email. */
:root { --font-fun: "Fredoka", "Jost", system-ui, sans-serif; }
.mkt-section { padding-block: 56px; }
.mkt {
  position: relative; overflow: hidden; border-radius: 28px;
  background-color: var(--tint);
  background-image: radial-gradient(rgba(199, 173, 123, .38) 1.6px, transparent 1.8px);
  background-size: 20px 20px;
  border: 2px solid var(--navy);
  padding: 44px 40px 0;
}
.mkt-head { text-align: center; position: relative; z-index: 1; margin-bottom: 30px; }
.mkt-tag {
  display: inline-block; margin: 0 0 14px; padding: 7px 16px; border-radius: 999px;
  background: var(--navy); color: var(--gold);
  font: 600 .82rem/1 var(--font-fun); letter-spacing: .12em; text-transform: uppercase;
}
.mkt-head h2 { font: 600 clamp(1.9rem, 4.2vw, 2.85rem)/1.1 var(--font-fun); color: var(--navy); margin: 0 0 12px; text-wrap: balance; }
.mkt-when { font: 500 1.05rem/1.5 var(--font-fun); color: var(--muted); margin: 0; }
.mkt-pill { display: inline-block; background: var(--copper); color: #fff; border-radius: 999px; padding: 3px 12px; margin-right: 6px; transform: rotate(-2deg); }

/* floating coins */
.mkt-coin {
  position: absolute; z-index: 0; width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--gold); border: 3px solid var(--navy); color: var(--navy);
  font: 600 1.35rem/1 var(--font-fun); box-shadow: 3px 3px 0 var(--navy);
  animation: mkt-float 5s ease-in-out infinite;
}
.mkt-coin--1 { top: 26px; left: 34px; transform: rotate(-14deg); }
.mkt-coin--2 { top: 84px; left: 92px; width: 32px; height: 32px; font-size: 1rem; animation-delay: -2s; }
.mkt-coin--3 { top: 34px; right: 46px; transform: rotate(12deg); animation-delay: -1s; }
@keyframes mkt-float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -7px; } }

/* cards */
.mkt-grid {
  position: relative; z-index: 1; display: grid; gap: 22px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-areas: "price price days" "ratio score score";
}
.mkt-card {
  min-width: 0; background: #fff; border: 2px solid var(--navy); border-radius: 22px;
  box-shadow: 6px 6px 0 var(--gold); padding: 22px 22px 24px;
  transition: transform .18s ease, box-shadow .18s ease;
}
.mkt-card:hover { transform: translate(-2px, -2px); box-shadow: 8px 8px 0 var(--gold); }
.mkt-card--price { grid-area: price; }
@media (min-width: 901px) {
  .mkt-card--price { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "top types" "big types"; column-gap: 28px; align-content: center; }
  .mkt-card--price .mkt-card-top { grid-area: top; }
  .mkt-card--price .mkt-big { grid-area: big; margin-bottom: 0; }
  .mkt-card--price .mkt-types { grid-area: types; margin: 0; align-self: center; }
}
.mkt-norm { display: inline-block; margin: 14px 0 0; padding: 6px 12px; border-radius: 999px; background: var(--tint); font: 500 .92rem/1.3 var(--font-fun); color: var(--navy); }
.mkt-card--days { grid-area: days; }
.mkt-card--ratio { grid-area: ratio; }
.mkt-card--score { grid-area: score; }
.mkt-card-top { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.mkt-ico svg { width: 52px; height: 52px; display: block; transition: transform .25s ease; }
.mkt-card:hover .mkt-ico svg { transform: rotate(-8deg) scale(1.08); }
.mkt-label { font: 500 1.08rem/1.25 var(--font-fun); color: var(--navy); margin: 0; }
.mkt-big { font: 600 clamp(2.5rem, 5vw, 3.3rem)/1 var(--font-fun); color: var(--navy); margin: 4px 0 10px; letter-spacing: -.01em; }
.mkt-big small { font-size: .42em; font-weight: 500; letter-spacing: 0; }
.mkt-sub { font-size: .98rem; line-height: 1.5; color: var(--muted); margin: 0; }

/* median price by home type: three little houses */
.mkt-types { list-style: none; margin: 18px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.mkt-types li {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  background: var(--tint); border-radius: 16px; padding: 12px 6px 12px;
}
.mkt-house { width: 64px; height: 64px; margin-bottom: 6px; transition: transform .25s ease; }
.mkt-types li:hover .mkt-house { transform: translateY(-4px) rotate(-3deg); }
.mkt-type-num { font: 600 1.18rem/1.1 var(--font-fun); color: var(--navy); }
.mkt-type-name { font: 500 .92rem/1.3 var(--font-fun); color: var(--navy); margin-top: 4px; }
.mkt-type-n { font-size: .85rem; color: var(--muted); }

/* sale-to-list meter: 95% to 105%, list price in the middle */
.mkt-meter { position: relative; height: 12px; border-radius: 999px; margin: 30px 4px 16px;
  background: linear-gradient(90deg, #EFE6D2, var(--gold) 50%, #EFE6D2); border: 2px solid var(--navy); }
.mkt-meter::after { content: ""; position: absolute; left: 50%; top: -8px; bottom: -8px; width: 2px; background: var(--navy); }
.mkt-meter-list { position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%); white-space: nowrap; font: 500 .78rem/1 var(--font-fun); color: var(--navy); }
.mkt-meter-dot { position: absolute; top: 50%; width: 22px; height: 22px; border-radius: 50%; background: var(--copper); border: 3px solid var(--navy); transform: translate(-50%, -50%); }

/* who's winning */
.mkt-board { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; margin: 6px 0 12px; }
.mkt-side { position: relative; margin: 0; border-radius: 18px; padding: 12px 10px 10px; text-align: center; border: 2px solid var(--navy); }
.mkt-side span { display: block; font: 500 1rem/1.2 var(--font-fun); }
.mkt-side b { display: block; font: 600 3rem/1 var(--font-fun); }
.mkt-side--B { background: var(--navy); color: #fff; }
.mkt-side--S { background: var(--gold); color: var(--navy); }
.mkt-side.is-win { box-shadow: 0 0 0 4px #fff, 0 0 0 6px var(--copper); }
.mkt-side.is-win::before {
  content: "★"; position: absolute; top: -14px; right: -10px; width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center; background: var(--copper); color: #fff; font-size: 1.05rem; border: 2px solid #fff;
  transform: rotate(12deg);
}
.mkt-vs { font: 600 1.1rem/1 var(--font-fun); color: var(--copper); }
.mkt-verdict { font: 600 1.2rem/1.35 var(--font-fun); color: var(--navy); text-align: center; margin: 0 0 14px; }
.mkt-rounds { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.mkt-round { display: inline-flex; align-items: center; gap: 7px; border-radius: 999px; padding: 6px 13px 6px 6px; font: 500 .92rem/1 var(--font-fun); border: 2px solid var(--navy); }
.mkt-round-n { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; font-size: .78rem; }
.mkt-round--B { background: var(--navy); color: #fff; }
.mkt-round--B .mkt-round-n { background: #fff; color: var(--navy); }
.mkt-round--S { background: var(--gold); color: var(--navy); }
.mkt-round--S .mkt-round-n { background: var(--navy); color: #fff; }
.mkt-round--D { background: #fff; color: var(--navy); }
.mkt-round--D .mkt-round-n { background: var(--tint); }
.mkt-how { margin-top: 16px; font-size: .95rem; }
.mkt-how summary { cursor: pointer; text-align: center; font: 500 .95rem/1.4 var(--font-fun); color: var(--navy); text-decoration: underline; text-underline-offset: .2em; }
.mkt-how ul { margin: 12px 0 0; padding-left: 1.1em; color: var(--muted); line-height: 1.5; }
.mkt-how li + li { margin-top: 6px; }
.mkt-how strong { color: var(--navy); font-family: var(--font-fun); font-weight: 600; }

/* footer of the box + the little street */
.mkt-foot { position: relative; z-index: 1; text-align: center; margin-top: 30px; }
.mkt-foot .btn-row { justify-content: center; }
.mkt-foot .btn--gold { font-family: var(--font-fun); font-weight: 600; border: 2px solid var(--navy); box-shadow: 4px 4px 0 var(--navy); }
.mkt-foot .btn--gold:hover { transform: translate(-1px, -1px); box-shadow: 5px 5px 0 var(--navy); }
.mkt-scope { font-size: .92rem; color: var(--muted); max-width: 62ch; margin: 18px auto 6px; }
.mkt-notice { font-size: .8rem; line-height: 1.5; color: var(--muted); max-width: 70ch; margin: 0 auto; }
.mkt-street { display: block; width: calc(100% + 80px); height: 62px; margin: 22px -40px 0; }

@media (max-width: 900px) {
  .mkt-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-areas: "price price" "days ratio" "score score"; }
}
@media (max-width: 640px) {
  .mkt-section { padding-block: 36px; }
  .mkt { padding: 30px 16px 0; border-radius: 22px; }
  .mkt-coin--1 { top: 12px; left: 10px; width: 34px; height: 34px; font-size: 1rem; }
  .mkt-coin--2 { display: none; }
  .mkt-coin--3 { top: 12px; right: 10px; width: 34px; height: 34px; font-size: 1rem; }
  .mkt-head { margin-bottom: 22px; }
  .mkt-grid { grid-template-columns: 1fr; grid-template-areas: "price" "days" "ratio" "score"; gap: 18px; }
  .mkt-card { padding: 18px 16px 20px; box-shadow: 5px 5px 0 var(--gold); }
  .mkt-types { gap: 6px; }
  .mkt-types li { padding: 10px 2px; }
  .mkt-house { width: 50px; height: 50px; }
  .mkt-type-num { font-size: 1rem; }
  .mkt-type-name { font-size: .82rem; }
  .mkt-type-n { font-size: .78rem; }
  .mkt-side b { font-size: 2.5rem; }
  .mkt-board { gap: 8px; }
  .mkt-side { padding: 10px 4px 8px; }
  .mkt-side span { font-size: .86rem; }
  .mkt-street { width: calc(100% + 32px); margin: 20px -16px 0; }
}
@media (prefers-reduced-motion: reduce) {
  .mkt-coin { animation: none; }
  .mkt-card, .mkt-ico svg, .mkt-house { transition: none; }
}

/* John's note: paragraphs and the market report link (2026-11-10) */
.john-note p + p { margin-top: .8em; }
.john-note .john-note-link a { color: var(--gold); font-family: var(--font-display); font-weight: 500; }
.john-note .john-note-link a:hover { color: #fff; }

/* "More" menu button (John, 2026-11-10): a small arrow right of the word, flipping up when the menu is open,
   instead of ☰ under the word. The gold line shows on hover, while open, and on a page from the menu. */
.has-nav-visible .nav-more__toggle, .nav-more__toggle { flex-direction: row; align-items: center; gap: 6px; padding: 6px 0; }
.nav-more__chev { flex: none; width: 12px; height: 8px; color: var(--gold); transition: transform .2s ease; }
.nav-more__toggle[aria-expanded="true"] .nav-more__chev { transform: rotate(180deg); }
.nav-more__toggle.is-current { border-bottom-color: var(--gold); }
.site-nav .nav-more .nav-more__menu a[aria-current="page"] { color: var(--gold); border-bottom-color: rgba(213, 220, 230, .14); }
@media (prefers-reduced-motion: reduce) { .nav-more__chev { transition: none; } }

/* Sell page hero: one proof line under the buttons (John, 2026-11-11; replaces the career stats he removed). */
.proof-line { margin: 26px 0 0; padding-left: 14px; border-left: 3px solid var(--gold); font: 500 1.05rem/1.4 var(--font-display); color: #fff; }

/* Client review band on the Sell page (John, 2026-11-11). The review is quoted word for word. */
.review-band { background: var(--navy); color: var(--on-navy); }
.review-band h2 { color: #fff; }
.review-wrap { max-width: 860px; }
.review { margin: 22px 0 0; }
.review blockquote { margin: 0; }
.review blockquote::before { content: "\201C"; display: block; height: 34px; font: 600 4.2rem/1 var(--font-display); color: var(--gold); }
.review blockquote p { margin: 0; font: 400 1.16rem/1.7 var(--font-body); color: #fff; }
.review figcaption { margin-top: 16px; font-size: .92rem; color: var(--on-navy); }
.review-more { margin: 22px 0 0; color: var(--on-navy); }
.review-more a { color: var(--gold); font: 500 1.02rem/1.3 var(--font-display); text-underline-offset: 4px; }
.review-more a:hover { color: #fff; }
.review-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 40px; margin-top: 8px; align-items: start; }
.review-band .review { margin: 18px 0 0; min-width: 0; }
.review-band .review blockquote p { font-size: 1.05rem; }
@media (max-width: 1000px) { .review-grid { grid-template-columns: 1fr; max-width: 760px; } }
/* Review source label (John, 2026-11-11: Zillow reviews; the logo replaces the word once the file is in Branding/assets). */
.review-source { display: inline-block; margin-right: 8px; padding: 2px 8px; border: 1px solid rgba(213, 220, 230, .35); border-radius: 999px; font: 600 .78rem/1.4 var(--font-display); color: #fff; letter-spacing: .02em; }
/* Review source logos in original colors on a white tile (John, 2026-11-11). */
.review-source--logo { padding: 5px 9px; background: #fff; border: 0; border-radius: 6px; line-height: 0; vertical-align: middle; }
.review-source--logo img { display: block; height: 16px; width: auto; }

/* Guide pages (John, 2026-11-11): the five phases, then the free PDF behind a short form. */
.badge--free { background: var(--gold); color: var(--navy); }
.guide-phases { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 0; max-width: 860px; }
.guide-phase { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 18px; padding: 22px 0; border-top: 1px solid var(--rule); }
.guide-phase:first-child { border-top: 0; }
.guide-phase__num { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--navy); color: var(--gold); font: 600 1.15rem/1 var(--font-display); }
.guide-phase__num--range { font-size: .86rem; letter-spacing: -.02em; } /* "1–3", "6–7": the guide's own step numbers */
.guide-phase__when { margin: 0 0 4px; font: 600 .78rem/1.3 var(--font-display); letter-spacing: .12em; text-transform: uppercase; color: var(--gold-text); }
.guide-phase h3 { margin: 0 0 6px; }
.guide-phase p { margin: 0; }
.guide-gate { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 440px); gap: 48px; align-items: start; }
.guide-gate__info h2 { margin-top: 0; }
.guide-gate__info .checklist { margin-top: 14px; }
.guide-gate__form { background: #fff; border: 1px solid var(--rule); border-radius: var(--radius); padding: 26px; box-shadow: 0 8px 24px rgba(7, 39, 78, .08); }
.guide-form__title { margin: 0 0 14px; font-size: 1.2rem; }
.guide-ready h3 { margin: 0 0 6px; }
.guide-ready p { margin: 0 0 16px; }
.guide-ready__more { margin: 16px 0 0 !important; font-size: .95rem; color: var(--muted); }
@media (max-width: 860px) { .guide-gate { grid-template-columns: 1fr; gap: 28px; } }
.proof-line a { color: var(--gold); white-space: nowrap; text-decoration: underline; text-decoration-color: rgba(197, 168, 116, .55); text-underline-offset: 4px; }
.proof-line a:hover { color: #fff; }
/* A link inside a hero's intro line (John, 2026-11-11: Communities page "Your MA town?"). */
.hero .sub a.sub-link { color: var(--gold); text-decoration: underline; text-decoration-color: rgba(197, 168, 116, .55); text-underline-offset: 4px; white-space: nowrap; }
.hero .sub a.sub-link:hover { color: #fff; }
/* The same proof line on a light section (About page, John, 2026-11-11). */
.proof-line--light { color: var(--navy); }
.proof-line--light a { color: var(--gold-text); }
.proof-line--light a:hover { color: var(--navy); }
/* Button label that may wrap on phones, with the phone number kept on one line (John, 2026-11-11). */
.btn__label { text-align: center; }
/* Spanish laptop header (2026-11-12): "Sobre mí" replaced "Blog" and the longer tabs ran into the
   tagline. Slightly smaller tabs and tighter spacing in Spanish only, where the tagline shows. */
@media (min-width: 1181px) {
  html[lang="es"] .mr-integrated .site-nav a, html[lang="es"] .mr-integrated .nav-more__toggle { font-size: 1.02rem; }
  html[lang="es"] .has-nav-visible .site-nav ul { gap: 10px; }
}

/* Privacy Policy and Terms of Use (John, 2026-11-12): long legal text, one readable column. */
.legal { max-width: 74ch; }
.legal h2 { margin: 2.25rem 0 .6rem; font-size: 1.2rem; letter-spacing: .02em; scroll-margin-top: 110px; }
.legal h2:first-child { margin-top: 0; }
.legal h3 { margin: 1.5rem 0 .4rem; font-size: 1.05rem; scroll-margin-top: 110px; }
.legal p, .legal li { line-height: 1.65; }
.legal ul { padding-left: 1.25rem; }
.legal li + li { margin-top: .35rem; }
.legal a { overflow-wrap: anywhere; }
.legal__toc { list-style: none; padding: 0; columns: 2; column-gap: 32px; }
.legal__toc li { break-inside: avoid; margin: 0 0 .35rem; }
.legal__table { overflow-x: auto; margin: 1rem 0; }
.legal__table table { border-collapse: collapse; width: 100%; font-size: .95rem; }
.legal__table td:last-child, .legal__table th:last-child { white-space: nowrap; }
.legal__table th, .legal__table td { border: 1px solid var(--rule); padding: 8px 10px; text-align: left; vertical-align: top; }
.legal__table thead th { background: var(--navy); color: var(--paper); }
.legal__note { max-width: 74ch; margin: 0 0 1.75rem; padding: 14px 18px; border-left: 4px solid var(--gold); background: #F7F4EC; }
@media (max-width: 640px) { .legal__toc { columns: 1; } .legal__table table { font-size: .85rem; } .legal__table th, .legal__table td { padding: 6px 7px; } }

/* Blog (2026-11-14): article page and the list on /blog/. One readable column. */
.blog-article { max-width: 68ch; }
.blog-article p { line-height: 1.7; margin: 0 0 1.15rem; }
.blog-article .article-cta { margin-top: 2rem; font-size: 1.08rem; }
.blog-article h2 { font-size: 1.4rem; margin: 2.2rem 0 .7rem; }
.blog-article ul, .blog-article ol { margin: -.4rem 0 1.15rem; padding-left: 1.4rem; line-height: 1.6; }
.blog-article ol li::marker { font-weight: 600; }
.blog-article li { margin: .2rem 0; }
.blog-article li::marker { color: var(--gold-text); }
.article-figure { margin: 1.6rem 0 2rem; }
.article-figure img { display: block; width: 100%; height: auto; border: 1px solid var(--rule); border-radius: var(--radius); }
.article-form { margin: 1rem 0 2rem; padding: 26px; background: var(--paper); border: 1px solid var(--rule); border-radius: var(--radius); box-shadow: 0 8px 24px rgba(7, 39, 78, .08); }
.article-source { color: var(--muted); }
.article-source small { font-size: .85rem; line-height: 1.5; }
.article-byline { opacity: .9; }
.blog-list { display: grid; gap: 20px; max-width: 760px; }
.blog-card { padding: 24px 26px; }
.blog-card h3 { margin: 4px 0 8px; }
.blog-card h3 a { color: inherit; text-decoration: none; }
.blog-card h3 a:hover, .blog-card h3 a:focus-visible { text-decoration: underline; text-decoration-color: var(--gold); }
.blog-card p { margin: 0 0 10px; }
.blog-card__meta { font: 600 .78rem/1.3 var(--font-display); letter-spacing: .12em; text-transform: uppercase; color: var(--gold-text); }
@media (max-width: 640px) { .article-form { padding: 18px; } }

/* Blog color PREVIEW (John, 2026-11-15), /design-options/blog-sage/: Classic navy with sage as the mix color and
   sun-yellow touches (design system Front Door tokens). Header, breadcrumbs and footer stay Classic. Text on sage and
   sun yellow is navy only. */
:root { --fd-sun: #F5C451; --fd-sage: #8DAA91; }
.theme-sage .hero { background: var(--fd-sage); color: var(--navy); }
.theme-sage .hero h1, .theme-sage .hero .sub { color: var(--navy); }
.theme-sage .striped::before { background: var(--navy); }
.theme-sage .striped::after { background: var(--fd-sun); opacity: 1; }
.theme-sage .hero .kicker { display: inline-block; background: var(--fd-sun); color: var(--navy); padding: 6px 12px; border-radius: 999px; letter-spacing: .14em; }
.theme-sage .article-cta { background: var(--fd-sage); color: var(--navy); margin: 2rem 0 0; padding: 18px 24px; border-radius: 6px 6px 0 0; }
.theme-sage .article-form { margin-top: 0; border: 2px solid var(--fd-sage); border-top: 0; border-radius: 0 0 6px 6px; }
.theme-sage .article-form .btn--gold { background: var(--navy); border-color: var(--navy); color: #fff; }
.theme-sage .article-form .btn--gold:hover, .theme-sage .article-form .btn--gold:focus-visible { background: var(--fd-sun); border-color: var(--fd-sun); color: var(--navy); }
.theme-sage .blog-card { border-top: 4px solid var(--fd-sage); }
.theme-sage .blog-card__meta { color: var(--navy); }

/* A card grid with only one card (the Sell page guides since 2026-11-17) keeps a normal card width. */
.cards > .card:only-child { max-width: 380px; }

/* Guide pages: the hero's "Get the free guide" jump to the form reads as a button (John, 2026-11-19). */
.btn--guide-jump { font-size: 1.12rem; padding: 14px 28px; gap: 10px; box-shadow: 0 6px 18px rgba(3, 25, 56, .45), 0 0 0 1px rgba(255, 255, 255, .12); transition: transform .15s ease, box-shadow .15s ease, background .15s ease; }
.btn--guide-jump .btn__arrow-down { width: 20px; height: 20px; animation: guide-jump-nudge 1.8s ease-in-out 3; }
.btn--guide-jump:hover, .btn--guide-jump:focus-visible { transform: translateY(-1px); box-shadow: 0 10px 22px rgba(3, 25, 56, .5), 0 0 0 1px rgba(255, 255, 255, .2); }
@keyframes guide-jump-nudge { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(3px); } }
@media (prefers-reduced-motion: reduce) { .btn--guide-jump .btn__arrow-down { animation: none; } .btn--guide-jump:hover { transform: none; } }
@media (max-width: 640px) { .btn--guide-jump { width: 100%; justify-content: center; } }

/* ===== Compact lead forms (John, 2026-11-26: "publish it on all forms") =====
   Every lead form (Contact, Sell, Request a Call Back, Market report, guide pages, blog articles): shorter fields,
   tighter spacing, smaller labels and button. Field text stays 16px (no zoom on iPhone); the consent text stays
   14px (John's minimum, 2026-11-06). */
.article-form, .guide-gate__form { padding: 18px 20px; }
.form-card:has(.lead-form) { padding: 22px 24px; }
.article-form { margin: .6rem 0 1.6rem; }
.lead-form .fields { gap: 10px 14px; }
.lead-form .field { gap: 3px; }
.lead-form .field label, .lead-form .field legend { font-size: .84rem; }
.lead-form .field input, .lead-form .field select, .lead-form .field textarea { padding: 7px 12px; }
.lead-form .field--lang .radio-row { min-height: 40px; }
.lead-form .form-actions { margin-top: 12px; gap: 12px; }
.lead-form .btn { padding: 10px 18px; font-size: .95rem; }
.lead-form .form-note { font-size: .85rem; }
@media (max-width: 640px) { .article-form, .guide-gate__form, .form-card:has(.lead-form) { padding: 16px; } }

/* ===== Home search app page (John, 2026-11-28) ===== */
.app-steps { list-style: none; margin: 8px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.app-step { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 24px; background: #fff; border: 1px solid var(--rule); border-top: 3px solid var(--gold); border-radius: var(--radius); box-shadow: 0 8px 24px rgba(7, 39, 78, .06); }
.app-step h3 { margin: 4px 0 0; }
.app-step p { margin: 0; flex: 1; }
.app-step .btn { margin-top: 6px; }
.app-step__num { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--navy); color: var(--gold); font: 600 1.1rem/1 var(--font-display); }
.app-stores { display: flex; flex-wrap: wrap; gap: 10px; }
.app-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px; margin-top: 28px; }
.app-foot .section-note { margin: 0; }
.app-qr { display: flex; align-items: center; gap: 14px; max-width: 360px; }
.app-qr img { flex: none; width: 120px; height: 120px; border: 1px solid var(--rule); border-radius: 6px; background: #fff; padding: 6px; }
.app-qr p { margin: 0; color: var(--muted); font-size: .95rem; }
@media (max-width: 900px) { .app-steps { grid-template-columns: 1fr; } }
@media (hover: none) and (pointer: coarse) { .app-qr { display: none; } } /* no QR on phones */
.app-callout { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; margin: 22px auto 0; padding: 12px 18px; max-width: 760px; background: var(--tint); border: 1px solid var(--rule); border-radius: var(--radius); color: var(--navy); text-align: center; }
.app-callout svg { width: 20px; height: 20px; color: var(--gold-text); }
.app-callout a { font-weight: 600; }
.app-stores { align-items: center; }
.app-badge { display: inline-flex; line-height: 0; border-radius: 8px; }
.app-badge img { height: 48px; width: auto; }
.app-badge:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.app-ready__steps { margin: 12px 0 0; padding-left: 1.3rem; display: grid; gap: 14px; }
.app-ready__steps li::marker { font-weight: 700; color: var(--gold-text); }
.app-ready__steps p { margin: 0 0 8px; }

/* ===== The app, more prominent (John, 2026-11-28) ===== */
.app-band { background: linear-gradient(135deg, var(--navy) 0%, var(--navy-slate) 100%); color: #fff; padding-block: 44px; }
.app-band__inner { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.app-band__icon { flex: none; display: grid; place-items: center; width: 84px; height: 84px; border-radius: 50%; border: 2px solid var(--gold); color: var(--gold); }
.app-band__icon svg { width: 40px; height: 40px; }
.app-band__text { flex: 1; min-width: 240px; }
.app-band__text .kicker { color: var(--gold); margin: 0 0 4px; }
.home-page main .app-band h2, .app-band h2 { color: #fff; margin: 0 0 6px; }
.app-band__text p:last-child { margin: 0; color: rgba(255, 255, 255, .85); }
@media (max-width: 640px) { .app-band__inner { gap: 18px; } .app-band .btn { width: 100%; justify-content: center; } }
.mr-footer__app { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; padding-block: 20px; margin-bottom: 26px; border-bottom: 1px solid rgba(199, 173, 123, .35); }
.mr-footer__app p { display: flex; align-items: center; gap: 10px; margin: 0; color: #fff; font: 500 1.05rem/1.35 var(--font-display); }
.mr-footer__app svg { flex: none; width: 22px; height: 22px; color: var(--gold); }
@media (max-width: 640px) { .mr-footer__app .btn { width: 100%; justify-content: center; } }
.mr-footer .mr-footer__app .btn, .mr-footer .mr-footer__app .btn:hover { color: var(--navy); text-decoration: none; }
/* Store logos beside the app buttons (John, 2026-11-28) */
.app-band__cta, .mr-footer__app-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; text-decoration: none; }
.app-logos { display: inline-flex; gap: 8px; line-height: 0; }
.app-logos img { width: auto; }
.app-band .app-logos img { height: 44px; }
.mr-footer__app .app-logos img { height: 36px; }
@media (max-width: 640px) { .app-band__cta, .mr-footer__app-cta { width: 100%; } .app-band__cta .btn, .mr-footer__app-cta .btn { width: 100%; justify-content: center; } }
/* "Get the app" label above the store logos, no button (John, 2026-11-28) */
.app-band__cta, .mr-footer__app-cta { flex-direction: column; align-items: flex-start; gap: 8px; }
.app-cta__label { font: 600 .8rem/1.2 var(--font-display); letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.app-band__cta:hover .app-cta__label, .mr-footer__app-cta:hover .app-cta__label { text-decoration: underline; }
.app-band__cta:focus-visible, .mr-footer__app-cta:focus-visible { outline: 3px solid var(--gold); outline-offset: 4px; border-radius: 6px; }
@media (max-width: 640px) { .app-band__cta, .mr-footer__app-cta { width: auto; } }
@media (max-width: 640px) { .app-band__inner { flex-direction: column; align-items: flex-start; } .app-band__icon { width: 56px; height: 56px; } .app-band__icon svg { width: 28px; height: 28px; } .app-band__text { min-width: 0; } }
.field-hint { margin: 2px 0 0; font-size: .85rem; line-height: 1.4; color: var(--muted); }
.app-band__icon svg { width: 52px; height: 52px; } .mr-footer__app svg { width: 28px; height: 28px; } @media (max-width: 640px) { .app-band__icon svg { width: 36px; height: 36px; } }
