

   /* Secondary Language Styling (Dimmed for readability) */
.trans-es {
  color: var(--gray-400, #9ca3af);
  font-size: 1em;
  font-weight: 400;
}

/* Pipe divider color */
.ref-card .divider {
  color: var(--gray-600, #6b7280);
  margin: 0 4px;
}

/* Bio spacing & line-height */
.ref-bio {
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--gray-200, #e5e7eb);
}

/* Form label refinements */
.field label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--gray-300, #d1d5db);
}

:root {
--navy: #1c140c;
--navy-light: #2b2015;
--charcoal: #241a10;
--slate: #3a2e20;
--gold: #c9a227;
--gold-hover: #dbb42c;
--green: #1a5f4a;
--white: #ffffff;
--off-white: #f7f8fa;
--gray-100: #f0f2f5;
--gray-200: #e2e6eb;
--gray-300: #c5ccd6;
--gray-500: #6b7a8a;
--gray-700: #3d4a57;
--yellow-entry: #fff8e1;
--orange-dd: #fff3e0;
--grey-est: #eceff1;
--success: #1a7a4c;
--danger: #b33a3a;
--radius: 10px;
--shadow: 0 4px 20px rgba(28, 20, 12, 0.1);
--shadow-lg: 0 12px 40px rgba(28, 20, 12, 0.14);
--font: 'Inter', system-ui, -apple-system, sans-serif;
/* Theme-aware aliases. In light mode these just point at the existing
brand colors above, so nothing changes. --navy and --white keep their
original literal values always (they're used for fixed-contrast things
like white text on the navy header, and the navy header/button
backgrounds themselves) — only --surface and --text-heading flip in dark
mode, for card backgrounds and heading/body text respectively. */
--surface: var(--white);
--text-heading: var(--navy);
}

/* ========== DARK MODE ========== */
[data-theme="dark"] {
--surface: #211c15;
--text-heading: #f3ecdc;
--off-white: #15120d;
--gray-100: #241f17;
--gray-200: #362e21;
--gray-300: #4c422f;
--gray-500: #ab9c82;
--gray-700: #d9d0bd;
/* Entry/dropdown/estimated field backgrounds stay the same light pastel
tones as light mode on purpose (see note below) — they were briefly
darkened for dark mode, which left near-black text unreadable against a
dark olive/brown background. Keeping them pastel restores the contrast
the dark text color below depends on. */
--yellow-entry: #fff8e1;
--orange-dd: #fff3e0;
--grey-est: #eceff1;
--shadow: 0 4px 20px rgba(0, 0, 0, 0.45);
--shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.55);
}

/* A few elements set their own text color instead of inheriting it, so
they don't automatically follow --text-heading/--gray-700 into dark mode.
These keep dark text because their backgrounds intentionally stay pastel
(color-coded input fields, warning banners) even in dark mode. */
[data-theme="dark"] .calc-input.entry,
[data-theme="dark"] .calc-input.dropdown,
[data-theme="dark"] .calc-input.estimated,
[data-theme="dark"] .unit-row input,
[data-theme="dark"] .unit-row select,
[data-theme="dark"] .edm-note.warn {
color: #1c140c;
}

/* Lease Status and its date picker are the two .unit-row fields that don't
use a pastel entry/dropdown background — they sit on --surface, which
correctly goes dark in dark mode. The broad rule above still force-darkens
their text though, which left "Month-to-Month" nearly invisible. Give them
back the normal theme-aware text color. */
[data-theme="dark"] .unit-row select.lease-status,
[data-theme="dark"] .unit-row input.lease-date {
color: var(--text-heading);
}

/* Printouts should always look like a normal light-mode page on paper,
regardless of which theme the visitor was browsing in. */
@media print {
[data-theme="dark"] {
--surface: #ffffff;
--text-heading: #1c140c;
--off-white: #f7f8fa;
--gray-100: #f0f2f5;
--gray-200: #e2e6eb;
--gray-300: #c5ccd6;
--gray-500: #6b7a8a;
--gray-700: #3d4a57;
--yellow-entry: #fff8e1;
--orange-dd: #fff3e0;
--grey-est: #eceff1;
}
[data-theme="dark"] .calc-input.entry,
[data-theme="dark"] .calc-input.dropdown,
[data-theme="dark"] .calc-input.estimated,
[data-theme="dark"] .unit-row input,
[data-theme="dark"] .unit-row select,
[data-theme="dark"] .edm-note.warn {
color: #1c140c;
}
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
font-family: var(--font);
background: var(--off-white);
color: var(--text-heading);
line-height: 1.55;
min-height: 100dvh;
-webkit-font-smoothing: antialiased;
}

/* Base link color, site-wide. Dark mode is the permanent theme (see notes
above), so leaving links at browser-default blue/purple made them hard to
read against the dark background. Gold matches the site's own accent color
and stays readable in both visited and unvisited states. More specific
selectors (buttons styled as <a>, nav items, etc.) already override this
via higher-specificity classes, so this only affects plain text links. */
a { color: var(--gold); }
a:visited { color: var(--gold); }
a:hover { color: var(--gold); opacity: 0.85; }

button, input, select, textarea {
font-family: inherit;
font-size: 1rem;
}

/* ========== LAYOUT ========== */
.app {
max-width: 1100px;
margin: 0 auto;
padding: 0 16px 48px;
}

header.site-header {
background: var(--navy);
color: var(--white);
padding: 24px 16px;
text-align: center;
position: sticky;
top: 0;
z-index: 100;
box-shadow: 0 2px 12px rgba(0,0,0,0.25);
}

.header-inner {
max-width: 1100px;
margin: 0 auto;
position: relative;
display: flex;
flex-wrap: wrap;
align-items: center;
justify-content: center;
gap: 12px;
}

.brand .brand-name {
font-size: 1.45rem;
font-weight: 800;
letter-spacing: -0.02em;
color: var(--white);
margin: 0;
}

.brand .sub {
font-size: 0.78rem;
color: var(--gold);
font-weight: 500;
margin-top: 2px;
letter-spacing: 0.02em;
}

.brand .brand-divider {
width: 46px;
height: 1px;
background: var(--gold);
opacity: 0.6;
margin: 6px auto;
}

/* Copy Link as a floating button pinned to the right edge of the viewport —
follows the page on scroll, easy to reach, out of the header's way. */
.floating-copy-btn {
position: fixed;
top: 50%;
right: 14px;
transform: translateY(-50%);
z-index: 90;
background: var(--navy);
color: var(--white);
border: 1.5px solid var(--gold);
border-radius: 999px;
min-width: 50px;
height: 50px;
padding: 0 14px;
display: flex;
align-items: center;
justify-content: center;
gap: 6px;
font-size: 1.25rem;
font-weight: 700;
cursor: pointer;
white-space: nowrap;
box-shadow: 0 2px 12px rgba(0,0,0,0.35);
transition: background 0.15s, border-color 0.15s;
}
.floating-copy-btn:hover { background: rgba(255,255,255,0.1); }
.floating-copy-btn.copied { font-size: 0.8rem; color: var(--gold); }

.header-actions-left, .header-actions-right {
position: absolute;
top: 50%;
transform: translateY(-50%);
display: flex;
align-items: center;
gap: 8px;
}
/* Visually swapped on purpose (Aug 13 2026 request): Back to Home should
read on the left and Copy Link on the right on desktop/laptop widths. The
divs keep their original DOM order/content so the <=560px mobile layout
below (which stacks in DOM order) is completely unaffected. */
.header-actions-left { right: 0; }
.header-actions-right { left: 0; }

.up-next-bar {
max-width: 1100px;
margin: 24px auto 0;
padding: 0 16px;
display: flex;
justify-content: flex-end;
}

.up-next-link {
display: inline-flex;
align-items: center;
gap: 6px;
background: var(--surface);
border: 1px solid var(--gray-300);
border-radius: 999px;
padding: 10px 18px;
font-size: 0.85rem;
font-weight: 600;
color: var(--text-heading);
cursor: pointer;
text-decoration: none;
transition: border-color 0.15s, box-shadow 0.15s;
}

.up-next-link:hover { border-color: var(--gold); box-shadow: var(--shadow); }
.up-next-link .lbl { color: var(--gray-500); font-weight: 500; }
.up-next-link .arrow { color: var(--gold); font-weight: 700; }

.pages-menu-list { display: flex; flex-direction: column; gap: 6px; margin-top: 4px; }
.pages-menu-item {
display: flex;
align-items: center;
gap: 10px;
padding: 12px 14px;
border-radius: 8px;
border: 1px solid var(--gray-200);
background: var(--surface);
color: var(--text-heading);
font-size: 0.92rem;
font-weight: 500;
cursor: pointer;
text-align: left;
}
.pages-menu-item:hover { border-color: var(--gold); background: var(--off-white); }

.header-btn {
display: none;
background: transparent;
border: 1px solid rgba(255,255,255,0.35);
color: var(--white);
padding: 8px 14px;
border-radius: 6px;
cursor: pointer;
font-size: 0.875rem;
font-weight: 500;
transition: background 0.15s, border-color 0.15s;
align-items: center;
gap: 6px;
white-space: nowrap;
}

.header-btn:hover {
background: rgba(255,255,255,0.1);
border-color: var(--gold);
}

.header-btn.visible { display: inline-flex; }
.header-btn.copied { border-color: var(--gold); color: var(--gold); }
.header-btn-compact { padding: 6px 10px; font-size: 0.78rem; }
.header-btn-lg { padding: 11px 20px; font-size: 0.95rem; font-weight: 600; }

/* On narrow screens the absolutely-positioned header buttons can overlap the
centered brand text, so they drop into normal flow below the brand instead. */
@media (max-width: 560px) {
header.site-header { padding: 14px 16px; }
.header-inner { flex-direction: column; gap: 6px; }
.header-actions-left, .header-actions-right {
position: static;
transform: none;
margin-top: 4px;
flex-wrap: wrap;
justify-content: center;
}
.brand .brand-name { font-size: 1.2rem; }
.brand .sub { font-size: 0.72rem; }
.header-btn { padding: 6px 12px; font-size: 0.8rem; }
.header-btn-lg { padding: 10px 18px; font-size: 0.88rem; }
}

/* ========== VIEWS ========== */
.view { display: none; animation: fadeIn 0.25s ease; }
.view.active { display: block; }

@keyframes fadeIn {
from { opacity: 0; transform: translateY(6px); }
to { opacity: 1; transform: translateY(0); }
}

/* ========== LANDING ========== */
.hero {
text-align: center;
padding: 36px 12px 28px;
}

.hero .bio {
font-size: 1.05rem;
color: var(--gray-700);
max-width: 520px;
margin: 0 auto 24px;
line-height: 1.6;
}

.hero .bio strong { color: var(--text-heading); font-weight: 600; }

.hero-title {
font-size: 2.1rem;
font-weight: 800;
color: var(--text-heading);
letter-spacing: -0.02em;
line-height: 1.15;
margin-bottom: 16px;
}

.hero-title em {
font-style: italic;
color: var(--gold);
font-weight: 700;
}

@media (min-width: 640px) {
.hero-title { font-size: 2.6rem; }
}

.hero-news-ticker {
display: inline-flex;
align-items: center;
gap: 8px;
margin-top: 18px;
padding: 8px 16px;
background: var(--surface);
border: 1px solid var(--gray-200);
border-radius: 999px;
cursor: pointer;
font-size: 0.82rem;
color: var(--gray-700);
max-width: 92%;
transition: border-color 0.15s, box-shadow 0.15s;
}

.hero-news-ticker:hover { border-color: var(--gold); box-shadow: var(--shadow); }

.hero-news-tag {
background: var(--gold);
color: var(--text-heading);
font-weight: 700;
font-size: 0.66rem;
text-transform: uppercase;
letter-spacing: 0.04em;
padding: 3px 9px;
border-radius: 999px;
flex-shrink: 0;
}

#heroNewsText {
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
max-width: 70vw;
}

.hero-chips {
display: flex;
flex-wrap: wrap;
justify-content: center;
gap: 8px;
margin-bottom: 18px;
}

.hero-chip {
display: inline-flex;
align-items: center;
gap: 6px;
background: var(--surface);
border: 1px solid var(--gray-300);
border-radius: 999px;
padding: 8px 16px;
font-size: 0.85rem;
font-weight: 500;
color: var(--text-heading);
cursor: pointer;
transition: border-color 0.15s, box-shadow 0.15s;
}

.hero-chip:hover { border-color: var(--gold); box-shadow: var(--shadow); }
.hero-chip .arrow { color: var(--gold); font-weight: 700; }

.hero-realtor-link {
margin-top: 14px;
font-size: 0.8rem;
color: var(--gray-500);
}

.hero-realtor-link a { color: var(--gold-hover); font-weight: 600; text-decoration: none; }
.hero-realtor-link a:hover { text-decoration: underline; }

.hero-stats {
display: flex;
justify-content: center;
gap: 32px;
flex-wrap: wrap;
margin-top: 22px;
padding-top: 22px;
border-top: 1px solid var(--gray-200);
max-width: 460px;
margin-left: auto;
margin-right: auto;
}

.hero-stat {
display: flex;
flex-direction: column;
align-items: center;
}

.hero-stat .num {
font-size: 1.35rem;
font-weight: 800;
color: var(--text-heading);
letter-spacing: -0.02em;
}

.hero-stat .lbl {
font-size: 0.7rem;
color: var(--gray-500);
text-transform: uppercase;
letter-spacing: 0.05em;
margin-top: 2px;
}

/* Homepage split: news/market/about on one side, every page as a light
thumb-sized row on the other -- news is the headline (bigger, first in the
DOM so it leads on mobile too), pages are the quick-scan quiet half. Desktop
uses row-reverse so the DOM stays news-first (good for mobile + reading
order) while visually the pages list sits on the left, news on the right. */
.landing-split {
display: flex;
flex-direction: column;
gap: 24px;
max-width: 1080px;
margin: 26px auto 0;
text-align: left;
}
.landing-split-news { flex: 1.25; min-width: 0; }
.landing-split-pages { flex: 0.85; min-width: 0; }
.landing-split-divider { display: none; }

@media (min-width: 701px) {
.landing-split { flex-direction: row-reverse; align-items: stretch; gap: 32px; }
.landing-split-divider { display: block; width: 1px; align-self: stretch; background: var(--gold); opacity: 0.5; flex-shrink: 0; }
/* News column stretches to match the (usually taller) pages list -- a
light gap increase, not the aggressive spread that was here before. */
.landing-split-news { display: flex; flex-direction: column; gap: 18px; }
}

.hero-news-cards.vertical { display: flex; flex-direction: column; gap: 12px; margin-top: 0; }
.hero-news-card {
background: var(--surface);
border: 1px solid var(--gray-200);
border-radius: 12px;
padding: 14px 16px;
cursor: pointer;
transition: border-color 0.15s, box-shadow 0.15s;
display: flex;
flex-direction: column;
gap: 8px;
}
.hero-news-card:hover { border-color: var(--gold); box-shadow: var(--shadow); }
.hero-news-card p {
font-size: 0.84rem;
color: var(--gray-700);
line-height: 1.4;
margin: 0;
display: -webkit-box;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
overflow: hidden;
}
.hero-news-cta { font-size: 0.76rem; color: var(--gold-hover); font-weight: 600; margin-top: auto; }

/* Latest gets the headline treatment -- bigger tag, bigger text, gold
border -- since news is what should grab attention first on this page. */
.hero-news-card-featured {
padding: 20px 22px;
border: 1.5px solid var(--gold);
box-shadow: 0 0 0 1px rgba(201,162,39,0.15);
}
.hero-news-card-featured .hero-news-tag { background: var(--danger); color: var(--white); font-size: 0.72rem; padding: 4px 11px; }
.hero-news-card-featured p { font-size: 1.05rem; font-weight: 600; color: var(--text-heading); -webkit-line-clamp: 3; }
.hero-news-card-featured .hero-news-cta { font-size: 0.84rem; }

.hero-stats-inline { display: flex; flex-wrap: wrap; gap: 14px; padding-top: 10px; border-top: 1px solid rgba(201,162,39,0.35); font-size: 0.78rem; color: var(--gray-500); }
.hero-stats-inline strong { color: var(--text-heading); font-size: 0.92rem; }

/* The page list -- thin, scannable rows instead of heavy squares. Icon,
label, arrow; a hairline divider between rows instead of individual boxes. */
.nav-line-list { display: flex; flex-direction: column; }
.nav-line {
display: flex;
align-items: center;
gap: 12px;
padding: 13px 8px;
border-bottom: 1px solid var(--gray-200);
cursor: pointer;
transition: padding-left 0.15s, border-color 0.15s;
}
.nav-line:last-child { border-bottom: none; }
.nav-line:hover { padding-left: 12px; border-color: var(--gold); }
.nav-line-icon { font-size: 1.15rem; flex-shrink: 0; width: 24px; text-align: center; }
.nav-line-label { flex: 0 1 auto; font-weight: 600; font-size: 0.92rem; color: var(--text-heading); white-space: nowrap; }
/* Fills the leftover space after the label with a gold line instead of
empty air, running from the end of the word to the arrow. */
.nav-line-fill { flex: 1; min-width: 16px; height: 1px; background: var(--gold); opacity: 0.4; margin: 0 2px; }
.nav-line-arrow { color: var(--gold); font-weight: 700; opacity: 0; transition: opacity 0.15s; flex-shrink: 0; }
.nav-line:hover .nav-line-arrow { opacity: 1; }

@media (max-width: 700px) {
/* Latest / Market Pulse / About as compact cards -- still stacked (this is
the news column), just tighter so it doesn't eat the whole screen. */
.hero-news-card { padding: 11px 13px; gap: 5px; }
.hero-news-card p { font-size: 0.76rem; }
.hero-news-tag { font-size: 0.62rem; padding: 2px 7px; }
.hero-news-cta { font-size: 0.7rem; }
.hero-news-card-featured p { font-size: 0.92rem; }
.nav-line { padding: 14px 6px; }
}

.btn {
display: inline-flex;
align-items: center;
justify-content: center;
gap: 8px;
padding: 14px 28px;
border-radius: 999px;
font-weight: 600;
font-size: 1rem;
cursor: pointer;
border: none;
transition: background 0.15s, transform 0.1s, box-shadow 0.15s;
text-decoration: none;
}

.btn:active { transform: scale(0.98); }

.btn-primary {
background: var(--gold);
color: #1c140c;
box-shadow: 0 4px 14px rgba(201, 162, 39, 0.35);
}

.btn-primary:hover {
background: var(--gold-hover);
box-shadow: 0 6px 18px rgba(201, 162, 39, 0.45);
}

.btn-secondary {
background: var(--navy);
color: var(--white);
}

.btn-secondary:hover { background: var(--navy-light); }

.btn-outline {
background: transparent;
border: 2px solid var(--text-heading);
color: var(--text-heading);
}

.btn-outline:hover { background: var(--navy); color: var(--white); }

.btn-sm {
padding: 10px 18px;
font-size: 0.9rem;
}

/* Cards grid */
.cards-grid {
display: grid;
grid-template-columns: repeat(2, 1fr);
gap: 12px;
margin-top: 32px;
}

@media (min-width: 640px) {
.cards-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 960px) {
.cards-grid { grid-template-columns: repeat(4, 1fr); }
}

.card {
background: var(--surface);
border-radius: var(--radius);
padding: 14px 10px;
box-shadow: var(--shadow);
cursor: pointer;
transition: transform 0.15s, box-shadow 0.15s;
border: 1px solid var(--gray-200);
text-align: center;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
gap: 8px;
min-height: 100px;
}

.card:hover {
transform: translateY(-3px);
box-shadow: var(--shadow-lg);
border-color: var(--gold);
}

.card:hover h3 { color: var(--gold); }

.social-tile-grid {
display: grid;
grid-template-columns: repeat(2, 1fr);
gap: 14px;
max-width: 380px;
margin: 28px auto 0;
}
.social-tile {
aspect-ratio: 1;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
gap: 12px;
background: var(--surface);
border-radius: var(--radius);
box-shadow: var(--shadow);
border: 1px solid var(--gray-200);
text-decoration: none;
cursor: pointer;
transition: transform 0.15s, box-shadow 0.15s;
}
.social-tile:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--gold); }
.social-tile svg { width: 42px; height: 42px; }
.social-tile span { font-weight: 600; color: var(--text-heading); font-size: 1rem; }

.connect-hero {
position: relative;
max-width: 380px;
margin: 0 auto;
border-radius: var(--radius);
overflow: hidden;
box-shadow: var(--shadow-lg);
aspect-ratio: 700/741;
display: flex;
align-items: flex-end;
}
.connect-hero img {
position: absolute;
inset: 0;
width: 100%;
height: 100%;
object-fit: cover;
object-position: center;
}
.connect-hero::after {
content: '';
position: absolute;
inset: 0;
background: linear-gradient(180deg, rgba(11,26,45,0) 38%, rgba(11,26,45,0.92) 100%);
}
.connect-hero-content {
position: relative;
z-index: 1;
padding: 20px;
width: 100%;
color: #fff;
}
.connect-hero-name { font-size: 1.3rem; font-weight: 700; }
.connect-hero-role { font-size: 0.85rem; opacity: 0.85; margin-bottom: 14px; }
.connect-hero-actions { display: flex; gap: 10px; }
.connect-hero-btn {
flex: 1;
display: flex;
align-items: center;
justify-content: center;
gap: 6px;
padding: 11px 10px;
border-radius: 10px;
font-weight: 600;
font-size: 0.88rem;
text-decoration: none;
text-align: center;
}
.connect-hero-btn.call { background: var(--gold); color: var(--navy); }
.connect-hero-btn.email { background: rgba(255,255,255,0.15); color: #fff; border: 1px solid rgba(255,255,255,0.45); }
.connect-hero-btn:hover { filter: brightness(1.06); }

.card .icon {
display: flex;
align-items: center;
justify-content: center;
font-size: 2.05rem;
line-height: 1;
flex-shrink: 0;
}

.card h3 {
font-size: 0.92rem;
font-weight: 700;
color: var(--text-heading);
line-height: 1.3;
margin: 0;
}

.card p { display: none; }

/* ========== SECTION COMMON ========== */
.section-header {
padding: 32px 0 24px;
border-bottom: 1px solid var(--gray-200);
margin-bottom: 28px;
}

.eyebrow {
font-size: 0.75rem;
font-weight: 700;
color: var(--gold);
text-transform: uppercase;
letter-spacing: 0.14em;
margin-bottom: 10px;
}

.section-header h2 {
font-size: 1.85rem;
font-weight: 800;
color: var(--text-heading);
letter-spacing: -0.02em;
}

.section-header p {
color: var(--gray-500);
margin-top: 6px;
font-size: 0.95rem;
}

.trust-line {
display: flex;
align-items: center;
gap: 8px;
flex-wrap: wrap;
margin-top: 12px;
}

.trust-line span {
display: inline-flex;
align-items: center;
padding: 5px 9px;
border: 1px solid var(--gray-200);
border-radius: 999px;
background: var(--surface);
color: var(--text-heading);
font-size: 0.72rem;
font-weight: 700;
letter-spacing: 0.02em;
line-height: 1;
}

.panel {
background: var(--surface);
border-radius: var(--radius);
padding: 24px;
box-shadow: var(--shadow);
border: 1px solid var(--gray-200);
margin-bottom: 20px;
}

.panel h3 {
font-size: 1.1rem;
font-weight: 700;
margin-bottom: 16px;
color: var(--text-heading);
display: flex;
align-items: center;
gap: 8px;
}

/* Forms */
.form-grid {
display: grid;
gap: 14px;
}

@media (min-width: 560px) {
.form-grid.two-col { grid-template-columns: 1fr 1fr; }
}

.field { display: flex; flex-direction: column; gap: 5px; }

.field label {
font-size: 0.8rem;
font-weight: 600;
color: var(--gray-700);
text-transform: uppercase;
letter-spacing: 0.03em;
}

.field input,
.field select,
.field textarea {
padding: 11px 12px;
border: 1px solid var(--gray-300);
border-radius: 7px;
background: var(--surface);
color: var(--text-heading);
transition: border-color 0.15s, box-shadow 0.15s;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
outline: none;
border-color: var(--gold);
box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.2);
}

.field textarea { min-height: 90px; resize: vertical; }

.form-actions {
margin-top: 18px;
display: flex;
gap: 10px;
flex-wrap: wrap;
}

.thank-you {
text-align: center;
padding: 32px 16px;
}

.thank-you h3 {
color: var(--success);
font-size: 1.35rem;
margin-bottom: 8px;
}

.thank-you p { color: var(--gray-500); }

/* Modal */
.modal-overlay {
position: fixed;
inset: 0;
background: rgba(11, 28, 44, 0.55);
z-index: 200;
display: none;
align-items: center;
justify-content: center;
padding: 16px;
}

.modal-overlay.open { display: flex; }

.modal {
background: var(--surface);
border-radius: 12px;
width: 100%;
max-width: 440px;
max-height: 90dvh;
overflow-y: auto;
padding: 28px 24px;
box-shadow: var(--shadow-lg);
position: relative;
}

.modal h3 {
font-size: 1.25rem;
font-weight: 700;
margin-bottom: 18px;
}

.modal-close {
position: absolute;
top: 14px;
right: 14px;
background: none;
border: none;
font-size: 1.4rem;
cursor: pointer;
color: var(--gray-500);
line-height: 1;
padding: 4px;
}

.modal-close:hover { color: var(--text-heading); }

/* ========== BUY / SELL ========== */
.choice-btns {
display: flex;
flex-direction: column;
gap: 12px;
max-width: 360px;
margin: 0 auto;
}

@media (min-width: 480px) {
.choice-btns { flex-direction: row; max-width: none; justify-content: center; }
}

.bs-type-toggle {
display: inline-flex;
border: 1px solid var(--gray-300);
border-radius: 8px;
overflow: hidden;
margin-bottom: 16px;
}
.bs-type-btn {
padding: 7px 20px;
font-size: 0.85rem;
font-weight: 600;
background: var(--surface);
color: var(--gray-500);
border: none;
cursor: pointer;
}
.bs-type-btn + .bs-type-btn { border-left: 1px solid var(--gray-300); }
.bs-type-btn.active { background: var(--navy); color: #fff; }

/* ========== PROPERTY CHECKLIST (internal) ========== */
.checklist-items { display: flex; flex-direction: column; gap: 10px; }
.checklist-item {
display: flex;
align-items: flex-start;
gap: 10px;
font-size: 0.92rem;
color: var(--gray-700);
cursor: pointer;
padding: 4px 0;
}
.checklist-item input[type="checkbox"] {
margin-top: 3px;
width: 17px;
height: 17px;
flex-shrink: 0;
accent-color: var(--gold);
cursor: pointer;
}
.checklist-item input[type="checkbox"]:checked ~ span { color: var(--gray-500); text-decoration: line-through; }
#chkNotes {
width: 100%;
min-height: 130px;
padding: 12px;
border: 1px solid var(--gray-300);
border-radius: 8px;
font-family: inherit;
font-size: 0.9rem;
resize: vertical;
}

/* ========== CALCULATOR ========== */
.calc-layout {
display: grid;
gap: 20px;
min-width: 0;
}

/* Only true on desktop where the two columns sit side by side; hidden on
mobile where the layout stacks instead. */
.calc-layout-hint { display: none; }

@media (min-width: 900px) {
.calc-layout {
grid-template-columns: 1fr 1fr;
align-items: start;
}
.calc-layout .presentation-col {
position: sticky;
top: 80px;
}
.calc-layout-hint { display: block; }
}

/* Grid items default to a content-based minimum width, which can force the
whole calculator wider than the mobile viewport (rows/inputs get clipped).
This lets every level of the layout actually shrink to fit the screen. */
.calc-layout > * { min-width: 0; }
.data-entry-col, .presentation-col { min-width: 0; }

.calc-section {
margin-bottom: 22px;
padding-bottom: 18px;
border-bottom: 1px solid var(--gray-200);
/* Lands the jump-to link below the sticky site header + sticky quick-nav
bar instead of right under them, hidden. Generous enough to clear both on
narrow screens where the header wraps to two lines. */
scroll-margin-top: calc(var(--site-header-h, 76px) + 70px);
}

.calc-section:last-child { border-bottom: none; margin-bottom: 0; }

.calc-section h4 {
font-size: 0.95rem;
font-weight: 700;
color: var(--text-heading);
margin-bottom: 12px;
text-transform: uppercase;
letter-spacing: 0.04em;
font-size: 0.8rem;
}

.calc-row {
display: grid;
grid-template-columns: 1fr auto;
gap: 8px;
align-items: center;
margin-bottom: 8px;
}

.calc-row label {
font-size: 0.875rem;
color: var(--gray-700);
}

.calc-input {
width: 140px;
max-width: 100%;
min-width: 0;
padding: 8px 10px;
border: 1px solid var(--gray-300);
border-radius: 6px;
text-align: right;
font-size: 0.9rem;
}

.calc-row {
min-width: 0;
}
.calc-row label {
min-width: 0;
overflow-wrap: break-word;
}

@media (max-width: 420px) {
.calc-row { grid-template-columns: 1fr; }
.calc-input { width: 100%; text-align: left; }
}

.calc-input.entry { background: var(--yellow-entry); }
.calc-input.dropdown { background: var(--orange-dd); }
.calc-input.estimated { background: var(--grey-est); }
.calc-input.formula {
background: var(--surface);
border-color: var(--gray-200);
font-weight: 600;
color: var(--text-heading);
}

.calc-input:focus {
outline: none;
border-color: var(--gold);
box-shadow: 0 0 0 2px rgba(201, 162, 39, 0.25);
}

.toggle-row {
display: flex;
align-items: center;
gap: 8px;
margin-top: 4px;
}

.toggle-row label {
font-size: 0.78rem;
color: var(--gray-500);
cursor: pointer;
}

.unit-row {
display: grid;
grid-template-columns: auto 1fr;
grid-template-areas:
"del type"
"rent occ"
"utils utils"
"utilfee utilfee"
"mkt mkt"
"reno reno"
"lstat ldate";
gap: 6px;
align-items: center;
margin-bottom: 14px;
padding-bottom: 12px;
border-bottom: 1px dashed var(--gray-200);
}

.unit-row:last-of-type { border-bottom: none; margin-bottom: 8px; padding-bottom: 0; }

.unit-row .btn-icon { grid-area: del; justify-self: start; }
.unit-row select[data-field="name"] { grid-area: type; }
.unit-row .unit-rent-wrap { grid-area: rent; }
.unit-row select[data-field="occupancy"] { grid-area: occ; }
.unit-row select[data-field="utils"] { grid-area: utils; }
.unit-row select.lease-status { grid-area: lstat; }
.unit-row input.lease-date { grid-area: ldate; }
.unit-row .unit-market-rent-wrap { grid-area: mkt; }
.unit-row .unit-reno-rent-wrap { grid-area: reno; }
.unit-row .unit-fee-wrap { grid-area: utilfee; }
.unit-field-labeled input { width: 100%; }
.unit-field-label {
display: block;
font-size: 0.68rem;
font-weight: 600;
text-transform: uppercase;
letter-spacing: 0.02em;
color: var(--gray-500);
margin-bottom: 2px;
}
.unit-row .unit-fee-wrap input[data-field="utilFee"] { width: 100%; }
/* Potential Units rows are simpler than real unit rows (no occupancy,
market rent, reno rent, or lease fields), so they get their own compact
grid instead of leaving most of the standard .unit-row areas empty. */
.unit-row.potential-unit-row {
grid-template-areas:
"del type"
"rent beds"
"baths baths"
"utils utils"
"utilfee utilfee";
}
.unit-row.potential-unit-row [data-field="bedrooms"] { grid-area: beds; }
.unit-row.potential-unit-row [data-field="bathrooms"] { grid-area: baths; }
.unit-fee-hint {
display: block;
font-size: 0.72rem;
color: var(--gray-500);
margin-top: 3px;
line-height: 1.35;
}

.unit-row input, .unit-row select {
padding: 7px 8px;
border: 1px solid var(--gray-300);
border-radius: 6px;
font-size: 0.85rem;
background: var(--yellow-entry);
min-width: 0;
width: 100%;
}

.unit-row select { background: var(--orange-dd); }
.unit-row select.lease-status { background: var(--surface); }
.unit-row input.lease-date { background: var(--surface); }

.btn-icon {
background: none;
border: none;
cursor: pointer;
color: var(--danger);
font-size: 1.1rem;
padding: 4px;
}

.comp-row {
display: grid;
grid-template-columns: auto 1fr 1fr;
grid-template-areas:
"del supports supports"
"addr addr addr"
"nbhd style units"
"sqft list sold"
"dom dom dom";
gap: 6px;
align-items: center;
margin-bottom: 14px;
padding-bottom: 12px;
border-bottom: 1px dashed var(--gray-200);
}
.comp-row:last-of-type { border-bottom: none; margin-bottom: 8px; padding-bottom: 0; }
.comp-row .btn-icon { grid-area: del; justify-self: start; }
.comp-row [data-field="supports"] { grid-area: supports; }
.comp-row [data-field="address"] { grid-area: addr; }
.comp-row [data-field="neighborhood"] { grid-area: nbhd; }
.comp-row [data-field="style"] { grid-area: style; }
.comp-row [data-field="units"] { grid-area: units; }
.comp-row [data-field="sqft"] { grid-area: sqft; }
.comp-row [data-field="listPrice"] { grid-area: list; }
.comp-row [data-field="soldPrice"] { grid-area: sold; }
.comp-row [data-field="dom"] { grid-area: dom; }
.comp-row input, .comp-row select {
padding: 7px 8px;
border: 1px solid var(--gray-300);
border-radius: 6px;
font-size: 0.85rem;
background: var(--yellow-entry);
min-width: 0;
width: 100%;
}
.comp-stats {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 8px;
margin: 10px 0 4px;
padding: 10px;
border: 1px solid var(--gray-200);
border-radius: 8px;
background: var(--gray-100);
}
.comp-stats .comp-stat-label { font-size: 0.72rem; color: var(--gray-500); text-transform: uppercase; letter-spacing: 0.03em; }
.comp-stats .comp-stat-val { font-size: 0.85rem; font-weight: 700; color: var(--text-heading); }

.btn-add {
background: none;
border: 1px dashed var(--gray-300);
color: var(--gray-500);
padding: 8px;
border-radius: 6px;
cursor: pointer;
font-size: 0.85rem;
width: 100%;
margin-top: 4px;
}

.btn-add:hover {
border-color: var(--gold);
color: var(--text-heading);
}

.legend {
display: flex;
flex-wrap: wrap;
gap: 12px;
margin: 12px 0 20px;
font-size: 0.75rem;
color: var(--gray-500);
}

.legend span {
display: inline-flex;
align-items: center;
gap: 5px;
}

.legend i {
width: 14px;
height: 14px;
border-radius: 3px;
border: 1px solid var(--gray-300);
}

.legend .leg-entry { background: var(--yellow-entry); }
.legend .leg-dd { background: var(--orange-dd); }
.legend .leg-est { background: var(--grey-est); }
.legend .leg-form { background: var(--surface); }

/* Jump-to-section bar for the Investment Calculator's Data Entry form —
Scott's ask: too much scrolling to get from "what's the goal" down to ARV/
Potential Units, so this pins a row of section shortcuts (plus the field-
color legend, now compact instead of full labels) right under the site
header and keeps following as the page scrolls, instead of sitting still
once at the top of the form and never seen again. */
.calc-quick-nav {
position: sticky;
top: var(--site-header-h, 76px);
z-index: 20;
display: flex;
flex-wrap: wrap;
align-items: center;
gap: 6px 14px;
background: var(--surface);
border: 1px solid var(--gray-200);
border-radius: 8px;
padding: 8px 12px;
margin: 12px 0 20px;
box-shadow: var(--shadow);
}
.calc-quick-nav .legend { margin: 0; gap: 8px; flex: 0 0 auto; }
.qn-links { display: flex; flex-wrap: wrap; gap: 6px; flex: 1 1 auto; }
.qn-links a {
font-size: 0.72rem;
font-weight: 600;
color: var(--text-heading);
background: var(--gray-100);
border: 1px solid var(--gray-200);
border-radius: 999px;
padding: 4px 10px;
text-decoration: none;
white-space: nowrap;
}
.qn-links a:hover { border-color: var(--gold); color: var(--gold); }

/* Presentation numbers */
.pres-block {
margin-bottom: 20px;
}

.pres-block h4 {
font-size: 0.8rem;
text-transform: uppercase;
letter-spacing: 0.05em;
color: var(--gray-500);
margin-bottom: 10px;
font-weight: 600;
}

.pres-row {
display: flex;
justify-content: space-between;
align-items: baseline;
padding: 6px 0;
border-bottom: 1px solid var(--gray-100);
font-size: 0.9rem;
}

.pres-row .label { color: var(--gray-700); }
.pres-row .val { font-weight: 600; color: var(--text-heading); font-variant-numeric: tabular-nums; }

.pres-row.highlight {
background: var(--navy);
color: var(--white);
margin: 8px -12px 0;
padding: 12px;
border-radius: 8px;
border: none;
}

.pres-row.highlight .label { color: var(--gold); font-weight: 600; }
.pres-row.highlight .val { color: var(--white); font-size: 1.15rem; }

.lease-alert { border-bottom: none; border-radius: 8px; padding: 10px 12px; margin-bottom: 6px; }
.lease-alert .val { font-weight: 500; font-size: 0.85rem; white-space: normal; line-height: 1.4; }
.lease-alert-warn { background: #fbeee0; }
.lease-alert-warn .val { color: #9a5a15; }
.lease-alert-info { background: var(--gray-100); }
.lease-alert-info .val { color: var(--gray-700); }

.accordion-toggle {
width: 100%;
display: flex;
align-items: center;
justify-content: space-between;
background: none;
border: none;
padding: 0;
cursor: pointer;
text-align: left;
font-family: inherit;
}
.accordion-arrow { font-size: 1.2rem; color: var(--gray-500); transition: transform 0.15s; }
.accordion-body { margin-top: 14px; }
.accordion-body ul { padding-left: 20px; }
.accordion-body li { margin-bottom: 10px; font-size: 0.92rem; line-height: 1.5; }

/* ========== Buying Steps (visual step layout) ========== */
.buy-steps { display: flex; flex-direction: column; }
.buy-step { display: flex; gap: 16px; padding: 20px 0; border-top: 1px solid var(--gray-200); }
.buy-step:first-child { border-top: none; padding-top: 4px; }
.buy-step-badge { flex: 0 0 34px; height: 34px; border-radius: 50%; background: var(--navy); color: var(--gold); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 0.95rem; }
.buy-step-content { flex: 1; min-width: 0; }
.buy-step-title { font-weight: 700; color: var(--text-heading); font-size: 1rem; margin-bottom: 8px; }
.buy-step-content p { font-size: 0.92rem; color: var(--gray-700); line-height: 1.6; margin: 0 0 10px; }
.buy-step-content p:last-child { margin-bottom: 0; }
.buy-step-note { color: var(--gray-500) !important; font-size: 0.85rem !important; }
.buy-step-links { list-style: none; padding: 0; margin: 0 0 10px; }
.buy-step-links li { font-size: 0.88rem; color: var(--gray-700); padding: 5px 0 5px 18px; position: relative; }
.buy-step-links li::before { content: "\2192"; position: absolute; left: 0; color: var(--gold); font-weight: 700; }
.buy-step-compare { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 4px 0 10px; }
.compare-box { background: var(--gray-100); border-radius: 8px; padding: 12px 14px; }
.compare-label { font-weight: 700; color: var(--text-heading); font-size: 0.85rem; margin-bottom: 4px; }
.compare-desc { font-size: 0.82rem; color: var(--gray-700); line-height: 1.45; }
.buy-step-checklist { list-style: none; counter-reset: buystep; padding: 0; margin: 0 0 10px; }
.buy-step-checklist li { counter-increment: buystep; position: relative; padding: 6px 0 6px 30px; font-size: 0.9rem; color: var(--gray-700); line-height: 1.5; }
.buy-step-checklist li::before { content: counter(buystep); position: absolute; left: 0; top: 6px; width: 20px; height: 20px; border-radius: 50%; background: var(--gray-200); color: var(--text-heading); font-size: 0.72rem; font-weight: 700; display: flex; align-items: center; justify-content: center; }
@media (max-width: 560px) { .buy-step-compare { grid-template-columns: 1fr; } }

/* Process funnel (Transaction Guides): a vertical, narrowing stack of
clickable steps connected by a thin gold spine, from "why you're buying/
selling" at the wide top down to "keys in hand" / "closing" at the narrow
bottom. Deliberately more polished/luxe than the rest of the site's utility
panels, per Scott's request for something presentable to hand a client. */
.pf-wrap { position: relative; max-width: 640px; margin: 0 auto; padding: 6px 0 2px; }
.pf-line { position: absolute; left: 50%; top: 20px; bottom: 20px; width: 1px; background: var(--gold); opacity: 0.35; transform: translateX(-50%); z-index: 0; }
.pf-step { position: relative; z-index: 1; margin: 0 auto 14px; width: 100%; }
.pf-step-bar { display: flex; align-items: center; gap: 12px; width: 100%; background: var(--gray-100); border: 1px solid var(--gold); border-radius: 999px; padding: 10px 18px; cursor: pointer; transition: box-shadow 0.25s ease; text-align: left; font: inherit; }
.pf-step-bar:hover { box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.15); }
.pf-step-num { flex: 0 0 30px; height: 30px; border-radius: 50%; background: var(--gold); color: #1a1a1a; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 0.85rem; }
.pf-step-title { font-weight: 700; color: var(--text-heading); font-size: 0.95rem; flex: 0 1 auto; white-space: nowrap; }
.pf-step-leader { flex: 1 1 auto; height: 1px; min-width: 12px; margin: 0 2px; background: var(--gold); opacity: 0.35; }
.pf-step-arrow { color: var(--gold); font-size: 0.75rem; transition: transform 0.3s ease; flex: 0 0 auto; }
.pf-step.pf-open .pf-step-arrow { transform: rotate(180deg); }
.pf-step-detail { margin: 8px 4px 0; padding: 14px 18px; background: var(--gray-100); border-left: 2px solid var(--gold); border-radius: 8px; font-size: 0.88rem; color: var(--gray-700); line-height: 1.6; }
.pf-step-detail p { margin: 0 0 10px; }
.pf-step-detail p:last-child { margin-bottom: 0; }
.pf-step-buttons { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 10px; }
.pf-callout { margin: 10px 0 0; padding: 12px 16px; background: rgba(201, 162, 39, 0.08); border: 1px dashed var(--gold); border-radius: 8px; font-size: 0.85rem; color: var(--gray-700); line-height: 1.5; }
.pf-callout strong { color: var(--gold); }

/* Buy or Sell page: main tool column + a sticky "learn more" sidebar, so
the education content Scott built across the site is one click away
instead of a separate page nobody stumbles back into. Deliberately its own
classes rather than reusing .data-entry-col/.presentation-col, since that
pair has print rules (hide data-entry-col, show presentation-col) built
for calculators, which would print the sidebar instead of the form here. */
.bs-layout { display: grid; gap: 20px; min-width: 0; }
@media (min-width: 900px) {
.bs-layout { grid-template-columns: 1.3fr 1fr; align-items: start; }
.bs-edu-col { position: sticky; top: 80px; }
}
.bs-edu-toc { position: relative; padding-left: 18px; }
.bs-toc-line { position: absolute; left: 4px; top: 4px; bottom: 4px; width: 1px; background: var(--gold); opacity: 0.35; }
.bs-toc-group-label { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--gray-500); margin: 14px 0 6px; }
.bs-toc-group-label:first-child { margin-top: 0; }
.bs-toc-link { display: block; width: 100%; background: none; border: none; text-align: left; padding: 6px 0 6px 4px; font-size: 0.88rem; font-weight: 600; color: var(--gold); cursor: pointer; font-family: inherit; }
.bs-toc-link:hover { opacity: 0.8; text-decoration: underline; }

.yield-big {
text-align: center;
padding: 20px 12px;
background: linear-gradient(135deg, var(--navy), var(--navy-light));
border-radius: 10px;
margin: 16px 0;
}

.yield-big .num {
font-size: 2.4rem;
font-weight: 800;
color: var(--gold);
letter-spacing: -0.03em;
line-height: 1.1;
}

.yield-big .lbl {
font-size: 0.85rem;
color: rgba(255,255,255,0.75);
margin-top: 4px;
text-transform: uppercase;
letter-spacing: 0.06em;
}

.roi-headline {
text-align: center;
padding: 18px;
background: var(--green);
border-radius: 10px;
color: var(--white);
margin-top: 12px;
}

/* Was always solid green regardless of the actual number — a deeply
negative Total ROI still showed green, which read as good news when it
wasn't. Now color-coded the same way as everything else in the report:
green when it's a real positive number, red when negative, and gold+green
stripe (matching every other "this is a projection" tile — the combo
tiles, the print ROI summary) whenever the figure is the once-filled
projection rather than today's as-is number. Per Scott. */
.roi-headline.good { background: var(--green); }
.roi-headline.bad { background: var(--danger); }
.roi-headline.projected { background: repeating-linear-gradient(45deg, var(--gold), var(--gold) 10px, var(--green) 10px, var(--green) 20px); }

.roi-headline .num {
font-size: 2rem;
font-weight: 800;
}

.roi-headline .lbl {
font-size: 0.8rem;
opacity: 0.85;
margin-top: 2px;
}

.disclaimer {
font-size: 0.7rem;
color: var(--gray-500);
line-height: 1.5;
margin-top: 24px;
padding: 14px;
background: var(--gray-100);
border-radius: 8px;
border-left: 3px solid var(--gray-300);
}

/* Gold link style for external resource links (mortgage education watchlist,
etc.) instead of default browser blue. target="_blank" already keeps the
site open in its own tab; this just makes that visually obvious too. */
.me-ext-link {
color: var(--gold);
font-weight: 600;
text-decoration: underline;
text-decoration-color: rgba(201, 162, 39, 0.45);
text-underline-offset: 2px;
}
.me-ext-link:hover { text-decoration-color: var(--gold); }

/* Gold "nuggets": bolded key phrases inside long paragraphs, so the eye has
something to catch on the way down the page instead of a wall of text. */
.gold-nugget { color: var(--gold); font-weight: 700; }

/* Gold underline: whole important sentences, not already covered by a gold
nugget, so a reader skimming can't glide past them. Underline only, not gold
text too, that's what gold-nugget is for. Keeping both on the same sentence
buries the individual gold words and devalues them. */
.gold-underline {
text-decoration: underline;
text-decoration-color: var(--gold);
text-underline-offset: 3px;
}

/* Buy/sell bonds interactive visual (mortgage education page). */
.bond-toggle-btn.active { background: var(--gold); border-color: var(--gold); color: #1a1a1a; }
#bondSeesawGroup, #bondRateArrowGroup { transition: transform 0.6s ease; transform-box: fill-box; transform-origin: center; }
#bondTankWater { transition: y 0.6s ease, height 0.6s ease; }

/* ========== REFERRAL NETWORK ========== */
.ref-section-title {
font-size: 1.25rem;
font-weight: 700;
color: var(--text-heading);
margin: 0 0 4px;
display: flex;
align-items: center;
gap: 8px;
}
.ref-section-sub { color: var(--gray-500); font-size: 0.9rem; margin-bottom: 16px; }
.ref-category-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.ref-chip {
border: 1px solid var(--gray-300);
background: var(--surface);
color: var(--text-heading);
padding: 6px 14px;
border-radius: 999px;
font-size: 0.8rem;
font-weight: 600;
cursor: pointer;
transition: all 0.15s;
}
.ref-chip:hover { background: var(--navy); color: var(--white); border-color: var(--navy); }
.ref-chip.active { background: var(--navy); color: var(--white); border-color: var(--navy); }
.ref-category-group { margin-bottom: 26px; scroll-margin-top: 90px; }
.ref-category-heading {
font-size: 0.85rem;
font-weight: 700;
color: var(--gold-hover);
text-transform: uppercase;
letter-spacing: 0.04em;
margin-bottom: 10px;
}
.ref-grid { display: grid; grid-template-columns: 1fr; gap: 14px; }
@media (min-width: 720px) { .ref-grid { grid-template-columns: repeat(2, 1fr); } }
.ref-card {
background: var(--surface);
border-radius: var(--radius);
box-shadow: var(--shadow);
padding: 18px;
}
.ref-card-top { display: flex; gap: 14px; align-items: flex-start; }
.ref-card-top > div:last-child { min-width: 0; }
.ref-avatar {
width: 54px;
height: 54px;
border-radius: 50%;
background: linear-gradient(135deg, var(--navy), var(--slate));
color: var(--gold);
display: flex;
align-items: center;
justify-content: center;
font-weight: 700;
font-size: 1.05rem;
flex-shrink: 0;
overflow: hidden;
}
.ref-avatar img { width: 100%; height: 100%; object-fit: cover; }
.ref-name { font-weight: 700; color: var(--text-heading); font-size: 0.98rem; overflow-wrap: break-word; }
.ref-title { font-size: 0.8rem; color: var(--gray-500); margin-top: 2px; overflow-wrap: break-word;  }
.ref-bio { font-size: 0.86rem; color: var(--gray-700); margin-top: 12px; line-height: 1.55; white-space: pre-line;}
.ref-card-actions { margin-top: 14px; }
.ref-form-wrap { margin-top: 14px; border-top: 1px solid var(--gray-200); padding-top: 14px; }
.ref-empty-note { font-size: 0.82rem; color: var(--gray-500); margin: 0; }

/* Referral teaser cards — compact, clickable cards used on other pages
   (mortgage prequal, rental market, STR guide) that deep-link into the
   full card + intro form on the Referral Network page, rather than
   duplicating the bio/contact-form on every page that mentions someone. */
.ref-teaser-grid { display: grid; grid-template-columns: 1fr; gap: 12px; margin: 14px 0; }
@media (min-width: 640px) { .ref-teaser-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .ref-teaser-grid.ref-teaser-grid-3 { grid-template-columns: repeat(3, 1fr); } }
.ref-teaser-card {
background: var(--surface);
border: 1px solid var(--gray-200);
border-radius: var(--radius);
padding: 14px;
display: flex;
align-items: center;
gap: 12px;
cursor: pointer;
transition: box-shadow 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}
.ref-teaser-card:hover { box-shadow: var(--shadow); border-color: var(--gold); transform: translateY(-1px); }
.ref-teaser-card .ref-avatar { width: 44px; height: 44px; font-size: 0.9rem; }
.ref-teaser-info { min-width: 0; flex: 1; }
.ref-teaser-info .ref-name { font-size: 0.9rem; }
.ref-teaser-info .ref-title { font-size: 0.76rem; }
.ref-teaser-cta { font-size: 0.76rem; font-weight: 600; color: var(--gold-hover); white-space: nowrap; }
@keyframes refCardPulse {
0% { box-shadow: 0 0 0 0 rgba(197,160,84,0.55); }
70% { box-shadow: 0 0 0 10px rgba(197,160,84,0); }
100% { box-shadow: 0 0 0 0 rgba(197,160,84,0); }
}
.ref-card-highlight { animation: refCardPulse 1.4s ease-out 2; }

/* Cash flow verdict + charts */
.cf-verdict {
display: flex;
align-items: center;
gap: 14px;
padding: 18px;
border-radius: 12px;
margin-bottom: 18px;
color: var(--white);
}
.cf-verdict.positive { background: linear-gradient(135deg, var(--green), #1f7a4d); }
.cf-verdict.negative { background: linear-gradient(135deg, #b3392c, #8f2a20); }
.cf-verdict.neutral { background: linear-gradient(135deg, var(--navy), var(--navy-light)); }
.cf-verdict-icon {
font-size: 1.8rem;
width: 48px;
height: 48px;
min-width: 48px;
border-radius: 50%;
background: rgba(255,255,255,0.18);
display: flex;
align-items: center;
justify-content: center;
}
.cf-verdict-amt { font-size: 1.6rem; font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; }
.cf-verdict-label { font-size: 0.78rem; opacity: 0.85; margin-top: 2px; text-transform: uppercase; letter-spacing: 0.05em; }
.pu-upside { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 8px; padding: 6px 10px; border-radius: 6px; background: rgba(201, 162, 39, 0.12); border: 1px solid var(--gold); font-size: 0.78rem; }
.pu-upside-label { color: var(--gold); font-weight: 600; }
.pu-upside-val { color: var(--gold); font-weight: 700; white-space: nowrap; }
.pu-upside-note { font-size: 0.72rem; color: var(--gold); margin-top: 6px; line-height: 1.35; }

.cf-verdict-stabilized { margin: -8px 0 14px; padding: 8px 14px; border-radius: 8px; background: rgba(201, 162, 39, 0.12); border: 1px solid var(--gold); font-size: 0.82rem; color: var(--text-heading); }
.cf-stab-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.cf-verdict-stabilized .cf-stab-amt { font-weight: 700; white-space: nowrap; }
.cf-verdict-stabilized .cf-stab-amt.positive { color: var(--green); }
.cf-verdict-stabilized .cf-stab-amt.negative { color: #b3392c; }
.cf-positive { color: #2f7a4d; font-weight: 700; }
.cf-negative { color: #b3392c; font-weight: 700; }
/* Projected/market-rent figures (Scott, Aug 2026): these are what a number
COULD be once a vacant unit is filled or an under-market lease gets bumped
to market — not what the property is actually making today. Green read as
"this is real, happening now," which overstated deals that aren't
cash-flowing yet. Gold reads as "projected" everywhere else on this page
(the header banner, the ROI breakdown), so stat chips built from a
projected series use this instead of cf-positive/cf-negative, uniformly,
whether the number's up or down — same reasoning as cf-positive/cf-negative
above for why this is a fixed color instead of a --pf-gold/--gold variable:
it needs to read the same on the dark scoreboard screen and on white paper
without a separate print-white override. */
.cf-projected { color: #9c7f1f; font-weight: 700; }
.cf-verdict-stabilized .cf-stab-amt.neutral { color: var(--gold); }
.cf-stab-explain { font-size: 0.68rem; color: var(--gray-500); margin-top: 3px; line-height: 1.35; }

.chart-block {
background: var(--surface);
border: 1px solid var(--gray-100);
border-radius: 10px;
padding: 16px 16px 6px;
margin-bottom: 18px;
}
.chart-block h4 {
font-size: 0.8rem;
text-transform: uppercase;
letter-spacing: 0.05em;
color: var(--gray-500);
margin-bottom: 12px;
font-weight: 600;
}
.chart-block canvas { max-height: 220px; }
.chart-block .ps-leases { border: none; border-radius: 0; padding: 8px 0 0; border-top: 1px dashed var(--pf-border); background: transparent; }
/* Year-by-year Property Value / Loan Balance timeline — replaces the old
in-chart point labels (which stacked on top of each other and got
unreadable once the two lines ran close together). One horizontal row per
metric, a dot per year, $ + % change from the year before under each dot.
Uses the same theme-aware tokens as the rest of the live app so it reads
correctly both on-screen and in print (print-white's ink-cheap color swap
is handled separately inside the @media print block). */
.pv-lb-timeline h4 { margin: 0; }
/* Header row: title (+ dynamic "(N-Year Hold)" suffix) on the left, Total
ROI summary on the right — replaces the old standalone ROI tile that used
to sit under this timeline, per Scott. All gold since it's a 5-year
projection, not a live actual number. */
.pv-lb-header { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 10px; }
#pvLbHoldYears { font-weight: 600; color: var(--gray-500); }
.pv-lb-roi-summary { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; color: var(--gold); text-align: right; }
.pv-lb-roi-breakdown { font-size: 0.72rem; font-weight: 600; }
.pv-lb-roi-headline { font-size: 0.92rem; font-weight: 800; white-space: nowrap; }
.pv-lb-row { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 16px; break-inside: avoid; page-break-inside: avoid; }
.pv-lb-row:last-child { margin-bottom: 0; }
.pv-lb-icon-label { display: flex; align-items: center; gap: 7px; min-width: 130px; flex-shrink: 0; font-size: 0.76rem; font-weight: 700; padding-top: 1px; color: var(--text-heading); }
.pv-lb-icon-badge { width: 20px; height: 20px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.pv-lb-icon-badge svg { width: 12px; height: 12px; }
.pv-lb-row.pv .pv-lb-icon-badge { background: #3ddbc4; color: #0d2620; }
.pv-lb-row.lb .pv-lb-icon-badge { background: #7fb2ef; color: #0d2140; }
/* Point labels used to hang under a colored dot on a connecting line; per
Scott ("having year one is fine, maybe bold them out... put whatever value
underneath the year") the dot + line were dropped — Year label is now the
lead line, bolded so it's easy to scan, with the value directly beneath. */
.pv-lb-track { position: relative; flex: 1; display: flex; }
.pv-lb-point { position: relative; flex: 1; display: flex; flex-direction: column; align-items: center; text-align: center; min-width: 0; }
.pv-lb-yr { font-size: 0.78rem; font-weight: 800; color: var(--text-heading); margin-bottom: 4px; }
.pv-lb-pct { font-size: 0.78rem; font-weight: 800; line-height: 1.15; white-space: nowrap; }
.pv-lb-pct.up { color: #4caf82; }
.pv-lb-pct.down { color: #e2725b; }
.pv-lb-dollar { font-size: 0.64rem; color: var(--gray-500); line-height: 1.2; }
/* Third row: Monthly Cash Flow, added per Scott ("show what the cashflow
would look like for each year too"). Reuses .pv-lb-pct for the $/mo figure
(same size/weight/green-red convention as the other two rows) — just an
amber badge instead of teal/blue so it reads as a third, distinct metric at
a glance. */
.pv-lb-row.cf .pv-lb-icon-badge { background: #f2c94c; color: #4a3400; }

/* Chart + top-right legend overlay (Change: legend moved off its own row,
onto the top half of the income/expense chart, beside the Monthly Income
bar, per Scott). */
/* Chart.js with responsive:true/maintainAspectRatio:false sizes the canvas
off its immediate parent's height — wrapping the canvas in a plain
position:relative div with no height of its own left that parent with
nothing to size against (a classic Chart.js collapse-to-zero gotcha), which
is why the chart went missing after the legend was moved on top of it.
Explicit height here matches the canvas max-height constraint below (this
selector, canvas max-height, and the print override all need to move
together if that number ever changes). */
.cf-chart-wrap { position: relative; height: 220px; }
.cf-chart-legend { position: absolute; top: 2px; right: 2px; max-width: 48%; text-align: right; font-size: 0.68rem; line-height: 1.4; color: var(--gray-500); }

/* Cash-flow/property-value/loan-balance stat chips — short colored callouts
instead of one long paragraph, per Scott ("short sweet, appealing to
read"). */
.cf-note-box { border-radius: 8px; padding: 10px 12px; background: var(--gray-100); margin: -4px 0 10px; }
.cf-stat-headline { font-size: 0.86rem; font-weight: 600; color: var(--text-heading); line-height: 1.4; }
.cf-stat-group { margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--gray-200); }
.cf-stat-group-lbl { font-size: 0.64rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.03em; color: var(--gray-500); margin-bottom: 6px; }
.cf-stat-chips { display: flex; gap: 10px; flex-wrap: wrap; }
.cf-stat-chip { flex: 1 1 28%; min-width: 110px; }
.cf-stat-chip-lbl { font-size: 0.62rem; color: var(--gray-500); text-transform: uppercase; letter-spacing: 0.02em; margin-bottom: 2px; }
.cf-stat-chip-val { font-size: 0.92rem; font-weight: 800; line-height: 1.2; }
.cf-stat-chip-sub { font-size: 0.68rem; font-weight: 600; line-height: 1.3; margin-top: 1px; }

.edm-note {
font-size: 0.78rem;
color: var(--gray-500);
line-height: 1.5;
margin: -4px 0 10px;
padding: 10px 12px;
background: var(--gray-100);
border-radius: 8px;
}

.edm-note.warn { background: var(--yellow-entry); border-left: 3px solid var(--danger); color: var(--gray-700); }
.value-box { background: var(--navy); color: var(--white); border-radius: 10px; padding: 14px 16px; margin: 10px 0; }
.value-box .veq { font-size: 0.82rem; color: rgba(255,255,255,0.85); line-height: 1.5; margin-bottom: 8px; }
.value-box .vnum { font-size: 1.4rem; font-weight: 800; color: var(--gold); letter-spacing: -0.02em; }
.value-box .vlbl { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.05em; color: rgba(255,255,255,0.75); margin-top: 2px; }
.scope-note { font-size: 0.78rem; color: var(--gray-500); margin: -6px 0 4px; line-height: 1.45; }
.dscr-good { color: var(--success); }
.dscr-warn { color: #9a5a15; }
.dscr-bad { color: var(--danger); }
.ps-box { background: var(--gray-100); border-radius: 8px; padding: 10px 12px; margin-bottom: 6px; font-size: 0.78rem; line-height: 1.55; }
.ps-box p { margin: 0 0 6px; }
.ps-box p:last-child { margin-bottom: 0; }
.ps-box-num { font-weight: 700; color: var(--text-heading); }
.notes-text { white-space: pre-wrap; font-size: 0.85rem; color: var(--gray-700); line-height: 1.6; }

/* ========== PORTFOLIO ========== */
.gallery {
display: grid;
grid-template-columns: 1fr;
gap: 16px;
}

@media (min-width: 560px) {
.gallery { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 860px) {
.gallery { grid-template-columns: repeat(3, 1fr); }
}

.prop-card {
background: var(--surface);
border-radius: var(--radius);
overflow: hidden;
box-shadow: var(--shadow);
border: 1px solid var(--gray-200);
}

.prop-card .img {
height: 140px;
background: var(--slate);
display: flex;
align-items: center;
justify-content: center;
color: rgba(255,255,255,0.5);
font-size: 0.85rem;
}

.prop-card .body { padding: 16px; }

.prop-card h4 {
font-size: 0.95rem;
font-weight: 700;
margin-bottom: 6px;
}

.prop-card .meta {
font-size: 0.82rem;
color: var(--gray-500);
margin-bottom: 8px;
}

.prop-card .result {
font-size: 0.85rem;
font-weight: 600;
color: var(--green);
}

.rating-summary {
display: flex;
flex-direction: column;
align-items: center;
text-align: center;
padding: 28px 16px 32px;
}
.rating-stars {
color: var(--gold);
font-size: 1.6rem;
letter-spacing: 4px;
}
.rating-num {
font-size: 2.2rem;
font-weight: 800;
color: var(--text-heading);
letter-spacing: -0.02em;
margin-top: 6px;
}
.rating-num span {
font-size: 1.1rem;
font-weight: 600;
color: var(--gray-500);
}
.rating-sub {
font-size: 0.8rem;
color: var(--gray-500);
text-transform: uppercase;
letter-spacing: 0.05em;
margin-top: 4px;
}

.portfolio-area-banner {
width: 100%;
text-align: center;
background: var(--navy);
color: var(--gold);
font-weight: 700;
font-size: 1.05rem;
letter-spacing: 0.1em;
text-transform: uppercase;
padding: 16px 20px;
border-radius: var(--radius);
margin-bottom: 28px;
}

.portfolio-divider {
text-align: center;
padding: 8px 0 26px;
border-top: 1px solid var(--gray-200);
margin-top: 8px;
}
.portfolio-divider h3 {
font-size: 1.3rem;
font-weight: 800;
color: var(--text-heading);
margin-top: 18px;
}
.portfolio-divider p {
color: var(--gray-500);
margin-top: 6px;
font-size: 0.9rem;
}

.reviews-grid {
display: grid;
grid-template-columns: 1fr;
gap: 16px;
}
@media (min-width: 700px) {
.reviews-grid { grid-template-columns: 1fr 1fr; }
}

.review-card {
background: var(--surface);
border-radius: var(--radius);
padding: 22px 20px;
box-shadow: var(--shadow);
border: 1px solid var(--gray-200);
display: flex;
flex-direction: column;
gap: 12px;
}
.review-stars {
color: var(--gold);
font-size: 1rem;
letter-spacing: 2px;
}
.review-quote {
font-size: 0.92rem;
color: var(--gray-700);
line-height: 1.55;
flex-grow: 1;
}
.review-meta {
font-size: 0.78rem;
color: var(--gray-500);
font-weight: 600;
border-top: 1px solid var(--gray-100);
padding-top: 10px;
}

.reviews-cta {
text-align: center;
margin-top: 28px;
}

/* ========== DEVELOPMENT TRACKER MAP ========== */
.dev-tracker-panel { margin-top: 20px; }

.dev-tracker-intro {
font-size: 0.88rem;
color: var(--gray-500);
line-height: 1.55;
margin-bottom: 18px;
}

.dev-legend {
display: flex;
flex-wrap: wrap;
gap: 14px;
margin-bottom: 14px;
font-size: 0.8rem;
color: var(--gray-700);
}

.dev-legend-item { display: inline-flex; align-items: center; gap: 6px; }

.dev-dot {
width: 12px;
height: 12px;
border-radius: 50%;
display: inline-block;
flex-shrink: 0;
}

.dev-dot-industrial { background: #3d4a57; }
.dev-dot-infra { background: #1a7a4c; }
.dev-dot-commercial { background: #8a3fc9; }
.dev-dot-pipeline { background: #c9a227; }

.dev-pipeline-label {
background: rgba(28,20,12,0.92);
color: #fff;
border: 1px solid #c9a227;
font-size: 0.72rem;
font-weight: 600;
padding: 3px 8px;
box-shadow: none;
}
.dev-pipeline-label::before { display: none; }

.dev-shape-icon { display:inline-block; width:13px; height:13px; margin-right:5px; background:#555; vertical-align:middle; flex-shrink:0; }
.shape-circle { border-radius:50%; }
.shape-square { border-radius:2px; }
.shape-triangle { width:0; height:0; background:transparent !important; border-left:7px solid transparent; border-right:7px solid transparent; border-bottom:13px solid #555; }
.shape-diamond { border-radius:2px; transform:rotate(45deg); }

.dev-filters {
display: flex;
flex-wrap: wrap;
gap: 8px;
margin-bottom: 16px;
}

.dev-filter-btn {
background: var(--gray-100);
border: 1px solid var(--gray-200);
color: var(--gray-700);
font-size: 0.78rem;
font-weight: 600;
padding: 7px 14px;
border-radius: 999px;
cursor: pointer;
transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.dev-filter-btn:hover { border-color: var(--gold); }

.dev-filter-btn.active {
background: var(--navy);
border-color: var(--navy);
color: var(--white);
}

#devMap {
height: 560px;
width: 100%;
border-radius: 8px;
border: 1px solid var(--gray-200);
z-index: 1;
}

.lrt-legend {
display: flex;
flex-wrap: wrap;
align-items: center;
gap: 14px;
margin: 4px 0 12px;
font-size: 0.85rem;
color: var(--gray-700);
}

.lrt-legend-title { font-weight: 600; color: var(--text-heading); }

.lrt-line-swatch {
display: inline-block;
width: 22px;
height: 4px;
border-radius: 2px;
flex-shrink: 0;
}

.lrt-line-dashed {
background-image: linear-gradient(90deg, #8a8f98 60%, transparent 40%);
background-size: 8px 4px;
background-color: transparent !important;
}

.neigh-panel { margin-bottom: 20px; }

#neighMap {
height: 520px;
width: 100%;
border-radius: 8px;
border: 1px solid var(--gray-200);
z-index: 1;
margin-top: 14px;
}

.neigh-sheet-overlay {
position: fixed;
inset: 0;
background: rgba(15, 15, 15, 0.45);
z-index: 2000;
}

.neigh-sheet {
position: fixed;
left: 0;
right: 0;
bottom: 0;
z-index: 2001;
background: var(--surface);
border-radius: 16px 16px 0 0;
max-height: 82vh;
overflow-y: auto;
padding: 28px 24px 32px;
box-shadow: 0 -8px 30px rgba(0,0,0,0.25);
animation: neighSheetUp 0.22s ease-out;
}

@keyframes neighSheetUp {
from { transform: translateY(100%); }
to { transform: translateY(0); }
}

.neigh-sheet.hidden, .neigh-sheet-overlay.hidden { display: none; }

.neigh-sheet-close {
position: absolute;
top: 14px;
right: 18px;
background: none;
border: none;
font-size: 1.6rem;
line-height: 1;
color: var(--gray-500);
cursor: pointer;
}

.neigh-tier-pill {
display: inline-block;
padding: 3px 10px;
border-radius: 999px;
font-size: 0.75rem;
font-weight: 700;
color: var(--white);
margin-bottom: 10px;
}

.neigh-sheet h3 { font-size: 1.3rem; color: var(--text-heading); margin-bottom: 4px; }
.neigh-sheet-sub { color: var(--gray-500); font-size: 0.85rem; margin-bottom: 14px; }
.neigh-sheet-section { margin-top: 16px; }
.neigh-sheet-section h5 { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--gray-500); margin-bottom: 6px; }
.neigh-sheet-section p { font-size: 0.95rem; line-height: 1.55; color: var(--gray-700); }
.neigh-stat-row { display: flex; gap: 20px; flex-wrap: wrap; margin-top: 14px; }
.neigh-stat { background: var(--gray-100); border-radius: 8px; padding: 10px 14px; }
.neigh-stat .num { font-weight: 700; color: var(--text-heading); font-size: 1.05rem; }
.neigh-stat .lbl { font-size: 0.75rem; color: var(--gray-500); }
.neigh-census-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px; margin-top: 10px; }
.neigh-census-cell .num { font-weight: 700; color: var(--text-heading); font-size: 1.02rem; }
.neigh-census-cell .lbl { font-size: 0.72rem; color: var(--gray-500); text-transform: uppercase; letter-spacing: 0.03em; }
.neigh-census-cell .why { font-size: 0.74rem; color: var(--gray-500); margin-top: 3px; line-height: 1.35; text-transform: none; letter-spacing: normal; }
.neigh-tenure-why { font-size: 0.74rem; color: var(--gray-500); margin-top: 6px; line-height: 1.35; }
.neigh-tenure-bar { display: flex; height: 12px; border-radius: 6px; overflow: hidden; margin-top: 10px; background: var(--gray-200); }
.neigh-tenure-bar .owner-seg { background: var(--gold); }
.neigh-tenure-bar .renter-seg { background: var(--gray-400); }
.neigh-tenure-label { display: flex; justify-content: space-between; font-size: 0.78rem; color: var(--gray-600); margin-top: 5px; }
.neigh-census-note { font-size: 0.7rem; color: var(--gray-500); margin-top: 8px; font-style: italic; }

.dir-panel { margin-bottom: 20px; }
.dir-controls { display: flex; align-items: center; gap: 10px; margin: 14px 0; }
.dir-select-label { font-size: 0.8rem; font-weight: 600; color: var(--gray-600); }
.dir-select {
font-size: 0.92rem;
padding: 8px 12px;
border: 1px solid var(--gray-300);
border-radius: 8px;
background: var(--gray-100);
color: var(--text-heading);
min-width: 220px;
}
.dir-body {
display: grid;
grid-template-columns: 260px 1fr;
gap: 18px;
margin-top: 6px;
}
.dir-neigh-list {
max-height: 420px;
overflow-y: auto;
display: flex;
flex-direction: column;
gap: 2px;
border: 1px solid var(--gray-200);
border-radius: 10px;
padding: 6px;
background: var(--gray-100);
}
.dir-neigh-item {
text-align: left;
background: none;
border: none;
border-radius: 6px;
padding: 8px 10px;
font-size: 0.88rem;
color: var(--gray-700);
cursor: pointer;
}
.dir-neigh-item:hover { background: var(--gray-200); color: var(--text-heading); }
.dir-neigh-detail {
border: 1px solid var(--gray-200);
border-radius: 10px;
padding: 16px;
margin-top: 0;
min-height: 200px;
}
@media (max-width: 700px) {
.dir-body { grid-template-columns: 1fr; }
.dir-neigh-list { max-height: 220px; }
}

.dev-status-key {
display: flex;
flex-wrap: wrap;
gap: 8px;
margin-top: 14px;
}

.status-pill {
display: inline-block;
font-size: 0.68rem;
font-weight: 700;
text-transform: uppercase;
letter-spacing: 0.04em;
padding: 4px 10px;
border-radius: 999px;
}

.status-active { background: #e3f4ea; color: #1a7a4c; }
.status-construction { background: #fff3d6; color: #8a6400; }
.status-pending { background: #ffe6d6; color: #a34e10; }
.status-proposed { background: #f3e3e3; color: #a33a3a; }

.dev-popup { font-family: var(--font); max-width: 260px; }
.dev-popup h4 { font-size: 0.95rem; font-weight: 700; color: #1c140c; margin-bottom: 6px; }
.dev-popup p { font-size: 0.82rem; color: #3d4a57; line-height: 1.45; margin-bottom: 6px; }
.dev-popup .dev-stat { font-size: 0.78rem; font-weight: 600; color: #1c140c; margin-bottom: 6px; }
.dev-popup .dev-jobs {
font-size: 0.78rem;
color: #1a7a4c;
background: #e3f4ea;
border-left: 3px solid #1a7a4c;
padding: 5px 8px;
margin-bottom: 6px;
line-height: 1.4;
}
.dev-popup .dev-jobs b { font-weight: 700; }
.dev-popup .dev-note {
font-size: 0.76rem;
color: #a34e10;
background: #fff3d6;
border-left: 3px solid #c9862a;
padding: 6px 8px;
margin-top: 6px;
line-height: 1.4;
}

.sold-badge {
display: inline-block;
background: var(--danger);
color: white;
font-size: 0.7rem;
font-weight: 700;
padding: 3px 8px;
border-radius: 4px;
text-transform: uppercase;
letter-spacing: 0.04em;
}

.table-wrap { overflow-x: auto; }

table.sold-table {
width: 100%;
border-collapse: collapse;
font-size: 0.9rem;
}

table.sold-table th,
table.sold-table td {
padding: 12px 14px;
text-align: left;
border-bottom: 1px solid var(--gray-200);
}

table.sold-table th {
background: var(--navy);
color: var(--white);
font-weight: 600;
font-size: 0.8rem;
text-transform: uppercase;
letter-spacing: 0.03em;
}

table.sold-table tr:hover td { background: var(--gray-100); }

/* ========== SOLD PORTFOLIO STATS ========== */
.sold-stats {
display: grid;
grid-template-columns: repeat(2, 1fr);
gap: 14px;
margin-bottom: 20px;
}

@media (min-width: 640px) {
.sold-stats { grid-template-columns: repeat(4, 1fr); }
}

.sold-stat-box {
background: var(--surface);
border-radius: var(--radius);
padding: 20px 16px;
text-align: center;
box-shadow: var(--shadow);
border: 1px solid var(--gray-200);
}

.sold-stat-box .num {
font-size: 1.7rem;
font-weight: 800;
color: var(--text-heading);
letter-spacing: -0.02em;
line-height: 1.1;
}

.sold-stat-box .lbl {
font-size: 0.75rem;
color: var(--gray-500);
margin-top: 6px;
text-transform: uppercase;
letter-spacing: 0.04em;
}

.price-bar-row {
display: grid;
grid-template-columns: 108px 1fr 44px;
align-items: center;
gap: 12px;
margin-bottom: 14px;
font-size: 0.9rem;
color: var(--gray-700);
}

.price-bar-row:last-child { margin-bottom: 0; }

.price-bar-track {
background: var(--gray-100);
border-radius: 6px;
height: 22px;
overflow: hidden;
}

.price-bar-fill {
height: 100%;
background: linear-gradient(90deg, var(--gold), var(--gold-hover));
border-radius: 6px;
}

.price-bar-count {
font-weight: 700;
color: var(--text-heading);
text-align: right;
}

.type-bar-row {
display: grid;
grid-template-columns: 190px 1fr 70px;
align-items: center;
gap: 12px;
margin-bottom: 14px;
font-size: 0.9rem;
color: var(--gray-700);
}
.type-bar-row:last-child { margin-bottom: 0; }

.dom-bar-row {
display: grid;
grid-template-columns: 130px 1fr 60px;
align-items: center;
gap: 12px;
margin-bottom: 14px;
font-size: 0.9rem;
color: var(--gray-700);
}
.dom-bar-row:last-child { margin-bottom: 0; }

.bar-track {
background: var(--gray-100);
border-radius: 6px;
height: 20px;
overflow: hidden;
}
.bar-fill-navy {
height: 100%;
background: linear-gradient(90deg, var(--navy-light), var(--navy));
border-radius: 6px;
}
.bar-fill-green {
height: 100%;
background: linear-gradient(90deg, var(--green), #237a5f);
border-radius: 6px;
}

.highlights-grid {
display: grid;
grid-template-columns: 1fr;
gap: 14px;
}
@media (min-width: 640px) {
.highlights-grid { grid-template-columns: 1fr 1fr; }
}
.highlight-card {
background: var(--surface);
border-radius: 8px;
padding: 16px 18px;
border-left: 3px solid var(--gold);
box-shadow: var(--shadow);
border-top: 1px solid var(--gray-200);
border-right: 1px solid var(--gray-200);
border-bottom: 1px solid var(--gray-200);
}
.highlight-card .h-title {
font-weight: 700;
color: var(--text-heading);
font-size: 0.95rem;
margin-bottom: 4px;
}
.highlight-card .h-sub {
font-size: 0.85rem;
color: var(--gray-700);
margin-bottom: 4px;
line-height: 1.6;
}
.highlight-card .h-sub p { margin-bottom: 8px; }
.highlight-card .h-sub p:last-child { margin-bottom: 0; }
.highlight-card .h-sub .hl { color: var(--gold); font-weight: 700; }
.highlight-card .h-sub u { text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 2px; }
.highlight-card .h-detail {
font-size: 0.8rem;
color: var(--gray-500);
}

.news-cat-tabs {
display: flex;
flex-wrap: wrap;
gap: 8px;
margin-bottom: 16px;
}

.news-cat-tab {
background: var(--gray-100);
border: 1px solid var(--gray-200);
color: var(--gray-700);
font-size: 0.78rem;
font-weight: 600;
padding: 7px 14px;
border-radius: 999px;
cursor: pointer;
transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.news-cat-tab:hover { border-color: var(--gold); }

.news-cat-tab.active {
background: var(--navy);
border-color: var(--navy);
color: var(--white);
}

.highlight-card .h-hook { font-size: 0.92rem; opacity: 0.9; margin: 6px 0 10px; }
.highlight-card .h-toggle { background: none; border: 1px solid var(--gold); color: #fff; border-radius: 6px; padding: 6px 12px; font-size: 0.85rem; cursor: pointer; transition: color 0.2s ease; }
.highlight-card .h-toggle:hover, .highlight-card .h-toggle:focus-visible { color: var(--gold); }
.highlight-card .h-body { display: none; margin-top: 12px; }
.highlight-card.open .h-body { display: block; }
.highlight-card.news-hidden { display: none; }

/* ========== eXp ========== */
.exp-content h3 {
font-size: 1.15rem;
margin: 20px 0 10px;
color: var(--text-heading);
}

.exp-content p {
color: var(--gray-700);
margin-bottom: 12px;
font-size: 0.95rem;
}

.exp-content ul {
margin: 10px 0 16px 20px;
color: var(--gray-700);
}

.exp-content li { margin-bottom: 6px; }

/* ========== OPEN HOUSE ========== */
.oh-meta {
display: grid;
gap: 12px;
margin-bottom: 20px;
}

@media (min-width: 500px) {
.oh-meta { grid-template-columns: 1fr 1fr; }
}

.checkbox-field {
display: flex;
align-items: flex-start;
gap: 10px;
margin-top: 8px;
}

.checkbox-field input {
margin-top: 3px;
width: 18px;
height: 18px;
accent-color: var(--gold);
}

.checkbox-field label {
font-size: 0.9rem;
color: var(--gray-700);
text-transform: none;
letter-spacing: 0;
font-weight: 500;
}

/* ========== LEADS ADMIN ========== */
.admin-bar {
position: fixed;
bottom: 0;
left: 0;
right: 0;
background: var(--charcoal);
color: var(--white);
padding: 8px 16px;
font-size: 0.8rem;
display: flex;
justify-content: space-between;
align-items: center;
z-index: 150;
gap: 12px;
}

.admin-bar button {
background: var(--gold);
color: var(--text-heading);
border: none;
padding: 6px 12px;
border-radius: 5px;
font-weight: 600;
font-size: 0.8rem;
cursor: pointer;
}

.admin-bar button:hover { background: var(--gold-hover); }

/* Footer */
footer {
text-align: center;
padding: 32px 16px 60px;
font-size: 0.8rem;
color: var(--gray-500);
}

footer a { color: var(--text-heading); text-decoration: none; font-weight: 500; }
#view-creativeFinancing a { color: var(--gold-hover); text-decoration: underline; }
#view-creativeFinancing a:hover { color: var(--gold); }
footer a:hover { color: var(--gold); }

/* Utility */
.hidden { display: none !important; }
.text-center { text-align: center; }
.mt-16 { margin-top: 16px; }
.mb-8 { margin-bottom: 8px; }

/* Print / Save as PDF (Investment Calculator + Mortgage Pre-Qual) — concise one-page summary */
.print-header { display: none; }
.print-summary { display: none; }
/* Unit/Rent table, Expense Breakdown, Comparable Sales — all of it repeats
info that's already sitting right there in the input form on the left, so
on screen while you're actively filling things out it's just noise between
you and the fields. It's still fully built for print (below), the JS keeps
updating it live the whole time — it's just not rendered on screen until
you print/save-as-PDF. !important beats the inline display these elements'
own JS sets (e.g. psCompsCalc toggling block/none based on whether there's
comp data) so this stays hidden regardless of what that JS decides — the
print rule below un-hides it and lets that same inline value take over. */
.ps-live-hide { display: none !important; }

@media print {
/* Plain block, not revert — revert isn't reliably supported everywhere
this gets tested (confirmed it silently no-ops in at least one renderer
used to QA these print layouts), and every element wearing this class is
either a plain always-there wrapper (safe to force to block) or, for
psCompsCalc, a neutral wrapper div around the real element — the real
element keeps its own independent inline block/none toggle from the JS
untouched, so forcing this wrapper to block doesn't override that. */
.ps-live-hide { display: block !important; }
.site-header, .legend, .btn,
.btn-icon, .btn-add, .no-print, .toggle-row, .calc-layout-hint, .admin-bar,
.hero-news-ticker, .hero-news-card, .floating-copy-btn { display: none !important; }

@page { margin: 4mm; }

/* Global print type scale, per Scott ("make all the fonts larger... so the
eyes can see it easier"). Every print font-size in this file is written in
rem (confirmed — no px sizes anywhere in the sheet), so bumping the root
size here scales the entire printed page proportionally from one place
instead of hunting down each individual rule. Default root is 16px; this
is roughly a 12.5% bump (dialed back from an initial 19px/20% pass, which
pushed the sheet to 2 pages — see the pv-lb-row/chart-height trims below
for where the rest of that reclaimed space came from). Specific sections
(the 5-Year Hold stat chips below) get an additional bump on top of this,
since those numbers are the page's own "statement" per Scott and read
even bigger than everything else around them. */
html { font-size: 18px; }

/* One wrapping row instead of four stacked lines — fills the page width
instead of eating vertical space, which is what was pushing the charts
onto page 2. */
.print-header {
display: flex !important;
flex-wrap: wrap;
align-items: baseline;
column-gap: 10px;
row-gap: 1px;
margin-bottom: 2px;
padding-bottom: 2px;
border-bottom: 1.5px solid #463a28;
}
.print-header .ph-brand { font-size: 0.92rem; font-weight: 700; color: var(--pf-text); }
.print-header .ph-title { font-size: 0.85rem; font-weight: 600; color: var(--pf-gold); }
.print-header .ph-title::before { content: "\00B7  "; color: var(--pf-muted); font-weight: 400; }
.print-header .ph-date { font-size: 0.68rem; color: var(--pf-muted); }
.print-header .ph-goal { font-size: 0.8rem; font-weight: 800; color: var(--pf-gold); letter-spacing: 0.01em; }
/* Calculator's print header only (the other two print headers — Investor
Profile, Mortgage Pre-Qual — keep their brand line as-is): per Scott, the
"Scott Saab · Nordhaus Real Estate | eXp Realty" brand line is dropped
here since his logo now sits lower on the page instead (see .cf-note-logo
below), and the title's bolded/sized up since it's the lead element now
instead of trailing a brand name. */
.print-header-calc .ph-title { font-weight: 800; font-size: 0.95rem; }
.print-header-calc .ph-title::before { content: none; }

/* Proforma print output has two looks: the default dark "scoreboard"
theme below (for PDFs/screens/social — driven by the --pf-* variables,
which is what feeds .panel/.chart-block/var(--surface) etc.), and the
"Print White" ink-cheap theme (see body.print-white further down, and the
"Print White" header button) for actual paper handouts on showings. */
body {
--pf-bg: #15110b;
--pf-text: #f3ecd8;
--pf-muted: #a89a7d;
--pf-gold: #d8b23a;
--pf-border: #463a28;
--pf-tile-bg: #1e1810;
--pf-row-text: #e6dcc6;
--pf-good-bg-1: #153524;
--pf-good-bg-2: #1c4a33;
--pf-good-border: #2f8a5c;
--pf-good-text: #4ee08a;
--pf-bad-bg-1: #3a1a16;
--pf-bad-bg-2: #4a221c;
--pf-bad-border: #a4453a;
--pf-bad-text: #ff7a68;
--pf-cost-text: #ff7a68;
/* .panel, .chart-block, and a handful of other elements paint their
background from the --surface variable, which the (pre-existing) rule
near the top of this stylesheet forces back to white for print whenever
data-theme="dark" — that's what was leaving white gaps around the dark
tiles/header. Overriding the variables themselves here (later in the
cascade, so it wins either way) makes every var(--surface)/var(--gray-*)
element fall in line without hunting down and patching each one. */
--surface: var(--pf-tile-bg) !important;
--text-heading: var(--pf-text) !important;
--off-white: var(--pf-bg) !important;
--gray-100: var(--pf-tile-bg) !important;
--gray-200: var(--pf-border) !important;
--gray-300: #5c4f38 !important;
--gray-500: var(--pf-muted) !important;
--gray-700: #d8cbb0 !important;
background: var(--pf-bg); color: var(--pf-text);
}
/* "Print White" (ink-cheap, for paper handouts on showings) is written as
its own fully explicit, !important-on-everything ruleset rather than
flowing through the --pf- and --surface variable cascade above — that
indirection is what left the dark scoreboard theme's chart cards
partially unstyled in testing. Every selector below is hardcoded so there's
no ambiguity about which value wins. */
body.print-white { background: #ffffff !important; color: #1c140c !important; }
/* Root-cause fix (Scott, Aug 2026): the per-selector overrides below kept
missing new print-summary boxes (.ps-box, .ps-metric-note, .ps-arv-timing,
.ps-section-divider, etc. never got a pass — same issue the dark-scoreboard
comment above already solved once with the --pf-, --surface, --gray- variable
cascade). Resetting those variables here, on body.print-white, guarantees
every current AND future element reading them turns white/black instead of
inheriting the dark scoreboard fill, no matter which selector it is. Gold
text becomes the same dark goldenrod (#9c7f1f/#8a6d1f) already used for
ph-title/ph-goal/ps-box-gold below — true gold has no contrast on white
paper, this is the print-safe stand-in already established on this page. */
body.print-white {
--pf-bg: #ffffff !important;
--pf-text: #1c140c !important;
--pf-muted: #6b7a8a !important;
--pf-gold: #9c7f1f !important;
--pf-border: #d7dbe1 !important;
--pf-tile-bg: #f7f8fa !important;
--pf-row-text: #1c140c !important;
--pf-good-bg-1: #eaf7f0 !important;
--pf-good-bg-2: #eaf7f0 !important;
--pf-good-border: #1a7a4c !important;
--pf-good-text: #1a5f4a !important;
--pf-bad-bg-1: #fbe9e6 !important;
--pf-bad-bg-2: #fbe9e6 !important;
--pf-bad-border: #b33a3a !important;
--pf-bad-text: #b3392c !important;
--pf-cost-text: #b3392c !important;
--surface: #ffffff !important;
--text-heading: #1c140c !important;
--off-white: #ffffff !important;
--gray-100: #f7f8fa !important;
--gray-200: #d7dbe1 !important;
--gray-300: #c7ccd3 !important;
--gray-500: #6b7a8a !important;
--gray-700: #33291a !important;
}
/* .ps-box (ARV / Exit Strategy summary paragraphs) and .ps-metric-note /
.ps-arv-timing (gold callouts) had no print-white rule at all before this
fix, so they were the two solid dark blocks in Scott's PDFs — now covered
by the variable reset above, this just confirms readable body-copy black. */
body.print-white .ps-box,
body.print-white .ps-box p { color: #1c140c !important; }
body.print-white .print-header { border-bottom-color: #d7dbe1 !important; }
body.print-white .print-header .ph-brand { color: #1c140c !important; }
body.print-white .print-header .ph-title { color: #9c7f1f !important; }
body.print-white .print-header .ph-title::before { color: #6b7a8a !important; }
body.print-white .print-header .ph-date { color: #6b7a8a !important; }
body.print-white .print-header .ph-goal { color: #9c7f1f !important; }
body.print-white .panel,
body.print-white .chart-block { background: #ffffff !important; }
body.print-white .ps-metric { background: #ffffff !important; border-color: #d7dbe1 !important; }
body.print-white .ps-metric .num { color: #1c140c !important; }
body.print-white .ps-metric .lbl { color: #6b7a8a !important; }
body.print-white .ps-metric.good { background: #eaf7f0 !important; border-color: #1a7a4c !important; }
body.print-white .ps-metric.good .num { color: #1a5f4a !important; }
body.print-white .ps-metric.bad { background: #fbe9e6 !important; border-color: #b33a3a !important; }
body.print-white .ps-metric.bad .num { color: #b3392c !important; }
body.print-white .ps-metric-roi.projected { background: repeating-linear-gradient(45deg, #f5dfa0, #f5dfa0 10px, #d3ecdd 10px, #d3ecdd 20px) !important; border-color: #9c7f1f !important; }
body.print-white .ps-metric-roi.projected .num { color: #1c140c !important; }
body.print-white .ps-metric-roi.projected .lbl { color: #1c140c !important; }
body.print-white .ps-metric-roi.projected .roi-breakdown-sub { color: #33291a !important; }
/* Combo tiles (Purchase Price + Total Investment, Cash Flow + Cash-on-Cash)
never had a print-white pass — they were always tucked lower on the page
before, easy to miss. Now that they're the very first thing on the sheet,
the missing override (solid dark tile bleeding through on a white page)
is impossible not to notice, so fixing it here. */
body.print-white .ps-metric-combo { background: #ffffff !important; border-color: #d7dbe1 !important; }
body.print-white .ps-metric-half .num { color: #1c140c !important; }
body.print-white .ps-metric-half .num.good { color: #1a5f4a !important; }
body.print-white .ps-metric-half .num.bad { color: #b3392c !important; }
body.print-white .ps-metric-half .lbl { color: #6b7a8a !important; }
body.print-white .ps-metric-divider { background: #d7dbe1 !important; }
body.print-white .ps-metric-combo.good { background: #eaf7f0 !important; border-color: #1a7a4c !important; }
body.print-white .ps-metric-combo.bad { background: #fbe9e6 !important; border-color: #b33a3a !important; }
body.print-white .ps-metric-combo.projected { background: repeating-linear-gradient(45deg, #f5dfa0, #f5dfa0 10px, #d3ecdd 10px, #d3ecdd 20px) !important; border-color: #9c7f1f !important; }
body.print-white .ps-metric-combo.projected .ps-metric-half .num,
body.print-white .ps-metric-combo.projected .ps-metric-half .lbl { color: #1c140c !important; }
body.print-white .ps-metric-sub { color: #8a6d1f !important; }
body.print-white .ps-box-gold { color: #8a6d1f !important; }
body.print-white .ps-leases h4 { color: #1c140c !important; }
body.print-white .ps-leases th, body.print-white .ps-leases td { border-color: #d7dbe1 !important; }
body.print-white .ps-leases th { background: #f7f8fa !important; color: #9c7f1f !important; }
body.print-white .ps-leases td { color: #1c140c !important; }
body.print-white #psLeaseTotalRow td { border-top-color: #9c7f1f !important; color: #1c140c !important; }
body.print-white .ps-expense-row { border-bottom-color: #d7dbe1 !important; }
body.print-white .ps-expense-row .lbl { color: #6b7a8a !important; }
body.print-white .ps-expense-row .val { color: #1c140c !important; }
body.print-white .ps-expense-row.total { border-top-color: #9c7f1f !important; }
body.print-white .ps-expense-row.total .lbl { color: #1c140c !important; }
body.print-white .ps-expense-row.total .val { color: #b3392c !important; }
body.print-white .ps-proforma-disclaimer { color: #6b7a8a !important; }
body.print-white .ps-season-note { color: #9c7f1f !important; background: #f7f8fa !important; }
body.print-white .chart-block h4 { color: #1c140c !important; }
body.print-white .chart-block .edm-note { background: #f7f8fa !important; color: #6b7a8a !important; }
.ps-leases table, .ps-leases td, .ps-leases tbody, .ps-leases tfoot { background: transparent; }
.app { padding: 0; max-width: 100%; }
.section-header { display: none !important; }

/* Only show the results/presentation side — hide the raw input form entirely */
.calc-layout { display: block !important; }
.data-entry-col { display: none !important; }
.presentation-col { width: 100% !important; }
.panel { box-shadow: none !important; border: none !important; padding: 2px 0 !important; margin-bottom: 4px; }
.presentation-col > h3 { display: none !important; }

/* Investment Calculator: trade the full verdict/pres-block stack for one compact summary */
.cf-verdict, #cfVerdictStabilized, #leaseAlertsBlock, .panel.presentation-col .pres-block, .panel.presentation-col .disclaimer, .up-next-bar, footer { display: none !important; }
.panel.presentation-col { display: block !important; }
.panel.presentation-col > * { margin-bottom: 4px; }
/* Eye-level first: headline tiles (order -2) → both charts (order -1) →
detail tables/expense breakdown (default order, last). */
.print-summary { display: block !important; width: 100%; }
/* No forced page break here anymore, per Scott ("put the expenses and
leases tightly underneath the total ROI numbers, no black space") — same
continuous-flow philosophy already used for ARV/Comps/Potential Units/Exit
Strategy below. Content now breaks wherever it naturally runs out instead
of always jumping to a fresh page even when the current page still has
room. */
.ps-bottom { margin-top: 0; }
.ps-metrics { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 3px; }
/* Rectangular, not tall — number and label sit side by side on one line
instead of stacked, so each tile is a short wide bar rather than a tall
square. The "w/ units" sub-figure (when present) wraps to its own line
underneath, right-aligned, still small. */
.ps-metric { flex: 1 1 21%; border: 1px solid var(--pf-border); border-radius: 6px; padding: 4px 8px; text-align: left; background: var(--pf-tile-bg); display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 2px 8px; }
.ps-metric .num { font-size: 0.98rem; font-weight: 800; color: var(--pf-text); line-height: 1.1; }
.ps-metric .num2 { font-size: 0.94rem; font-weight: 700; color: var(--pf-text); line-height: 1.1; margin-top: 3px; padding-top: 3px; border-top: 1px dashed var(--pf-border); }
.ps-metric-note { flex: 1 1 38%; border: 1px solid var(--pf-gold); border-radius: 6px; padding: 5px 7px; text-align: left; background: var(--pf-tile-bg); font-size: 0.62rem; color: var(--pf-gold); line-height: 1.3; display: flex; align-items: center; }
.ps-arv-timing { border: 1px solid var(--pf-gold); border-radius: 6px; padding: 5px 7px; font-size: 0.68rem; color: var(--pf-gold); line-height: 1.3; margin-top: 6px; }
.ps-metric .lbl { font-size: 0.54rem; color: var(--pf-muted); text-transform: uppercase; letter-spacing: 0.02em; }
.ps-metric-sub { font-size: 0.56rem; font-weight: 700; color: var(--pf-gold); flex-basis: 100%; text-align: right; }
/* Total ROI is the headline tile — the one number a buyer needs to actually
read across the room, not squint at. Bigger number, bigger label, and the
paydown+cashflow+appreciation breakdown line gets its own much larger,
bold, full-width, high-contrast treatment instead of the tiny gold
sub-caption used on smaller tiles. Per Scott: "make it so an old man can
read it." */
.ps-metric-roi { padding: 10px 16px; }
.ps-metric-roi .num { font-size: 1.55rem; }
.ps-metric-roi .lbl { font-size: 0.72rem; }
.roi-breakdown-sub { font-size: 0.95rem; font-weight: 800; color: #ffffff; flex-basis: 100%; text-align: left; line-height: 1.4; margin-top: 6px; }
@media (max-width: 700px) { .roi-breakdown-sub { font-size: 0.85rem; } }
/* Top summary row (Cash Flow / Cash-on-Cash / Purchase Price / Total
Investment) now sits at the very top of the sheet — a little extra bottom
margin so it doesn't crowd the chart row underneath. The ROI tile moved
down to sit directly under the Property Value / Loan Balance timeline
instead, so it gets a smaller/thinner "compact" treatment there rather
than the big headline size used when it was its own standalone block. */
.ps-metrics-top { margin-bottom: 8px; }
.ps-metrics-roi-row { margin-top: 2px; margin-bottom: 6px; }
.ps-metric-roi.compact { padding: 5px 14px; }
.ps-metric-roi.compact .num { font-size: 1.05rem; }
.ps-metric-roi.compact .lbl { font-size: 0.6rem; }
.ps-metric-roi.compact .roi-breakdown-sub { font-size: 0.68rem; margin-top: 3px; }
/* Cash-flow stat chips + chart legend, sized down to match the rest of the
print sheet's smaller type scale (these are defined at on-screen size in
the base stylesheet near .pv-lb-*, since they're visible on-screen too). */
.cf-chart-legend { font-size: 0.56rem; }
.cf-note-box { padding: 6px 8px; margin: 4px 0 6px; }
/* Logo, sitting in the space freed up under the note box now that a
vacant unit's numbers don't also duplicate into an "At Market Rent" group
(see the vacancy/upside fix above) — dark scoreboard theme only. Centered,
capped at a modest width so it reads as a snug footer mark, not a banner.
print-white shows a plain text credit instead (see further down) — .cf-note-logo
is hidden there since a raster image works against that theme's whole
ink-saving point. */
.cf-note-logo { display: block; width: 100%; height: auto; margin: 14px auto 4px; opacity: 0.96; }
.cf-note-logo-white { display: none !important; text-align: center; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.02em; margin-top: 14px; }
body.print-white .cf-note-logo { display: none !important; }
body.print-white .cf-note-logo-white { display: block !important; color: #9c7f1f !important; }
/* This is the page's "statement" section per Scott — cash flow, property
value, and loan balance, the headline % and $ swing over the hold. Bumped
noticeably bigger than the rest of the sheet's already-larger type (see
the root font-size bump above), not just scaled along with it. */
.cf-stat-headline { font-size: 1rem; }
.cf-stat-group { margin-top: 6px; padding-top: 6px; }
.cf-stat-group-lbl { font-size: 0.78rem; margin-bottom: 4px; }
.cf-stat-chip-lbl { font-size: 0.74rem; }
.cf-stat-chip-val { font-size: 1.3rem; }
.cf-stat-chip-sub { font-size: 0.88rem; }
.cf-stat-chip { min-width: 128px; }
.cf-stat-chips { gap: 12px; }
.cf-note-box { padding: 6px 9px; }
/* The Year-by-Year timeline's own row/header spacing, print-only — the
base 16px/10px margins (see near .pv-lb-row, ~line 1485) are sized for the
on-screen live app and are what pushed the sheet to 2 pages once the
stat-chip numbers above grew. Tightened here without shrinking a single
number — same big text, less air between the three rows. */
.pv-lb-header { margin-bottom: 2px; }
.pv-lb-row { margin-bottom: 2px; }
/* Secondary chart (Monthly Income vs Expenses) — not the "statement"
section, so this is where extra height gets reclaimed rather than off the
stat chips or timeline numbers. */
.chart-block .ps-chart-col-income canvas { max-height: 85px !important; }
.chart-block .ps-chart-col-income .cf-chart-wrap { height: 85px !important; }
.ps-metrics-top { margin-bottom: 5px; }
.chart-block { padding: 4px 7px; }
.ps-leases { padding: 3px 6px; }
.cf-note-box { margin: 3px 0 3px; }
.cf-note-logo { margin: 6px auto 2px; }
/* Projected (once-filled) Total ROI is a forecast, not today's actual
number, so it gets the same "this is a projection" gold/yellow diagonal
stripe treatment as the projected bars on the 5-year chart, instead of
the plain green good/bad tone used for as-is numbers — per Scott. */
.ps-metric-roi.projected { background: repeating-linear-gradient(45deg, #8a6d24, #8a6d24 10px, #2f7a4d 10px, #2f7a4d 20px); border-color: var(--pf-gold); }
.ps-metric-roi.projected .num { color: #fff6da; }
.ps-metric-roi.projected .lbl { color: #fff6da; font-weight: 700; }
.ps-metric-roi.projected .roi-breakdown-sub { color: #f3ecd8; }
.ps-lease-tag { font-size: 0.7rem; font-weight: 400; color: var(--pf-muted); }
.ps-upside-val { color: var(--pf-good-text); font-weight: 700; }
/* Two-numbers-in-one-tile: Purchase Price paired with Total Investment,
Monthly Cash Flow paired with Cash-on-Cash Yield — half the tile count,
same info, each half keeps its own good/bad color independent of its
neighbor since they're two different metrics that can disagree. */
.ps-metric-combo { flex: 1 1 48%; border: 1px solid var(--pf-border); border-radius: 6px; padding: 4px 8px; background: var(--pf-tile-bg); display: flex; align-items: center; }
.ps-metric-half { flex: 1; min-width: 0; text-align: center; }
.ps-metric-half .num { font-size: 0.98rem; font-weight: 800; color: var(--pf-text); line-height: 1.1; }
.ps-metric-half .num.good { color: var(--pf-good-text); }
.ps-metric-half .num.bad { color: var(--pf-bad-text); }
.ps-metric-half .lbl { font-size: 0.54rem; color: var(--pf-muted); text-transform: uppercase; letter-spacing: 0.02em; }
.ps-metric-half .ps-metric-sub { font-size: 0.54rem; font-weight: 700; color: var(--pf-gold); text-align: center; }
.ps-metric-divider { width: 1px; align-self: stretch; background: var(--pf-border); margin: 0 8px; }
/* Combo tile background now matches its numbers, per Scott — casino-lights
green/red like every other tile when it's a real current figure, and the
same gold+green "this is a projection" stripe as the ROI tile when it's a
projected (vacant-filled / market-rent) figure. */
.ps-metric-combo.good { background: linear-gradient(135deg, var(--pf-good-bg-1), var(--pf-good-bg-2)); border-color: var(--pf-good-border); }
.ps-metric-combo.bad { background: linear-gradient(135deg, var(--pf-bad-bg-1), var(--pf-bad-bg-2)); border-color: var(--pf-bad-border); }
.ps-metric-combo.projected { background: repeating-linear-gradient(45deg, #8a6d24, #8a6d24 10px, #2f7a4d 10px, #2f7a4d 20px); border-color: var(--pf-gold); }
.ps-metric-combo.projected .ps-metric-half .num { color: #fff6da; }
.ps-metric-combo.projected .ps-metric-half .lbl { color: #fff6da; font-weight: 700; }
.ps-metric-combo.projected .ps-metric-divider { background: rgba(255, 255, 255, 0.4); }
.ps-box-gold { font-weight: 700; color: var(--pf-gold); }
/* Casino-lights rule: any tile that represents profit/return lights up
green when it's positive, red when it isn't — so the page reads "this
works" before anyone parses a single label. */
.ps-metric.good { background: linear-gradient(135deg, var(--pf-good-bg-1), var(--pf-good-bg-2)); border-color: var(--pf-good-border); }
.ps-metric.good .num { color: var(--pf-good-text); }
.ps-metric.bad { background: linear-gradient(135deg, var(--pf-bad-bg-1), var(--pf-bad-bg-2)); border-color: var(--pf-bad-border); }
.ps-metric.bad .num { color: var(--pf-bad-text); }
.ps-metrics, .ps-leases { break-inside: avoid; page-break-inside: avoid; }
/* Cards with real borders around each section — table, expense grid,
charts, callout notes — so the eye has clear edges to land on instead of
everything bleeding into one dark field. */
.ps-leases { width: 100%; margin-bottom: 4px; border: 1px solid var(--pf-border); border-radius: 8px; padding: 4px 7px; }
.ps-leases h4 { font-size: 0.78rem; margin: 0 0 2px; color: var(--pf-text); }
.ps-leases table { width: 100%; border-collapse: collapse; font-size: 0.7rem; }
.ps-leases th, .ps-leases td { border: 1px solid var(--pf-border); padding: 2px 5px; text-align: left; }
.ps-leases th { background: var(--pf-tile-bg); color: var(--pf-gold); }
.ps-leases td { color: var(--pf-row-text); }
/* Print can't scroll: overflow-x:auto here just clipped every wide comps
table at whatever width was in view, cutting off trailing columns (Sq Ft,
List Price, Sold Price, $/SqFt, DOM) instead of showing them. Switched to
the same shrink-to-fit approach already used for .ps-exp-comps-col below:
force the table down to the container's actual width and let cells wrap
instead of overflowing, so every column survives, just smaller. */
.ps-table-scroll { overflow-x: visible; -webkit-overflow-scrolling: touch; margin: 0 0 4px; }
.ps-table-scroll table { width: 100%; min-width: 0; table-layout: fixed; }
.ps-table-scroll th, .ps-table-scroll td { white-space: normal; word-break: break-word; font-size: 0.62rem; padding: 2px 3px; }
.ps-comp-dom { font-size: 0.62rem; color: var(--pf-muted); font-weight: 400; }
/* Potential Units page: one large graph, not two competing ones. The
small income-vs-expense bar chart's canvas is hidden — its one-line
caption ("Cash Flow: $X → $Y") already says the same thing in words —
so the big 5-year renovated chart (roiChartPu) is the single visual
anchor of the page, per Scott's "just one large graph" ask. */
#puWorthItChart { display: none; }
.pu-ba-label { display: none; }
.pu-ba-caption { font-size: 0.95rem; font-weight: 700; color: var(--pf-gold); text-align: center; padding: 6px 0; }
#roiChartPuWrap canvas { max-height: 320px !important; }
/* No forced page break here anymore — Scott wants ARV, Comparable Sales
(ARV), Potential Units, and Exit Strategy flowing as one continuous
section, breaking wherever content naturally runs out rather than at a
fixed point. */
.ps-section-divider { margin: 14px 0 8px; padding-top: 10px; border-top: 2px solid var(--pf-gold); }
.ps-section-divider h3 { font-size: 0.85rem; margin: 0 0 4px; color: var(--pf-gold); }
.ps-section-divider .edm-note { margin: 0; }
.pu-before-after { display: flex; gap: 10px; margin-top: 8px; flex-wrap: wrap; }
.pu-before-after-chart { flex: 1 1 45%; min-width: 160px; border: 1px solid var(--pf-border); border-radius: 6px; padding: 6px 8px; }
.pu-ba-label { font-size: 0.62rem; text-transform: uppercase; letter-spacing: 0.02em; color: var(--pf-muted); margin-bottom: 4px; text-align: center; }
.pu-before-after-chart canvas { max-height: 140px !important; }
.pu-ba-caption { text-align: center; font-size: 0.72rem; font-weight: 700; color: var(--pf-gold); margin-top: 4px; }
.pu-ba-primary { flex: 1 1 100%; }
.pu-ba-primary canvas { max-height: 170px !important; }
/* The renovated-scenario 5-year chart is the payoff visual for the whole
Potential Units section — everything built, everything rented, what does
year 1 through 5 look like — so it runs noticeably bigger than the small
income/expense bar chart above it instead of the same size. */
#roiChartPuWrap canvas { max-height: 260px !important; }
#roiChartPuWrap { text-align: center; }
#psLeaseTotalRow td { border-top: 1.5px solid var(--pf-gold); color: var(--pf-text); }
/* Table instead of CSS grid + flex children — a row that wraps to multiple
lines (e.g. "Mortgage Payment (P&I) — 25yr @ 4.54%") could throw off grid
auto-placement and overlap the next column's row. A table row is always
one row, full stop, no auto-placement ambiguity regardless of how much
any one cell wraps. */
.ps-expense-table { width: 100%; border-collapse: collapse; font-size: 0.7rem; table-layout: fixed; }
.ps-expense-table td { padding: 2px 4px; border-bottom: 1px solid var(--pf-border); vertical-align: top; }
.ps-expense-table td.lbl { color: var(--pf-muted); width: 34%; }
.ps-expense-table td.val { font-weight: 600; color: var(--pf-row-text); white-space: nowrap; text-align: right; width: 16%; }
.ps-expense-table tr.total td { border-top: 2px solid var(--pf-gold); border-bottom: none; padding-top: 3px; }
.ps-expense-table tr.total td.lbl { color: var(--pf-text); font-weight: 700; }
.ps-expense-table tr.total td.val { color: var(--pf-cost-text); font-weight: 800; font-size: 0.78rem; }
.ps-proforma-disclaimer { font-size: 0.6rem; color: var(--pf-muted); font-style: italic; margin: 3px 0 0; line-height: 1.3; }
.ps-season-note { font-size: 0.65rem; color: var(--pf-gold); background: var(--pf-tile-bg); border: 1px solid var(--pf-gold); border-radius: 5px; padding: 4px 7px; margin: 0 0 5px; line-height: 1.35; }
#chartBlockCashflow, #chartBlockExpense { width: 100%; margin: 2px 0 6px; }
/* Monthly Income/Expenses chart sits on top, full width; the 5-Year chart
(the payoff visual — property value, loan balance, and cash flow across
the hold) now stacks BELOW it, also full width, at real size instead of
being squeezed into a narrow side-by-side column. Per Scott: it was
getting crammed into the bottom-right of the row and needed to be pulled
out and enlarged so its axis labels and bars actually have room. */
/* Deliberately NOT break-inside:avoid here, same reasoning already applied
to .chart-block elsewhere in this stylesheet (see the note near line 2710):
this row bundles the chart, the 5-Year Hold numbers, the Scott Saab logo,
and the expense/units/comps tables together, and forcing that WHOLE bundle
to stay on one page just relocates the problem: if the bundle doesn't fit
what's left of page 1, print pushes the entire thing to page 2 and leaves
page 1 mostly blank underneath the header tiles. The nested pieces
(.ps-metrics, .ps-leases, each table) already carry their own
break-inside:avoid, so removing it here lets the page break fall between
sections instead of before the whole row. */
.ps-chart-row { display: flex; gap: 12px; align-items: stretch; }
.ps-chart-col { min-width: 0; flex: 1 1 50%; }
/* Logo sized at full column width (100%, up from the earlier 78%/92%
fixed caps) instead of stretched to fill the column's whole leftover
height — a flex-grow version of that was tried and reverted: stretching
the box taller than the image's own aspect ratio just letterboxed it
(object-fit:contain centers the image inside the grown box), which read
as MORE dead space immediately around the logo, not less. Per Scott:
"reduce the space around Scott Saab logo, thats like way too much
space." Full width alone already renders it noticeably bigger than the
old capped versions, with no added padding hugging it. */
.ps-chart-col-income { margin-bottom: 0; }
.ps-chart-col-roi { margin-top: 0; }
@media (max-width: 700px) { .ps-chart-row { flex-wrap: wrap; } .ps-chart-col { flex: 1 1 100%; } }
/* Higher specificity than the later `.chart-block canvas { max-height:
130px }` rule below (same class+element weight, so without this it was
winning on source order alone and silently capping this chart back down
to 130px — the actual reason the 5-year chart was rendering squashed and
unreadable in the PDF no matter what this rule said). Sized for a 50/50
column next to the income chart, not full page width — per Scott, full
width looked stretched and worse, not better. */
.chart-block .ps-chart-col-roi canvas { max-height: 340px !important; width: 100% !important; }
/* Base structural rules for the Property Value / Loan Balance timeline live
outside this @media print block (see near .chart-block around line 1467) so
they also apply on-screen in the live calculator, not just in print output.
Only the print-white ink-cheap color override lives here. */
body.print-white .pv-lb-row.pv .pv-lb-icon-badge { background: #1c140c !important; color: #fff !important; }
body.print-white .pv-lb-row.lb .pv-lb-icon-badge { background: #2a6bb5 !important; color: #fff !important; }
body.print-white .pv-lb-pct.up { color: #1a7a4c !important; }
body.print-white .pv-lb-pct.down { color: #a33a2a !important; }
body.print-white .pv-lb-icon-label { color: #1c140c !important; }
body.print-white .pv-lb-yr { color: #1c140c !important; }
body.print-white .pv-lb-dollar { color: #6b7a8a !important; }
body.print-white .pv-lb-row.cf .pv-lb-icon-badge { background: #9c7f1f !important; color: #fff !important; }
/* Total ROI summary beside the timeline title — --gold isn't reassigned
inside @media print (only --pf-gold is), so it needs its own print-scoped
color here, plus the usual hardcoded print-white override. */
.pv-lb-roi-summary { color: var(--pf-gold); }
body.print-white .pv-lb-roi-summary { color: #9c7f1f !important; }
body.print-white #pvLbHoldYears { color: #6b7a8a !important; }

/* Chart legend overlay + cash-flow stat chips — ink-cheap print-white pass.
.cf-positive/.cf-negative already read correctly in print-white (their own
color rule always wins over any inherited value, even one set !important
higher up), so only the neutral/structural bits need an explicit override
here. */
body.print-white .cf-chart-legend { color: #6b7a8a !important; }
body.print-white .cf-note-box { background: #f7f8fa !important; }
body.print-white .cf-stat-headline { color: #1c140c !important; }
body.print-white .cf-stat-group { border-top-color: #d7dbe1 !important; }
body.print-white .cf-stat-group-lbl, body.print-white .cf-stat-chip-lbl { color: #6b7a8a !important; }
/* The chip-sub line's colored spans (.cf-positive/.cf-negative) already
read fine in white — this covers the un-spanned "&rarr;" separator between
them, which otherwise inherits the dark-theme cream text color and goes
nearly invisible on a white page. */
body.print-white .cf-stat-chip-sub { color: #6b7a8a !important; }

/* Expense Breakdown next to Comparable Sales instead of Expense running
full width above an empty gap — Expense goes narrow/tall (one row per
line item instead of two side by side), freeing width for comps to sit
beside it and actually fit on the same page. */
.ps-exp-comps-row { display: flex; gap: 10px; align-items: flex-start; }
.ps-exp-comps-col { flex: 1 1 50%; min-width: 0; }
.ps-expense-table-narrow td.lbl { width: auto; }
.ps-expense-table-narrow td.val { width: auto; }
@media (max-width: 700px) { .ps-exp-comps-row { flex-wrap: wrap; } .ps-exp-comps-col { flex: 1 1 100%; } }
/* Comps table is down to 7 columns (DOM/Units folded into brackets) but
still needs to fit a half-width column without horizontal scroll, which
print can't do — smaller type and tighter padding than the full-width
version buys back the room. */
.ps-exp-comps-col #psCompsTableCalc { font-size: 0.6rem; table-layout: fixed; width: 100%; }
.ps-exp-comps-col #psCompsTableCalc th, .ps-exp-comps-col #psCompsTableCalc td { padding: 2px 3px; white-space: normal; word-break: break-word; }
.ps-exp-comps-col .ps-table-scroll { overflow-x: visible; }
.ps-exp-comps-col .ps-table-scroll table { width: 100%; min-width: 0; }
.ps-exp-comps-col #psCompsSummary { font-size: 0.6rem; }
/* Deliberately NOT break-inside:avoid on the card itself — these cards
bundle a chart + tiles + a whole table together, and forcing the WHOLE
bundle to stay intact just relocates the "empty page" problem: if the
bundle doesn't fit what's left of a page, the entire thing (chart and
all) gets pushed to the next page instead of just the part that doesn't
fit. break-inside:avoid is applied to the smaller pieces inside instead
(.ps-metrics, .ps-leases, each table) so a break can fall BETWEEN
sub-sections without ever landing mid-table or mid-tile-row. */
.chart-block { border: 1px solid var(--pf-border); border-radius: 8px; padding: 6px 8px; }
.chart-block h4 { font-size: 0.72rem; margin: 0 0 2px; color: var(--pf-text); }
.chart-block canvas { max-height: 130px !important; }
/* The "cash flow turns positive..." callout was reading as loose text
against the dark chart card — a gold left-accent border turns it into an
obvious "read this" box instead of something that blends in. */
.chart-block .edm-note { background: var(--pf-tile-bg) !important; color: var(--pf-muted) !important; border: 1px solid var(--pf-gold) !important; border-left: 3px solid var(--pf-gold) !important; }

/* Mortgage Pre-Qual: results panel is already concise, just tighten it up */
.yield-big { padding: 10px; margin-bottom: 8px; }
.yield-big .num { font-size: 1.5rem; }

.calc-input, select.calc-input { border: none !important; background: transparent !important; -webkit-appearance: none; appearance: none; padding: 2px 0 !important; }
input[type=number]::-webkit-outer-spin-button, input[type=number]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
canvas { max-width: 100% !important; }
* { -webkit-print-color-adjust: exact !important; print-color-adjust: exact !important; }
}

/* Top-of-page site nav bar (shared with the standalone multi-page rebuild) */
.static-nav {
display: flex;
flex-wrap: wrap;
gap: 4px 14px;
justify-content: center;
margin-top: 10px;
}
.static-nav a {
color: var(--white);
opacity: 0.82;
text-decoration: none;
font-size: 0.86rem;
font-weight: 600;
padding: 4px 2px;
border-bottom: 2px solid transparent;
transition: color 0.15s ease, opacity 0.15s ease, border-color 0.15s ease;
}
.static-nav a:hover { opacity: 1; color: var(--gold); }
.static-nav a.active {
opacity: 1;
border-bottom-color: var(--gold);
}

/* Embed mode: this page loaded inside an iframe on a standalone page
(?embed=1) -- hide the shared header/nav entirely so the iframe shows
only the tool, not a second copy of the whole site's chrome. */
html.embed-mode header.site-header { display: none !important; }

/* ---- Partner pattern: drafts, slots, status (preview only) ---- */
.ph-flag { background: rgba(201,164,78,0.22); color: #C9A44E; border: 1px dashed #C9A44E; border-radius: 4px; padding: 0 5px; font-weight: 600; }
.partner-draft-flag { background: #1E1408; color: #C9A44E; border: 1px solid #C9A44E; border-radius: 6px; font-size: 0.74rem; font-weight: 700; letter-spacing: 0.04em; padding: 5px 10px; margin-bottom: 10px; }
.partner-note { font-size: 0.8rem; color: var(--gray-500); }
.partner-slots, .partner-status-panel { display: none; }
body.partner-preview .partner-slots { display: block; border: 2px dashed #C9A44E; background: #1E1408; color: #f3e9d2; border-radius: 10px; padding: 14px; margin: 14px 0; }
body.partner-preview .partner-status-panel { display: block; margin: 14px 0; overflow-x: auto; }
.partner-slot-title { color: #C9A44E; font-weight: 700; font-size: 0.85rem; margin-bottom: 10px; }
.partner-slot-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 10px; }
.partner-slot { border: 1px solid #C9A44E; border-radius: 8px; padding: 12px; font-size: 0.9rem; font-weight: 600; }
.partner-slot small { display: block; font-weight: 400; color: #d8c9a6; margin-top: 4px; }
.partner-slot-banner { min-height: 90px; }
.partner-status-table { width: 100%; border-collapse: collapse; font-size: 0.82rem; }
.partner-status-table th, .partner-status-table td { border-bottom: 1px solid var(--gray-200); padding: 6px 8px; text-align: left; }

.preview-only { display: none; }
.partner-preview .preview-only { display: block; }

/* ---- Planning tool + planner bubbles ---- */
.planner-bubbles { display: flex; flex-wrap: wrap; gap: 8px; }
.planner-bubble { display: inline-flex; align-items: center; gap: 8px; padding: 5px 14px 5px 5px; border-radius: 999px; border: 1px solid #C9A44E; background: rgba(201,164,78,0.10); color: inherit; font: inherit; cursor: pointer; text-align: left; transition: transform .15s, background .15s, box-shadow .15s; }
.planner-bubble:hover { transform: translateY(-2px); background: rgba(201,164,78,0.22); box-shadow: 0 4px 12px rgba(0,0,0,0.25); }
.planner-bubble .planner-bubble-av { width: 32px; height: 32px; min-width: 32px; border-radius: 50%; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; font-size: 0.72rem; font-weight: 700; background: #1E1408; color: #C9A44E; border: 1px solid #C9A44E; }
.planner-bubble .planner-bubble-av img { width: 100%; height: 100%; object-fit: cover; }
.planner-bubble-txt { display: flex; flex-direction: column; line-height: 1.15; }
.planner-bubble-txt b { font-size: 0.86rem; }
.planner-bubble-txt small { font-size: 0.7rem; color: var(--gray-500); }
.pt-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 12px; }
.pt-tabs .btn.active { background: #C9A44E; color: #1E1408; border-color: #C9A44E; }
.pt-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 10px 18px; margin-bottom: 14px; }
.pt-row label { display: flex; justify-content: space-between; font-size: 0.84rem; font-weight: 600; margin-bottom: 2px; }
.pt-row label span { color: #C9A44E; }
.pt-row input[type=range] { width: 100%; accent-color: #C9A44E; }
.pt-bar { display: flex; height: 34px; border-radius: 8px; overflow: hidden; background: var(--gray-200); margin: 6px 0 8px; }
.pt-bar div { height: 100%; transition: width .45s ease; min-width: 0; }
.pt-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 0.84rem; margin-bottom: 12px; }
.pt-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; }
.pt-lines p { font-size: 0.9rem; line-height: 1.55; margin: 0 0 8px; color: var(--gray-700); }
.pt-lines strong { color: #C9A44E; }
.pt-amts { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; align-items: center; }
.pt-amts .btn.active { background: #C9A44E; color: #1E1408; border-color: #C9A44E; }
.pt-amts input { width: 160px; background: var(--gray-100); color: inherit; border: 1px solid #C9A44E; border-radius: 999px; padding: 7px 14px; font: inherit; font-size: 0.85rem; }

/* ===== Print redesign (Nov 2026) ===== */
@media print {
  body.ps-redesign .cf-chart-wrap,
  body.ps-redesign #roiChartNoteWrap,
  body.ps-redesign .cf-note-logo,
  body.ps-redesign .cf-note-logo-white,
  body.ps-redesign #pvLbTimeline,
  body.ps-redesign #psUnitsCalc { display: none !important; }
  .ps-rd-leases { margin-top: 0 !important; } .ps-rd-leases th:first-child { text-align: left; } .ps-rd-leases tr.tot td { font-weight: 700; border-top: 2px solid #e8b73a; border-bottom: none; }
  #psMetricsTop { display: grid !important; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)) !important; gap: 10px !important; }
  body.ps-redesign #psMetricsTop .ps-metric-combo { margin: 0 !important; border-radius: 12px !important; }
  body.ps-redesign #psMetricsTop .ps-metric-divider { display: none !important; }
  body.ps-redesign #psMetricsTop .ps-metric-half .num { font-size: 1.45rem !important; }
  .ps-rd-card { display: block; break-inside: avoid; page-break-inside: avoid; border: 1px solid #3a3128; border-radius: 12px; padding: 12px 14px; margin: 0 0 10px; background: #1d1914; color: #f4ede1; }
  .ps-rd-card h4 { margin: 0 0 8px; font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; color: #a89c8a; }
  .ps-rd-big { font-size: 0.92rem; margin: 0 0 6px; }
  .ps-rd-big b.g, .ps-rd-yrs .g { color: #4cc38a; } .ps-rd-big b.r, .ps-rd-yrs .r { color: #e5604f; }
  .ps-rd-svg { width: 100%; height: auto; display: block; }
  .ps-rd-lbl { fill: #f4ede1; font-size: 13px; font-weight: 700; }
  .ps-rd-axis { fill: #9a8f7e; font-size: 11px; }
  .ps-rd-val { fill: #f4ede1; font-size: 11px; font-weight: 700; }
  .ps-rd-grid { stroke: #2f2820; stroke-width: 1; } .ps-rd-grid.zero { stroke: #6f6557; }
  .ps-rd-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 0.7rem; color: #a89c8a; margin-top: 6px; }
  .ps-rd-legend i { display: inline-block; width: 9px; height: 9px; border-radius: 2px; margin-right: 5px; vertical-align: -1px; }
  .ps-rd-two { display: grid; grid-template-columns: 1.4fr 1fr; gap: 16px; }
  .ps-rd-sub { font-size: 0.72rem; color: #a89c8a; margin-bottom: 4px; }
  .ps-rd-yrs { width: 100%; border-collapse: collapse; margin-top: 10px; font-size: 0.78rem; font-variant-numeric: tabular-nums; }
  .ps-rd-yrs th { color: #a89c8a; font-weight: 600; text-align: right; padding: 4px; border-bottom: 1px solid #3a3128; }
  .ps-rd-yrs td { text-align: right; padding: 4px; border-bottom: 1px solid #3a3128; }
  .ps-rd-yrs td.k { text-align: left; color: #a89c8a; }
  .ps-rd-ret-head { margin: 12px 0 6px; font-size: 0.78rem; letter-spacing: 0.04em; text-transform: uppercase; color: #a89c8a; }
  .ps-rd-ret-head b { color: #e8b73a; }
  .ps-rd-ret { display: flex; height: 26px; border-radius: 7px; overflow: hidden; }
  .ps-rd-ret div { display: flex; align-items: center; justify-content: center; font-size: 0.68rem; font-weight: 700; color: #111; white-space: nowrap; overflow: hidden; }
  .ps-rd-note { font-size: 0.68rem; color: #e5604f; margin-top: 4px; }
  #psExpenseGridCalc tr.ps-rd-zero td { opacity: 0.45; }
  body.print-white .ps-rd-card { background: #ffffff !important; border-color: #d7dbe1 !important; color: #1c140c !important; }
  body.print-white .ps-rd-lbl, body.print-white .ps-rd-val { fill: #1c140c; }
  body.print-white .ps-rd-axis { fill: #6b7a8a; }
  body.print-white .ps-rd-grid { stroke: #e3e6ea; } body.print-white .ps-rd-grid.zero { stroke: #9aa3ad; }
  body.print-white .ps-rd-yrs th, body.print-white .ps-rd-yrs td { border-color: #e3e6ea; }
  body.print-white .ps-rd-big b.g, body.print-white .ps-rd-yrs .g { color: #1a5f4a; }
  body.print-white .ps-rd-big b.r, body.print-white .ps-rd-yrs .r { color: #b3392c; }
}

/* Current vs market/once-filled comparison (Nov 2026, per Scott) */
.cf-verdict.cf-verdict-compare {
  display: flex;
  align-items: stretch;
  gap: 0;
  padding: 0;
  overflow: hidden;
  background: var(--navy);
}
.cf-verdict-compare .cf-verdict-col {
  flex: 1;
  padding: 14px 16px;
  text-align: center;
}
.cf-verdict-compare .cf-verdict-col.positive { background: linear-gradient(135deg, var(--green), #1f7a4d); }
.cf-verdict-compare .cf-verdict-col.negative { background: linear-gradient(135deg, #b3392c, #8f2a20); }
.cf-verdict-compare .cf-verdict-col.neutral { background: linear-gradient(135deg, var(--navy), var(--navy-light)); }
.cf-verdict-compare .cf-verdict-amt { font-size: 1.45rem; }
.pres-compare { display: flex; flex-direction: column; gap: 3px; align-items: flex-end; text-align: right; }
.pres-compare-k { display: block; font-size: 0.64rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--gray-500); }
.pres-compare-now, .pres-compare-proj { display: block; }
.pres-compare-proj { color: #9c7f1f; }

@media print {
  .ps-metric-compare { flex: 1.7 1 32%; display: flex !important; flex-direction: column; align-items: stretch; padding: 5px 7px 6px !important; }
  .ps-metric-compare-title { font-size: 0.52rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--pf-muted); text-align: center; font-weight: 700; margin: 0 0 3px; }
  .ps-metric-compare-row { display: flex; align-items: stretch; flex: 1; min-width: 0; }
  body.ps-redesign #psMetricsTop .ps-metric-compare .ps-metric-divider { display: block !important; width: 1px; align-self: stretch; background: var(--pf-border); margin: 0 6px; }
  .ps-metric-compare .ps-metric-half { flex: 1; min-width: 0; text-align: center; border-radius: 8px; padding: 3px 3px; }
  .ps-metric-compare .ps-metric-half.bad { background: linear-gradient(135deg, var(--pf-bad-bg-1), var(--pf-bad-bg-2)); }
  .ps-metric-compare .ps-metric-half.good { background: linear-gradient(135deg, var(--pf-good-bg-1), var(--pf-good-bg-2)); }
  .ps-metric-compare .ps-metric-half.bad .num { color: var(--pf-bad-text); }
  .ps-metric-compare .ps-metric-half.good .num { color: var(--pf-good-text); }
  .ps-metric-compare .ps-metric-half-proj,
  .ps-metric-compare .ps-metric-half.projected {
    background: repeating-linear-gradient(45deg, #8a6d24, #8a6d24 10px, #2f7a4d 10px, #2f7a4d 20px);
  }
  .ps-metric-compare .ps-metric-half-proj .num,
  .ps-metric-compare .ps-metric-half-proj .lbl,
  .ps-metric-compare .ps-metric-half.projected .num,
  .ps-metric-compare .ps-metric-half.projected .lbl { color: #fff6da; font-weight: 700; }
  body.ps-redesign #psMetricsTop .ps-metric-compare .ps-metric-half .num { font-size: 1.12rem !important; white-space: nowrap; line-height: 1.15; }
  body.ps-redesign #psMetricsTop .ps-metric-compare .ps-metric-half .lbl { font-size: 0.48rem; line-height: 1.2; }
  body.print-white .ps-metric-compare-title { color: #6b7a8a !important; }
  .ps-rd-nowproj { margin: 0 0 8px; display: flex; flex-direction: column; gap: 4px; }
  .ps-rd-nowproj-row { font-size: 0.82rem; line-height: 1.35; }
  .ps-rd-nowproj-lbl { font-weight: 700; letter-spacing: 0.03em; text-transform: uppercase; font-size: 0.68rem; color: #a89c8a; margin-right: 8px; }
  .ps-rd-nowproj-cf { font-weight: 800; margin-left: 8px; white-space: nowrap; }
  body.print-white .ps-rd-nowproj-lbl { color: #6b7a8a !important; }
  body.print-white .ps-metric-compare { background: #ffffff !important; border-color: #d7dbe1 !important; }
  body.print-white .ps-metric-compare .ps-metric-half.bad { background: #fbe9e6 !important; }
  body.print-white .ps-metric-compare .ps-metric-half.bad .num { color: #b3392c !important; }
  body.print-white .ps-metric-compare .ps-metric-half.good { background: #eaf7f0 !important; }
  body.print-white .ps-metric-compare .ps-metric-half.good .num { color: #1a5f4a !important; }
  body.print-white .ps-metric-compare .ps-metric-half-proj,
  body.print-white .ps-metric-compare .ps-metric-half.projected {
    background: repeating-linear-gradient(45deg, #f5dfa0, #f5dfa0 10px, #d3ecdd 10px, #d3ecdd 20px) !important;
  }
  body.print-white .ps-metric-compare .ps-metric-half-proj .num,
  body.print-white .ps-metric-compare .ps-metric-half-proj .lbl { color: #1c140c !important; }
}

.ps-rd-val-sm { font-size: 10px; }
.ps-rd-note-muted { color: #a89c8a; }
body.print-white .ps-rd-note-muted { color: #6b7a8a !important; }
.pv-lb-row.cf-market .pv-lb-icon-badge { background: #c9a227; color: #1c140c; }

.pv-lb-row.cf .pv-lb-icon-label { min-width: 118px; max-width: 138px; line-height: 1.2; }
.pv-lb-row.cf .pv-lb-point { padding: 0 3px; }
.pv-lb-row.cf .pv-lb-pct { font-size: 0.7rem; }
.pv-lb-row.cf-current .pv-lb-icon-badge { background: #4cc38a; color: #0d2620; }
.pv-lb-row.cf-market .pv-lb-pct.up { color: #c9a227; }
.pv-lb-row.cf-market .pv-lb-pct.down { color: #d9883a; }

.chart-block.pv-lb-timeline { padding-bottom: 16px; }
