/* ============================================================
   CMA — Premium light print stylesheet (8 pages letter-size)
   Design language: ivory + charcoal + navy + restrained gold,
   serif headlines, generous whitespace, hairline rules.
   Inspired by Sotheby's / Engel & Völkers brochures.
   ============================================================ */

/* ── Status indicators in upload form ── */
.cma-status {
  margin-top: 8px;
  font-size: 0.84rem;
  padding: 8px 12px;
  border-radius: 6px;
  background: #f5f5f5;
  color: #888;
  display: none;
}
.cma-status:not(:empty) { display: block; }
.cma-status.loading { background: #fff8e1; color: #b8960c; }
.cma-status.ok      { background: #e6f7ee; color: #1d7a3f; }
.cma-status.err     { background: #fff5f5; color: #c0392b; }

/* ── Output container ── */
#cmaOutput {
  margin: 36px auto 60px;
  max-width: 880px;
  padding: 0 20px;
}

/* ── PAGE — premium ivory base ── */
.cma-page {
  background: #fdfbf6;            /* warm ivory */
  color: #1f1d18;                 /* deep charcoal text */
  border-radius: 4px;
  padding: 40px 52px;
  margin-bottom: 18px;
  box-shadow: 0 8px 28px rgba(20, 18, 12, 0.08), 0 1px 3px rgba(20, 18, 12, 0.04);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  position: relative;
  min-height: auto;
  border: 1px solid #ece4d0;
}
.cma-page:last-child {
  page-break-after: auto;
  break-after: auto;
}

/* Decorative top-edge gold rule on every page */
.cma-page::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, #c8a560 0%, #b8960c 50%, #c8a560 100%);
  border-radius: 4px 4px 0 0;
}

/* ════════════════════════════════════════════════
   COVER PAGE
   ════════════════════════════════════════════════ */
.cma-cover {
  text-align: center;
  padding: 56px 72px 64px;
  display: flex;
  flex-direction: column;
}
.cma-cover-band {
  background: #1a2645;            /* deep navy */
  color: #fdfbf6;
  padding: 16px 28px;
  margin: -64px -72px 36px;
  border-radius: 0;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  border-bottom: 3px solid #b8960c;
}
.cma-cover-band small {
  display: block;
  font-size: 0.66rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  margin-top: 4px;
  opacity: 0.85;
  color: #d8c895;
}
.cma-cover-address {
  font-family: 'Cormorant Garamond', Georgia, "Times New Roman", serif;
  font-size: 2.6rem;
  font-weight: 600;
  color: #1a2645;
  letter-spacing: 0.01em;
  line-height: 1.15;
  margin: 24px 0 12px;
  text-transform: none;
}
.cma-cover-sub {
  color: #6b5a35;
  font-size: 0.96rem;
  letter-spacing: 0.06em;
  margin-bottom: 6px;
  text-transform: uppercase;
  font-weight: 500;
}
.cma-cover-prepared {
  color: #4a4338;
  font-size: 0.96rem;
  margin-bottom: 36px;
  font-style: italic;
}
.cma-cover-prepared strong {
  color: #1a2645;
  font-style: normal;
  font-weight: 700;
}

/* Decorative divider above agent card */
.cma-cover::after {
  content: '✦';
  display: block;
  text-align: center;
  color: #b8960c;
  font-size: 1.2rem;
  margin: -8px 0 8px;
  letter-spacing: 1em;
  padding-left: 1em;  /* cancel last letter-spacing */
}

.cma-cover-agent {
  background: #ffffff;
  border: 1px solid #ece4d0;
  border-radius: 4px;
  padding: 24px 28px;
  display: flex;
  align-items: center;
  gap: 22px;
  text-align: left;
  margin-bottom: 36px;
  box-shadow: 0 2px 8px rgba(20, 18, 12, 0.04);
}
.cma-cover-agent img {
  width: 84px; height: 84px; border-radius: 50%;
  border: 2px solid #b8960c;
  object-fit: cover;
}
.cma-cover-agent .agent-name {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.08em;
  color: #1a2645;
  text-transform: uppercase;
}
.cma-cover-agent .agent-title {
  color: #b8960c;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  margin: 2px 0 8px;
  text-transform: uppercase;
}
.cma-cover-agent .agent-contact {
  font-size: 0.86rem;
  color: #4a4338;
  line-height: 1.55;
}

.cma-cover-tiers {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 14px;
  margin-top: auto;
}
.cma-tier {
  background: #ffffff;
  border: 1px solid #ece4d0;
  border-radius: 4px;
  padding: 22px 18px;
  text-align: center;
  position: relative;
}
.cma-tier.recommended {
  background: #1a2645;
  color: #fdfbf6;
  border-color: #1a2645;
  box-shadow: 0 4px 14px rgba(26, 38, 69, 0.18);
}
.cma-tier.recommended::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, #d8b04e, #b8960c);
}
.cma-tier .tier-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  margin-bottom: 12px;
  color: #6b5a35;
  text-transform: uppercase;
}
.cma-tier.recommended .tier-label { color: #d8c895; }
.cma-tier .tier-price {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.85rem;
  font-weight: 600;
  color: #1a2645;
  letter-spacing: 0.01em;
}
.cma-tier.recommended .tier-price { color: #fdfbf6; }
.cma-tier .tier-net {
  font-size: 0.78rem;
  color: #6b5a35;
  margin-top: 8px;
  letter-spacing: 0.02em;
}
.cma-tier.recommended .tier-net { color: #d8c895; }

/* ════════════════════════════════════════════════
   HEADERS
   ════════════════════════════════════════════════ */
.cma-h2-band {
  background: transparent;
  color: #1a2645;
  padding: 0 0 8px;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.18em;
  border-radius: 0;
  margin: 0 0 6px;
  text-transform: uppercase;
  border-bottom: 2px solid #b8960c;
  position: relative;
  display: block;
}
.cma-h2-band::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 60px;
  height: 2px;
  background: #1a2645;
}
.cma-snapshot-sub {
  font-size: 0.84rem;
  color: #6b5a35;
  font-style: italic;
  margin-bottom: 22px;
  margin-top: 8px;
  letter-spacing: 0.02em;
}
.cma-h3 {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  color: #1a2645;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin: 26px 0 12px;
  padding-bottom: 6px;
  border-bottom: 1px solid #ece4d0;
}
.cma-h4 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 600;
  color: #1a2645;
  font-size: 1.15rem;
  margin: 16px 0 8px;
  letter-spacing: 0.01em;
}

/* ════════════════════════════════════════════════
   ABOUT BLOCKS
   ════════════════════════════════════════════════ */
.cma-about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  margin-bottom: 28px;
}
.cma-about-block {
  background: #ffffff;
  border: 1px solid #ece4d0;
  border-radius: 4px;
  padding: 24px 26px;
}
.cma-about-block p {
  font-size: 0.92rem;
  line-height: 1.75;
  color: #2a2820;
  margin: 0 0 12px;
}
.cma-about-block p:last-child { margin-bottom: 0; }
.cma-about-block .italic {
  color: #6b5a35;
  font-style: italic;
  font-size: 0.88rem;
  border-left: 2px solid #b8960c;
  padding-left: 12px;
}

/* ════════════════════════════════════════════════
   STAT CARDS
   ════════════════════════════════════════════════ */
.cma-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin: 18px 0 26px;
}
.cma-stat {
  background: #ffffff;
  border: 1px solid #ece4d0;
  border-top: 3px solid #b8960c;
  border-radius: 4px;
  padding: 18px 14px;
  text-align: center;
}
.cma-stat .stat-label {
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: #6b5a35;
  margin-bottom: 8px;
  text-transform: uppercase;
}
.cma-stat .stat-big {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.75rem;
  font-weight: 600;
  color: #1a2645;
  line-height: 1.1;
  letter-spacing: 0.01em;
}
.cma-stat .stat-sub {
  font-size: 0.72rem;
  color: #8a7855;
  margin-top: 6px;
  font-style: italic;
}

/* ════════════════════════════════════════════════
   TWO-COLUMN
   ════════════════════════════════════════════════ */
.cma-twocol {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin: 22px 0;
}
.cma-twocol p {
  font-size: 0.92rem;
  line-height: 1.75;
  color: #2a2820;
  margin: 0 0 12px;
}
.cma-twocol p:last-child { margin-bottom: 0; }

/* ════════════════════════════════════════════════
   TABLES
   ════════════════════════════════════════════════ */
.cma-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
  margin: 18px 0;
  background: #ffffff;
  border: 1px solid #ece4d0;
  border-radius: 4px;
  overflow: hidden;
}
.cma-table th {
  background: #1a2645;
  color: #fdfbf6;
  padding: 12px 12px;
  text-align: left;
  font-weight: 600;
  letter-spacing: 0.08em;
  font-size: 0.72rem;
  text-transform: uppercase;
}
.cma-table th.num, .cma-table td.num { text-align: right; }
.cma-table td {
  padding: 10px 12px;
  border-bottom: 1px solid #f2ecdb;
  color: #2a2820;
}
.cma-table tbody tr:nth-child(even) td { background: #fbf6e9; }
.cma-table tbody tr:hover td { background: #f5efd8; }
.cma-table tr.cma-table-avg td {
  background: #1a2645 !important;
  color: #fdfbf6 !important;
  font-weight: 700;
  border-bottom: none;
  border-top: 2px solid #b8960c;
}
.cma-table tr.cma-table-avg td strong { color: #d8c895; }
.cma-table .cma-gold { color: #b8960c; font-weight: 700; }
.cma-table .cma-small { font-size: 0.74rem; color: #6b5a35; font-style: italic; }

.cma-callout {
  background: #fbf6e9;
  border-left: 3px solid #b8960c;
  padding: 16px 22px;
  border-radius: 0 4px 4px 0;
  font-size: 0.92rem;
  line-height: 1.75;
  color: #2a2820;
  margin: 16px 0;
  font-style: italic;
}
.cma-callout-soft {
  background: #ffffff;
  border: 1px solid #ece4d0;
  padding: 14px 18px;
  border-radius: 4px;
  font-size: 0.86rem;
  line-height: 1.7;
  color: #4a4338;
}

/* ════════════════════════════════════════════════
   PRICING METHODS
   ════════════════════════════════════════════════ */
.cma-methods-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 14px;
  margin: 14px 0 18px;
}
.cma-method {
  background: #ffffff;
  border: 1px solid #ece4d0;
  border-top: 3px solid #b8960c;
  border-radius: 4px;
  padding: 18px 18px 22px;
  text-align: center;
}
.cma-method .method-num {
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: #b8960c;
  margin-bottom: 8px;
}
.cma-method .method-name {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 600;
  font-size: 1.1rem;
  color: #1a2645;
  margin-bottom: 8px;
}
.cma-method .method-sub {
  font-size: 0.74rem;
  color: #6b5a35;
  font-style: italic;
  line-height: 1.5;
  margin-bottom: 14px;
  min-height: 32px;
}
.cma-method .method-rate {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.85rem;
  color: #b8960c;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.cma-method .method-rate span {
  font-size: 0.82rem;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  color: #8a7855;
}
.cma-method .method-note {
  font-size: 0.74rem;
  color: #8a7855;
  margin: 6px 0 12px;
}
.cma-method .method-result {
  font-weight: 700;
  color: #1a2645;
  font-size: 0.96rem;
  border-top: 1px solid #ece4d0;
  padding-top: 12px;
  margin-top: 12px;
  letter-spacing: 0.02em;
}

/* ════════════════════════════════════════════════
   COMP COMPARE (expert valuation)
   ════════════════════════════════════════════════ */
.cma-compare > div {
  background: #ffffff;
  border: 1px solid #ece4d0;
  border-radius: 4px;
  padding: 18px 22px;
}
.cma-line {
  display: flex;
  justify-content: space-between;
  font-size: 0.86rem;
  padding: 6px 0;
  border-bottom: 1px solid #f2ecdb;
  color: #2a2820;
}
.cma-line.cma-adj {
  font-size: 0.82rem;
  padding-left: 14px;
  color: #6b5a35;
}
.cma-line.cma-adj .pos { color: #1d7a3f; font-weight: 600; }
.cma-line.cma-adj .neg { color: #b13d2e; font-weight: 600; }
.cma-line.cma-total {
  font-weight: 700;
  color: #1a2645;
  font-size: 0.95rem;
  border-top: 2px solid #b8960c;
  border-bottom: none;
  padding-top: 10px;
  margin-top: 6px;
}

.cma-fmv-band {
  background: #1a2645;
  color: #fdfbf6;
  padding: 16px 22px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.96rem;
  text-align: center;
  margin: 18px 0;
  letter-spacing: 0.06em;
  border-left: 4px solid #b8960c;
}
.cma-fmv-band strong {
  color: #d8c895;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* ════════════════════════════════════════════════
   ADJUSTMENT TABLE
   ════════════════════════════════════════════════ */
.cma-adj-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.86rem;
  margin: 14px 0;
  background: #ffffff;
  border: 1px solid #ece4d0;
  border-radius: 4px;
  overflow: hidden;
}
.cma-adj-table th {
  background: #1a2645;
  color: #fdfbf6;
  padding: 12px 14px;
  text-align: left;
  font-weight: 600;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.cma-adj-table th.num, .cma-adj-table td.num { text-align: right; }
.cma-adj-table td {
  padding: 10px 14px;
  border-bottom: 1px solid #f2ecdb;
  color: #2a2820;
}
.cma-adj-table .pos { color: #1d7a3f; font-weight: 600; }
.cma-adj-table .neg { color: #b13d2e; font-weight: 600; }
.cma-adj-table tr.cma-final td {
  background: #fbf6e9;
  font-weight: 700;
  color: #1a2645;
  border-top: 2px solid #b8960c;
}

/* ════════════════════════════════════════════════
   STRATEGIC RECOMMENDATION BAND
   ════════════════════════════════════════════════ */
.cma-strategic {
  background: #1a2645;
  color: #fdfbf6;
  padding: 28px 32px;
  border-radius: 4px;
  margin: 22px 0 0;
  text-align: center;
  border-left: 4px solid #b8960c;
  position: relative;
}
.cma-strategic::before {
  content: '';
  position: absolute;
  top: 0; left: 4px; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #b8960c, transparent);
}
.cma-strategic .strat-label {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #d8c895;
  margin-bottom: 8px;
}
.cma-strategic .strat-price {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 2.6rem;
  font-weight: 600;
  line-height: 1.1;
  color: #fdfbf6;
  letter-spacing: 0.01em;
}
.cma-strategic .strat-detail {
  font-size: 0.92rem;
  margin: 10px 0 14px;
  font-weight: 500;
  color: #d8c895;
  letter-spacing: 0.02em;
}
.cma-strategic .strat-note {
  font-size: 0.88rem;
  font-style: italic;
  line-height: 1.7;
  max-width: 620px;
  margin: 12px auto 0;
  color: #cec3a0;
  padding-top: 12px;
  border-top: 1px solid rgba(216, 200, 149, 0.25);
}

/* ════════════════════════════════════════════════
   HONEST READ
   ════════════════════════════════════════════════ */
.cma-honest-read {
  background: #fbf6e9;
  border-left: 3px solid #b8960c;
  padding: 18px 22px;
  border-radius: 0 4px 4px 0;
  font-size: 0.95rem;
  line-height: 1.75;
  color: #2a2820;
  margin: 14px 0 22px;
}
.cma-honest-read strong {
  color: #1a2645;
  font-weight: 700;
  letter-spacing: 0.02em;
}

/* ════════════════════════════════════════════════
   COST TABLE
   ════════════════════════════════════════════════ */
.cma-cost-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
  margin: 10px 0 18px;
  background: #ffffff;
  border: 1px solid #ece4d0;
  border-radius: 4px;
  overflow: hidden;
}
.cma-cost-table td {
  padding: 10px 14px;
  border-bottom: 1px solid #f2ecdb;
  color: #2a2820;
}
.cma-cost-table tr:last-of-type:not(.total) td { border-bottom: none; }
.cma-cost-table td.num {
  text-align: right;
  font-weight: 600;
  color: #1a2645;
  font-variant-numeric: tabular-nums;
}
.cma-cost-table tr.total td {
  background: #1a2645;
  color: #fdfbf6;
  font-weight: 700;
  font-size: 0.96rem;
  letter-spacing: 0.04em;
}
.cma-cost-table tr.total td.num { color: #d8c895; }

/* ════════════════════════════════════════════════
   NET / TOTAL CARDS
   ════════════════════════════════════════════════ */
.cma-net-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 14px;
  margin: 14px 0;
}
.cma-net-card {
  background: #ffffff;
  border: 1px solid #ece4d0;
  border-top: 3px solid #ece4d0;
  border-radius: 4px;
  padding: 20px 16px 22px;
  text-align: center;
}
.cma-net-card.featured {
  background: #1a2645;
  color: #fdfbf6;
  border: none;
  box-shadow: 0 6px 18px rgba(26, 38, 69, 0.18);
  position: relative;
}
.cma-net-card.featured::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, #d8b04e, #b8960c);
  border-radius: 4px 4px 0 0;
}
.cma-net-card .net-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: #6b5a35;
  margin-bottom: 8px;
  text-transform: uppercase;
}
.cma-net-card.featured .net-label { color: #d8c895; }
.cma-net-card .net-sale {
  font-size: 0.86rem;
  color: #4a4338;
  font-weight: 500;
  margin-bottom: 12px;
  letter-spacing: 0.02em;
}
.cma-net-card.featured .net-sale { color: #cec3a0; }
.cma-net-card .net-big {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.6rem;
  font-weight: 600;
  color: #1d7a3f;
  letter-spacing: 0.02em;
}
.cma-net-card.featured .net-big { color: #fdfbf6; }
.cma-net-card .net-sub {
  font-size: 0.76rem;
  color: #6b5a35;
  font-style: italic;
  margin-top: 8px;
  line-height: 1.5;
}
.cma-net-card.featured .net-sub { color: #cec3a0; }

/* ════════════════════════════════════════════════
   MARKETING / OFFER PHASES
   ════════════════════════════════════════════════ */
.cma-phases {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.cma-phase {
  background: #ffffff;
  border: 1px solid #ece4d0;
  border-radius: 4px;
  padding: 18px 22px;
}
.cma-phase .phase-num {
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: #b8960c;
  margin-bottom: 4px;
}
.cma-phase .phase-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 600;
  font-size: 1.15rem;
  color: #1a2645;
  margin-bottom: 12px;
  border-bottom: 2px solid #b8960c;
  padding-bottom: 8px;
  letter-spacing: 0.02em;
}
.cma-phase ul {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.65;
}
.cma-phase li {
  padding: 5px 0 5px 18px;
  position: relative;
  color: #2a2820;
}
.cma-phase li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 12px;
  width: 8px;
  height: 1px;
  background: #b8960c;
}

/* ════════════════════════════════════════════════
   CHECKLIST
   ════════════════════════════════════════════════ */
.cma-checklist-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  margin: 14px 0;
}
.cma-checklist {
  list-style: none;
  padding: 0;
  margin: 6px 0 0;
}
.cma-checklist li {
  padding: 6px 0;
  color: #2a2820;
  font-size: 0.88rem;
  line-height: 1.6;
  border-bottom: 1px dashed #ece4d0;
}
.cma-checklist li:last-child { border-bottom: none; }

/* ════════════════════════════════════════════════
   CLOSING BAND
   ════════════════════════════════════════════════ */
.cma-closing-band {
  background: #ffffff;
  border: 1px solid #ece4d0;
  border-top: 4px solid #b8960c;
  border-radius: 4px;
  padding: 32px 36px;
  text-align: center;
  margin-bottom: 24px;
}
.cma-closing-band h2 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.65rem;
  color: #1a2645;
  margin: 0 0 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.3;
}
.cma-closing-band p {
  color: #4a4338;
  font-style: italic;
  font-size: 1rem;
  margin: 0;
  line-height: 1.7;
  max-width: 620px;
  margin: 0 auto;
}

/* ════════════════════════════════════════════════
   TIMELINE
   ════════════════════════════════════════════════ */
.cma-timeline {
  margin: 10px 0 22px;
}
.cma-tl-item {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  background: #ffffff;
  border: 1px solid #ece4d0;
  border-radius: 4px;
  padding: 14px 20px;
  margin-bottom: 10px;
}
.cma-tl-item .tl-num {
  background: #1a2645;
  color: #fdfbf6;
  width: 34px; height: 34px;
  border-radius: 50%;
  font-weight: 700;
  font-size: 0.96rem;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  border: 2px solid #b8960c;
}
.cma-tl-item .tl-desc {
  font-size: 0.92rem;
  line-height: 1.6;
  color: #2a2820;
  padding-top: 6px;
}

/* ════════════════════════════════════════════════
   FINAL CTA / AGENT CARD
   ════════════════════════════════════════════════ */
.cma-final-cta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 22px;
}
.cma-final-cta > div:first-child {
  background: #1a2645;
  color: #fdfbf6;
  border-radius: 4px;
  padding: 26px 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-left: 4px solid #b8960c;
}
.cma-final-cta h3 {
  margin: 0 0 10px;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.3rem;
  color: #fdfbf6;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.cma-final-cta .italic {
  font-size: 0.9rem;
  color: #d8c895;
  font-style: italic;
}
.cma-agent-card {
  background: #ffffff;
  border: 1px solid #ece4d0;
  border-top: 3px solid #b8960c;
  border-radius: 4px;
  padding: 22px 26px;
}
.cma-agent-card .agent-name {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  color: #1a2645;
  margin-bottom: 2px;
  letter-spacing: 0.06em;
}
.cma-agent-card .agent-title {
  color: #b8960c;
  font-size: 0.78rem;
  font-weight: 600;
  margin-bottom: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.cma-agent-card .agent-phone {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.5rem;
  color: #1a2645;
  font-weight: 600;
  margin: 8px 0 10px;
  letter-spacing: 0.02em;
}
.cma-agent-card .agent-contact {
  font-size: 0.86rem;
  color: #4a4338;
  line-height: 1.55;
}
.cma-agent-card .agent-contact.gold {
  color: #b8960c;
  font-weight: 600;
}

.cma-disclaimer {
  margin-top: 28px;
  font-size: 0.72rem;
  color: #8a7855;
  font-style: italic;
  line-height: 1.6;
  text-align: center;
  padding-top: 16px;
  border-top: 1px solid #ece4d0;
}

/* ════════════════════════════════════════════════
   PRINT — letter portrait, premium ivory
   ════════════════════════════════════════════════ */
@media print {
  @page {
    size: letter portrait;
    margin: 0;
  }
  html, body { background: #fdfbf6 !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .adm-header, .adm-page-header, #stepUpload, #stepGenerating, #stepChat, #stepEmail { display: none !important; }
  #cmaOutput { margin: 0; padding: 0; max-width: 100%; }
  .cma-page {
    margin: 0 0 10px;
    border-radius: 0;
    padding: 22px 46px;
    min-height: auto;
    /* Flow + pack: don't force a page break after every section; just avoid
       splitting a section across pages. Short sections share a page, so the
       report comes in well under 10 pages instead of one page per section. */
    page-break-after: auto;
    page-break-inside: avoid;
    box-shadow: none;
    border: none;
  }
  .cma-page:last-child { margin-bottom: 0; }
  /* The cover stays its own page; everything else flows. */
  .cma-page.cma-cover { page-break-after: always; min-height: 9in; }
  .cma-cover-band {
    margin-top: -44px;
    margin-left: -52px;
    margin-right: -52px;
    border-radius: 0;
  }
  .cma-page::before { border-radius: 0; }
  /* Force colors for print */
  .cma-tier.recommended,
  .cma-net-card.featured,
  .cma-fmv-band,
  .cma-strategic,
  .cma-final-cta > div:first-child,
  .cma-table tr.cma-table-avg td,
  .cma-table th,
  .cma-adj-table th,
  .cma-cost-table tr.total td {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
}

/* ════════════════════════════════════════════════
   MOBILE FALLBACK (admin preview)
   ════════════════════════════════════════════════ */
@media (max-width: 720px) {
  #cmaOutput { padding: 0 8px; }
  .cma-page { padding: 32px 26px; }
  .cma-stats-grid { grid-template-columns: 1fr 1fr; }
  .cma-methods-grid { grid-template-columns: 1fr; }
  .cma-net-grid { grid-template-columns: 1fr; }
  .cma-twocol, .cma-about-grid, .cma-phases, .cma-checklist-grid, .cma-final-cta, .cma-cover-tiers { grid-template-columns: 1fr; }
  .cma-cover-address { font-size: 1.85rem; }
  .cma-table { font-size: 0.74rem; }
  .cma-table td, .cma-table th { padding: 7px 8px; }
}
