/* ============================================================
   MOMENTUM GUIDE STYLES - shared by Buyer/Seller/Relocation guides
   Theme: light (default, Canva-style) + dark (toggle)
   ============================================================ */

/* Brand tokens */
:root {
  --ocean: #1a6b82;
  --ocean-light: #2A8FA8;
  --gold-bright: #E2C472;
  --gold-soft: #d4a949;
  --ink: #04090D;
  --ink-2: #0a1218;
  --ink-3: #14202b;
  --white: #F6F4F0;
  --cream: #F6F4F0;
  --paper: #FFFFFF;
  --text-primary: #1a2330;
  --text-secondary: rgba(26, 35, 48, 0.72);
  --text-muted: rgba(26, 35, 48, 0.52);
  --border-light: rgba(26, 35, 48, 0.12);
  --border-gold: rgba(226, 196, 114, 0.5);
}

/* Dark theme overrides */
[data-theme="dark"] {
  --paper: #0a1218;
  --cream: #04090D;
  --text-primary: #F6F4F0;
  --text-secondary: rgba(246, 244, 240, 0.78);
  --text-muted: rgba(246, 244, 240, 0.55);
  --border-light: rgba(246, 244, 240, 0.12);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--cream);
  color: var(--text-primary);
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  transition: background 0.3s, color 0.3s;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--text-primary);
}

.serif { font-family: 'Playfair Display', Georgia, serif; }
.italic { font-style: italic; }

/* ============================================================
   STICKY AGENT HEADER (always visible at top)
   ============================================================ */
.gh-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--paper);
  border-bottom: 1px solid var(--border-light);
  backdrop-filter: blur(12px);
  transition: background 0.3s;
}

.gh-header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.85rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.gh-agent {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  min-width: 0;
}

.gh-photo {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  overflow: hidden;
  border: 1.5px solid var(--gold-bright);
  flex-shrink: 0;
}

.gh-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.gh-agent-info {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.gh-agent-name {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.gh-agent-role {
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 0.1rem;
}

.gh-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.gh-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 1rem;
  border-radius: 4px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  border: 1px solid var(--border-light);
  background: transparent;
  color: var(--text-primary);
  transition: all 0.2s;
}

.gh-btn:hover {
  border-color: var(--gold-bright);
  background: rgba(226, 196, 114, 0.08);
}

.gh-btn-primary {
  background: var(--gold-bright);
  border-color: var(--gold-bright);
  color: var(--ink);
}

.gh-btn-primary:hover {
  background: var(--gold-soft);
  border-color: var(--gold-soft);
}

.gh-theme-toggle {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border-light);
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  color: var(--text-secondary);
}

.gh-theme-toggle:hover {
  border-color: var(--gold-bright);
  color: var(--gold-bright);
}

.gh-theme-toggle svg { width: 18px; height: 18px; }
.gh-theme-toggle .icon-moon { display: block; }
.gh-theme-toggle .icon-sun { display: none; }
[data-theme="dark"] .gh-theme-toggle .icon-moon { display: none; }
[data-theme="dark"] .gh-theme-toggle .icon-sun { display: block; }

@media (max-width: 640px) {
  .gh-agent-name { font-size: 0.95rem; }
  .gh-agent-role { display: none; }
  .gh-btn { padding: 0.5rem 0.85rem; font-size: 0.72rem; }
  .gh-btn span.label-long { display: none; }
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.gh-hero {
  background: var(--paper);
  padding: 5rem 1.5rem 4rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.gh-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: var(--gold-bright);
}

.gh-hero-eyebrow {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold-soft);
  margin-bottom: 1.5rem;
}

.gh-hero-title {
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  font-weight: 700;
  margin-bottom: 1.5rem;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.gh-hero-title em {
  font-style: italic;
  color: var(--ocean);
}

[data-theme="dark"] .gh-hero-title em { color: var(--gold-bright); }

.gh-hero-sub {
  font-size: 1.15rem;
  font-weight: 300;
  color: var(--text-secondary);
  max-width: 660px;
  margin: 0 auto 2.5rem;
  line-height: 1.6;
}

.gh-hero-prepared {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.75rem 1.5rem;
  background: var(--cream);
  border: 1px solid var(--border-light);
  border-left: 3px solid var(--gold-bright);
  border-radius: 4px;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.gh-hero-prepared strong {
  color: var(--text-primary);
  font-weight: 600;
}

/* ============================================================
   SECTION (generic container)
   ============================================================ */
.gh-section {
  padding: 5rem 1.5rem;
  background: var(--cream);
}

.gh-section.gh-section-alt {
  background: var(--paper);
}

.gh-section-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.gh-section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.gh-section-eyebrow {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold-soft);
  margin-bottom: 1rem;
}

.gh-section-title {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  margin-bottom: 1rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.gh-section-title em { font-style: italic; color: var(--ocean); }
[data-theme="dark"] .gh-section-title em { color: var(--gold-bright); }

.gh-section-sub {
  font-size: 1rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.65;
}

/* Two-column split */
.gh-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

@media (max-width: 880px) {
  .gh-split { grid-template-columns: 1fr; gap: 2.5rem; }
}

.gh-split-img {
  width: 100%;
  border-radius: 6px;
  overflow: hidden;
}

.gh-split-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gh-prose h3 {
  font-size: 1.75rem;
  margin-bottom: 1.25rem;
}

.gh-prose p {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
  line-height: 1.7;
}

/* ============================================================
   ABOUT AGENT BLOCK
   ============================================================ */
.gh-about-grid {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 3.5rem;
  align-items: start;
}

@media (max-width: 880px) {
  .gh-about-grid { grid-template-columns: 1fr; gap: 2rem; }
  .gh-about-photo-wrap { max-width: 280px; margin: 0 auto; }
}

.gh-about-photo-wrap {
  position: relative;
}

.gh-about-photo {
  width: 100%;
  aspect-ratio: 3/4;
  border-radius: 6px;
  overflow: hidden;
  background: var(--ink-2);
}

.gh-about-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }

.gh-about-photo-bar {
  position: absolute;
  top: -1rem;
  left: -1rem;
  width: 60%;
  height: 4px;
  background: var(--gold-bright);
}

.gh-about-content h3 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.gh-about-content .gh-about-role {
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold-soft);
  margin-bottom: 1.5rem;
}

.gh-about-content p {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 1.25rem;
}

.gh-about-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-light);
}

.gh-stat-num {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1;
}

.gh-stat-label {
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 0.5rem;
}

/* ============================================================
   FEATURE GRID (8 marketing tiles, etc)
   ============================================================ */
.gh-feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

@media (max-width: 880px) {
  .gh-feature-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .gh-feature-grid { grid-template-columns: 1fr; }
}

.gh-feature {
  background: var(--paper);
  border: 1px solid var(--border-light);
  border-top: 3px solid var(--gold-bright);
  border-radius: 4px;
  padding: 1.75rem 1.5rem;
  transition: transform 0.25s, border-color 0.25s;
}

.gh-section-alt .gh-feature { background: var(--cream); }

.gh-feature:hover {
  transform: translateY(-2px);
  border-color: var(--gold-bright);
}

.gh-feature-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(226, 196, 114, 0.15);
  border-radius: 4px;
  color: var(--gold-soft);
  margin-bottom: 1rem;
}

.gh-feature-icon svg { width: 20px; height: 20px; }

.gh-feature-title {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.gh-feature-text {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ============================================================
   STEPS / TIMELINE
   ============================================================ */
.gh-steps {
  display: grid;
  gap: 2rem;
  position: relative;
  max-width: 980px;
  margin: 0 auto;
}

/* 6 steps → 3 columns × 2 rows (Seller Guide) */
.gh-steps-6 {
  grid-template-columns: repeat(3, 1fr);
}

/* 7 steps → 4 columns top row, 3 columns bottom row centered */
.gh-steps-7 {
  grid-template-columns: repeat(12, 1fr);
}
.gh-steps-7 > .gh-step:nth-child(1) { grid-column: 1 / span 3; }
.gh-steps-7 > .gh-step:nth-child(2) { grid-column: 4 / span 3; }
.gh-steps-7 > .gh-step:nth-child(3) { grid-column: 7 / span 3; }
.gh-steps-7 > .gh-step:nth-child(4) { grid-column: 10 / span 3; }
.gh-steps-7 > .gh-step:nth-child(5) { grid-column: 3 / span 3; }
.gh-steps-7 > .gh-step:nth-child(6) { grid-column: 6 / span 3; }
.gh-steps-7 > .gh-step:nth-child(7) { grid-column: 9 / span 3; }

@media (max-width: 780px) {
  .gh-steps-6, .gh-steps-7 {
    grid-template-columns: repeat(2, 1fr);
  }
  .gh-steps-7 > .gh-step { grid-column: auto !important; }
}

@media (max-width: 460px) {
  .gh-steps-6, .gh-steps-7 {
    grid-template-columns: 1fr;
  }
}

.gh-step {
  text-align: center;
  position: relative;
}

.gh-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  background: var(--gold-bright);
  color: var(--ink);
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 700;
  border-radius: 4px;
  margin-bottom: 1.25rem;
  position: relative;
}

.gh-step-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  font-family: 'DM Sans', sans-serif;
}

.gh-step-text {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ============================================================
   PRICING ZONES BLOCK
   ============================================================ */
.gh-zones {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

@media (max-width: 880px) {
  .gh-zones { grid-template-columns: 1fr; }
}

.gh-zone {
  padding: 2rem;
  background: var(--paper);
  border-left: 4px solid;
  border-radius: 4px;
  border-top: 1px solid var(--border-light);
  border-right: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.gh-section-alt .gh-zone { background: var(--cream); }

.gh-zone-priced { border-left-color: var(--gold-bright); }
.gh-zone-over { border-left-color: #c0392b; }
.gh-zone-under { border-left-color: #8b9da8; }

.gh-zone-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 0.85rem;
}

.gh-zone-priced .gh-zone-label { color: var(--gold-soft); }
.gh-zone-over .gh-zone-label { color: #c0392b; }
.gh-zone-under .gh-zone-label { color: #8b9da8; }

.gh-zone-text {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* ============================================================
   CHECKLIST
   ============================================================ */
.gh-checklist {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem 2rem;
}

@media (max-width: 700px) {
  .gh-checklist { grid-template-columns: 1fr; }
}

.gh-check-item {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 0.85rem 0;
}

.gh-check-icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  background: rgba(226, 196, 114, 0.18);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-soft);
  margin-top: 1px;
}

.gh-check-icon svg { width: 12px; height: 12px; }

.gh-check-text {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ============================================================
   CTA BLOCK (bottom)
   ============================================================ */
.gh-cta {
  background: var(--ink);
  color: var(--white);
  padding: 5rem 1.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.gh-cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: var(--gold-bright);
}

.gh-cta-eyebrow {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold-bright);
  margin-bottom: 1.25rem;
}

.gh-cta-title {
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  color: var(--white);
  margin-bottom: 1.5rem;
}

.gh-cta-title em {
  font-style: italic;
  color: var(--gold-bright);
}

.gh-cta-sub {
  font-size: 1.05rem;
  color: rgba(246, 244, 240, 0.75);
  max-width: 580px;
  margin: 0 auto 2.5rem;
}

.gh-cta-contact {
  display: inline-flex;
  flex-direction: column;
  gap: 1rem;
  background: rgba(246, 244, 240, 0.06);
  border: 1px solid rgba(246, 244, 240, 0.15);
  border-radius: 6px;
  padding: 2rem 2.5rem;
  text-align: left;
}

.gh-cta-contact-row {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  font-size: 1rem;
  color: var(--white);
}

.gh-cta-contact-row svg {
  width: 18px;
  height: 18px;
  color: var(--gold-bright);
  flex-shrink: 0;
}

.gh-cta-contact-row a:hover {
  color: var(--gold-bright);
}

/* ============================================================
   FOOTER
   ============================================================ */
.gh-footer {
  background: var(--cream);
  padding: 2.5rem 1.5rem;
  text-align: center;
  font-size: 0.78rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border-light);
}

.gh-footer a {
  color: var(--text-secondary);
  border-bottom: 1px dotted var(--border-light);
}

.gh-footer a:hover {
  color: var(--gold-soft);
  border-color: var(--gold-soft);
}

/* QR Modal */
.gh-qr-modal {
  position: fixed;
  inset: 0;
  background: rgba(4, 9, 13, 0.85);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  backdrop-filter: blur(8px);
}

.gh-qr-modal.active { display: flex; }

.gh-qr-box {
  background: var(--paper);
  border-radius: 8px;
  padding: 2.5rem;
  max-width: 360px;
  width: 100%;
  text-align: center;
  position: relative;
}

.gh-qr-close {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  background: transparent;
  border: none;
  width: 32px;
  height: 32px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--text-muted);
  transition: all 0.2s;
}

.gh-qr-close:hover { background: var(--cream); color: var(--text-primary); }

.gh-qr-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  margin-bottom: 1rem;
}

.gh-qr-canvas {
  margin: 1.5rem auto;
  padding: 1rem;
  background: white;
  border-radius: 4px;
  display: inline-block;
}

.gh-qr-canvas img { width: 240px; height: 240px; }

.gh-qr-url {
  font-size: 0.78rem;
  color: var(--text-muted);
  word-break: break-all;
  margin-top: 0.75rem;
  font-family: monospace;
}

/* Print styles */
@media print {
  .gh-header, .gh-theme-toggle, .gh-actions { display: none !important; }
  .gh-hero, .gh-section, .gh-cta { padding: 2rem 1rem !important; page-break-inside: avoid; }
  body { background: white !important; color: black !important; }
}

/* ============================================================
   MARKET INFOGRAPHIC (Seller Guide)
   ============================================================ */
.gh-market-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}

@media (max-width: 780px) {
  .gh-market-grid { grid-template-columns: repeat(2, 1fr); }
}

.gh-market-stat {
  background: var(--paper);
  border: 1px solid var(--border-light);
  border-radius: 6px;
  padding: 1.75rem 1.25rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.gh-section-alt .gh-market-stat { background: var(--cream); }

.gh-market-stat::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gold-bright);
}

.gh-market-num {
  font-family: 'Playfair Display', serif;
  font-size: 2.6rem;
  font-weight: 700;
  color: var(--gold-soft);
  line-height: 1;
  margin-bottom: 0.35rem;
  letter-spacing: -0.02em;
}

.gh-market-vs {
  font-size: 0.78rem;
  color: var(--text-secondary);
  font-weight: 500;
  margin-bottom: 0.85rem;
}

.gh-market-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  line-height: 1.4;
}

.gh-market-callout {
  background: var(--paper);
  border-left: 3px solid var(--gold-bright);
  border-radius: 4px;
  padding: 1.5rem 1.75rem;
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 820px;
  margin: 1rem auto 0;
}

.gh-section-alt .gh-market-callout { background: var(--cream); }

/* ============================================================
   LIVE MORTGAGE RATE WIDGET (Buyer Guide)
   ============================================================ */
.gh-rate-widget {
  background: linear-gradient(135deg, rgba(26,107,130,0.08), rgba(26,107,130,0.02));
  border: 1px solid rgba(26,107,130,0.25);
  border-left: 4px solid var(--ocean);
  border-radius: 6px;
  padding: 2rem 2.25rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
  max-width: 880px;
  margin: 0 auto;
}

@media (max-width: 700px) {
  .gh-rate-widget { grid-template-columns: 1fr; gap: 1rem; padding: 1.5rem 1.75rem; }
}

.gh-rate-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ocean);
  margin-bottom: 0.5rem;
}

[data-theme="dark"] .gh-rate-label { color: var(--ocean-light); }

.gh-rate-value {
  font-family: 'Playfair Display', serif;
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1;
  letter-spacing: -0.02em;
}

.gh-rate-pct { font-size: 1.5rem; vertical-align: top; margin-left: 2px; color: var(--gold-soft); }

.gh-rate-meta {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
  line-height: 1.5;
}

.gh-rate-context {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.gh-rate-source {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 0.85rem;
  font-style: italic;
}

.gh-rate-source a { color: var(--ocean); border-bottom: 1px dotted var(--text-muted); }

/* ============================================================
   CALCULATOR WIDGETS (Seller Net Sheet + Buyer Costs)
   ============================================================ */
.gh-calc {
  background: var(--paper);
  border: 1px solid var(--border-light);
  border-radius: 6px;
  padding: 2rem 2.25rem;
  max-width: 900px;
  margin: 0 auto;
}

.gh-section-alt .gh-calc { background: var(--cream); }

.gh-calc-inputs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  margin-bottom: 1.75rem;
}

.gh-calc-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.gh-calc-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.gh-calc-input {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid var(--border-light);
  border-radius: 4px;
  background: var(--cream);
  color: var(--text-primary);
  font-family: 'DM Sans', sans-serif;
  font-size: 1rem;
  font-weight: 500;
  outline: none;
  transition: border-color 0.2s, background 0.2s;
}

.gh-section-alt .gh-calc-input { background: var(--paper); }

.gh-calc-input:focus {
  border-color: var(--gold-bright);
  background: var(--paper);
}

[data-theme="dark"] .gh-calc-input { background: rgba(246,244,240,0.04); }

.gh-calc-input:-webkit-autofill,
.gh-calc-input:-webkit-autofill:hover,
.gh-calc-input:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0 30px var(--cream) inset !important;
  -webkit-text-fill-color: var(--text-primary) !important;
  caret-color: var(--text-primary) !important;
  transition: background-color 5000s ease-in-out 0s;
}

.gh-calc-help {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 0.2rem;
}

/* Net sheet results table */
.gh-netsheet {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
  font-size: 0.92rem;
}

.gh-netsheet th {
  background: var(--cream);
  padding: 0.85rem 1rem;
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-secondary);
  border-bottom: 2px solid var(--gold-bright);
  text-align: right;
}

.gh-section-alt .gh-netsheet th { background: var(--paper); }

.gh-netsheet th:first-child { text-align: left; }

.gh-netsheet td {
  padding: 0.7rem 1rem;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-light);
  text-align: right;
}

.gh-netsheet td:first-child { text-align: left; color: var(--text-primary); }

.gh-netsheet tr.gh-netsheet-total {
  background: rgba(226,196,114,0.1);
}

.gh-netsheet tr.gh-netsheet-total td {
  font-weight: 700;
  color: var(--text-primary);
  font-size: 1rem;
  padding: 1rem;
  border-top: 2px solid var(--gold-bright);
  border-bottom: none;
}

.gh-netsheet tr.gh-netsheet-total td:last-child {
  color: var(--gold-soft);
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
}

.gh-calc-disclaimer {
  margin-top: 1.5rem;
  padding: 1rem 1.25rem;
  background: var(--cream);
  border-left: 2px solid var(--text-muted);
  border-radius: 3px;
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.6;
  font-style: italic;
}

.gh-section-alt .gh-calc-disclaimer { background: var(--paper); }

/* Mobile net sheet: stack each row as a card */
@media (max-width: 600px) {
  .gh-netsheet {
    font-size: 0.88rem;
    display: block;
  }
  .gh-netsheet thead {
    display: none;
  }
  .gh-netsheet tbody {
    display: block;
  }
  .gh-netsheet tr {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem 0.6rem;
    padding: 0.85rem 0.9rem;
    border-bottom: 1px solid var(--border-light);
    background: transparent;
  }
  .gh-netsheet tr:nth-child(odd) {
    background: rgba(0,0,0,0.018);
  }
  .gh-netsheet td {
    padding: 0;
    border: none;
    text-align: center;
    font-size: 0.95rem;
    color: var(--text-primary);
    font-weight: 600;
    flex: 1;
    min-width: 0;
  }
  .gh-netsheet td:first-child {
    flex: 0 0 100%;
    text-align: left;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding-bottom: 0.1rem;
  }
  /* 4-column scenario table (seller net sheet) - Low / Likely / Stretch labels */
  .gh-netsheet tr:has(td:nth-child(4)) td:nth-child(2)::before { content: "Conservative"; display: block; font-size: 0.6rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 0.2rem; }
  .gh-netsheet tr:has(td:nth-child(4)) td:nth-child(3)::before { content: "Likely"; display: block; font-size: 0.6rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 0.2rem; }
  .gh-netsheet tr:has(td:nth-child(4)) td:nth-child(4)::before { content: "Stretch"; display: block; font-size: 0.6rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold-soft); margin-bottom: 0.2rem; }
  .gh-netsheet tr.gh-netsheet-total {
    background: rgba(226,196,114,0.12);
    border-top: 2px solid var(--gold-bright);
    padding: 1rem 0.9rem;
  }
  .gh-netsheet tr.gh-netsheet-total td {
    font-size: 1.05rem;
  }
  .gh-netsheet tr.gh-netsheet-total td:first-child {
    color: var(--text-primary);
    font-size: 0.82rem;
  }
  .gh-netsheet tr.gh-netsheet-total td:last-child {
    color: var(--gold-soft);
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
  }
  /* Disclaimer text smaller on mobile */
  .gh-calc-disclaimer {
    font-size: 0.74rem;
    padding: 0.85rem 1rem;
    line-height: 1.55;
  }
}
