/* ==========================================================================
   Public profile pages — one professional standard for brokers,
   professionals (includes/app-broker-profile.php, includes/pro-profile-view.php)
   and developers (developer-profile.php):
     cover photo   website ≈ 2.6 : 1 (up to 420 px tall) · phone 2 : 1
     profile photo website 168 px · phone 120 px (overlapping the cover)
     name          website 32 px · phone 24 px, clear secondary text
   ========================================================================== */

/* ---------- broker + professional (abp) ---------- */
html body .abp-cover { aspect-ratio: 2 / 1 !important; height: auto !important; max-height: 420px; }
html body .abp-cover img { object-position: center; }
html body .abp-ava { width: 120px !important; height: 120px !important; margin: -60px auto 0 !important; padding: 4px; box-shadow: 0 10px 28px rgba(15, 23, 42, .2); }
html body .abp-ava-in { font-size: 34px; }
html body .abp-head h1 { font-size: 24px !important; line-height: 1.25; letter-spacing: -.2px; font-weight: 800; margin: 12px 0 4px !important; }
html body .abp-person { font-size: 15px !important; color: #334155; }
html body .abp-loc { font-size: 14px !important; }
html body .abp-tag { font-size: 15px !important; line-height: 1.55; }
html body .abp-chip { font-size: 13px !important; padding: 6px 11px !important; }
html body .abp-stat b { font-size: 18px !important; }
html body .abp-stat span { font-size: 12.5px !important; }
html body .abp-tabs a, html body .abp-tabs button { font-size: 14.5px; }
html body .abp-sec h2, html body .abp-sec h3 { font-size: 18px; }
html body .abp-text, html body .abp-sec p { font-size: 15px; line-height: 1.7; }

@media (min-width: 900px) {
    html body:not(.capacitor-app) .abp-cover { aspect-ratio: 2.6 / 1 !important; height: auto !important; max-height: 420px; border-radius: 22px 22px 0 0; }
    html body:not(.capacitor-app) .abp-head { grid-template-columns: auto minmax(0, 1fr) auto; gap: 24px; padding: 0 32px 26px !important; }
    html body:not(.capacitor-app) .abp-ava { width: 168px !important; height: 168px !important; margin: -84px 0 0 !important; padding: 5px; }
    html body:not(.capacitor-app) .abp-ava-in { font-size: 46px; }
    html body:not(.capacitor-app) .abp-ver { width: 34px; height: 34px; right: 6px; bottom: 8px; }
    html body:not(.capacitor-app) .abp-head h1 { font-size: 32px !important; margin: 18px 0 4px !important; }
    html body:not(.capacitor-app) .abp-person { font-size: 16px !important; }
    html body:not(.capacitor-app) .abp-hbtn { font-size: 15px; padding: 11px 18px; }
}
@media (min-width: 600px) and (max-width: 899px) {
    html body:not(.capacitor-app) .abp-cover { aspect-ratio: 2.4 / 1 !important; }
    html body:not(.capacitor-app) .abp-ava { width: 140px !important; height: 140px !important; margin: -70px auto 0 !important; }
    html body:not(.capacitor-app) .abp-head h1 { font-size: 28px !important; }
}

/* ---------- developer (dvn) — clear cover band + logo overlapping it ---------- */
.dvn-hero.nm-cover2 { padding-top: 18px; background: linear-gradient(100deg, #061633 0%, #0B2350 55%, #123a6e 100%); }
.dvn-hero.nm-cover2 .hv2-container { position: relative; }
.dvn-cover { position: relative; aspect-ratio: 2.6 / 1; max-height: 420px; width: 100%; border-radius: 22px; overflow: hidden; background: #1E3A8A; margin-bottom: -84px; box-shadow: 0 14px 40px rgba(0, 0, 0, .25); }
.dvn-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dvn-cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(2, 10, 30, .35) 0%, rgba(2, 10, 30, 0) 30%, rgba(2, 10, 30, 0) 65%, rgba(2, 10, 30, .45) 100%); pointer-events: none; }
.dvn-hero.nm-cover2 .dvn-hero-top { position: absolute; top: 14px; left: 34px; right: 34px; z-index: 3; margin: 0; }
.dvn-hero.nm-cover2 .dvn-breadcrumb, .dvn-hero.nm-cover2 .dvn-breadcrumb a { color: #fff !important; text-shadow: 0 1px 4px rgba(0, 0, 0, .5); }
.dvn-hero.nm-cover2 .dvn-hero-slogan { display: none; }
.dvn-hero.nm-cover2 .dvn-hero-main { position: relative; z-index: 2; padding-left: 28px; padding-right: 28px; }
.dvn-hero.nm-cover2 .dvn-logo-box { width: 168px !important; height: 168px !important; background: #fff !important; border: 4px solid #fff !important; box-shadow: 0 12px 30px rgba(0, 0, 0, .3); }
.dvn-hero.nm-cover2 .dvn-hero-info { padding-top: 96px; max-width: 760px; }
.dvn-hero .dvn-hero-info h1 { font-size: 32px; letter-spacing: -.3px; }
.dvn-hero .dvn-tagline { font-size: 16px; }
.dvn-hero .dvn-meta-row span { font-size: 14px; }
.dvn-hero .dvn-hero-desc { font-size: 15px; line-height: 1.7; color: rgba(255, 255, 255, .78); }
.dvn-hero:not(.nm-cover2) .dvn-logo-box { width: 168px; height: 168px; }

@media (max-width: 899px) {
    .dvn-cover { aspect-ratio: 2 / 1; margin-bottom: -60px; border-radius: 18px; }
    .dvn-hero.nm-cover2 .dvn-hero-top { left: 16px; right: 16px; top: 10px; }
    .dvn-hero.nm-cover2 .dvn-breadcrumb { display: none; }
    .dvn-hero.nm-cover2 .dvn-hero-main { flex-direction: column; align-items: center; text-align: center; padding-left: 0; padding-right: 0; }
    .dvn-hero.nm-cover2 .dvn-logo-box { width: 120px !important; height: 120px !important; }
    .dvn-hero.nm-cover2 .dvn-hero-info { padding-top: 0; display: flex; flex-direction: column; align-items: center; }
    .dvn-hero .dvn-hero-info h1 { font-size: 24px; justify-content: center; }
    .dvn-hero.nm-cover2 .dvn-meta-row { justify-content: center; }
}
/* app: same cover band, no extra dark top area */
html body.capacitor-app .dvn-hero.nm-cover2 { padding-top: 12px !important; background: linear-gradient(180deg, #061633, #0B2350) !important; }
html body.capacitor-app .dvn-cover { border-radius: 16px; margin-bottom: -56px; }
html body.capacitor-app .dvn-hero.nm-cover2 .dvn-hero-top { top: 10px; right: 12px; left: auto; }
html body.capacitor-app .dvn-hero.nm-cover2 .dvn-logo-box { width: 112px !important; height: 112px !important; }
html body.capacitor-app .dvn-hero .dvn-hero-info h1 { font-size: 24px !important; }

/* #158 Developer cover — Facebook-page style: a clear, medium cover band; the WHOLE photo shows (never cut) —
   if its shape differs, the empty sides are filled with a soft blurred copy of the same photo. The logo sits on
   the cover's bottom-left edge like a profile picture; name & details below the cover. */
.dvn-hero.nm-cover2 { padding-top: 20px; padding-bottom: 8px; }
.dvn-cover { aspect-ratio: 16 / 5 !important; max-height: 400px !important; margin-bottom: -70px !important; border-radius: 18px; background: #0B2350; }
.dvn-cover-bg { position: absolute; inset: -30px; background-size: cover; background-position: center; filter: blur(26px) brightness(.85); transform: scale(1.1); }
.dvn-cover img { position: relative; z-index: 1; object-fit: contain !important; object-position: center; }
.dvn-cover::after { z-index: 2; background: linear-gradient(180deg, rgba(2, 10, 30, .28) 0%, rgba(2, 10, 30, 0) 20%, rgba(2, 10, 30, 0) 100%) !important; }
.dvn-hero.nm-cover2 .dvn-hero-top { z-index: 4; }
@media (min-width: 900px) { .dvn-hero.nm-cover2 .dvn-hero-main { align-items: flex-start; gap: 26px; padding-left: 36px !important; } }
.dvn-hero.nm-cover2 .dvn-hero-info { padding-top: 86px !important; }
.dvn-hero.nm-cover2 .dvn-hero-info h1 { margin-top: 0; }
@media (max-width: 899px) {
    .dvn-cover { aspect-ratio: 16 / 9 !important; margin-bottom: -44px !important; border-radius: 14px; }
    .dvn-hero.nm-cover2 .dvn-logo-box { width: 100px !important; height: 100px !important; }
    .dvn-hero.nm-cover2 .dvn-hero-top { right: 26px !important; left: 26px !important; display: flex; justify-content: flex-end; }
    .dvn-hero.nm-cover2 .dvn-hero-actions { gap: 6px; }
    .dvn-hero.nm-cover2 .dvn-ghost-btn { padding: 6px 11px !important; font-size: 12.5px !important; backdrop-filter: blur(6px); background: rgba(2, 10, 30, .45) !important; }
    .dvn-hero.nm-cover2 .dvn-hero-main { align-items: center !important; }
    .dvn-hero.nm-cover2 .dvn-hero-info { padding-top: 14px !important; }
}
html body.capacitor-app .dvn-cover { aspect-ratio: 16 / 9 !important; margin-bottom: -44px !important; }
html body.capacitor-app .dvn-hero.nm-cover2 .dvn-logo-box { width: 100px !important; height: 100px !important; }
