/* ==========================================================================
   WholesaleDistrictHomes.com — design system
   Modeled on MySurfCityHome: Playfair Display / Inter / Cormorant Garamond,
   navy + gold on cream. Flat surfaces: 2px radius, no shadows.
   ========================================================================== */

:root {
  --navy: #0B1F3A;
  --navy-2: #12294A;
  --navy-deep: #06152A;
  --gold: #D4A73A;
  --gold-light: #E8C46D;   /* gold text on navy */
  --gold-ink: #7A5C0E;     /* gold text on light surfaces (AA) */
  --gold-soft: #F4ECD6;
  --slate: #3A4A60;
  --muted: #55647A;
  --paper: #FBF8F4;
  --sand: #F4EEE2;
  --input: #FCFAF6;
  --line: #E6E1D4;
  --link: #0078A8;
  --lender: #1F5F7A;       /* mortgage-role accent, kept apart from brokerage gold */
  --lender-soft: #E8F1F5;
  --terra: #A8552D;
  --white: #FFFFFF;
  --display: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --radius: 2px;
  --header-h: 86px;
}

*, *::before, *::after { box-sizing: border-box; }
html { font-size: 106.25%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 14px); -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--sans); font-size: 1rem; line-height: 1.65; color: var(--slate); background: var(--paper); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img, svg { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4 { font-family: var(--display); color: var(--navy); line-height: 1.18; margin: 0 0 .5em; font-weight: 700; }
h1 { font-size: clamp(2.5rem, 6.2vw, 4.3rem); font-weight: 800; letter-spacing: -.02em; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); letter-spacing: -.005em; }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.12rem; }
p { margin: 0 0 1.05em; }
a { color: var(--link); text-decoration: underline; text-underline-offset: .16em; text-decoration-thickness: 1px; }
a:hover { color: var(--navy); }
strong { color: var(--navy); font-weight: 600; }
:focus-visible { outline: 3px solid var(--link); outline-offset: 2px; }
.on-navy :focus-visible, .top :focus-visible, footer :focus-visible { outline-color: var(--gold-light); }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 900px; margin: 0 auto; padding: 0 24px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 300; background: var(--gold); color: var(--navy); padding: 10px 16px; font-weight: 600; border-radius: var(--radius); }
.skip:focus { top: 8px; }

.eyebrow { display: block; font-family: var(--sans); font-size: .74rem; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; color: var(--gold-ink); margin-bottom: 14px; }
.on-navy .eyebrow { color: var(--gold-light); }
.prose p, p.prose, .lede { font-family: var(--serif); font-size: 1.26rem; line-height: 1.62; color: var(--slate); font-weight: 500; }
.it { font-family: var(--serif); font-style: italic; font-weight: 500; color: var(--gold-ink); }
.on-navy .it { color: var(--gold-light); }
.verify { display: block; font-family: var(--sans); font-size: .78rem; line-height: 1.5; color: var(--muted); margin-top: 10px; }
.verify b { font-weight: 600; color: var(--slate); }
.flag { display: inline-block; font-size: .68rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 2px 7px; border: 1px solid var(--terra); color: var(--terra); border-radius: var(--radius); margin-left: 6px; white-space: nowrap; }
[data-bind]:empty::before, [data-bind].pending::before { content: "…"; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-family: var(--sans); font-weight: 600; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; text-decoration: none; padding: 16px 24px; border-radius: var(--radius); border: 1.5px solid transparent; cursor: pointer; line-height: 1.3; text-align: center; transition: background-color .15s ease, color .15s ease, border-color .15s ease; }
.btn-gold { background: var(--gold); color: var(--navy); border-color: var(--gold); }
.btn-gold:hover { background: var(--gold-light); border-color: var(--gold-light); color: var(--navy); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .65); }
.btn-ghost: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-2); color: #fff; }
.btn-line { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-line:hover { background: var(--navy); color: #fff; }
.btn-lender { background: var(--lender); color: #fff; border-color: var(--lender); }
.btn-lender:hover { background: var(--navy); border-color: var(--navy); color: #fff; }
.cta-pair { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.cta-pair.center { justify-content: center; }

/* ---------- Sticky top bar ---------- */
.top { position: sticky; top: 0; z-index: 200; }
.idbar { background: var(--navy-deep); color: rgba(255, 255, 255, .88); font-size: .68rem; font-weight: 500; letter-spacing: .13em; text-transform: uppercase; text-align: center; padding: 7px 0; border-bottom: 1px solid rgba(212, 167, 58, .28); line-height: 1.5; }
.idbar .wrap { display: flex; flex-wrap: wrap; justify-content: center; gap: 2px 10px; }
.idbar strong { color: var(--gold-light); font-weight: 600; }
.idbar .sep { color: rgba(212, 167, 58, .6); }
.idbar a { color: #fff; text-decoration: none; white-space: nowrap; }
.idbar a:hover { color: var(--gold-light); }
.anchors { background: var(--navy); border-bottom: 1px solid rgba(255, 255, 255, .1); }
.anchors .wrap { display: flex; align-items: center; gap: 4px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.anchors .wrap::-webkit-scrollbar { display: none; }
.anchors a { flex: 0 0 auto; color: rgba(255, 255, 255, .86); text-decoration: none; font-size: .7rem; font-weight: 500; letter-spacing: .07em; text-transform: uppercase; padding: 13px 7px; white-space: nowrap; }
.anchors a:hover, .anchors a[aria-current="true"] { color: var(--gold-light); }
.anchors .brand { font-family: var(--display); font-size: 1rem; font-weight: 700; letter-spacing: .01em; text-transform: none; color: #fff; padding-left: 0; margin-right: auto; display: inline-flex; align-items: center; gap: 9px; }
.anchors .brand svg { width: 22px; height: 22px; flex: 0 0 auto; }
.anchors .nav-cta { background: var(--gold); color: var(--navy); font-weight: 700; padding: 9px 14px; border-radius: var(--radius); margin-left: 8px; }
.anchors .nav-cta:hover { background: var(--gold-light); color: var(--navy); }

/* ---------- Hero ---------- */
.hero { background: var(--navy); color: #fff; padding: 64px 0 72px; position: relative; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 52px; align-items: center; }
.hero h1 { color: #fff; margin: 16px 0 20px; }
.hero h1 .it { color: var(--gold-light); }
.pill { display: inline-flex; align-items: center; gap: 10px; border: 1px solid rgba(212, 167, 58, .5); padding: 8px 16px; border-radius: 999px; font-size: .7rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: #fff; }
.pill i { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); flex: 0 0 auto; }
.hero .sub { font-family: var(--serif); font-size: 1.3rem; line-height: 1.6; color: rgba(255, 255, 255, .92); max-width: 620px; font-weight: 500; }
.chips { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 30px; max-width: 620px; padding: 0; list-style: none; }
.chips li { border: 1px solid rgba(255, 255, 255, .2); border-radius: var(--radius); padding: 11px 14px; }
.chips b { display: block; font-family: var(--display); font-weight: 700; font-size: 1rem; color: var(--gold-light); line-height: 1.2; }
.chips span { display: block; font-size: .68rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: rgba(255, 255, 255, .8); margin-top: 4px; }
.plate { background: var(--paper); border: 1px solid var(--gold); border-radius: var(--radius); padding: 14px; }
.plate img { width: 100%; }
.plate figcaption { font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); padding: 10px 4px 0; text-align: center; }
figure { margin: 0; }
picture.photo-slot:empty { display: none; }

/* ---------- Sections ---------- */
section { padding: 88px 0; }
.bg-white { background: #fff; }
.bg-sand { background: var(--sand); }
.bg-navy { background: var(--navy); color: rgba(255, 255, 255, .88); }
.bg-navy h2, .bg-navy h3, .bg-navy h4 { color: #fff; }
.bg-navy strong { color: #fff; }
.bg-navy a { color: var(--gold-light); }
.head { max-width: 800px; margin: 0 auto 44px; text-align: center; }
.head.left { margin-left: 0; text-align: left; }
.head p { font-family: var(--serif); font-size: 1.26rem; line-height: 1.6; font-weight: 500; margin: 12px 0 0; }
.bg-navy .head p { color: rgba(255, 255, 255, .86); }
.two { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: start; }
.two.even { grid-template-columns: 1fr 1fr; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.bg-white .card, .bg-white .tbl-wrap { background: var(--paper); }
.spot { width: 132px; height: auto; margin-bottom: 14px; }

/* callouts (hook section) */
.callouts { display: grid; gap: 12px; }
.callout { display: flex; gap: 16px; align-items: flex-start; background: var(--paper); border: 1px solid var(--line); border-left: 3px solid var(--gold); border-radius: var(--radius); padding: 18px 20px; }
.callout .n { flex: 0 0 auto; width: 34px; height: 34px; border-radius: 50%; background: var(--gold); color: var(--navy); font-family: var(--display); font-weight: 800; display: grid; place-items: center; }
.callout h3 { font-size: 1.08rem; margin: 2px 0 4px; }
.callout p { margin: 0; font-size: 1rem; line-height: 1.55; }

/* stat tiles */
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.tile { background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--gold); border-radius: var(--radius); padding: 24px 22px; }
.tile .lbl { display: block; font-size: .68rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-ink); margin-bottom: 10px; }
.tile .val { display: block; font-family: var(--display); font-size: 2.3rem; font-weight: 800; color: var(--navy); line-height: 1; letter-spacing: -.015em; }
.tile .sub { display: block; font-size: 1rem; color: var(--slate); margin-top: 10px; line-height: 1.45; }
.tile .verify { margin-top: 12px; }

/* tables */
.tbl-wrap { overflow-x: auto; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); -webkit-overflow-scrolling: touch; }
table.tbl { width: 100%; border-collapse: collapse; min-width: 760px; }
table.tbl.wide { min-width: 1080px; }
.tbl caption { caption-side: top; text-align: left; padding: 14px 18px; font-size: .78rem; color: var(--muted); border-bottom: 1px solid var(--line); }
.tbl th { background: var(--navy); color: var(--gold-light); font-size: .7rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; text-align: left; padding: 13px 16px; white-space: nowrap; }
.tbl td { padding: 13px 16px; border-top: 1px solid var(--line); font-size: 1rem; line-height: 1.45; vertical-align: top; color: var(--slate); }
.tbl td.name { font-family: var(--display); font-weight: 700; color: var(--navy); }
.tbl td.num { font-family: var(--display); font-weight: 700; color: var(--navy); }
.tbl td small { display: block; font-family: var(--sans); font-weight: 400; font-size: .78rem; color: var(--muted); margin-top: 3px; }
.tbl.wide th, .tbl.wide td { padding: 12px 12px; }
.tbl.wide td { font-size: .94rem; }
.tbl tr.grp td { background: var(--gold-soft); font-family: var(--display); font-weight: 800; color: var(--navy); font-size: 1.02rem; }
.tbl tr.hl td { background: #FBF4E1; }
.tbl tr.bench td { background: var(--sand); }
.tbl .vc { color: var(--muted); font-style: italic; }
.scroll-hint { display: none; font-size: .76rem; color: var(--muted); margin: 0 0 8px; }

/* charts */
.charts { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 20px; }
.chart-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 24px 20px; min-width: 0; }
.chart-card.full { grid-column: 1 / -1; }
.chart-card h3 { font-size: 1.16rem; margin-bottom: 4px; }
.chart-card .csub { font-size: 1rem; color: var(--muted); margin: 0 0 14px; }
.chart svg { width: 100%; height: auto; overflow: visible; }
.chart text { font-family: var(--sans); fill: var(--slate); }
.chart .lab { font-size: 13px; fill: var(--navy); font-weight: 500; }
.chart .val { font-size: 13px; font-weight: 600; fill: var(--navy); }
.chart .axis { font-size: 11px; fill: var(--muted); }
.chart .grid { stroke: var(--line); stroke-width: 1; }
.chart .bar { transition: opacity .12s ease; }
.chart .hit { fill: transparent; cursor: default; }
.chart g.row:hover .bar, .chart g.row:focus .bar { opacity: .82; }
.chart g.row:focus { outline: none; }
.chart g.row:focus-visible .hit { stroke: var(--link); stroke-width: 2; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 0 0 12px; padding: 0; list-style: none; font-size: .8rem; color: var(--slate); }
.legend li { display: inline-flex; align-items: center; gap: 7px; }
.legend i { width: 12px; height: 12px; border-radius: 2px; display: inline-block; }
.tip { position: fixed; z-index: 400; pointer-events: none; background: var(--navy); color: #fff; font-size: .78rem; line-height: 1.45; padding: 8px 11px; border-radius: var(--radius); max-width: 260px; opacity: 0; transition: opacity .1s ease; }
.tip.show { opacity: 1; }
.tip b { color: var(--gold-light); font-weight: 600; display: block; }

/* tiers */
.tier-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.tier { background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--gold); border-radius: var(--radius); padding: 0 0 26px; overflow: hidden; }
.tier .art { background: var(--paper); border-bottom: 1px solid var(--line); }
.tier .art img { width: 100%; aspect-ratio: 3 / 1.55; object-fit: cover; }
.tier .body { padding: 24px 28px 0; }
.tier .tnum { font-size: .7rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-ink); }
.tier h3 { font-size: 1.4rem; margin: 6px 0 12px; }
.bchips { display: flex; flex-wrap: wrap; gap: 7px; margin: 0 0 14px; padding: 0; list-style: none; }
.bchips li { padding: 5px 12px; background: var(--paper); border: 1px solid var(--line); border-radius: 999px; font-size: .8rem; font-weight: 600; color: var(--navy); }
.tier p { font-family: var(--serif); font-size: 1.2rem; line-height: 1.58; font-weight: 500; margin: 0 0 10px; }
.tier p:last-child { margin-bottom: 0; }

/* homes by neighborhood */
.band { margin-top: 36px; }
.band h3 { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; font-size: 1.24rem; border-bottom: 2px solid var(--gold); padding-bottom: 8px; margin-bottom: 16px; }
.band h3 small { font-family: var(--sans); font-size: .74rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.areas { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.area { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 22px 20px; display: flex; flex-direction: column; }
.area .dist { font-size: .68rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-ink); }
.area h4 { font-size: 1.22rem; margin: 5px 0 2px; }
.area .homes { font-size: 1rem; font-weight: 600; color: var(--navy); margin: 0 0 8px; }
.area p { font-size: 1rem; line-height: 1.55; margin: 0 0 12px; }
.area .price { border-top: 1px dashed var(--line); padding-top: 10px; margin-top: auto; font-size: 1rem; }
.area .price b { font-family: var(--display); font-weight: 700; color: var(--navy); }
.area .price small { display: block; font-size: .76rem; color: var(--muted); margin-top: 2px; }
.area .go { margin-top: 14px; align-self: flex-start; font-size: .76rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--navy); text-decoration: none; border-bottom: 2px solid var(--gold); padding-bottom: 2px; }
.area .go:hover { color: var(--link); }
.ringlink { margin-top: 28px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; background: var(--navy); color: #fff; padding: 22px 26px; border-radius: var(--radius); }
.ringlink p { margin: 0; font-family: var(--serif); font-size: 1.24rem; font-weight: 500; max-width: 620px; }

/* map */
.map-wrap { background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--gold); border-radius: var(--radius); overflow: hidden; }
#bmap { height: 540px; width: 100%; background: var(--sand); }
.map-ph { height: 100%; display: grid; place-items: center; text-align: center; padding: 24px; color: var(--muted); font-size: 1rem; }
.map-bar { display: flex; flex-wrap: wrap; gap: 10px 22px; align-items: center; justify-content: space-between; padding: 14px 18px; border-top: 1px solid var(--line); }
.map-legend { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 0; padding: 0; list-style: none; font-size: .8rem; font-weight: 600; color: var(--navy); }
.map-legend li { display: inline-flex; align-items: center; gap: 8px; }
.pin { width: 22px; height: 22px; border-radius: 50%; border: 2px solid #fff; outline: 1px solid rgba(11, 31, 58, .35); color: #fff; font: 700 11px/18px var(--sans); text-align: center; display: inline-block; }
.pin.nb { background: #fff; border-color: var(--navy); outline: 0; width: 14px; height: 14px; }
.map-tools { display: flex; gap: 8px; }
.map-tools button { font: 600 .72rem var(--sans); letter-spacing: .1em; text-transform: uppercase; background: #fff; color: var(--navy); border: 1.5px solid var(--navy); border-radius: var(--radius); padding: 9px 12px; cursor: pointer; }
.map-tools button[aria-pressed="true"] { background: var(--navy); color: #fff; }
.leaflet-container { font-family: var(--sans); }
.leaflet-popup-content-wrapper { border-radius: var(--radius); box-shadow: none; border: 1px solid var(--navy); }
.leaflet-popup-content { margin: 14px 16px; line-height: 1.5; font-size: 14px; }
.leaflet-popup-tip { box-shadow: none; border: 1px solid var(--navy); }
.mp-name { font-family: var(--display); font-weight: 800; font-size: 16px; color: var(--navy); }
.mp-tier { font-size: 10.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-ink); margin: 2px 0 6px; }
.mp-row b { color: var(--navy); }
.mp-link { display: inline-block; margin-top: 8px; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.wdh-pin { background: transparent; border: 0; }
.wdh-label { background: rgba(255, 255, 255, .92); border: 1px solid var(--navy); border-radius: var(--radius); color: var(--navy); font: 600 11px var(--sans); padding: 2px 6px; white-space: nowrap; box-shadow: none; }
.wdh-label::before { display: none; }

/* steps (navy) */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: step; padding: 0; margin: 0; list-style: none; }
.steps li { border: 1px solid rgba(255, 255, 255, .18); border-radius: var(--radius); padding: 24px 22px; counter-increment: step; }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--gold); color: var(--navy); font-family: var(--display); font-weight: 800; margin-bottom: 14px; }
.steps h3 { font-size: 1.14rem; margin-bottom: 8px; }
.steps p { margin: 0; font-size: 1rem; line-height: 1.58; color: rgba(255, 255, 255, .86); }

/* six things */
.six { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.thing { background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--terra); border-radius: var(--radius); padding: 26px 24px; display: flex; flex-direction: column; }
.thing h3 { font-size: 1.18rem; margin-bottom: 8px; }
.thing p { font-family: var(--serif); font-size: 1.18rem; line-height: 1.56; font-weight: 500; margin: 0 0 12px; }
.thing .tip-line { margin-top: auto; padding-top: 12px; border-top: 1px dashed var(--line); font-family: var(--sans); font-size: 1rem; font-weight: 500; line-height: 1.5; color: var(--navy); }

/* lists */
.ticks { list-style: none; padding: 0; margin: 0 0 1.1em; }
.ticks li { position: relative; padding: 0 0 10px 30px; line-height: 1.55; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: .42em; width: 14px; height: 8px; border-left: 2.5px solid var(--gold-ink); border-bottom: 2.5px solid var(--gold-ink); transform: rotate(-45deg); }
.fin .ticks li::before { border-color: var(--lender); }

/* forms */
.form-card { background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--gold); border-radius: var(--radius); padding: 30px 30px 26px; }
.form-card.lender { border-top-color: var(--lender); }
.form-card h3 { font-size: 1.4rem; margin-bottom: 4px; }
.form-card .fsub { font-family: var(--serif); font-size: 1.16rem; font-weight: 500; line-height: 1.5; margin: 0 0 18px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.field { margin-bottom: 14px; }
.field label, .field legend { display: block; font-size: .7rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--navy); margin-bottom: 6px; padding: 0; }
.field .opt { color: var(--muted); font-weight: 500; letter-spacing: .06em; margin-left: 6px; text-transform: none; }
.field input, .field select, .field textarea { width: 100%; font: 400 1rem var(--sans); color: var(--navy); background: var(--input); border: 1px solid #B9B2A0; border-radius: var(--radius); padding: 12px 13px; min-height: 48px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid var(--link); outline-offset: 1px; border-color: var(--navy); background: #fff; }
.field .hint { font-size: .8rem; color: var(--muted); margin-top: 5px; line-height: 1.45; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.btn-submit { width: 100%; margin-top: 4px; }
.consent { font-size: .76rem; line-height: 1.55; color: var(--muted); margin: 12px 0 0; }
.form-msg { display: none; border: 1px solid #1E7A53; border-left: 4px solid #1E7A53; background: #F1FAF5; color: #14543A; border-radius: var(--radius); padding: 22px 24px; }
.form-msg h4 { color: #14543A; margin-bottom: 6px; }
.form-msg p { margin: 0; }
.form-msg.show { display: block; }
.form-err { display: none; margin-top: 12px; font-size: .9rem; color: #8A2A1B; }
.form-err.show { display: block; }

/* a white form card sitting on a navy section keeps light-surface colors */
.bg-navy .form-card { color: var(--slate); }
.bg-navy .form-card h3, .bg-navy .form-card h4, .bg-navy .form-card strong { color: var(--navy); }
.bg-navy .form-card a { color: var(--link); }
.form-card :focus-visible { outline-color: var(--link); }

/* financing */
.fin { background: #fff; border-top: 6px solid var(--lender); }
.fin .eyebrow { color: var(--lender); }
.role-tag { display: inline-block; font-size: .68rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; padding: 5px 10px; border-radius: var(--radius); margin-bottom: 14px; }
.role-tag.lender { background: var(--lender-soft); color: var(--lender); border: 1px solid var(--lender); }
.role-tag.broker { background: var(--gold-soft); color: var(--gold-ink); border: 1px solid var(--gold-ink); }
.programs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 34px 0; }
.program { background: var(--paper); border: 1px solid var(--line); border-top: 4px solid var(--lender); border-radius: var(--radius); padding: 24px 22px; }
.program h3 { font-size: 1.14rem; margin-bottom: 8px; }
.program p { margin: 0; font-size: 1rem; line-height: 1.56; }
.program .who { display: block; font-size: .68rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--lender); margin-bottom: 8px; }
.catch { background: var(--lender-soft); border: 1px solid #BFD5DE; border-left: 4px solid var(--lender); border-radius: var(--radius); padding: 26px 28px; }
.catch h3 { font-size: 1.24rem; }
.catch p:last-child { margin-bottom: 0; }
.roles { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border: 1px solid var(--line); border-radius: var(--radius); margin: 34px 0 0; overflow: hidden; }
.roles > div { padding: 26px 28px; background: var(--paper); }
.roles > div + div { border-left: 1px solid var(--line); }
.roles h3 { font-size: 1.14rem; margin-bottom: 6px; }
.roles p { margin: 0; font-size: 1rem; }
.roles .dual { grid-column: 1 / -1; border-left: 0; border-top: 1px solid var(--line); background: #fff; font-size: 1rem; }
.roles .dual p + p { margin-top: 10px; }
.mlo-disclosure { border: 1px solid var(--lender); border-radius: var(--radius); padding: 22px 26px; margin-top: 34px; font-size: .9rem; line-height: 1.6; color: var(--slate); display: flex; gap: 18px; align-items: flex-start; }
.mlo-disclosure p { margin: 0 0 8px; }
.mlo-disclosure p:last-child { margin-bottom: 0; }
.mark { flex: 0 0 auto; width: 54px; color: var(--navy); text-align: center; }
.mark svg { width: 46px; height: 46px; margin: 0 auto 4px; }
.mark span { display: block; font: 700 .5rem/1.2 var(--sans); letter-spacing: .08em; text-transform: uppercase; }
footer .mark { color: rgba(255, 255, 255, .82); }

/* investor */
.pencil { background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--gold); border-radius: var(--radius); padding: 26px 28px; }
.pencil h3 { font-size: 1.2rem; margin-bottom: 12px; }
.pencil dl { margin: 0; }
.pencil .row { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 1rem; }
.pencil dt { color: var(--slate); }
.pencil dd { margin: 0; font-weight: 600; color: var(--navy); white-space: nowrap; }
.pencil .row.total { border-bottom: 0; border-top: 2px solid var(--gold); margin-top: 6px; padding-top: 13px; font-family: var(--display); font-weight: 800; font-size: 1.12rem; }
.pencil .row.total dt { color: var(--navy); }
.note-box { margin-top: 16px; background: #FFF8EA; border: 1px solid #E4C37A; border-left: 4px solid var(--terra); border-radius: var(--radius); padding: 14px 16px; font-size: .9rem; line-height: 1.55; color: #5A3D10; }
.note-box strong { color: #3F2A08; }

/* disclosures */
.disc { background: #FFF8EA; border: 1px solid #E4C37A; border-left: 5px solid var(--terra); border-radius: var(--radius); padding: 30px 34px; }
.disc h2 { font-size: 1.4rem; }
.disc p { font-size: 1rem; line-height: 1.65; color: #4A3410; margin: 0 0 10px; }
.disc p:last-child { margin-bottom: 0; }
.disc a { color: #0B5C80; }

/* FAQ */
.faq-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.qa { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 26px; }
.qa h3 { font-size: 1.12rem; line-height: 1.35; margin-bottom: 8px; }
.qa p { font-family: var(--serif); font-size: 1.18rem; line-height: 1.56; font-weight: 500; margin: 0 0 8px; }
.qa p:last-child { margin-bottom: 0; }
.qa.fin-q { border-top: 4px solid var(--lender); }
.qa .ncl { font-family: var(--sans); font-size: .82rem; color: var(--muted); }

/* broker */
.about-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 60px; align-items: center; }
.portrait { max-width: 340px; margin: 0 auto; border: 1px solid var(--gold); padding: 10px; border-radius: var(--radius); background: #fff; }
.portrait img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 12%; }
blockquote.pull { margin: 0 0 20px; font-family: var(--serif); font-style: italic; font-size: 1.6rem; line-height: 1.38; color: var(--gold-ink); font-weight: 500; }
.creds { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 24px 0; }
.cred { background: var(--paper); border-left: 3px solid var(--gold); padding: 16px 18px; }
.cred .t { font-size: .66rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-ink); }
.cred .m { font-family: var(--display); font-weight: 700; color: var(--navy); font-size: 1.04rem; line-height: 1.25; margin: 5px 0 3px; }
.cred .b { font-size: .8rem; color: var(--muted); line-height: 1.4; }
.contact { display: flex; flex-wrap: wrap; gap: 10px; padding: 0; margin: 0; list-style: none; }
.contact a { display: inline-flex; align-items: center; min-height: 46px; padding: 10px 18px; border: 1px solid var(--navy); border-radius: var(--radius); color: var(--navy); font-weight: 600; text-decoration: none; }
.contact a:hover { background: var(--navy); color: #fff; }

/* final CTA */
.final h2 { color: #fff; }
.final .lede { color: rgba(255, 255, 255, .9); }

/* footer */
footer { background: var(--navy-deep); color: rgba(255, 255, 255, .8); padding: 64px 0 34px; font-size: .9rem; }
footer h2 { font-family: var(--display); color: #fff; font-size: 1.1rem; margin-bottom: 12px; }
footer a { color: rgba(255, 255, 255, .88); }
footer a:hover { color: var(--gold-light); }
.f-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 44px; }
.f-grid ul { list-style: none; padding: 0; margin: 0; }
.f-grid li { padding: 4px 0; }
.f-id { font-family: var(--display); font-size: 1.24rem; font-weight: 700; color: #fff; margin: 0 0 4px; }
.f-role { border-left: 3px solid var(--gold); padding-left: 14px; margin: 0 0 16px; line-height: 1.55; }
.f-role.lender { border-left-color: #6FB3CF; }
.f-role b { display: block; font-size: .66rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-light); font-weight: 700; }
.f-role.lender b { color: #9CD0E6; }
.f-marks { display: flex; gap: 20px; align-items: flex-start; margin-top: 22px; }
.fine { border-top: 1px solid rgba(255, 255, 255, .14); margin-top: 38px; padding-top: 24px; font-size: .78rem; line-height: 1.7; color: rgba(255, 255, 255, .74); }
.fine p { margin: 0 0 10px; }
.fine strong { color: rgba(255, 255, 255, .92); }

/* grid children must be allowed to shrink (wide images and tables live inside them) */
.hero-grid > *, .two > *, .about-grid > *, .tier-grid > *, .six > *, .areas > *, .tiles > *, .programs > *, .faq-grid > *, .f-grid > *, .charts > *, .steps > *, .roles > * { min-width: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .programs { grid-template-columns: repeat(2, 1fr); }
  .areas { grid-template-columns: repeat(2, 1fr); }
  .tiles { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  :root { --header-h: 62px; }
  /* phones and tablets: only the slim identity bar stays pinned; the section links scroll with the page */
  .top { display: contents; }
  .idbar { position: sticky; top: 0; z-index: 200; }
  section { padding: 64px 0; }
  .hero { padding: 44px 0 56px; }
  .hero-grid, .two, .two.even, .about-grid, .charts { grid-template-columns: 1fr; gap: 34px; }
  .charts { gap: 16px; }
  .tier-grid, .six, .steps, .faq-grid { grid-template-columns: 1fr; }
  .f-grid { grid-template-columns: 1fr; gap: 30px; }
  .roles { grid-template-columns: 1fr; }
  .roles > div + div { border-left: 0; border-top: 1px solid var(--line); }
  .scroll-hint { display: block; }
  .about-grid { text-align: left; }
  #bmap { height: 440px; }
  .anchors .brand span { display: none; }
}
@media (max-width: 620px) {
  .wrap, .narrow { padding: 0 18px; }
  .tiles, .areas, .programs, .creds, .grid-2 { grid-template-columns: 1fr; }
  .chips { grid-template-columns: 1fr 1fr; }
  .btn { width: 100%; }
  .anchors .nav-cta, .map-tools button { width: auto; }
  .form-card, .card, .pencil, .disc, .catch { padding: 22px 20px; }
  .chart-card { padding: 20px 16px 16px; }
  .mlo-disclosure { flex-direction: column; }
  .tier .body { padding: 20px 20px 0; }
  .idbar { font-size: .59rem; letter-spacing: .04em; padding: 6px 0; }
  .idbar .wrap { gap: 0 7px; }
  blockquote.pull { font-size: 1.36rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
@media print {
  .top, .cta-pair, form, #bmap, .map-tools { display: none !important; }
  section { padding: 24px 0; }
}
