:root {
  --navy: #1d3a5f;
  --navy-2: #284d7a;
  --ink: #1b2430;
  --muted: #5d6b7c;
  --line: #e3e7ec;
  --bg: #ffffff;
  --bg-alt: #f6f4ef;
  --card: #ffffff;
  --accent: #e8a33d;
  --accent-ink: #3a2500;
  --green: #4f8a5b;
  --warn: #b85c1c;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(20, 30, 50, .06), 0 6px 20px rgba(20, 30, 50, .06);
  --serif: "Fraunces", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font: 16px/1.6 var(--sans); color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; }
img, svg { max-width: 100%; display: block; }
a { color: var(--navy-2); }
h1, h2, h3 { font-family: var(--serif); line-height: 1.15; color: var(--navy); margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 4.5vw, 3.3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 10px; top: 10px; background: #fff; padding: 8px; z-index: 9999; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; font-weight: 700; color: var(--accent); margin-bottom: .6em; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 720px; }
.muted { color: var(--muted); }
.small { font-size: .88rem; }
.mt { margin-top: 3rem; }
.mt-sm { margin-top: 1.25rem; }

/* Buttons */
.btn { display: inline-block; background: var(--accent); color: var(--accent-ink); font-weight: 700; border: 2px solid var(--accent); border-radius: 999px; padding: .7em 1.4em; text-decoration: none; cursor: pointer; font: inherit; font-weight: 700; transition: transform .15s, box-shadow .15s; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(232, 163, 61, .35); }
.btn-lg { padding: .9em 1.7em; font-size: 1.05rem; }
.btn-sm { padding: .45em 1em; font-size: .9rem; }
.btn-ghost { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-ghost:hover { box-shadow: none; background: var(--navy); color: #fff; }
.link-arrow { font-weight: 700; color: var(--navy-2); text-decoration: none; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 1000; background: rgba(255, 255, 255, .92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
/* In-page links (#section) stop below the sticky header instead of under it */
html { scroll-padding-top: 72px; }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.logo { display: flex; align-items: center; gap: 10px; font-family: var(--serif); font-weight: 700; font-size: 1.15rem; color: var(--navy); text-decoration: none; }
.logo svg { width: 30px; height: 30px; }
.logo-photo { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; flex: none; box-shadow: 0 0 0 2px #fff, 0 0 0 3px var(--line, #d9dee5); }
.logo-light { color: #fff; }
.site-nav { display: flex; align-items: center; gap: 2px; }
.site-nav a:not(.btn) { color: var(--ink); text-decoration: none; padding: .5em .6em; border-radius: 8px; font-weight: 500; font-size: .93rem; white-space: nowrap; }
.site-nav a:not(.btn):hover, .site-nav a[aria-current] { background: var(--bg-alt); color: var(--navy); }
.site-nav .btn { margin-left: 8px; }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--navy); margin: 5px 0; }
@media (max-width: 1100px) {
  .nav-toggle { display: block; }
  .site-nav { display: none; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; align-items: stretch; background: #fff; border-bottom: 1px solid var(--line); padding: 10px 20px 20px; }
  .site-nav.open { display: flex; }
  .site-nav .btn { margin: 8px 0 0; text-align: center; }
}

/* Hero */
.hero { background: radial-gradient(1200px 500px at 85% -10%, #fff1d6 0%, transparent 60%), linear-gradient(180deg, #fbfaf6, #fff); padding: 72px 0 64px; }
.hero-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: center; }
.hl { color: var(--accent); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin: 1.5rem 0 2rem; }
.hero-stats { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.hero-stats strong { display: block; font-family: var(--serif); font-size: 1.8rem; color: var(--navy); }
.hero-stats span { font-size: .85rem; color: var(--muted); }
.hero-visual svg { filter: drop-shadow(0 20px 40px rgba(29, 58, 95, .15)); }
@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; } .hero-visual { order: -1; max-width: 420px; } .hero-stats { grid-template-columns: repeat(2, 1fr); } }

/* Sections */
.section { padding: 72px 0; }
.section.tight { padding: 40px 0 64px; }
.section.alt { background: var(--bg-alt); }
.section-head { margin-bottom: 2rem; }
.section-head.row { display: flex; justify-content: space-between; align-items: end; gap: 20px; }
.page-head { background: linear-gradient(180deg, var(--bg-alt), #fff); padding: 56px 0 24px; }
.crumb { display: inline-block; margin-bottom: 1rem; text-decoration: none; font-weight: 600; }

/* Grids & cards */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 900px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.feature .icon { width: 44px; height: 44px; border-radius: 12px; background: #fff3dd; color: var(--accent); display: grid; place-items: center; font-weight: 800; font-size: 1.3rem; margin-bottom: 14px; }
.builder-card { text-decoration: none; color: inherit; display: flex; flex-direction: column; transition: transform .15s, box-shadow .15s; }
.builder-card:hover { transform: translateY(-3px); box-shadow: 0 12px 30px rgba(20, 30, 50, .12); }
.builder-card[hidden] { display: none; }
.builder-card .link-arrow { margin-top: auto; }
.builder-card-top { display: flex; gap: 14px; align-items: center; margin-bottom: 12px; }
.builder-card h3 { margin: 0; }
.monogram { width: 52px; height: 52px; flex: none; border-radius: 12px; background: var(--navy); color: #fff; display: grid; place-items: center; font-family: var(--serif); font-weight: 700; font-size: 1.2rem; }
.monogram.lg { width: 76px; height: 76px; font-size: 1.8rem; border-radius: 18px; }
.price { font-family: var(--serif); font-weight: 700; color: var(--green); font-size: 1.25rem; margin: 0 0 .25em; }
.tag { display: inline-block; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; background: var(--bg-alt); color: var(--muted); padding: 2px 8px; border-radius: 999px; font-family: var(--sans); vertical-align: middle; }
.tag-warn { background: #fdebdc; color: var(--warn); }
.chips { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px; font-size: .88rem; font-weight: 500; }
.checks { padding-left: 0; list-style: none; }
.checks li::before { content: "✓"; color: var(--green); font-weight: 800; margin-right: 10px; }

/* Filters */
.filters { display: flex; flex-wrap: wrap; gap: 16px; align-items: end; margin-bottom: 24px; }
.filters.stack { flex-direction: column; align-items: stretch; box-shadow: none; padding: 0; border: 0; }
label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: .88rem; color: var(--navy); }
label.check { flex-direction: row; align-items: center; gap: 10px; font-weight: 500; color: var(--ink); }
input, select, textarea { font: inherit; padding: .6em .8em; border: 1px solid #cdd4dc; border-radius: 10px; background: #fff; color: var(--ink); min-width: 0; }
input[type=range] { padding: 0; accent-color: var(--accent); }
input[type=checkbox] { width: 18px; height: 18px; accent-color: var(--navy); }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }
output { font-weight: 700; color: var(--green); }
.filter-count { margin: 0 0 0 auto; color: var(--muted); font-size: .9rem; }

/* Price bands */
.bands { display: grid; gap: 10px; }
.band-row { display: grid; grid-template-columns: 190px 1fr; gap: 14px; align-items: center; }
.band-label { font-weight: 600; font-size: .92rem; }
.band-track { position: relative; height: 30px; background: repeating-linear-gradient(90deg, var(--bg-alt) 0 1px, transparent 1px 10%); border-radius: 8px; background-color: #fafafa; }
.band { position: absolute; top: 3px; bottom: 3px; background: linear-gradient(90deg, var(--navy-2), var(--navy)); border-radius: 6px; min-width: 6px; }
.band span { position: absolute; left: calc(100% + 8px); top: 50%; transform: translateY(-50%); color: var(--navy); font-size: .75rem; font-weight: 700; white-space: nowrap; }
@media (max-width: 760px) {
  .band.lbl-in span { left: auto; right: 8px; color: #fff; }
  .band.lbl-before span { left: auto; right: calc(100% + 8px); }
}
.band-axis { display: flex; justify-content: space-between; margin-left: 204px; font-size: .75rem; color: var(--muted); }
@media (max-width: 640px) { .band-row { grid-template-columns: 1fr; gap: 4px; } .band-axis { margin-left: 0; } }

/* Builder page */
.builder-title { display: flex; align-items: center; gap: 20px; margin-bottom: 1rem; flex-wrap: wrap; }
.builder-title h1 { margin: 0; }
.fav-btn { margin-left: auto; }
.fav-btn[aria-pressed=true] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.tier-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.specs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 0 0 1em; }
.specs div { background: var(--bg-alt); border-radius: 10px; padding: 8px 10px; }
.specs dt { font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.specs dd { margin: 0; font-weight: 600; font-size: .92rem; }
.split { display: grid; grid-template-columns: 1.4fr 1fr; gap: 20px; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.community-list { display: grid; gap: 14px; align-content: start; }
.community p { margin: 0 0 .3em; }

/* Map */
.map { border-radius: var(--radius); border: 1px solid var(--line); z-index: 1; }
.small-map { min-height: 420px; }
.map-page { display: grid; grid-template-columns: 360px 1fr; height: calc(100vh - 118px); }
.map-sidebar { overflow-y: auto; padding: 24px; border-right: 1px solid var(--line); background: #fff; }
.map-sidebar h1 { font-size: 2rem; margin-bottom: .2em; }
.full-map { border-radius: 0; border: 0; height: 100%; }
.map-results { display: grid; gap: 10px; margin-top: 20px; }
.map-result { text-align: left; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; cursor: pointer; font: inherit; }
.map-result:hover, .map-result.active { border-color: var(--accent); box-shadow: 0 0 0 3px #fff1d6; }
.map-result strong { display: block; color: var(--navy); }
.map-result span { display: block; font-size: .85rem; color: var(--muted); }
@media (max-width: 860px) { .map-page { grid-template-columns: 1fr; grid-template-rows: 55vh auto; height: auto; } .full-map { order: -1; height: 55vh; } .map-sidebar { border-right: 0; } }
.pin { width: 30px; height: 30px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); border: 3px solid #fff; box-shadow: 0 3px 8px rgba(0, 0, 0, .3); display: grid; place-items: center; }
.pin b { transform: rotate(45deg); color: #fff; font-size: 11px; font-family: var(--sans); }
.leaflet-popup-content { font-family: var(--sans); }
.leaflet-popup-content h4 { margin: 0 0 4px; font-family: var(--serif); color: var(--navy); font-size: 1.05rem; }
.leaflet-popup-content p { margin: 0 0 4px; }
.legend { background: #fff; padding: 10px 12px; border-radius: 10px; box-shadow: var(--shadow); font-size: .8rem; line-height: 1.7; max-height: 50vh; overflow: auto; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; }

/* Steps / timeline */
.steps { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; counter-reset: s; }
.steps li span { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--navy); color: #fff; font-weight: 700; margin-bottom: 12px; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }
/* What I do for you */
.services { scroll-margin-top: 140px; list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px 28px; counter-reset: sv; }
.services li { counter-increment: sv; position: relative; padding: 18px 20px 18px 64px; background: var(--card, #fff); border-radius: 12px; box-shadow: var(--shadow); }
.services li::before { content: counter(sv); position: absolute; left: 18px; top: 18px; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--navy); color: #fff; font-weight: 700; font-size: .9rem; }
.services h3 { margin: 4px 0 6px; font-size: 1.02rem; }
.services p { margin: 0; color: var(--muted); font-size: .94rem; }
@media (max-width: 760px) { .services { grid-template-columns: 1fr; } }
.timeline { border-left: 3px solid var(--accent); padding-left: 24px; display: grid; gap: 22px; }
.tl-item { position: relative; }
.tl-item::before { content: ""; position: absolute; left: -33px; top: 6px; width: 15px; height: 15px; border-radius: 50%; background: #fff; border: 3px solid var(--accent); }
.tl-when { font-size: .8rem; font-weight: 700; color: var(--accent); text-transform: uppercase; letter-spacing: .08em; }
.tl-item h3 { margin: .1em 0 .2em; }
.tl-item p { margin: 0; color: var(--muted); }
.checklist { display: grid; gap: 12px; }
.checklist .btn { justify-self: start; margin-top: 8px; }
.faq { display: grid; gap: 12px; }
.faq summary { font-weight: 700; cursor: pointer; color: var(--navy); }
.faq details p { margin: 12px 0 0; }

/* CTA + forms */
.cta-band { background: var(--navy); color: #dfe7f1; }
.cta-band h2 { color: #fff; }
.cta-band .lead-form h3 { color: var(--navy); }
.cta-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
@media (max-width: 860px) { .cta-grid { grid-template-columns: 1fr; } }
.big-phone a { font-family: var(--serif); font-size: 2rem; color: var(--accent); text-decoration: none; }
.lead-form { display: grid; gap: 14px; color: var(--ink); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 520px) { .form-row { grid-template-columns: 1fr; } }
.form-note { font-size: .82rem; color: var(--muted); margin: 0; }
.form-status { margin: 0; font-weight: 600; }
.form-status.ok { color: var(--green); }
.form-status.err { color: var(--warn); }
.hp { position: absolute; left: -9999px; }
.agent-card { display: flex; gap: 20px; align-items: center; }
.avatar { width: 96px; height: 96px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; font-family: var(--serif); font-size: 2rem; flex: none; }

/* Areas / tables */
.area-list { display: grid; gap: 20px; }
.area-head { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 10px; }
.tbl { width: 100%; border-collapse: collapse; font-size: .92rem; }
.tbl th, .tbl td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); }
.tbl th { font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }

/* Compare */
.compare-picker { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 20px; }
@media (max-width: 700px) { .compare-picker { grid-template-columns: 1fr; } }
.compare-table { overflow-x: auto; }
.compare-table table { width: 100%; min-width: 640px; border-collapse: separate; border-spacing: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.compare-table th, .compare-table td { padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: top; text-align: left; }
.compare-table thead th { background: var(--navy); color: #fff; font-family: var(--serif); font-size: 1.1rem; }
.compare-table tbody th { width: 160px; color: var(--muted); font-size: .85rem; text-transform: uppercase; letter-spacing: .05em; }
.compare-table ul { margin: 0; padding-left: 18px; }

/* Calculator */
.calc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
@media (max-width: 860px) { .calc-grid { grid-template-columns: 1fr; } }
.calc { display: grid; gap: 16px; }
.calc-out .total { font-family: var(--serif); font-size: 3rem; color: var(--navy); line-height: 1; margin: 6px 0 16px; }
.calc-out .row { display: flex; justify-content: space-between; padding: 6px 0; border-bottom: 1px dashed var(--line); }
.calc-out .save { background: #edf6ee; border-radius: 10px; padding: 12px 14px; margin-top: 14px; color: #2b5c35; }
.match { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.match:last-child { border: 0; }

/* Footer */
.site-footer { background: #13253d; color: #b9c6d6; padding: 56px 0 24px; font-size: .92rem; }
.site-footer a { color: #dfe7f1; text-decoration: none; display: block; padding: 2px 0; }
.site-footer a:hover { color: var(--accent); }
.site-footer h4 { color: #fff; margin: 0 0 10px; font-size: .85rem; text-transform: uppercase; letter-spacing: .1em; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.legal { border-top: 1px solid #263b57; margin-top: 32px; padding-top: 20px; font-size: .78rem; color: #8597ad; }

/* "Print checklist" prints only that checklist; a normal print prints the whole page */
@media print {
  .checklist .btn { display: none; }
  html.print-one body * { visibility: hidden; }
  html.print-one body *:not(:has(.printing)):not(.printing):not(.printing *) { display: none; }
  html.print-one .checklist.printing, html.print-one .checklist.printing * { visibility: visible; }
  html.print-one .checklist.printing { position: absolute; left: 0; top: 0; width: 100%; box-shadow: none; border: 0; padding: 0; }
  .checklist.printing::before { content: attr(data-title); display: block; font: 700 22px/1.2 Georgia, serif; color: #1d3a5f; margin-bottom: 14px; }
}

/* Quick move-in homes */
.home-card { display: flex; flex-direction: column; gap: 6px; }
.home-card[hidden] { display: none; }
.home-photo { position: relative; margin: -24px -24px 6px; aspect-ratio: 3 / 2; overflow: hidden; border-radius: var(--radius, 14px) var(--radius, 14px) 0 0; background: var(--line); }
.home-photo.none { display: grid; place-items: center; background: linear-gradient(135deg, #e9edf2, #d9e0e8); }
.home-photo.none span { font-family: var(--serif); font-size: 2.4rem; color: #9aa8b8; }
.home-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.home-photo figcaption { position: absolute; right: 8px; bottom: 6px; font-size: .68rem; color: #fff; background: rgba(0, 0, 0, .45); padding: 1px 6px; border-radius: 4px; }
.home-card p { margin: 0; }
.home-card.flash { box-shadow: 0 0 0 3px var(--accent), var(--shadow); }
.home-top { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 4px; }
.ready { font-size: .78rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: #e8eef6; color: var(--navy); }
.ready.now { background: #e3f1e5; color: #2b5c35; }
.tag-new { background: var(--navy); color: #fff; }
.tag-cut { background: #fdebdc; color: var(--warn); }
.home-price { font-family: var(--serif); font-weight: 700; font-size: 1.7rem; color: var(--navy); line-height: 1.2; }
.home-price s { font-family: var(--sans); font-size: .95rem; font-weight: 500; color: var(--muted); }
.home-where { font-size: .92rem; color: var(--muted); }
.home-where strong { color: var(--ink); }
.incentive { background: #fff6e6; color: #7a4d00; border-radius: 10px; padding: 8px 12px; font-size: .9rem; font-weight: 600; }
.home-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: auto; padding-top: 10px; }
.listed { margin-top: 2px !important; }
.qmi-stats { margin-top: 1.5rem; max-width: 720px; }
.notice { background: #fdebdc; color: #6b3410; border-radius: 12px; padding: 12px 16px; font-size: .92rem; }
.notice code { background: rgba(0,0,0,.06); padding: 1px 5px; border-radius: 4px; }
.filters:not(.stack) .check { align-self: end; padding-bottom: .6em; }
.empty { text-align: center; padding: 40px 0; }
.qmi-dot { display: inline-block; width: 12px; height: 12px; border-radius: 3px; background: #fff; border: 3px solid var(--green); }
.home-pin { width: 22px; height: 22px; border-radius: 6px; background: #fff; border: 3px solid var(--green); box-shadow: 0 2px 6px rgba(0,0,0,.3); display: grid; place-items: center; font: 700 11px var(--sans); color: var(--green); }
.home-pin.now { background: var(--green); color: #fff; }

/* Agent & brokerage branding */
.agent-bar { background: var(--navy); color: #dfe7f1; font-size: .82rem; }
.agent-bar-inner { display: flex; justify-content: space-between; gap: 12px; padding-top: 6px; padding-bottom: 6px; flex-wrap: wrap; }
.agent-bar a { color: #fff; text-decoration: none; font-weight: 600; }
.agent-bar a:hover { color: var(--accent); }
@media (max-width: 640px) { .agent-bar-inner { justify-content: center; text-align: center; } }
img.avatar { object-fit: cover; padding: 0; }
.avatar.sm { width: 56px; height: 56px; font-size: 1.2rem; }
.avatar.xs { width: 32px; height: 32px; font-size: .8rem; }
.footer-agent { display: flex; gap: 14px; align-items: center; margin: 0 0 1em; line-height: 1.45; }
.cta-agent { color: #dfe7f1; }
.cta-agent strong { color: #fff; }
.cta-agent .avatar { background: var(--accent); color: var(--accent-ink); }
.hero-agent { display: flex; align-items: center; gap: 10px; font-weight: 600; color: var(--navy); margin-bottom: 1rem; }
.legal-brokerage { display: flex; gap: 14px; align-items: flex-start; }
.legal-brokerage p { margin: 0; }
.legal-brokerage a.inline { display: inline; color: inherit; }
.eho { width: 34px; height: 34px; flex: none; color: #b9c6d6; }

/* Landing (contact) page */
.landing { padding: 56px 0 64px; }
.landing h1 { font-size: clamp(2rem, 4vw, 3rem); }
.landing .agent-card { margin-top: 1.5rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 900px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .grid-4 { grid-template-columns: 1fr; } }
.tile { text-decoration: none; color: inherit; transition: transform .15s, box-shadow .15s; }
.tile:hover { transform: translateY(-3px); box-shadow: 0 12px 30px rgba(20, 30, 50, .12); }
.tile strong { font-family: var(--serif); font-size: 2rem; color: var(--accent); }
.tile h3 { margin: .2em 0 .3em; }
.tile p { margin: 0; font-size: .92rem; }

/* Builder data v2 */
.muted-price { color: var(--muted); font-size: 1.05rem; }
.band.open { background: linear-gradient(90deg, var(--navy) 60%, rgba(29, 58, 95, .15)); }
.band-label a { color: inherit; text-decoration: none; }
.band-label a:hover { color: var(--navy-2); text-decoration: underline; }
.specs.facts { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.plan-list { list-style: none; padding: 0; margin: .5em 0 0; display: flex; flex-wrap: wrap; gap: 6px; }
.plan-list li { background: var(--bg-alt); border-radius: 8px; padding: 3px 10px; font-size: .88rem; font-weight: 500; }
.pin { background: var(--navy); }
.pin.multi { background: var(--accent); }
.pin.multi b { color: var(--accent-ink); }
.pin.approx { background: #fff; border-color: var(--navy); }
.pin.approx b { color: var(--navy); }
.pin-key { display: inline-block; width: 12px; height: 12px; border-radius: 50%; background: var(--navy); vertical-align: middle; margin-right: 4px; }
.pin-key.approx { background: #fff; border: 2px solid var(--navy); }
.pop-builders { margin: 4px 0 6px; padding-left: 16px; }
.pop-builders span { color: var(--muted); font-size: .85em; }
.legend .qmi-dot { vertical-align: middle; margin-right: 4px; }

/* Villas & taxes */
.tag-villa { background: #e3f1e5; color: #2b5c35; }
.villa-card { display: flex; flex-direction: column; gap: 4px; }
.villa-card h2 { font-size: 1.35rem; margin: 0; }
.villa-card h2 a { color: inherit; text-decoration: none; }
.villa-card p { margin: 0; }
.villa-card .link-arrow { margin-top: auto; padding-top: 12px; }
.stat strong { display: block; font-family: var(--serif); font-size: 2rem; color: var(--navy); line-height: 1.2; margin: 4px 0; }
.stat .eyebrow { margin: 0; }
.levy-result { background: var(--bg-alt); border-radius: 12px; padding: 14px 16px; }
.levy-result p { margin: 0 0 .4em; }
.levy-big { font-family: var(--serif); font-size: 2.2rem; color: var(--navy); line-height: 1.1; }
.levy-line, .hoa-line { margin-top: 2px !important; }
.table-card { padding: 8px 16px; overflow-x: auto; }
@media (max-width: 1250px) { .site-nav a:not(.btn) { padding: .5em .45em; font-size: .9rem; } }

/* Brokerage identification (299 NAC 2-003: broker name conspicuous, and similar or greater
   in size and visibility than the agent's name used as the site brand) */
.agent-bar { font-size: .95rem; background: linear-gradient(100deg, #142a45 0%, var(--navy) 45%, #25507f 100%); border-bottom: 3px solid var(--accent); }
.agent-bar-inner { padding-top: 9px; padding-bottom: 9px; align-items: center; row-gap: 6px; }
.agent-bar strong { font-weight: 700; color: #fff; }
.agent-bar-id { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 14px; }
.agent-bar-who { white-space: nowrap; }
.agent-bar .agent-name { font-size: .98rem; letter-spacing: .01em; }
.agent-bar .agent-role { color: #b9c8da; }
.agent-bar-sep { width: 1px; height: 20px; background: rgba(232, 163, 61, .7); }
/* Brokerage name stays at least as large as the agent's name (299 NAC 2-003) */
.agent-bar .brokerage-name { font-family: var(--serif); font-size: 1.08rem; letter-spacing: .015em; }
.agent-bar-links { display: flex; align-items: center; gap: 6px 14px; flex-wrap: wrap; margin-left: auto; }
.agent-bar-phone { display: inline-flex; align-items: center; gap: 7px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .22); border-radius: 999px; padding: 4px 13px 4px 11px; transition: background .15s, border-color .15s; }
.agent-bar .agent-bar-phone:hover { background: var(--accent); border-color: var(--accent); color: #1b2430; }
.agent-bar-phone svg { color: var(--accent); flex: none; } .agent-bar-phone:hover svg { color: #1b2430; }
.agent-bar-member { color: #b9c8da; font-size: .88rem; }
.agent-bar-member a { font-weight: 600; }
.logo { font-size: 1.15rem; }
.legal-brokerage p { font-size: .95rem; color: #c9d4e1; }
.legal-brokerage strong { color: #fff; }
@media (max-width: 900px) { .agent-bar-id { justify-content: center; } }
@media (max-width: 900px) { .agent-bar-links { margin-left: 0; } }
@media (max-width: 640px) { .agent-bar-id { flex-direction: column; gap: 2px; } .agent-bar-sep { display: none; } .agent-bar-links { justify-content: center; width: 100%; } }

/* Under-construction banner (toggle with underConstruction in site.config.js) */
.construction-banner { background: var(--accent); color: var(--accent-ink); font-weight: 700; text-align: center; font-size: .95rem; padding: 6px 0; letter-spacing: .02em; }
body:has(.construction-banner) .map-page { height: calc(100vh - 151px); }

/* Client-only access */
.locked-card { border: 2px dashed var(--accent); background: #fffaf1; }
.locked-card .eyebrow { margin-bottom: .4em; }
.prose { max-width: 760px; }
.prose h2 { font-size: 1.35rem; margin-top: 1.6em; }
.admin-actions { display: flex; gap: 6px; flex-wrap: wrap; margin: 0; }
.review-card .tbl th { width: 130px; }
.ok-notice { background: #e4f1e6; color: #24502d; }
.copy-link { display: flex; gap: 8px; margin: 10px 0 0; max-width: 760px; }
.copy-link input { flex: 1; min-width: 0; font-size: .85rem; }
.hero-photo { margin: 0; }
.hero-photo img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; object-position: 60% 50%; border-radius: 24px; box-shadow: 0 20px 40px rgba(29, 58, 95, .18); }
.hero-photo figcaption { font-size: .72rem; color: var(--muted); margin-top: 6px; text-align: right; }
.hero-photo figcaption a { color: inherit; }

/* Taxes page */
.levy-examples { margin: 10px 0 14px; }
.levy-examples td, .levy-examples th { white-space: nowrap; }
.levy-bar { display: flex; height: 12px; border-radius: 6px; overflow: hidden; min-width: 120px; background: var(--line); }
.levy-bar span { display: block; }
.lb-school { background: #2f6db5; } .lb-county { background: #1d3a5f; } .lb-city { background: #6aa0d8; }
.lb-fire { background: #c0533a; } .lb-sid { background: var(--accent); } .lb-other { background: #9aa7b6; }
.levy-legend { list-style: none; padding: 0; margin: 12px 0 8px; display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: .9rem; }
.levy-legend span { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.levy-table td { vertical-align: top; }
@media (max-width: 760px) { .hide-sm { display: none; } }

/* Lot maps */
.lot-legend { max-width: 240px; }
.lot-legend strong { display: block; margin-bottom: 4px; }
.lot-legend .small { margin: 6px 0; color: var(--muted); line-height: 1.35; }
.lot-key { display: inline-block; width: 14px; height: 11px; border: 1.5px solid; border-radius: 2px; margin-right: 6px; vertical-align: -1px; }
.lot-line .btn { margin-left: 6px; padding: .2em .8em; font-size: .8rem; }

/* Brokerage and compliance logos */
.header-brokerage { display: flex; align-items: center; padding-left: 16px; margin-left: 4px; margin-right: auto; border-left: 1px solid var(--line); }
.header-brokerage img { height: 46px; width: auto; }
@media (min-width: 1380px) { .site-header .wrap { max-width: 1400px; } }
@media (max-width: 1379px) { .header-brokerage { display: none; } }
.footer-brokerage { background: #fff; border-radius: 10px; padding: 10px 14px; margin: 14px 0; max-width: 300px; }
.footer-brokerage img { width: 100%; height: auto; }
.compliance-logo { width: 200px; height: auto; flex: none; filter: invert(1) brightness(.85); }
@media (max-width: 640px) { .legal-brokerage { flex-direction: column; } }
.logo span, .site-nav .btn { white-space: nowrap; }
.site-footer .legal a.inline { display: inline; }
.agent-card-brokerage { display: block; max-width: 260px; margin-top: 10px; }
.agent-card-brokerage img { width: 100%; height: auto; }
.agent-tagline { font-family: var(--serif); font-style: italic; color: var(--accent); font-size: 1.1rem; margin: -.3em 0 .5em; }
.brokerage-badge { display: inline-block; line-height: 0; }
.brokerage-badge img { width: 100%; height: auto; }
.brokerage-badge.on-dark { background: #fff; border-radius: 8px; padding: 8px 12px; }
.brokerage-badge.sm { width: 190px; margin-left: 10px; padding-left: 10px; border-left: 1px solid var(--line); }
.footer-logos, .card-logos { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin: 14px 0; }
.footer-logos .brokerage-badge { width: 100%; max-width: 300px; }
.card-logos .brokerage-badge { width: 100%; max-width: 340px; }
.eho-badge { width: 120px; height: auto; }
.eho-badge.on-dark { filter: invert(1); }
@media (max-width: 640px) { .brokerage-badge.sm { display: none; } }
.hero-brokerage { display: block; width: 100%; max-width: 400px; margin: 6px 0 20px; }
.brokerage-badge:not(.on-dark) img { mix-blend-mode: multiply; } /* logo file has a white background */

/* Admin traffic page */
.traffic .live-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.traffic .live-head h2 { font-size: 1.4rem; margin: 0 0 8px; }
.live-dot { display: inline-block; width: 11px; height: 11px; border-radius: 50%; background: #2fb35a; box-shadow: 0 0 0 0 rgba(47, 179, 90, .6); animation: livepulse 1.8s infinite; vertical-align: 2px; }
@keyframes livepulse { 70% { box-shadow: 0 0 0 9px rgba(47, 179, 90, 0); } 100% { box-shadow: 0 0 0 0 rgba(47, 179, 90, 0); } }
.traffic .tabs { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.traffic .tabs .check { margin-left: auto; }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 14px 0; }
.kpi strong { display: block; font-family: var(--serif); font-size: 1.9rem; color: var(--navy); line-height: 1.1; }
.kpi-note { grid-column: 1 / -1; margin: 0; }
.delta { font-size: .8rem; font-weight: 700; color: var(--muted); }
.delta.up { color: var(--green); } .delta.down { color: var(--warn); }
.traffic-chart { width: 100%; height: auto; }
.traffic-chart .bar { fill: #9cc3ec; } .traffic-chart .bar:hover { fill: #3f7fc4; }
.traffic-chart .views-line { fill: none; stroke: var(--navy); stroke-width: 2.5; }
.traffic-chart .lead-dot { fill: var(--accent); }
.traffic-chart text { font-size: 11px; fill: var(--muted); font-family: var(--sans); }
.traffic-chart .axis { stroke: var(--line); }
.legend-row .key { display: inline-block; width: 12px; height: 10px; margin: 0 4px 0 12px; vertical-align: 0; }
.bar-key { background: #9cc3ec; } .line-key { height: 3px !important; background: var(--navy); vertical-align: 3px !important; } .dot-key { background: var(--accent); border-radius: 50%; width: 9px !important; height: 9px !important; }
.traffic-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 12px; }
.traffic-grid .tbl td:first-child { max-width: 220px; overflow-wrap: anywhere; }
@media (max-width: 900px) { .kpis { grid-template-columns: repeat(2, 1fr); } .traffic-grid { grid-template-columns: 1fr; } }

/* ── Agent workspace: project sheets ─────────────────────────────────────── */
.seg { display: inline-flex; flex-wrap: wrap; gap: 4px; background: var(--bg-alt); padding: 4px; border-radius: 999px; }
.seg-btn { border: 0; background: transparent; font: 600 .9rem var(--sans); color: var(--muted); padding: 6px 14px; border-radius: 999px; cursor: pointer; }
.seg-btn.on { background: #fff; color: var(--navy); box-shadow: var(--shadow); }
.pm-filters { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.pm-filters input { max-width: 320px; flex: 1; }
.pm-dash-head { align-items: center; }
.pm-list td { vertical-align: middle; }
.pm-cell-progress { min-width: 150px; }
.pm-cell-progress .pm-bar { margin-bottom: 4px; }
.pm-bar { display: block; height: 8px; background: #e9edf2; border-radius: 999px; overflow: hidden; }
.pm-bar.sm { height: 5px; }
.pm-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--green), #6fae7b); border-radius: inherit; transition: width .3s; }
.pm-form-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px 16px; margin-bottom: 16px; }
.pm-form-grid label, .admin-add-agent label, .pm-state { display: grid; gap: 4px; font-size: .85rem; font-weight: 600; color: var(--muted); }
.admin-add-agent { display: flex; flex-wrap: wrap; gap: 12px; align-items: end; margin-top: 12px; padding: 16px; }
.admin-add-agent label { flex: 1; min-width: 180px; }

.pm-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 18px; }
.pm-toolbar .link-arrow { margin-right: auto; }
.pm-state { grid-auto-flow: column; align-items: center; gap: 8px; }
.pm-state select { padding: 6px 10px; }
.pm-saved { font-size: .85rem; color: var(--green); }
.pm-saved.bad { color: var(--warn); font-weight: 600; }

.pm-sheet { background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); padding: 36px 40px; }
.pm-brand { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding-bottom: 18px; border-bottom: 3px solid var(--navy); }
.pm-agent { display: flex; align-items: center; gap: 14px; }
.pm-agent img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; border: 2px solid var(--accent); }
.pm-agent div { display: grid; line-height: 1.35; }
.pm-agent strong { font-family: var(--serif); color: var(--navy); font-size: 1.15rem; }
.pm-agent span { font-size: .85rem; color: var(--muted); }
.pm-agent span:nth-child(2) { color: var(--accent-ink); font-style: italic; }
.pm-logo { width: 100%; max-width: 300px; height: auto; mix-blend-mode: multiply; }
.pm-title { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 26px 0 20px; }
.pm-title h1 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); margin: 0 0 4px; }
.pm-title .eyebrow { margin-bottom: 6px; }
.pm-sub { color: var(--muted); margin: 0; font-size: 1.02rem; }
.pm-summary { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.pm-summary div { display: grid; line-height: 1.35; font-size: .88rem; color: var(--muted); }
.pm-summary strong { font: 700 2rem var(--serif); color: var(--navy); line-height: 1; margin-bottom: 4px; }
.pm-summary b { color: var(--ink); }
.pm-prepared div { width: 220px; gap: 2px; }
.pm-prepared .pm-line { margin-bottom: 8px; }
.pm-ring { width: 84px; height: 84px; transform: rotate(-90deg); }
.pm-ring circle { fill: none; stroke-width: 12; }
.pm-ring .track { stroke: #e9edf2; }
.pm-ring .fill[stroke-dasharray^="0 "] { display: none; }
.pm-ring .fill { stroke: var(--green); stroke-linecap: round; transition: stroke-dasharray .4s; }
.pm-details { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: 12px; } /* no overflow:hidden — Safari drops clipped text when sending to a printer */
.pm-field { padding: 10px 14px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); min-width: 0; }
.pm-field:nth-child(4n) { border-right: 0; }
.pm-field:nth-last-child(-n+4) { border-bottom: 0; }
.pm-field span { display: block; font-size: .7rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.pm-field b { display: block; font-weight: 600; font-size: .93rem; overflow-wrap: break-word; min-height: 1.4em; }
.pm-line { display: block; border-bottom: 1px solid #b9c2cd; height: 1.5em; }
.pm-line.wide { display: inline-block; width: 60%; height: 1.1em; }
.pm-phases { list-style: none; padding: 0; margin: 22px 0 8px; display: grid; grid-template-columns: repeat(7, 1fr); gap: 10px; counter-reset: none; }
.pm-phases li { display: grid; gap: 6px; font-size: .78rem; line-height: 1.25; color: var(--muted); }
.pm-phases .pm-pn { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: #e9edf2; color: var(--navy); font-weight: 700; font-size: .75rem; }
.pm-phases li.done .pm-pn { background: var(--green); color: #fff; }
.pm-phases li b { color: var(--ink); font-weight: 600; }

.pm-phase { margin-top: 26px; break-inside: auto; }
.pm-phase > header { display: flex; align-items: center; gap: 12px; padding-bottom: 8px; border-bottom: 2px solid var(--line); break-after: avoid; }
.pm-phase h2 { font-size: 1.3rem; margin: 0; flex: 1; }
.pm-num { width: 30px; height: 30px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: .9rem; flex-shrink: 0; }
.pm-phase-progress { display: flex; align-items: center; gap: 8px; width: 160px; }
.pm-phase-progress .pm-bar { flex: 1; }
.pm-phase-progress em { font-style: normal; font-size: .8rem; color: var(--muted); font-weight: 600; }
.pm-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.pm-table th { text-align: left; font-size: .68rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; padding: 8px 8px 6px; }
.pm-table td { padding: 8px; border-bottom: 1px solid #eef1f4; vertical-align: top; }
.pm-table tr { break-inside: avoid; }
.pm-st { width: 128px; }
.pm-who { width: 104px; }
.pm-date { width: 132px; }
.pm-notes { width: 26%; position: relative; }
.pm-task strong { display: block; font-weight: 600; line-height: 1.35; }
.pm-task small { display: block; color: var(--muted); font-size: .8rem; line-height: 1.4; margin-top: 2px; }
.pm-table input, .pm-table select, .pm-table textarea { width: 100%; font: inherit; font-size: .85rem; padding: 5px 7px; border: 1px solid transparent; border-radius: 8px; background: #f7f8fa; color: var(--ink); }
.pm-table input:hover, .pm-table select:hover, .pm-table textarea:hover { border-color: var(--line); }
.pm-table input:focus, .pm-table select:focus, .pm-table textarea:focus { outline: none; border-color: var(--navy-2); background: #fff; }
.pm-table textarea { resize: none; overflow: hidden; min-height: 32px; line-height: 1.4; }
.pm-print { display: none; }
.pm-pill { display: inline-flex; align-items: center; gap: 7px; border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 4px 11px 4px 6px; font: 600 .78rem var(--sans); color: var(--muted); cursor: pointer; white-space: nowrap; }
.pm-pill:disabled { cursor: default; }
.pm-pill i { width: 16px; height: 16px; border-radius: 50%; border: 2px solid #b9c2cd; display: grid; place-items: center; font-style: normal; font-size: 10px; color: #fff; flex-shrink: 0; }
tr[data-status="progress"] .pm-pill { background: #fff6e8; border-color: #f2d29c; color: #8a5a10; }
tr[data-status="progress"] .pm-pill i { border-color: var(--accent); background: linear-gradient(90deg, var(--accent) 50%, transparent 50%); }
tr[data-status="done"] .pm-pill { background: #ecf5ee; border-color: #b9dcc0; color: #2f6b3b; }
tr[data-status="done"] .pm-pill i { border-color: var(--green); background: var(--green); }
tr[data-status="done"] .pm-pill i::before { content: "✓"; }
tr[data-status="done"] .pm-task strong { color: var(--muted); }
tr[data-status="na"] .pm-pill { background: var(--bg-alt); }
tr[data-status="na"] .pm-pill i { border-style: dashed; }
tr[data-status="na"] .pm-task { opacity: .5; text-decoration: line-through; }
.pm-x { position: absolute; top: 8px; right: -22px; border: 0; background: none; color: var(--muted); font-size: 1.1rem; cursor: pointer; padding: 0 4px; }
.pm-x:hover { color: var(--warn); }
.pm-add { display: flex; gap: 8px; margin-top: 8px; max-width: 520px; }
.pm-add input { flex: 1; font-size: .88rem; padding: 6px 10px; }
.pm-general textarea { width: 100%; margin-top: 10px; font: inherit; padding: 10px; border: 1px solid var(--line); border-radius: 10px; resize: none; overflow: hidden; }
.pm-writelines { height: 120px; margin-top: 10px; background: repeating-linear-gradient(transparent 0 29px, #c9d0d8 29px 30px); }
.pm-foot { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-top: 30px; padding-top: 14px; border-top: 1px solid var(--line); font-size: .75rem; color: var(--muted); line-height: 1.5; }
.pm-foot img { width: 120px; height: auto; mix-blend-mode: multiply; }
.pm-blank .pm-date, .pm-blank .pm-notes { border-left: 1px solid #eef1f4; }
.pm-blank .pm-table td { height: 40px; }
.pm-dialog { border: 0; border-radius: 16px; padding: 0; width: min(860px, calc(100vw - 32px)); box-shadow: 0 20px 60px rgba(0,0,0,.25); }
.pm-dialog::backdrop { background: rgba(20, 30, 50, .45); }
.pm-details-form { padding: 24px 26px; }
.pm-dialog-actions { display: flex; justify-content: flex-end; gap: 10px; }

@media screen and (max-width: 1000px) {
  .pm-details { grid-template-columns: repeat(2, 1fr); }
  .pm-field:nth-child(4n) { border-right: 1px solid var(--line); }
  .pm-field:nth-child(2n) { border-right: 0; }
  .pm-field:nth-last-child(-n+4) { border-bottom: 1px solid var(--line); }
  .pm-field:nth-last-child(-n+2) { border-bottom: 0; }
  .pm-phases { grid-template-columns: repeat(4, 1fr); }
}
@media screen and (max-width: 760px) {
  .pm-sheet { padding: 20px 16px; border-radius: 14px; }
  .pm-brand { flex-direction: column; align-items: flex-start; }
  .pm-logo { max-width: 240px; }
  .pm-title { flex-direction: column; align-items: flex-start; }
  .pm-phases { grid-template-columns: repeat(2, 1fr); }
  .pm-phase-progress { width: 100px; }
  .pm-table thead { display: none; }
  .pm-table, .pm-table tbody { display: block; }
  .pm-table tr { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 10px; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .pm-table td { display: block; padding: 0; border: 0; width: auto; }
  .pm-table td.pm-task { grid-column: 1 / -1; order: -1; }
  .pm-table td.pm-notes { grid-column: 1 / -1; padding-right: 26px; }
  .pm-x { right: 0; top: 2px; }
  .pm-table td.pm-date::before { content: attr(data-label); display: block; font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
  .pm-list thead { display: none; }
}

@media print {
  @page { size: letter; margin: .45in .5in; }
  body { background: #fff; font-size: 11px; }
  .construction-banner, .agent-bar, .site-header, .site-footer, .no-print, .skip { display: none !important; }
  .section.pm-page, main { padding: 0 !important; margin: 0 !important; min-height: 0 !important; }
  .pm-page .wrap { max-width: none; padding: 0; }
  .pm-sheet { border: 0; box-shadow: none; padding: 0; border-radius: 0; }
  .pm-sheet h2.print { display: block; }
  .pm-sheet, .pm-sheet * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  /* Safari can drop text inside clipped boxes when sending to a physical printer */
  .pm-sheet, .pm-sheet *:not(.g-bar):not(.pm-bar) { overflow: visible !important; }
  .pm-table input, .pm-table select, .pm-table textarea, .pm-general textarea, .pm-x { display: none !important; }
  .pm-print { display: block; font-size: 10.5px; line-height: 1.35; white-space: pre-wrap; }
  .pm-general-print { margin-top: 8px; min-height: 60px; border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; }
  .pm-title { padding: 16px 0 12px; }
  .pm-title h1 { font-size: 24px; }
  .pm-summary strong { font-size: 22px; }
  .pm-ring { width: 60px; height: 60px; }
  .pm-logo { max-width: 250px; }
  .pm-agent img { width: 48px; height: 48px; }
  .pm-details { grid-template-columns: repeat(4, 1fr); }
  .pm-field { padding: 6px 10px; }
  .pm-field b { font-size: 11px; }
  .pm-phases { margin: 14px 0 4px; grid-template-columns: repeat(7, 1fr); }
  .pm-phase { margin-top: 16px; }
  .pm-phase h2 { font-size: 15px; }
  .pm-num { width: 22px; height: 22px; font-size: 11px; }
  .pm-table { font-size: 10.5px; }
  .pm-task small { font-size: 9.5px; }
  .pm-phases .pm-bar { margin-top: 2px; }
  .pm-phases li { font-size: 9.5px; }
  .pm-table td { padding: 5px 6px; }
  .pm-st { width: 92px; } .pm-who { width: 64px; } .pm-date { width: 74px; }
  .pm-pill { border: 0; background: none !important; padding: 0; font-size: 9.5px; gap: 5px; }
  .pm-pill i { width: 12px; height: 12px; border-radius: 3px; font-size: 8px; }
  .pm-blank .pm-pill span { display: none; }
  .pm-blank .pm-table td { height: 30px; }
  .pm-foot { margin-top: 18px; font-size: 9px; }
  .pm-foot img { width: 90px; }
  a[href]::after { content: none !important; }
}

/* ── Buyer-facing progress summary ───────────────────────────────────────── */
.ps-share { display: grid; gap: 10px; margin-bottom: 18px; padding: 18px 20px; }
.ps-share p { margin: 2px 0 0; }
.ps-hero { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 28px 0 22px; }
.ps-hero h1 { font-size: clamp(1.9rem, 4vw, 2.8rem); margin: 0 0 6px; }
.ps-gauge { position: relative; width: 132px; height: 132px; flex-shrink: 0; }
.ps-ring { width: 132px; height: 132px; }
.ps-ring circle { stroke-width: 11; }
.ps-gauge-text { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; line-height: 1.1; }
.ps-gauge-text strong { font: 700 2rem var(--serif); color: var(--navy); }
.ps-gauge-text span { font-size: .75rem; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; font-weight: 700; }
.ps-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.ps-stats div { background: var(--bg-alt); border-radius: 12px; padding: 12px 16px; }
.ps-stats span { display: block; font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.ps-stats b { font: 700 1.2rem var(--serif); color: var(--navy); }
.ps-note { margin-top: 18px; border-left: 4px solid var(--accent); background: #fff8ec; border-radius: 0 12px 12px 0; padding: 14px 18px; }
.ps-note-from { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--accent-ink); }
.ps-note p { margin: 4px 0 0; white-space: pre-wrap; }
.ps-track { list-style: none; padding: 0; margin: 28px 0 6px; display: grid; grid-template-columns: repeat(7, 1fr); position: relative; }
.ps-track li { position: relative; display: grid; justify-items: center; text-align: center; gap: 4px; padding: 0 4px; font-size: .8rem; line-height: 1.25; }
.ps-track li::before { content: ""; position: absolute; top: 15px; left: -50%; width: 100%; height: 3px; background: #e3e7ec; z-index: 0; }
.ps-track li:first-child::before { display: none; }
.ps-track li.done::before, .ps-track li.now::before { background: var(--green); }
.ps-dot { position: relative; z-index: 1; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: .85rem; background: #fff; border: 3px solid #d5dbe2; color: var(--muted); }
.ps-track li.done .ps-dot { background: var(--green); border-color: var(--green); color: #fff; }
.ps-track li.now .ps-dot { border-color: var(--accent); color: var(--accent-ink); background: #fff6e8; box-shadow: 0 0 0 4px rgba(232, 163, 61, .2); }
.ps-track b { color: var(--ink); font-weight: 600; }
.ps-track small { color: var(--muted); font-size: .72rem; }
.ps-track li.now small { color: var(--accent-ink); font-weight: 700; }
.ps-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 26px; }
.ps-sheet h2 { font-size: 1.2rem; margin: 0 0 10px; padding-bottom: 6px; border-bottom: 2px solid var(--line); }
.ps-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.ps-list li { display: flex; gap: 10px; align-items: flex-start; break-inside: avoid; }
.ps-list b { display: block; font-weight: 600; line-height: 1.35; }
.ps-list small { display: block; color: var(--muted); font-size: .82rem; line-height: 1.4; }
.ps-list .ps-due { color: var(--warn); font-weight: 600; }
.ps-grid { grid-template-columns: 1fr 1fr; gap: 12px 28px; }
.ps-yours { margin-top: 26px; background: #f3f7fb; border-radius: 14px; padding: 18px 20px; }
.ps-yours h2 { border-bottom-color: #dbe4ee; }
.ps-ic { flex-shrink: 0; width: 18px; height: 18px; border-radius: 50%; border: 2px solid #c3cbd5; display: inline-grid; place-items: center; font-style: normal; font-size: 11px; color: #fff; margin-top: 2px; background: #fff; }
.ps-ic.done { background: var(--green); border-color: var(--green); }
.ps-ic.done::before { content: "✓"; }
.ps-ic.progress { border-color: var(--accent); background: linear-gradient(90deg, var(--accent) 50%, #fff 50%); }
.ps-dl { margin: 0; display: grid; gap: 8px; }
.ps-dl div { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px dashed var(--line); padding-bottom: 6px; }
.ps-dl dt { color: var(--muted); font-size: .88rem; }
.ps-dl dd { margin: 0; font-weight: 600; text-align: right; }
.ps-dl dd small { display: block; font-weight: 400; color: var(--muted); font-size: .8rem; }
.ps-all { margin-top: 28px; }
.ps-phases { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 28px; align-items: start; }
.ps-cols { break-inside: avoid; page-break-inside: avoid; }
.ps-phase { break-inside: avoid; margin-bottom: 16px; }
.ps-phase h3 { font-size: .95rem; margin: 0 0 6px; display: flex; align-items: center; gap: 8px; }
.ps-phase h3 span { width: 20px; height: 20px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; font: 700 .7rem var(--sans); }
.ps-phase ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.ps-phase li { display: flex; gap: 7px; align-items: flex-start; font-size: .82rem; line-height: 1.35; }
.ps-phase li .ps-ic { width: 14px; height: 14px; font-size: 8px; margin-top: 2px; border-width: 2px; }
.ps-phase li span { flex: 1; }
.ps-phase li.done span { color: var(--muted); }
.ps-phase li em { font-style: normal; color: var(--muted); font-size: .74rem; white-space: nowrap; }
.ps-legend { display: flex; gap: 18px; font-size: .78rem; color: var(--muted); margin: 4px 0 0; }
.ps-legend span { display: inline-flex; align-items: center; gap: 6px; }
.ps-legend .ps-ic { width: 13px; height: 13px; font-size: 8px; margin: 0; }

@media screen and (max-width: 760px) {
  .ps-hero { flex-direction: column-reverse; align-items: flex-start; }
  .ps-stats { grid-template-columns: 1fr 1fr; }
  .ps-track { grid-template-columns: 1fr; gap: 10px; }
  .ps-track li { grid-template-columns: 32px 1fr; justify-items: start; text-align: left; column-gap: 12px; }
  .ps-track li .ps-dot { grid-row: span 2; }
  .ps-track li::before { display: none; }
  .ps-cols, .ps-grid { grid-template-columns: 1fr; }
  .ps-phases { grid-template-columns: 1fr; }
}
@media print {
  .ps-hero { padding: 14px 0 12px; }
  .ps-hero h1 { font-size: 24px; }
  .ps-gauge, .ps-ring { width: 92px; height: 92px; }
  .ps-gauge-text strong { font-size: 20px; }
  .ps-gauge-text span { font-size: 8px; }
  .ps-stats { gap: 8px; }
  .ps-stats div { padding: 7px 10px; }
  .ps-stats b { font-size: 13px; }
  .ps-note { margin-top: 12px; padding: 8px 12px; }
  .ps-track { margin: 16px 0 2px; }
  .ps-track li { font-size: 9px; }
  .ps-track small { font-size: 8px; }
  .ps-dot { width: 24px; height: 24px; font-size: 10px; border-width: 2px; }
  .ps-track li::before { top: 11px; }
  .ps-track li.now .ps-dot { box-shadow: none; }
  .ps-cols { margin-top: 16px; gap: 22px; }
  .ps-sheet h2 { font-size: 13px; margin-bottom: 6px; }
  .ps-list { gap: 6px; }
  .ps-list small { font-size: 9px; }
  .ps-yours { margin-top: 16px; padding: 10px 14px; break-inside: avoid; }
  .ps-dl dt, .ps-dl dd { font-size: 10.5px; }
  .ps-dl dd small { font-size: 9px; }
  .ps-all { margin-top: 16px; }
  .ps-phase li { font-size: 9.5px; }
  .ps-phase h3 { font-size: 11px; }
  .ps-phase li em { font-size: 8.5px; }
  .ps-all { break-inside: avoid; page-break-inside: avoid; }
  .ps-legend { font-size: 9px; }
}

/* ── Project sheet: Gantt chart ──────────────────────────────────────────── */
.pm-gantt { margin-top: 24px; }
.pm-gantt h2 { font-size: 1.3rem; margin: 0 0 10px; padding-bottom: 8px; border-bottom: 2px solid var(--line); }
.gantt { --g-done: #4f8a5b; --g-progress: #e8a33d; --g-late: #c8412f; --g-todo: #b7c3d0; font-size: .82rem; }
.g-row { display: grid; grid-template-columns: 210px 1fr; align-items: center; min-height: 40px; border-bottom: 1px solid #eef1f4; }
.g-label { padding: 4px 12px 4px 0; line-height: 1.25; }
.g-label b { display: flex; align-items: center; gap: 7px; font-weight: 600; color: var(--ink); }
.g-label b span { width: 18px; height: 18px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; font-size: .66rem; flex-shrink: 0; }
.g-label small { display: block; color: var(--muted); font-size: .72rem; margin-left: 25px; }
.g-row.late .g-label small { color: var(--g-late); font-weight: 700; }
.g-row.done .g-label small { color: var(--g-done); }
.g-track { position: relative; height: 40px; }
.g-tick { position: absolute; top: 0; bottom: 0; width: 1px; background: #eef1f4; }
.g-tick.yr { background: #d5dbe2; }
.g-today { position: absolute; top: 0; bottom: 0; width: 0; border-left: 2px dashed var(--navy-2); z-index: 2; }
.g-bar { position: absolute; top: 12px; height: 16px; border-radius: 5px; background: var(--g-todo); overflow: hidden; z-index: 1; min-width: 6px; }
.g-bar em { position: absolute; inset: 0 auto 0 0; background: rgba(255, 255, 255, .35); }
.g-row.done .g-bar { background: var(--g-done); }
.g-row.progress .g-bar { background: var(--g-progress); }
.g-row.progress .g-bar em, .g-row.late .g-bar em { background: var(--g-done); }
.g-row.late .g-bar { background: var(--g-late); }
.g-row.done .g-bar em { display: none; }
.g-bar.est { background: #c3ccd7 repeating-linear-gradient(135deg, #dfe5ec 0 4px, #a9b6c5 4px 8px); }
.g-row.done .g-bar.est { background: #4f8a5b repeating-linear-gradient(135deg, #a9cdb0 0 4px, #4f8a5b 4px 8px); }
.g-row.progress .g-bar.est { background: #e8a33d repeating-linear-gradient(135deg, #f6d9a8 0 4px, #e8a33d 4px 8px); }
.g-bar.cont { border-radius: 5px 0 0 5px; clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 50%, calc(100% - 8px) 100%, 0 100%); }
.g-dates { position: absolute; top: 13px; margin-left: 6px; background: #fff; padding: 0 3px; border-radius: 3px; font-size: .68rem; color: var(--muted); white-space: nowrap; z-index: 3; }
.g-dates.before { margin-left: 0; transform: translateX(calc(-100% - 6px)); }
.g-dates.inside { color: #fff; font-weight: 600; margin-left: 8px; z-index: 2; background: none; }
.g-row.todo .g-dates.inside { color: var(--ink); }
.g-axis { min-height: 40px; border-bottom: 2px solid var(--line); }
.g-axis .g-track { height: 40px; }
.g-axis span { position: absolute; bottom: 4px; font-size: .68rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; white-space: nowrap; padding-left: 3px; }
/* "Today" sits on its own line above the month names so the two never overlap */
.g-axis .g-today-label { color: #fff; background: var(--navy-2); border-radius: 999px; transform: translateX(-50%); top: 2px; bottom: auto; padding: 1px 7px; font-size: .6rem; line-height: 1.4; z-index: 4; }
.g-marks { min-height: 58px; border-bottom: 0; }
.g-marks .g-track { height: 58px; }
.g-mark { position: absolute; top: 4px; transform: translateX(-50%); text-align: center; background: #fff; padding: 0 3px; border-radius: 3px; font-size: .64rem; line-height: 1.2; color: var(--ink); white-space: nowrap; z-index: 3; }
.g-mark i { display: block; width: 10px; height: 10px; margin: 0 auto 3px; background: var(--navy); transform: rotate(45deg); }
.g-mark.lo { top: 26px; }
.g-mark.lo i { display: none; }
.g-mark.lo::before { content: ""; display: block; width: 10px; height: 10px; margin: -24px auto 16px; background: var(--navy); transform: rotate(45deg); }
.g-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 10px 0 0; font-size: .74rem; color: var(--muted); }
.g-legend span { display: inline-flex; align-items: center; gap: 6px; }
.g-legend i { width: 18px; height: 10px; border-radius: 3px; background: var(--g-todo); }
.g-legend .done i { background: var(--g-done); }
.g-legend .progress i { background: var(--g-progress); }
.g-legend .late i { background: var(--g-late); }
.g-legend .est i { background: #c3ccd7 repeating-linear-gradient(135deg, #dfe5ec 0 3px, #a9b6c5 3px 6px); }
.g-legend .tl i { width: 0; height: 12px; border-left: 2px dashed var(--navy-2); border-radius: 0; background: none; }
.gantt-blank .g-track { background: repeating-linear-gradient(90deg, transparent 0 calc(100% / 12 - 1px), #e3e7ec calc(100% / 12 - 1px) calc(100% / 12)); }
tr[data-late] .pm-date:first-of-type input, tr[data-late] td[data-label="Due"] input { color: var(--g-late, #c8412f); font-weight: 700; background: #fdecea; }
tr[data-late] td[data-label="Due"] .pm-print { color: #c8412f; font-weight: 700; }
tr[data-late] td[data-label="Due"] .pm-print::after { content: " · late"; }
@media screen and (max-width: 760px) {
  .g-row { grid-template-columns: 112px 1fr; }
  .g-label small { margin-left: 0; }
  .g-label b span { display: none; }
  .g-dates { display: none; }
  .g-axis span:not(.q):not(.g-today-label) { display: none; }
  .g-mark { font-size: .55rem; }
}
@media print {
  .pm-phases { display: none; }
  .pm-gantt { margin-top: 14px; break-inside: avoid; }
  .pm-gantt h2 { font-size: 15px; margin-bottom: 4px; }
  .pm-phase[data-phase="plan"] { break-before: page; page-break-before: always; margin-top: 0; }
  .gantt { font-size: 10px; }
  .g-row { grid-template-columns: 150px 1fr; min-height: 30px; }
  .g-track { height: 30px; }
  .g-bar { top: 9px; height: 12px; }
  .g-dates { top: 9px; font-size: 7.5px; }
  .g-dates.inside { top: 9.5px; }
  .g-label small { font-size: 8px; margin-left: 23px; }
  .g-label b span { width: 16px; height: 16px; font-size: 8px; }
  .g-axis span { font-size: 7.5px; }
  .g-marks, .g-marks .g-track { min-height: 48px; height: 48px; }
  .g-mark { font-size: 7.5px; }
  .g-legend { font-size: 8.5px; gap: 4px 12px; }
}

.agent-card > div { min-width: 0; }
.agent-card a[href^="mailto:"] { overflow-wrap: anywhere; }
@media (max-width: 420px) { .footer-grid { grid-template-columns: 1fr; } }
.calc-grid > * { min-width: 0; }
.match { flex-wrap: wrap; }
@media (max-width: 380px) { .form-row { grid-template-columns: 1fr; } }
.form-row > * { min-width: 0; }

.home-address { font-weight: 600; margin: 2px 0 0 !important; }

/* Financing page */
.wrap.narrow { max-width: 860px; }
.loan-types .card h3 { margin-top: 0; }
.lender-table td { vertical-align: top; }
@media screen and (max-width: 760px) { .lender-table thead { display: none; } .lender-table tr { display: block; padding: 10px 0; border-bottom: 1px solid var(--line); } .lender-table td { display: block; border: 0; padding: 3px 10px; } }

/* Guide: buyer project plan */
.plan-jump { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 20px; }
.plan-jump a { font-size: .86rem; font-weight: 600; text-decoration: none; color: var(--navy); background: var(--bg-alt); border: 1px solid var(--line); border-radius: 999px; padding: .35em .9em; }
.plan-jump a:hover { border-color: var(--navy-2); }
.plan { list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; }
.plan-head { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.plan-head h3 { margin: 0; }
.plan-num { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--navy); color: #fff; font-weight: 700; }
.plan-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 28px; }
.plan-cols h4 { margin: 0 0 8px; font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.plan-steps { display: grid; gap: 8px; align-content: start; }
.plan-steps label.check { align-items: flex-start; font-weight: 500; }
.plan-steps input { margin-top: .35em; flex: none; }
.plan-help ul { margin: 0; padding-left: 1.1em; display: grid; gap: 6px; font-size: .94rem; }
.plan-help li::marker { color: var(--accent); }
.plan-watch { margin: 16px 0 0; padding: 10px 14px; border-left: 3px solid var(--accent); background: var(--bg-alt); border-radius: 0 8px 8px 0; font-size: .94rem; }
.cost-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px 28px; margin: 12px 0 0; }
.cost-list div { padding: 12px 0; border-bottom: 1px solid var(--line); }
.cost-list dt { font-weight: 700; color: var(--navy); }
.cost-list dd { margin: 2px 0 0; color: var(--muted); font-size: .94rem; }
@media (max-width: 760px) { .plan-cols, .cost-list { grid-template-columns: 1fr; } .card.plan-phase { padding: 18px; } }
.plan-preview { list-style: none; padding: 0; margin: 12px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.plan-preview li { display: flex; gap: 12px; align-items: flex-start; padding: 16px 18px; }
.plan-preview h3 { margin: .1em 0 .2em; font-size: 1.02rem; }
.plan-preview p { margin: 0; }
.qmi-checked { margin: 12px 0 0; }
.plan-personal { display: grid; grid-template-columns: 1.1fr 1fr; gap: 20px 32px; margin: 8px 0 22px; border-left: 4px solid var(--accent); }
.plan-personal h3 { margin: 0 0 8px; }
.plan-personal p:last-child { margin-bottom: 0; }
.plan-personal h4 { margin: 0 0 10px; font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.plan-reviews { margin: 0; padding-left: 1.3em; display: grid; gap: 8px; font-size: .94rem; }
.plan-reviews li::marker { color: var(--accent); font-weight: 700; }
.plan-reviews strong { display: block; color: var(--navy); }
.plan-reviews span { color: var(--muted); }
.value-list { margin-top: 12px; }
.value-list h3 { margin: 0 0 6px; font-size: 1.02rem; }
.value-list p { margin: 0; font-size: .94rem; }
@media (max-width: 760px) { .plan-personal { grid-template-columns: 1fr; } }

/* ── Agent workspace add-ons: alerts, logs, calendar ─────────────────────── */
.pm-alerts { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 6px; }
.pm-alerts li { padding: 8px 12px 8px 34px; border-radius: 8px; font-size: .9rem; position: relative; background: #eef3f9; color: var(--navy); }
.pm-alerts li::before { content: "i"; position: absolute; left: 10px; top: 9px; width: 16px; height: 16px; border-radius: 50%; display: grid; place-items: center; font-size: .68rem; font-weight: 700; background: var(--navy-2); color: #fff; }
.pm-alerts li.warn { background: #fdf1e2; color: #7a4a12; } .pm-alerts li.warn::before { content: "!"; background: var(--accent); color: #1b2430; }
.pm-alerts li.bad { background: #fbe9e6; color: #8a2a1d; } .pm-alerts li.bad::before { content: "!"; background: #c8412f; }
.pm-alerts a { color: inherit; font-weight: 600; }
.pm-alerts.compact { margin: 6px 0 0; } .pm-alerts.compact li { padding: 4px 10px 4px 30px; font-size: .84rem; } .pm-alerts.compact li::before { top: 5px; }
.pm-attention { margin-bottom: 22px; } .pm-attention h2 { margin: 0 0 8px; font-size: 1.2rem; }
.pm-att-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.pm-dash-btns { display: flex; gap: 10px; flex-wrap: wrap; }
.pm-log header { display: flex; align-items: center; gap: 10px; }
.pm-log .tag { margin-left: auto; }
.pm-logtable td { vertical-align: top; }
.pm-logtable input, .pm-logtable select, .pm-logtable textarea { width: 100%; font: inherit; font-size: .88rem; padding: 6px 8px; border: 1px solid var(--line); border-radius: 6px; background: #fff; min-width: 0; }
.pm-logtable textarea { resize: vertical; min-height: 34px; }
.pm-log-long { min-width: 200px; }
.pm-log-x { width: 32px; text-align: center; }
.pm-log-total { margin: 8px 0; font-size: .88rem; color: var(--muted); }
.pm-log-total.over { color: #8a2a1d; }
.pm-log .btn { margin-top: 6px; }
.pm-update { display: grid; gap: 10px; }
.pm-update label { display: grid; gap: 4px; font-weight: 600; font-size: .88rem; }
.pm-update textarea, .pm-update input { font: inherit; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; }
.pm-digest { display: grid; gap: 8px; } .pm-digest p { margin: 0; }
.ps-punch { margin: 10px 0 0; font-size: .92rem; }
@media (max-width: 760px) {
  .pm-logtable thead { display: none; }
  .pm-logtable tr { display: grid; gap: 6px; padding: 10px 0; border-bottom: 1px solid var(--line); }
  .pm-logtable td { display: grid; gap: 2px; border: 0; padding: 0; }
  .pm-logtable td[data-label]::before { content: attr(data-label); font-size: .72rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
  .pm-log-x { width: auto; text-align: left; }
}
@media print { .pm-logtable input, .pm-logtable select, .pm-logtable textarea { display: none; } .pm-log-x { display: none; } }

.cal-pipe .g-row { grid-template-columns: 240px 1fr; min-height: 46px; }
.cal-pipe .g-label small { margin-left: 0; }
.cal-pipe .g-label a { color: var(--navy); }
.cal-pipe .bad-t { color: #c8412f; font-weight: 700; }
.cal-close { position: absolute; top: 9px; transform: translateX(-50%); color: var(--navy); font-size: 1rem; line-height: 1; z-index: 3; }
.cal-close.est { color: var(--muted); }
.cal-pipe .g-dates { margin-left: 10px; }
.cal-pipe .g-dates.before { transform: translateX(calc(-100% - 10px)); }
.cal-grid-2 { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 28px; align-items: start; }
.cal-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.cal-head h2 { margin: 0; }
.cal-nav { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.cal-nav .small { margin-left: 8px; }
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); background: var(--card); }
.cal-dow { padding: 6px; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg-alt); }
.cal-day { min-height: 104px; padding: 4px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.cal-day.out { background: #fafbfc; }
.cal-day.today { background: #fff8ec; }
.cal-day.today .cal-n { background: var(--accent); color: #1b2430; border-radius: 50%; }
.cal-n { font-size: .78rem; font-weight: 700; color: var(--muted); width: 22px; height: 22px; display: grid; place-items: center; }
.cal-ev { display: block; font-size: .7rem; line-height: 1.25; padding: 2px 5px; border-radius: 4px; text-decoration: none; color: var(--ink); background: #eef1f4; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; border-left: 3px solid #b7c3d0; }
.cal-ev.close { background: #e5f0e7; border-color: #4f8a5b; font-weight: 700; }
.cal-ev.target { background: #eef3f9; border-color: var(--navy-2); }
.cal-ev.contract, .cal-ev.start { background: #f3eefa; border-color: #7a5ea8; }
.cal-ev.lock { background: #fbe9e6; border-color: #c8412f; }
.cal-ev.co { background: #fdf1e2; border-color: var(--accent); }
.cal-ev.task.late { background: #fbe9e6; color: #8a2a1d; }
.cal-more { font-size: .68rem; color: var(--muted); padding-left: 4px; }
.cal-legend { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 0; }
.cal-legend .cal-ev { display: inline-block; }
.cal-upcoming { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.cal-upcoming li { padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.cal-upcoming a { text-decoration: none; color: var(--ink); } .cal-upcoming b { color: var(--navy); margin-right: 4px; }
.cal-upcoming small { display: block; color: var(--muted); font-size: .8rem; }
.cal-feed h3 { margin: 0 0 6px; font-size: 1rem; } .cal-feed p { margin: 0 0 8px; }
@media (max-width: 980px) { .cal-grid-2 { grid-template-columns: 1fr; } }
@media (max-width: 640px) {
  .cal-pipe .g-row { grid-template-columns: 1fr; } .cal-pipe .g-axis .g-label { display: none; } .cal-pipe .g-label { padding-top: 8px; }
  .cal-day { min-height: 64px; padding: 2px; } .cal-ev { font-size: 0; padding: 0; height: 6px; border-left-width: 0; } .cal-ev.close { background: #4f8a5b; } .cal-ev.target { background: var(--navy-2); } .cal-ev.lock { background: #c8412f; } .cal-ev.co { background: var(--accent); } .cal-ev.task { background: #b7c3d0; }
  .cal-legend .cal-ev { font-size: .7rem; height: auto; padding: 2px 5px; border-left-width: 3px; }
}
.pm-log-x .pm-x { position: static; opacity: 1; }

/* Agent workspace: builder box, home search, compare, contact book */
.pm-top { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 16px; align-items: start; margin-bottom: 16px; }
.pm-top .pm-alerts { margin: 0; }
.pm-builderbox { padding: 14px 16px; font-size: .9rem; }
.pm-builderbox ul { margin: 6px 0; padding-left: 18px; } .pm-builderbox p { margin: 6px 0; }
@media (max-width: 900px) { .pm-top { grid-template-columns: 1fr; } }
.pm-search { display: grid; gap: 10px; }
.pm-search label { display: grid; gap: 4px; font-weight: 600; font-size: .86rem; }
.pm-search label.check { display: flex; font-weight: 500; }
.pm-search input:not([type=checkbox]), .pm-search select { font: inherit; padding: 7px 9px; border: 1px solid var(--line); border-radius: 8px; }
.pm-search details summary { cursor: pointer; font-weight: 600; font-size: .9rem; color: var(--navy); }
.pm-checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 4px 14px; padding: 8px 0; }
.pm-matches-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin: 18px 0 8px; }
.pm-matches-head h3 { margin: 0; }
.hm-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.hm { display: grid; grid-template-columns: 120px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 8px; border: 1px solid var(--line); border-radius: 10px; font-size: .9rem; }
.hm.on { border-color: var(--accent); background: #fffaf1; }
.hm img, .hm-ph { width: 120px; height: 80px; object-fit: cover; border-radius: 6px; background: var(--line); display: block; }
.hm small { display: block; color: var(--muted); font-size: .8rem; }
.hm .hm-mkt { color: var(--navy-2); }
.hm s { color: var(--muted); font-size: .82rem; }
.hm-act { display: grid; gap: 4px; justify-items: end; }
@media (max-width: 640px) { .hm { grid-template-columns: 90px minmax(0, 1fr); } .hm img, .hm-ph { width: 90px; height: 60px; } .hm-act { grid-column: 1 / -1; display: flex; justify-content: space-between; } }
.cmp-wrap { overflow-x: auto; padding: 0; }
.cmp { width: 100%; min-width: calc(150px + var(--n) * 200px); table-layout: fixed; }
.cmp th[scope=row] { width: 150px; text-align: left; font-size: .76rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); vertical-align: top; }
.cmp td { vertical-align: top; font-size: .92rem; }
.cmp td small { display: block; color: var(--muted); font-size: .8rem; }
.cmp img, .hm-ph.big { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 8px; }
.cmp s { color: var(--muted); font-size: .85rem; }
.cb-list { display: grid; gap: 10px; }
.cb summary { cursor: pointer; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 1.02rem; color: var(--navy); }
.cb-notes { margin: 12px 0; }
.cb-notes label { display: grid; gap: 4px; font-size: .84rem; font-weight: 600; }
.cb-notes textarea { font: inherit; font-weight: 400; padding: 7px 9px; border: 1px solid var(--line); border-radius: 8px; resize: vertical; }
[data-cb-search] { margin-left: auto; padding: 7px 10px; border: 1px solid var(--line); border-radius: 8px; font: inherit; }
/* Photo journal */
.pj-up { display: flex; flex-wrap: wrap; align-items: end; gap: 10px 14px; margin: 10px 0 14px; }
.pj-up label:not(.btn) { display: grid; gap: 4px; font-size: .84rem; font-weight: 600; }
.pj-up input:not([type=file]), .pj-up select { font: inherit; font-weight: 400; padding: 6px 8px; border: 1px solid var(--line); border-radius: 8px; }
.pj-pick { cursor: pointer; }
.pj-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.pj-tile { margin: 0; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--card); }
.pj-tile.shared { border-color: #4f8a5b; box-shadow: 0 0 0 1px #4f8a5b; }
.pj-tile img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--line); }
.pj-tile figcaption { display: grid; gap: 5px; padding: 8px; font-size: .82rem; }
.pj-tile input[name=caption] { font: inherit; padding: 4px 6px; border: 1px solid var(--line); border-radius: 6px; width: 100%; }
.pj-tile select { font: inherit; font-size: .78rem; max-width: 100%; border: 1px solid var(--line); border-radius: 6px; }
.pj-meta { color: var(--muted); font-size: .78rem; }
.pj-act { display: flex; justify-content: space-between; align-items: center; }
.pj-act .pm-x { position: static; }
.ps-photos { margin-top: 22px; }
@media print { .ps-photos .pj-grid { grid-template-columns: repeat(3, 1fr); } .pj-tile { break-inside: avoid; } }
/* Lead pipeline, follow-ups, forecast, vendor list */
.pl-board { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(260px, 1fr); gap: 14px; overflow-x: auto; padding-bottom: 10px; align-items: start; }
.pl-col { background: var(--bg-alt); border-radius: 12px; padding: 10px; display: grid; gap: 10px; align-content: start; min-height: 120px; }
.pl-col h2 { font-size: 1rem; margin: 2px 4px; display: flex; justify-content: space-between; align-items: center; }
.pl-card { padding: 12px 14px; display: grid; gap: 6px; font-size: .9rem; }
.pl-card p { margin: 0; }
.pl-top { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }
.pl-msg { color: var(--ink); font-style: italic; }
.pl-ctl { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.pl-ctl label { display: grid; gap: 2px; font-size: .72rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.pl-card select, .pl-card input, .pl-card textarea { font: inherit; font-size: .85rem; padding: 5px 7px; border: 1px solid var(--line); border-radius: 6px; width: 100%; min-width: 0; text-transform: none; letter-spacing: 0; color: var(--ink); font-weight: 400; }
.pl-card input.late { border-color: #c8412f; color: #8a2a1d; }
.pl-card textarea { resize: vertical; }
[data-pl-search] { margin-left: auto; padding: 7px 10px; border: 1px solid var(--line); border-radius: 8px; font: inherit; }
@media (max-width: 760px) { .pl-board { grid-auto-flow: row; grid-auto-columns: auto; overflow: visible; } }
.pm-follow { margin-bottom: 22px; } .pm-follow h2 { margin: 0 0 8px; font-size: 1.2rem; }
.pm-follow-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.pm-follow-list li { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.pm-follow-list li > div:last-child { display: flex; gap: 6px; }
.pm-follow-list small { display: block; color: var(--muted); }
.fc tr.past td { color: var(--muted); }
.fc-bar { width: 30%; } .fc-bar i { display: block; height: 10px; border-radius: 5px; background: var(--accent); min-width: 0; }
.fc tfoot th { text-align: left; }
.vd-list { list-style: none; padding: 0; margin: 0 0 14px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 24px; }
@media (max-width: 640px) { .vd-list { grid-template-columns: 1fr; } }
/* Guide: "clients get the full plan" callout */
.guide-callout { display: flex; align-items: center; gap: 16px 20px; flex-wrap: wrap; margin: 22px 0 10px; padding: 18px 22px; background: var(--navy); color: #fff; border-radius: var(--radius); box-shadow: var(--shadow); max-width: 860px; }
.guide-callout-icon { flex: none; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--accent); color: #1b2430; font-size: 1.2rem; }
.guide-callout div { flex: 1 1 280px; display: grid; gap: 3px; }
.guide-callout strong { font-family: var(--serif, Georgia, serif); font-size: 1.25rem; line-height: 1.25; }
.guide-callout span:not(.guide-callout-icon) { color: #dfe7f1; font-size: .95rem; }
.guide-callout .btn { flex: none; }
@media (max-width: 640px) { .guide-callout .btn { width: 100%; text-align: center; } }

/* About Katie */
.about-katie { background: var(--bg-alt); }
.about-grid { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 36px; align-items: start; }
.about-photo { margin: 0; }
.about-photo img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); display: block; }
.about-photo figcaption { display: grid; gap: 2px; margin-top: 12px; font-size: .88rem; color: var(--muted); }
.about-photo figcaption strong { color: var(--navy); font-size: 1rem; }
.about-body h2 { margin-top: 0; }
.about-body > p { max-width: 68ch; }
.about-facts { list-style: none; padding: 0; margin: 18px 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.about-facts li { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; display: grid; gap: 2px; }
.about-facts span:not(.bio-todo) { font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.about-facts strong { color: var(--navy); font-size: 1.05rem; }
.about-badges .tag { font-size: .8rem; }
.about-roots { color: var(--muted); }
.about-why { margin: 18px 0; padding: 14px 18px; border-left: 4px solid var(--accent); background: var(--card); border-radius: 0 12px 12px 0; }
.about-why p { margin: 0; font-family: var(--serif, Georgia, serif); font-size: 1.15rem; color: var(--navy); }
.about-why cite { display: block; margin-top: 6px; font-style: normal; font-size: .84rem; color: var(--muted); }
.about-reviews { margin-top: 26px; }
.about-review { margin: 0; } .about-review blockquote { margin: 0 0 10px; }
.about-review figcaption { display: grid; font-size: .88rem; } .about-review figcaption span { color: var(--muted); }
.agent-bio { margin-top: 12px; } .agent-bio p { margin: 0 0 4px; }
.bio-todo { display: inline-block; background: #fff3d6; border: 1px dashed var(--accent); color: #7a4a12; border-radius: 6px; padding: 2px 8px; font-size: .88rem; font-family: var(--sans, inherit); font-weight: 500; }
.bio-preview { background: var(--navy); color: #fff; padding: 8px 14px; border-radius: 8px; font-size: .88rem; margin: 0 0 18px; }
.bio-preview code { background: rgba(255,255,255,.15); padding: 0 4px; border-radius: 4px; }
.bio-preview-tag { display: inline-block; background: var(--navy); color: #fff; font-size: .7rem; font-weight: 700; padding: 1px 7px; border-radius: 999px; }
@media (max-width: 800px) { .about-grid { grid-template-columns: 1fr; } .about-photo { max-width: 260px; } }
.about-facts .bio-todo { font-size: .8rem; }

/* Brokerage card at the top right of page titles (logo larger than the agent details, per brand rules) */
.has-headcard { display: grid; grid-template-columns: minmax(0, 1fr) 290px; column-gap: 48px; align-items: start; }
.has-headcard > * { grid-column: 1; }
.has-headcard > .headcard { grid-column: 2; grid-row: 1 / span 30; }
.headcard { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px 16px; box-shadow: var(--shadow); display: grid; gap: 12px; margin-top: 6px; }
.headcard-logo img { display: block; width: 100%; height: auto; }
.headcard-agent { display: grid; gap: 1px; padding-top: 12px; border-top: 1px solid var(--line); line-height: 1.35; }
.headcard-agent strong { font-size: .86rem; color: var(--navy); }
.headcard-agent span { font-size: .76rem; color: var(--muted); }
.headcard-agent a { font-size: .8rem; font-weight: 700; color: var(--navy-2); white-space: nowrap; }
.headcard.is-preview { outline: 2px dashed var(--accent); outline-offset: 4px; }
@media (max-width: 900px) { .has-headcard { display: block; } .has-headcard > .headcard { display: none; } }
@media print { .headcard { display: none; } }
@media (max-width: 640px) { .levy-examples { font-size: .8rem; } .levy-examples td, .levy-examples th { white-space: normal; padding: 6px 5px; } .levy-examples td .muted { display: block; } }
@media (max-width: 380px) { .levy-examples td .muted { display: none; } }
@media (max-width: 340px) { .levy-examples { font-size: .74rem; } .levy-examples td, .levy-examples th { padding: 5px 3px; } }
/* Desktop: the white header is just the menu, left-aligned with the page content. Katie and the
   brokerage are in the navy bar and the page-title card. Below 1101px (☰ menu) the photo and name stay. */
@media (min-width: 1101px) {
  .site-header .logo, .site-header .header-brokerage { display: none; }
  .header-inner { justify-content: flex-start; }
  .site-header .wrap { max-width: 1200px; }
  .site-nav { margin-left: -.6em; }
  /* Full-width map: line the menu up with the sidebar */
  body:has(.map-page) .site-header .wrap { max-width: none; padding-left: 24px; }
}

/* Signed-in admins/agents: no phone pill, and the bar stays on one line on desktop */
.agent-bar.bar-staff .agent-bar-phone { display: none; }
@media (min-width: 1101px) { .agent-bar.bar-staff .agent-bar-inner { flex-wrap: nowrap; } .agent-bar.bar-staff .agent-bar-id, .agent-bar.bar-staff .agent-bar-links { flex-wrap: nowrap; white-space: nowrap; } }
