/* Public profile page — "Mehrab" design. Loaded only on /profile/*. */
:root {
    --p-ivory: #fbf6ef;
    --p-ivory-2: #f6ede2;
    --p-gold: #c9a24b;
    --p-jaali: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='56' viewBox='0 0 56 56'%3E%3Cg fill='none' stroke='%23b0124a' stroke-opacity='.07' stroke-width='1'%3E%3Cpath d='M28 4l24 24-24 24L4 28z'/%3E%3Ccircle cx='28' cy='28' r='9'/%3E%3Cpath d='M0 0l56 56M56 0L0 56'/%3E%3C/g%3E%3C/svg%3E");
}
:root[data-theme="dark"] { --p-ivory: #1d1219; --p-ivory-2: #24161f; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --p-ivory: #1d1219; --p-ivory-2: #24161f; } }

/* Hero band */
.p-hero { background: var(--p-jaali), linear-gradient(180deg, var(--p-ivory), var(--p-ivory-2)); border-bottom: 1px solid var(--line); padding: 20px 0 40px; }
.p-hero .breadcrumbs { margin-bottom: 20px; }
.p-hero-grid { display: grid; gap: 28px; align-items: center; }
@media (min-width: 860px) { .p-hero-grid { grid-template-columns: 300px 1fr; gap: 48px; } .p-hero { padding-bottom: 56px; } }
@media (min-width: 1100px) { .p-hero-grid { grid-template-columns: 340px 1fr; gap: 64px; } }

.p-portrait { position: relative; width: min(260px, 72vw); justify-self: center; padding: 10px 14px 0 0; }
@media (min-width: 860px) { .p-portrait { width: 100%; } }
.p-arch { position: relative; z-index: 2; aspect-ratio: 4 / 5; border-radius: 999px 999px 24px 24px; overflow: hidden; background: var(--surface-3); border: 7px solid var(--surface); box-shadow: 0 26px 50px -22px rgba(80, 10, 40, .4); }
.p-arch img { width: 100%; height: 100%; object-fit: cover; }
.p-arch button { all: unset; display: block; width: 100%; height: 100%; cursor: zoom-in; }
.p-arch button:focus-visible { box-shadow: var(--focus); }
.p-arch-ring { position: absolute; z-index: 1; inset: 0 0 26px 24px; border: 2px solid var(--p-gold); border-radius: 999px 999px 28px 28px; opacity: .8; }
.p-role { position: absolute; z-index: 3; left: 50%; bottom: -14px; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 8px; padding: 7px 16px; border-radius: 999px; background: var(--brand); color: #fff; font-weight: 700; font-size: .88rem; box-shadow: 0 8px 20px -8px rgba(var(--primary-rgb), .8); white-space: nowrap; }
:root[data-theme="dark"] .p-role { color: #1b0a12; }
.p-photo-note { margin: 26px 0 0; text-align: center; font-size: .84rem; color: var(--ink-500); }
.p-photo-note i { color: var(--brand); }

.p-intro { text-align: center; }
@media (min-width: 860px) { .p-intro { text-align: left; } }
.p-badges { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-bottom: 12px; }
@media (min-width: 860px) { .p-badges { justify-content: flex-start; } }
.p-badges .badge { background: var(--surface); border: 1px solid var(--line); }
.p-badges .badge-gold { background: var(--gold-50); border-color: transparent; }
.p-badges .badge-success { background: var(--success-50); border-color: transparent; }
.p-name { font-family: var(--font-display); font-weight: 600; font-size: clamp(2rem, 1.4rem + 2.6vw, 3.3rem); letter-spacing: -0.02em; line-height: 1.08; margin: 0 0 8px; }
.p-sub { display: flex; flex-wrap: wrap; gap: 6px 18px; justify-content: center; font-size: 1.08rem; color: var(--ink-700); font-weight: 600; margin: 0 0 18px; }
.p-sub i { color: var(--brand); }
@media (min-width: 860px) { .p-sub { justify-content: flex-start; } }
.p-facts { list-style: none; margin: 0 0 24px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
@media (min-width: 860px) { .p-facts { justify-content: flex-start; } }
.p-facts li { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: .9rem; font-weight: 600; color: var(--ink-800); }
.p-facts i { color: var(--brand); }
.p-cta { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
@media (min-width: 860px) { .p-cta { justify-content: flex-start; } }
.p-cta .btn-icon { width: 52px; }
.p-cta [aria-pressed="true"] { color: var(--brand); border-color: var(--brand-200); }
@media (max-width: 480px) { .p-cta > .btn:not(.btn-icon) { flex: 1 1 100%; } }
.p-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; justify-content: center; margin: 20px 0 0; font-size: .85rem; color: var(--ink-500); }
.p-meta i { margin-right: 4px; }
@media (min-width: 860px) { .p-meta { justify-content: flex-start; } }
.p-report { color: var(--ink-500); font-weight: 600; font-size: .85rem; }
.p-report:hover { color: var(--danger); }

/* Body */
.p-body { display: grid; gap: 20px; padding-top: 32px; padding-bottom: 40px; }
@media (min-width: 1000px) { .p-body { grid-template-columns: minmax(0, 1fr) 340px; gap: 28px; align-items: start; } .p-side { position: sticky; top: calc(var(--header-h) + 20px); } }
.p-main, .p-side { display: grid; gap: 20px; min-width: 0; }
.p-card { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 22px 24px; }
@media (max-width: 560px) { .p-card { padding: 18px; border-radius: 18px; } }
.p-h2 { font-family: var(--font-display); font-weight: 600; font-size: 1.35rem; letter-spacing: -0.01em; display: flex; align-items: center; gap: 12px; margin: 0 0 16px; }
.p-h2 i { width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; background: var(--brand-50); color: var(--brand); font-size: .95rem; flex-shrink: 0; }
.p-related .p-h2, .section-tight .p-h2 { margin: 0; }
.p-h3 { font-size: 1rem; display: flex; align-items: center; gap: 10px; margin: 0 0 12px; }
.p-h3 i { color: var(--brand); }

.p-about { background: linear-gradient(180deg, var(--surface), var(--surface)) padding-box, linear-gradient(135deg, var(--brand-200), var(--p-gold)) border-box; border: 1.5px solid transparent; }
.p-quote { position: relative; margin: 0; padding: 4px 0 0 30px; font-size: 1.06rem; line-height: 1.8; color: var(--ink-800); }
.p-quote::before { content: "\201C"; position: absolute; left: -4px; top: -14px; font-family: var(--font-display); font-size: 3.4rem; color: var(--p-gold); line-height: 1; }
.p-summary p { color: var(--ink-700); line-height: 1.75; }

.p-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); gap: 10px; margin: 0; }
.p-grid div { padding: 12px 14px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); min-width: 0; }
.p-grid dt { font-size: .74rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-500); }
.p-grid dd { margin: 3px 0 0; font-weight: 600; color: var(--ink-900); overflow-wrap: anywhere; }
.p-note { margin: 14px 0 0; padding: 12px 14px; border-radius: 14px; background: var(--brand-50); color: var(--ink-800); border-left: 3px solid var(--brand); }

.p-glance { background: var(--p-jaali), var(--surface); }
.p-glance dl, .p-looking dl { margin: 0; display: grid; }
.p-glance dl div, .p-looking dl div { display: flex; justify-content: space-between; gap: 14px; padding: 9px 0; border-bottom: 1px dashed var(--line); font-size: .93rem; }
.p-glance dl div:last-child, .p-looking dl div:last-child { border-bottom: 0; }
.p-glance dt, .p-looking dt { color: var(--ink-500); }
.p-glance dd, .p-looking dd { margin: 0; font-weight: 700; color: var(--ink-900); text-align: right; overflow-wrap: anywhere; }
.p-phone { font-size: 1.2rem; font-weight: 800; }
.p-locked { margin: 0 0 6px; font-weight: 600; color: var(--ink-800); }
.p-locked i { color: var(--brand); margin-right: 4px; }
.p-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.p-links a { display: flex; justify-content: space-between; align-items: center; padding: 9px 12px; border-radius: 12px; color: var(--ink-800); font-weight: 600; font-size: .92rem; }
.p-links a i { color: var(--ink-300); font-size: .8rem; transition: transform .15s; }
.p-links a:hover { background: var(--surface-2); color: var(--brand); text-decoration: none; }
.p-links a:hover i { color: var(--brand); transform: translateX(3px); }
.p-safety { background: var(--surface-2); }
.p-safety ul { margin: 0; padding-left: 18px; color: var(--ink-500); font-size: .9rem; display: grid; gap: 6px; }
.p-back-chat { margin-bottom: 14px; }
