/* Property sites, agent-first.
   Layout: the photographs carry the color. Agent sections are ink on white with a serif
   display face; the financing block is a self-contained Franklin Direct panel in its own
   brand (navy, Franklin blue, Poppins), so it reads as the partner, not the host. */
:root {
  /* agent side */
  --ink: #15191C;
  --paper: #FFFFFF;
  --stone: #F3F4F2;
  --line: #E1E4E0;
  --text: #3A4247;
  --muted: #667076;
  --display: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --sans: 'Instrument Sans', 'Helvetica Neue', Arial, sans-serif;
  /* Franklin Direct brand */
  --fd-blue: #146CB6;
  --fd-navy: #0A3157;
  --fd-navy-deep: #0B1B33;
  --fd-sky-soft: #9CC4E4;
  --fd-green: #2FA05F;
  --fd-green-deep: #1C5C38;
  --fd-green-tint: #EAF6EF;
  --fd-tint: #F2F7FC;
  --fd-border: #D9E6F2;
  --fd-text: #2C4A66;
  --fd-muted: #5A7793;
  --fd-font: 'Gilroy', 'Poppins', 'Montserrat', system-ui, sans-serif;
  --r: 4px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--sans); font-size: 16px; line-height: 1.65; color: var(--text); background: var(--paper); font-variant-numeric: tabular-nums; }
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }
h1, h2, h3, p, ul { margin: 0; }
a { color: var(--ink); }
:focus-visible { outline: 3px solid #3A94D9; outline-offset: 2px; }
section[id] { scroll-margin-top: 76px; }

.wrap { max-width: 1240px; margin: 0 auto; padding-inline: 32px; }
.band { padding-block: 104px; }
.band--stone { background: var(--stone); }
.stack { display: flex; flex-direction: column; }
.label { font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.display { font-family: var(--display); font-weight: 500; color: var(--ink); line-height: 1.1; letter-spacing: -0.01em; text-wrap: balance; }
.d-xl { font-size: clamp(40px, 5.2vw, 72px); }
.d-lg { font-size: clamp(32px, 3.6vw, 48px); }
.small { font-size: 13px; line-height: 20px; color: var(--muted); }

.btn { display: inline-block; font: inherit; font-size: 15px; font-weight: 600; line-height: 24px; text-decoration: none; text-align: center; padding: 13px 26px; border-radius: var(--r); border: 1px solid transparent; cursor: pointer; }
.btn--ink { background: var(--ink); color: #FFFFFF; }
.btn--ink:hover { background: #2B3338; }
.btn--white { background: #FFFFFF; color: var(--ink); }
.btn--white:hover { background: var(--stone); }
.btn--ghost { border-color: rgba(255, 255, 255, 0.7); color: #FFFFFF; }
.btn--ghost:hover { background: rgba(255, 255, 255, 0.14); }
.btn--line { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn--line:hover { background: var(--ink); color: #FFFFFF; }

/* Top bar: sits over the hero, turns solid once the page scrolls */
.top { position: absolute; top: 0; left: 0; right: 0; z-index: 30; color: #FFFFFF; transition: background-color 0.25s, color 0.25s, box-shadow 0.25s; }
.top.is-fixed { position: fixed; }
.top.is-solid { background: var(--paper); color: var(--ink); box-shadow: 0 1px 0 var(--line); }
.top__in { display: flex; align-items: center; justify-content: space-between; gap: 12px 32px; padding-block: 16px; }
.brand { color: inherit; text-decoration: none; display: flex; flex-direction: column; min-width: 0; }
.brand b { font-family: var(--display); font-weight: 500; font-size: 26px; line-height: 28px; }
.brand span { font-size: 11px; line-height: 16px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; opacity: 0.85; }
.top nav { display: flex; gap: 32px; font-size: 14px; font-weight: 600; }
.top nav a { color: inherit; text-decoration: none; padding: 10px 0; }
.top nav a:hover { text-decoration: underline; text-underline-offset: 6px; }
.top .btn { padding: 9px 20px; background: #FFFFFF; color: var(--ink); white-space: nowrap; }
.top.is-solid .btn { background: var(--ink); color: #FFFFFF; }

/* Hero: full-bleed slow slideshow */
.hero { position: relative; height: min(92vh, 900px); min-height: 600px; background: var(--ink); overflow: hidden; display: flex; align-items: flex-end; }
.slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.6s ease; }
.slide.is-on { opacity: 1; }
.slide img { width: 100%; height: 100%; object-fit: cover; transform: scale(1); transition: transform 9s linear; }
.slide.is-on img { transform: scale(1.07); }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(21, 25, 28, 0.92) 0%, rgba(21, 25, 28, 0.66) 40%, rgba(21, 25, 28, 0.3) 70%, rgba(21, 25, 28, 0.5) 100%); pointer-events: none; }
.hero__in { position: relative; z-index: 2; width: 100%; padding-block: 56px; color: #FFFFFF; display: flex; flex-direction: column; gap: 28px; }
.hero .label { color: rgba(255, 255, 255, 0.86); }
.hero h1 { font-family: var(--display); font-weight: 500; font-size: clamp(40px, 6vw, 92px); line-height: 1.04; letter-spacing: -0.01em; max-width: 15ch; text-wrap: balance; }
.hero__meta { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px 48px; border-top: 1px solid rgba(255, 255, 255, 0.4); padding-top: 24px; }
.hero__facts { display: flex; flex-wrap: wrap; gap: 12px 40px; }
.hero__facts div { display: flex; flex-direction: column; }
.hero__facts b { font-size: 20px; line-height: 28px; font-weight: 600; }
.hero__facts span { font-size: 12px; line-height: 16px; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255, 255, 255, 0.8); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; }
.ticks { position: absolute; z-index: 2; right: 32px; top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; gap: 8px; }
.ticks i { display: block; width: 3px; height: 28px; background: rgba(255, 255, 255, 0.4); }
.ticks i.is-on { background: #FFFFFF; }

/* Intro */
.intro { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 48px 96px; align-items: start; }
.intro__lede { font-family: var(--display); font-size: clamp(22px, 2.1vw, 30px); line-height: 1.4; color: var(--ink); }
.keyfacts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 24px; }
.keyfacts div { border-top: 1px solid var(--line); padding: 14px 0; }
.keyfacts b { display: block; font-size: 20px; line-height: 28px; font-weight: 600; color: var(--ink); }

/* Room-by-room story */
.story { display: flex; flex-direction: column; gap: 96px; }
.room { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 32px 72px; align-items: center; }
.room:nth-child(even) { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); }
.room:nth-child(even) .room__photo { order: 2; }
.room__photo { position: relative; padding: 0; border: 0; background: var(--stone); aspect-ratio: 3 / 2; overflow: hidden; cursor: zoom-in; border-radius: var(--r); }
.room__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s ease; }
.room__photo:hover img { transform: scale(1.03); }
.room__text { display: flex; flex-direction: column; gap: 16px; }

/* Photo band with highlights */
.photoband { position: relative; background: var(--ink); color: #FFFFFF; padding-block: 120px; overflow: hidden; }
.photoband > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.photoband::after { content: ""; position: absolute; inset: 0; background: rgba(21, 25, 28, 0.74); }
.photoband .wrap { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 40px 72px; align-items: start; }
.photoband .display { color: #FFFFFF; }
.photoband .label { color: rgba(255, 255, 255, 0.8); }
.checks { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 40px; }
.checks li { border-top: 1px solid rgba(255, 255, 255, 0.32); padding: 16px 0; font-size: 17px; line-height: 26px; }

/* Gallery */
.gallery { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-flow: dense; gap: 12px; }
.ph { position: relative; padding: 0; border: 0; background: var(--stone); overflow: hidden; cursor: zoom-in; aspect-ratio: 4 / 3; border-radius: var(--r); }
.ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s ease; }
.ph:hover img { transform: scale(1.04); }
.ph--big { grid-column: span 2; grid-row: span 2; }
/* a listing with one to four photos: one plain row, sized so nothing collapses */
.gallery.gallery--few { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.gallery.gallery--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.gallery.gallery--1 { grid-template-columns: minmax(0, 1fr); max-width: 960px; }
.gallery--1 .ph { aspect-ratio: 3 / 2; }
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 32px; }

/* Financing: Franklin Direct partner panel */
.fd { font-family: var(--fd-font); font-size: 15px; line-height: 1.6; background: var(--fd-navy); color: var(--fd-sky-soft); padding-block: 96px; }
.fd .wrap { display: flex; flex-direction: column; gap: 32px; }
.fd__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 40px; }
.fd__head img { height: 84px; width: auto; }
.fd__partner { font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--fd-sky-soft); border: 1px solid rgba(156, 196, 228, 0.5); padding: 8px 14px; border-radius: 999px; }
.fd h2 { color: #FFFFFF; font-size: clamp(30px, 3.6vw, 44px); line-height: 1.18; font-weight: 700; text-wrap: balance; }
.fd h3 { text-wrap: balance; }
.fd__lede { max-width: 700px; font-size: 16px; }
.fd .eyebrow { font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; }
.versus { display: flex; flex-direction: column; gap: 22px; max-width: 880px; }
.versus__row { display: flex; flex-direction: column; gap: 8px; }
.versus__top { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 24px; color: #FFFFFF; }
.versus__top span { font-weight: 500; }
.versus__top b { font-size: 26px; line-height: 32px; font-weight: 700; white-space: nowrap; }
.versus__track { height: 18px; background: rgba(156, 196, 228, 0.18); border-radius: 999px; overflow: hidden; }
.versus__bar { height: 100%; border-radius: 999px; background: var(--fd-sky-soft); }
.versus__bar--credit { background: var(--fd-green); }
.fd__note { font-size: 13px; line-height: 20px; max-width: 760px; }
.credit { background: var(--fd-green-deep); border-radius: 16px; padding: 28px 32px; display: flex; flex-wrap: wrap; align-items: center; gap: 20px 56px; color: #FFFFFF; }
.credit .lbl { display: block; font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--fd-green-tint); }
.credit__total { font-size: 44px; line-height: 52px; font-weight: 700; }
.credit__parts { display: flex; flex-wrap: wrap; gap: 16px 48px; }
.credit__parts b { display: block; font-size: 22px; line-height: 30px; font-weight: 700; }
.options { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 20px; }
.opt { background: #FFFFFF; color: var(--fd-text); border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; min-width: 0; }
.opt__head { background: var(--fd-tint); padding: 20px 24px; border-bottom: 1px solid var(--fd-border); }
.opt__head .eyebrow { color: var(--fd-blue); }
.opt__head h3 { color: var(--fd-navy); font-size: 22px; line-height: 30px; font-weight: 600; margin-top: 4px; }
.opt__body { padding: 24px; display: flex; flex-direction: column; gap: 20px; flex: 1 1 auto; }
.opt__rate { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.opt__rate b { font-size: 44px; line-height: 52px; font-weight: 700; color: var(--fd-navy); }
.opt__apr { font-size: 14px; line-height: 20px; font-weight: 500; color: var(--fd-muted); }
.opt__term { font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--fd-muted); margin-top: 4px; }
.opt__pay { border-top: 1px solid var(--fd-border); padding-top: 20px; }
.opt__pay b { display: block; font-size: 30px; line-height: 38px; font-weight: 700; color: var(--fd-navy); }
.opt__pay span { font-size: 14px; line-height: 20px; color: var(--fd-muted); }
.opt__save { margin-top: auto; background: var(--fd-green-tint); color: var(--fd-green-deep); border-radius: 10px; padding: 14px 16px; }
.opt__save b { display: block; font-weight: 600; }
.opt__save span { font-size: 13px; line-height: 20px; }
.steps > div { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--fd-border); }
.steps > div:first-child { padding-top: 0; }
.steps > div:last-child { border-bottom: 0; padding-bottom: 0; }
.steps .yr { font-weight: 600; color: var(--fd-navy); }
.steps .yr span { font-weight: 400; color: var(--fd-muted); }
.steps b { font-size: 22px; line-height: 30px; font-weight: 700; color: var(--fd-navy); }
.fd__panel { background: #FFFFFF; color: var(--fd-text); border-radius: 16px; padding: 28px 32px; display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 28px 64px; }
.fd__panel h3 { color: var(--fd-navy); font-size: 17px; line-height: 24px; font-weight: 600; margin-bottom: 12px; }
.rows > div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--fd-border); }
.rows > div:last-child { border-bottom: 0; }
.rows b { font-weight: 600; color: var(--fd-navy); text-align: right; }
.fd__foot { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 20px; }
.fd__card { border: 1px solid rgba(156, 196, 228, 0.4); border-radius: 16px; padding: 24px 28px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 20px; }
.fd__card img { width: 72px; height: 72px; border-radius: 999px; object-fit: cover; flex: 0 0 auto; }
.fd__card > div { flex: 1 1 220px; min-width: 0; }
.fd__card b { display: block; color: #FFFFFF; font-size: 18px; line-height: 26px; font-weight: 600; }
.fd__card a { color: #FFFFFF; font-weight: 600; overflow-wrap: anywhere; }
.fd .btn { font-family: inherit; border-radius: 10px; }
.fd .btn--fd { background: #FFFFFF; color: var(--fd-navy); }
.fd .btn--fd:hover { background: var(--fd-tint); }
.fd__btns { display: flex; flex-wrap: wrap; gap: 10px; }
.fd .btn--fdline { background: transparent; color: #FFFFFF; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.75); }
.fd .btn--fdline:hover { background: rgba(255, 255, 255, 0.12); }

/* Details */
.facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 0 40px; }
.facts > div { border-top: 1px solid var(--line); padding: 16px 0; }
.facts b { display: block; font-weight: 600; color: var(--ink); }
.community { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 40px 72px; align-items: start; }
.community__photos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.community__photos .ph { aspect-ratio: 3 / 4; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips span { border: 1px solid var(--line); background: var(--paper); color: var(--ink); font-weight: 500; font-size: 14px; line-height: 20px; padding: 7px 14px; border-radius: 999px; }

/* Contact */
.contact { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 48px 80px; align-items: center; }
.agent { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; }
.agent img { width: 112px; height: 112px; border-radius: 999px; object-fit: cover; flex: 0 0 auto; }
.agent__name { font-family: var(--display); font-weight: 500; font-size: 40px; line-height: 44px; color: var(--ink); }
.contact__cta { display: flex; flex-wrap: wrap; gap: 12px; }
.contact__photo { position: relative; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--r); background: var(--line); padding: 0; border: 0; cursor: zoom-in; }
.contact__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* Footer */
.foot { background: var(--ink); color: #B9C0C4; padding-block: 64px; font-size: 12px; line-height: 19px; }
.foot__top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 48px; padding-bottom: 28px; border-bottom: 1px solid rgba(255, 255, 255, 0.2); }
.foot__agent b { display: block; font-family: var(--display); font-weight: 500; font-size: 28px; line-height: 32px; color: #FFFFFF; }
.foot__agent span { font-size: 13px; line-height: 20px; }
.foot__marks { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 32px; }
.foot__marks img { height: 72px; width: auto; }
.eho { display: flex; align-items: center; gap: 10px; color: #FFFFFF; font-size: 14px; font-weight: 600; }
.foot p b, .foot .lic { color: #FFFFFF; }
.foot p b { font-weight: 600; }

/* Phone dock */
.dock { display: none; }

/* Photo viewer */
.lb { position: fixed; inset: 0; z-index: 60; background: rgba(21, 25, 28, 0.96); display: flex; align-items: center; justify-content: center; padding: 64px 16px 76px; }
.lb img { max-width: 100%; max-height: 100%; object-fit: contain; }
.lb button { position: absolute; font: inherit; font-size: 14px; font-weight: 600; color: #FFFFFF; background: transparent; border: 1px solid rgba(255, 255, 255, 0.6); border-radius: 999px; min-width: 48px; min-height: 48px; padding: 0 20px; cursor: pointer; }
.lb button:hover { background: rgba(255, 255, 255, 0.14); }
.lb__x { top: 12px; right: 12px; }
.lb__prev { left: 12px; bottom: 14px; }
.lb__next { right: 12px; bottom: 14px; }
.lb__count { position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%); color: rgba(255, 255, 255, 0.8); font-size: 14px; }

/* Community Advantage panel */
.trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; max-width: 880px; }
.trio > div { background: rgba(255, 255, 255, 0.07); border-radius: 12px; padding: 20px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.trio b { color: #FFFFFF; font-size: 40px; line-height: 46px; font-weight: 700; }
.trio span { color: #FFFFFF; font-weight: 500; }
.trio small { font-size: 13px; line-height: 19px; margin-top: 4px; }
.cmpwrap { overflow-x: auto; }
.cmp { width: 100%; border-collapse: separate; border-spacing: 0; }
.cmp th, .cmp td { text-align: right; padding: 10px 0 10px 16px; border-bottom: 1px solid var(--fd-border); vertical-align: middle; }
.cmp td small { display: block; font-size: 12px; line-height: 16px; font-weight: 500; color: var(--fd-muted); }
.cmp td small:empty { display: none; }
/* the Community Advantage column, boxed in green */
.cmp .cmp__ca { padding-right: 14px; background: rgba(47, 160, 95, 0.07); border-left: 2px solid var(--fd-green, #2FA05F); border-right: 2px solid var(--fd-green, #2FA05F); }
.cmp thead .cmp__ca { border-top: 2px solid var(--fd-green, #2FA05F); border-radius: 12px 12px 0 0; color: var(--fd-green-deep); padding-top: 12px; }
.cmp .cmp__total .cmp__ca { border-bottom: 2px solid var(--fd-green, #2FA05F); border-radius: 0 0 12px 12px; }
.cmp td.cmp__ca small { color: var(--fd-green-deep); opacity: 0.85; }
.cmp__note { margin-top: 12px; font-size: 13px; line-height: 20px; color: var(--fd-muted); }
.cmp th:first-child { text-align: left; padding-left: 0; font-weight: 400; color: var(--fd-text); }
.cmp thead th { font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--fd-muted); }
.cmp td { font-weight: 600; color: var(--fd-navy); white-space: nowrap; }
.cmp td.cmp__ca { color: var(--fd-green-deep); }
.cmp td, .cmp thead th:not(:first-child) { padding-right: 20px; }   /* room before the green box, whether or not FHA is shown */
.cmp__total th, .cmp__total td { border-bottom: 0; font-size: 18px; }
.cmp__total th:first-child { font-weight: 600; color: var(--fd-navy); }

/* Draft and preview states */
.hold { display: none; }
.is-draft { padding-bottom: 0; }
.is-draft > *:not(.hold):not(.agentbar) { display: none !important; }
.is-draft .hold { display: grid; place-items: center; min-height: calc(100vh - var(--agentbar-h, 0px)); padding: 32px; text-align: center; background: var(--ink); color: rgba(255, 255, 255, 0.82); }
.hold b { display: block; font-family: var(--display); font-weight: 500; font-size: 34px; line-height: 40px; color: #FFFFFF; }
.hold span { display: block; font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; margin-top: 4px; }
.hold p { margin: 28px 0 0; font-size: 17px; }
.ribbon { position: fixed; left: 50%; bottom: 84px; transform: translateX(-50%); z-index: 60; background: #FFFFFF; color: var(--ink); border: 1px solid var(--ink); border-radius: 999px; padding: 8px 18px; font-size: 13px; font-weight: 600; letter-spacing: 0.04em; white-space: nowrap; box-shadow: 0 6px 20px rgba(21, 25, 28, 0.2); }
@media (max-width: 980px) {
  .wrap { padding-inline: 20px; }
  .band { padding-block: 72px; }
  .top nav { display: none; }
  .ticks { display: none; }
  .intro, .room, .room:nth-child(even), .photoband .wrap, .community, .contact { grid-template-columns: minmax(0, 1fr); }
  .room:nth-child(even) .room__photo { order: 0; }
  .story { gap: 64px; }
  .photoband { padding-block: 80px; }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .fd { padding-block: 72px; }
}
@media (max-width: 640px) {
  .hero { min-height: 560px; height: 86vh; }
  .hero__in { padding-block: 36px; gap: 20px; }
  .hero__facts { gap: 10px 28px; }
  .checks { grid-template-columns: minmax(0, 1fr); }
  .credit, .fd__panel { padding: 24px 20px; }
  .credit__total { font-size: 30px; line-height: 38px; }
  .trio { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .trio > div { padding: 14px 16px; flex-direction: row; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
  .trio b { font-size: 28px; line-height: 34px; }
  .trio small { flex-basis: 100%; margin-top: 0; }
  .cmp th, .cmp td { padding-left: 10px; font-size: 14px; }
  .cmp__total th, .cmp__total td { font-size: 16px; }
  .credit__parts b { font-size: 19px; line-height: 26px; }
  .versus__top b { font-size: 21px; line-height: 28px; }
  /* The three option cards: smaller figures and tighter spacing on a phone */
  .options { gap: 14px; }
  .opt__head { padding: 14px 18px; }
  .opt__head h3 { font-size: 19px; line-height: 26px; margin-top: 2px; }
  .opt__body { padding: 18px; gap: 14px; }
  .opt__rate b { font-size: 30px; line-height: 36px; }
  .opt__pay { padding-top: 14px; }
  .opt__pay b { font-size: 24px; line-height: 30px; }
  .opt__save { padding: 12px 14px; }
  .steps > div { padding: 10px 0; }
  .steps b { font-size: 19px; line-height: 26px; }
  .community__photos .ph { aspect-ratio: 1 / 1; }
  .brand b { font-size: 22px; line-height: 24px; }
  .top .btn { display: none; }
  body { padding-bottom: 68px; }
  .dock { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: var(--paper); border-top: 1px solid var(--line); padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px)); }
  .dock .btn { padding: 11px 8px; font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .slide, .slide img, .ph img, .room__photo img { transition: none; }
  .slide.is-on img { transform: none; }
}

.facts .label, .keyfacts .label { display: block; }
.facts .label { margin-bottom: 4px; }

/* Financing panel additions */
.fd__panel p { color: var(--fd-text); }
.no-fin .dock { grid-template-columns: 1fr; }

/* The listing agent's bar (agent-bar.js) sits above everything; the header drops below it */
.has-agentbar .top { top: var(--agentbar-h, 0px); }

/* Community Advantage: the hero says the home is eligible, and links to the program's numbers */
.ca-badge { align-self: flex-start; display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: 2px 12px; padding: 10px 16px; border-radius: 6px; background: #FFFFFF; color: #0B3157; text-decoration: none; font-family: 'Poppins', var(--sans); line-height: 20px; box-shadow: 0 6px 24px rgba(0, 0, 0, 0.25); }
.ca-badge b { font-weight: 700; font-size: 15px; letter-spacing: 0.01em; }
.ca-badge span { font-size: 14px; font-weight: 500; color: #1F7A47; }
a.ca-badge[href]:hover { background: #EEF4FA; }
@media (max-width: 640px) { .gallery.gallery--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .ca-badge { padding: 9px 14px; } .ca-badge b { font-size: 14px; } .ca-badge span { font-size: 13px; } }
/* three loans side by side still fit a phone */
@media (max-width: 560px) {
  .cmp th, .cmp td { padding: 9px 0 9px 8px; font-size: 13px; line-height: 18px; }
  .cmp th:first-child { padding-left: 0; }
  .cmp thead th { font-size: 10px; line-height: 13px; letter-spacing: 0.03em; white-space: normal; }
  .cmp .cmp__ca { padding-right: 8px; }
  .cmp td, .cmp thead th:not(:first-child) { padding-right: 8px; }
  .cmp td small { font-size: 10.5px; line-height: 14px; }
  .cmp__total th, .cmp__total td { font-size: 14px; }
  .cmp__long { display: none; }
}
.uc { background: #15191C; color: #FFFFFF; text-align: center; font-weight: 600; font-size: 13px; line-height: 18px; letter-spacing: 0.14em; text-transform: uppercase; padding: 10px 16px; }
