/* ============================================================
   RealEstate Hup — Guides + editorial (blog) styles.
   Tokens only (--rh-*). Depends on app.css. No hardcoded palette.
============================================================ */

/* ---- breadcrumb (self-contained; mirrors directory.css) ---- */
.rh-crumbs{display:flex;flex-wrap:wrap;gap:6px;align-items:center;color:var(--rh-muted);font-size:.82rem;margin-bottom:16px}
.rh-crumbs a{color:var(--rh-muted)}
.rh-crumbs a:hover{color:var(--rh-primary)}
.rh-crumbs span[aria-hidden]{opacity:.6}

/* ============ GUIDES HUB — hero ============ */
.rh-ghub-hero{background:var(--rh-bg-soft);border-bottom:1px solid var(--rh-line)}
.rh-ghub-hero__in{padding-block:44px 36px}
.rh-ghub-hero .rh-eyebrow{display:block;margin-bottom:8px}
.rh-ghub-hero h1{font-size:clamp(1.7rem,3vw,2.5rem)}
.rh-ghub-hero p{color:var(--rh-ink-2);margin-top:12px;max-width:64ch}

/* hub search */
.rh-ghub-search{margin-top:22px;display:flex;gap:10px;max-width:560px}
.rh-ghub-search__field{display:flex;align-items:center;gap:10px;flex:1;background:#fff;border:1px solid var(--rh-line-2);border-radius:var(--rh-radius-btn);padding:0 14px;min-width:0}
.rh-ghub-search__field .rh-icn{color:var(--rh-muted);flex:none}
.rh-ghub-search input{border:0;background:transparent;font-size:1rem;color:var(--rh-ink);font-family:inherit;outline:none;width:100%;padding:12px 0}
.rh-ghub-search input::placeholder{color:var(--rh-muted)}

/* category nav */
.rh-ghub-cats{display:flex;gap:8px;flex-wrap:wrap;margin-top:20px}
.rh-gcat-pill{border:1px solid var(--rh-line-2);background:#fff;border-radius:var(--rh-radius-pill);padding:8px 16px;font-weight:700;font-size:.86rem;color:var(--rh-ink-2);transition:border-color .15s var(--rh-ease),color .15s,background .15s}
.rh-gcat-pill:hover{border-color:var(--rh-primary);color:var(--rh-primary)}
.rh-gcat-pill[aria-current="true"]{background:var(--rh-primary);border-color:var(--rh-primary);color:#fff}

/* ============ FEATURED GUIDE ============ */
.rh-gfeat{display:grid;grid-template-columns:1.15fr 1fr;gap:0;border:1px solid var(--rh-line);border-radius:var(--rh-radius);overflow:hidden;background:#fff;transition:box-shadow .16s var(--rh-ease),transform .16s}
.rh-gfeat:hover{box-shadow:var(--rh-shadow-lg);transform:translateY(-2px)}
.rh-gfeat__media{position:relative;min-height:280px;aspect-ratio:auto;overflow:hidden}
.rh-gfeat__body{padding:clamp(20px,3vw,34px);display:flex;flex-direction:column;justify-content:center;gap:12px}
.rh-gfeat__body .rh-gcat-tag{align-self:flex-start}
.rh-gfeat__body h2{font-size:clamp(1.35rem,2.4vw,2rem);line-height:1.2}
.rh-gfeat__body p{color:var(--rh-ink-2);font-size:1rem;line-height:1.55}
.rh-gfeat__meta{display:flex;align-items:center;gap:14px;color:var(--rh-ink-2);font-size:.85rem;font-weight:600}
.rh-gfeat__meta span{display:inline-flex;align-items:center;gap:6px}

/* ============ GUIDE CARDS (editorial) ============ */
.rh-gcards{display:grid;grid-template-columns:repeat(3,1fr);gap:22px}
.rh-gcard{background:#fff;border:1px solid var(--rh-line);border-radius:var(--rh-radius);overflow:hidden;display:flex;flex-direction:column;transition:transform .16s var(--rh-ease),box-shadow .16s}
.rh-gcard:hover{transform:translateY(-4px);box-shadow:var(--rh-shadow-lg)}
.rh-gcard__media{position:relative;aspect-ratio:16/10;overflow:hidden;background:var(--rh-bg-soft)}
.rh-gcard__media img{width:100%;height:100%;object-fit:cover;transition:transform .4s var(--rh-ease)}
.rh-gcard:hover .rh-gcard__media img{transform:scale(1.05)}
.rh-gcard__body{padding:18px;display:flex;flex-direction:column;gap:9px;flex:1}
.rh-gcat-tag{display:inline-flex;align-items:center;align-self:flex-start;background:var(--rh-primary-050);color:var(--rh-primary-700);font-weight:700;font-size:.72rem;letter-spacing:.03em;text-transform:uppercase;padding:5px 11px;border-radius:var(--rh-radius-pill)}
.rh-gcard__title{font-size:1.1rem;font-weight:800;line-height:1.25;color:var(--rh-ink)}
.rh-gcard__excerpt{color:var(--rh-ink-2);font-size:.9rem;line-height:1.55;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.rh-gcard__foot{margin-top:auto;padding-top:12px;display:flex;align-items:center;justify-content:space-between;gap:10px;border-top:1px solid var(--rh-line)}
.rh-gcard__read{display:inline-flex;align-items:center;gap:6px;color:var(--rh-ink-2);font-size:.8rem;font-weight:600}
.rh-gcard__cta{display:inline-flex;align-items:center;gap:5px;color:var(--rh-primary);font-weight:700;font-size:.88rem}
.rh-gcard:hover .rh-gcard__cta{text-decoration:underline}

/* ---- branded fallback media (no external image needed) ---- */
.rh-gmedia--fallback{display:grid;place-items:center;padding:18px;text-align:center;background:var(--rh-primary-050)}
.rh-gmedia--fallback .rh-gmedia__mark{width:52px;height:52px;margin-bottom:12px}
.rh-gmedia--fallback .rh-gmedia__cat{font-weight:800;font-size:.82rem;letter-spacing:.06em;text-transform:uppercase}
.rh-gmedia--v1{background:var(--rh-primary-050);color:var(--rh-primary-700)}
.rh-gmedia--v2{background:var(--rh-primary-700);color:#fff}
.rh-gmedia--v3{background:var(--rh-primary);color:#fff}

/* ============ LATEST / SECTION HEAD ============ */
.rh-gsec-head{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;margin-bottom:22px;flex-wrap:wrap}
.rh-gsec-head h2{font-size:clamp(1.3rem,2.2vw,1.85rem)}
.rh-gempty{border:1px dashed var(--rh-line-2);border-radius:var(--rh-radius);padding:40px 24px;text-align:center;background:var(--rh-bg-soft)}
.rh-gempty h3{font-size:1.1rem;margin-bottom:8px}
.rh-gempty p{color:var(--rh-ink-2);max-width:48ch;margin-inline:auto}

/* pagination (reuses WP markup) */
.rh-gpag{margin-top:36px}
.rh-gpag .nav-links,.rh-gpag .page-numbers{display:inline-flex}
.rh-gpag .nav-links{flex-wrap:wrap;gap:8px;justify-content:center;width:100%}
.rh-gpag .page-numbers{align-items:center;justify-content:center;min-width:42px;height:42px;padding:0 12px;border:1px solid var(--rh-line-2);border-radius:var(--rh-radius-btn);font-weight:700;color:var(--rh-ink-2);background:#fff}
.rh-gpag a.page-numbers:hover{border-color:var(--rh-primary);color:var(--rh-primary)}
.rh-gpag .page-numbers.current{background:var(--rh-primary);border-color:var(--rh-primary);color:#fff}

/* ============ SINGLE ARTICLE ============ */
.rh-article{max-width:760px;margin-inline:auto;padding-inline:var(--rh-gutter)}
.rh-article__head{padding-block:36px 8px}
.rh-article__head .rh-gcat-tag{margin-bottom:14px}
.rh-article__head h1{font-size:clamp(1.8rem,3.6vw,2.6rem);line-height:1.18}
.rh-article__meta{display:flex;flex-wrap:wrap;align-items:center;gap:16px;margin-top:16px;color:var(--rh-ink-2);font-size:.88rem;font-weight:600}
.rh-article__meta span{display:inline-flex;align-items:center;gap:6px}
.rh-article__hero{margin-top:24px;border-radius:var(--rh-radius);overflow:hidden;aspect-ratio:16/9;background:var(--rh-bg-soft)}
.rh-article__hero img{width:100%;height:100%;object-fit:cover}

/* prose typography for the_content */
.rh-prose{margin-top:28px;color:var(--rh-ink);font-size:1.05rem;line-height:1.7}
.rh-prose > *+*{margin-top:18px}
.rh-prose h2{font-size:clamp(1.3rem,2.2vw,1.6rem);line-height:1.25;margin-top:36px}
.rh-prose h3{font-size:1.18rem;line-height:1.3;margin-top:28px}
.rh-prose p{color:var(--rh-ink-2)}
.rh-prose a{color:var(--rh-primary);font-weight:600;text-decoration:underline;text-underline-offset:2px}
.rh-prose a:hover{color:var(--rh-primary-600)}
.rh-prose ul,.rh-prose ol{padding-inline-start:22px;color:var(--rh-ink-2)}
.rh-prose li{margin-top:8px}
.rh-prose li::marker{color:var(--rh-primary)}
.rh-prose strong{color:var(--rh-ink);font-weight:700}
.rh-prose blockquote{border-inline-start:3px solid var(--rh-primary);background:var(--rh-bg-soft);padding:14px 18px;border-radius:0 var(--rh-radius-sm) var(--rh-radius-sm) 0;color:var(--rh-ink-2)}

/* article lead CTA */
.rh-article__cta{margin-top:40px;background:var(--rh-primary-050);border:1px solid var(--rh-line);border-radius:var(--rh-radius);padding:clamp(20px,3vw,28px);display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:18px}
.rh-article__cta h3{font-size:1.15rem;color:var(--rh-primary-700)}
.rh-article__cta p{color:var(--rh-ink-2);margin-top:6px;max-width:46ch;font-size:.92rem}
.rh-article__cta-actions{display:flex;gap:10px;flex-wrap:wrap}

/* article footer disclosure note */
.rh-article__note{margin-top:22px;color:var(--rh-muted);font-size:.82rem;line-height:1.6;border-top:1px solid var(--rh-line);padding-top:18px}

/* related guides */
.rh-related{border-top:1px solid var(--rh-line);margin-top:48px;padding-top:40px}
.rh-related h2{font-size:1.4rem;margin-bottom:22px}

/* ============ RESPONSIVE ============ */
@media(max-width:1100px){.rh-gcards{grid-template-columns:repeat(3,1fr)}}
@media(max-width:900px){
  .rh-gfeat{grid-template-columns:1fr}
  .rh-gfeat__media{min-height:220px;aspect-ratio:16/9}
  .rh-gcards{grid-template-columns:repeat(2,1fr);gap:16px}
}
@media(max-width:560px){
  .rh-gcards{grid-template-columns:1fr}
  .rh-ghub-search{flex-direction:column}
  .rh-ghub-search .rh-btn{width:100%;justify-content:center}
  .rh-article__cta{flex-direction:column;align-items:flex-start}
}
