/* HouseHackers — Quarterly Market Pulse Report (print / PDF-ready) */

.report { max-width: 900px; margin: 0 auto; padding: 0 var(--page-x); }

/* toolbar (screen only) */
.rp-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding: 20px 0; margin-bottom: 8px;
}
.rp-bar .back { font: 600 14px/1 var(--sans); color: var(--muted); }
.rp-bar .back:hover { color: var(--forest); }

/* cover / masthead */
.rp-cover {
  background: var(--forest);
  color: var(--cream-50);
  border-radius: var(--r-panel);
  padding: 56px 48px;
  position: relative;
  overflow: hidden;
}
.rp-cover .kicker { color: var(--sand-warm); margin-bottom: 18px; }
.rp-cover h1 { font: 400 52px/1.06 var(--serif); letter-spacing: -0.015em; margin: 0; color: var(--cream-50); }
.rp-cover .sub { font: italic 400 20px/1.4 var(--serif); color: rgba(247, 242, 231, .8); margin: 16px 0 0; }
.rp-cover__meta {
  display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 32px;
  border-top: 1px solid var(--on-forest-line); padding-top: 22px;
  font: 400 13.5px/1.4 var(--sans); color: rgba(247, 242, 231, .72);
}
.rp-cover__meta b { color: var(--cream-50); font-weight: 600; }

/* section shell */
.rp-sec { padding: 44px 0; border-bottom: 1px solid var(--line-12); }
.rp-sec:last-of-type { border-bottom: none; }
.rp-sec > .kicker { margin-bottom: 12px; }
.rp-sec h2 { font: 400 32px/1.15 var(--serif); letter-spacing: -0.01em; color: var(--ink); margin: 0 0 18px; }
.rp-sec h3 { font: 400 22px/1.25 var(--serif); color: var(--ink); margin: 28px 0 10px; }
.rp-sec p { font: 400 16px/1.7 var(--sans); color: var(--ink); margin: 14px 0 0; max-width: 68ch; }
.rp-sec p.muted { color: var(--muted); }

/* key takeaways */
.rp-takeaways { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 20px; }
.rp-take {
  background: var(--cream-25); border: 1px solid var(--line-12); border-radius: var(--r-card); padding: 22px;
}
.rp-take .t { font: 600 11px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--terracotta); margin-bottom: 8px; }
.rp-take .v { font: 400 21px/1.25 var(--serif); color: var(--ink); }
.rp-take .d { font: 400 13.5px/1.55 var(--sans); color: var(--muted); margin-top: 6px; }

/* ranking table */
.rp-table-wrap { overflow-x: auto; margin-top: 20px; }
.rp-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; min-width: 640px; }
.rp-table th {
  text-align: left; font: 600 10.5px/1.2 var(--sans); letter-spacing: .1em; text-transform: uppercase;
  color: var(--faint); padding: 0 14px 10px 0; border-bottom: 1px solid var(--line-18);
}
.rp-table th.num, .rp-table td.num { text-align: right; padding-right: 0; }
.rp-table td { font: 400 14.5px/1.4 var(--sans); color: var(--ink); padding: 12px 14px 12px 0; border-bottom: 1px solid var(--line-10); }
.rp-table td.mkt { font-weight: 600; }
.rp-table tr:hover td { background: rgba(42, 36, 26, .02); }

/* tier pill */
.tier { font: 600 10px/1 var(--sans); letter-spacing: .06em; text-transform: uppercase; padding: 4px 9px; border-radius: var(--r-pill); white-space: nowrap; }
.tier--strong { background: rgba(33, 64, 44, .1); color: var(--forest); }
.tier--good   { background: rgba(217, 201, 163, .3); color: #8A6D2E; }
.tier--watch  { background: rgba(188, 95, 56, .12); color: var(--danger); }

/* per-market profiles */
.rp-profiles { display: flex; flex-direction: column; gap: 18px; margin-top: 20px; }
.rp-profile { background: var(--cream-25); border: 1px solid var(--line-12); border-radius: var(--r-card); padding: 26px; }
.rp-profile__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.rp-profile__name { font: 400 24px/1.1 var(--serif); color: var(--ink); }
.rp-profile__score { font: 600 13px/1 var(--sans); color: var(--faint); }
.rp-profile__score b { color: var(--forest); font-size: 18px; }
.rp-snapshot { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 18px 0; border-top: 1px solid var(--line-10); padding-top: 16px; }
.rp-snapshot dt { font: 600 10px/1.2 var(--sans); letter-spacing: .09em; text-transform: uppercase; color: var(--faint); margin-bottom: 3px; }
.rp-snapshot dd { font: 600 14px/1.3 var(--sans); color: var(--ink); margin: 0; }
.rp-example {
  background: var(--cream-50); border: 1px solid var(--line-10); border-radius: 12px; padding: 16px 18px;
  font: 400 14px/1.6 var(--sans); color: var(--muted);
}
.rp-example b { color: var(--ink); }
.rp-example .big { color: var(--forest); font-weight: 600; }
.rp-note { font: 400 14px/1.65 var(--sans); color: var(--ink); margin-top: 14px; }
.rp-note--pulse { color: var(--muted); }
.rp-tip { display: flex; gap: 10px; margin-top: 12px; font: 400 13.5px/1.6 var(--sans); color: var(--ink); }
.rp-tip .ic { color: var(--terracotta); font-weight: 700; flex: none; }

/* CTA block */
.rp-cta {
  background: var(--forest); border-radius: var(--r-panel); padding: 36px; text-align: center; margin-top: 8px;
}
.rp-cta h2 { color: var(--cream-50); font: 400 30px/1.15 var(--serif); margin: 0; }
.rp-cta p { color: var(--on-forest-70); font: 400 15.5px/1.6 var(--sans); margin: 12px auto 24px; max-width: 52ch; }
.rp-cta__row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

.rp-disc { font: 400 12.5px/1.7 var(--sans); color: var(--faint); }
.rp-disc strong { color: var(--muted); }

@media (max-width: 640px) {
  .rp-cover { padding: 36px 24px; }
  .rp-cover h1 { font-size: 34px; }
  .rp-sec h2 { font-size: 26px; }
  .rp-takeaways { grid-template-columns: 1fr; }
  .rp-snapshot { grid-template-columns: 1fr 1fr; }
}

/* ===== print / PDF ===== */
@media print {
  :root { --page-x: 0px; }
  body { background: #fff; }
  .nav, .nav-toggle, .drawer, .footer, .rp-bar, .rp-cta__row .btn-secondary { display: none !important; }
  .page { max-width: none; }
  .report { max-width: none; padding: 0; }
  .rp-cover { background: #16301E !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; border-radius: 0; }
  .rp-profile, .rp-take, .rp-example { break-inside: avoid; }
  .rp-sec { break-inside: avoid-page; }
  .rp-cta { background: #21402C !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  a[href]:after { content: ""; }
  .tier, .rp-cover, .rp-cta { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
