/**
 * FXD Firm Heading — [prs_firm_heading]
 * Extracted from an inline <style> block (was echoed on wp_head
 * for every page load, whether it was needed or not).
 * Now a real stylesheet, enqueued only when it renders.
 */


/* Breadcrumbs */
.prs-fh-wrap .rank-math-breadcrumb {
    display: block;
    padding: 12px 24px 0;
}
.prs-fh-wrap .rank-math-breadcrumb p {
    margin: 0;
    font-size: 11px;
    color: var(--fxd-text-muted);
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
    line-height: 1.5;
}
.prs-fh-wrap .rank-math-breadcrumb a {
    color: var(--fxd-text-muted);
    text-decoration: none;
    transition: color 0.15s;
}
.prs-fh-wrap .rank-math-breadcrumb a:hover {
    color: var(--fxd-text);
}
.prs-fh-wrap .rank-math-breadcrumb .separator {
    color: var(--fxd-border);
    margin: 0 1px;
}
.prs-fh-wrap .rank-math-breadcrumb span:last-child {
    color: var(--fxd-text-muted);
    font-weight: 600;
}

/* ── PRS Prop Firm Heading ── */
.prs-fh-wrap {
    font-family: "Outfit", "DM Sans", sans-serif;
    background: var(--fxd-surface);
    border: 1px solid var(--fxd-border);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 32px;
}

/* Hero row */
.prs-fh-hero {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 22px 24px 18px;
    border-bottom: 1px solid var(--fxd-border);
}
.prs-fh-logo {
    width: 80px;
    height: 80px;
    border-radius: 14px;
    background: var(--fxd-surface-alt);
    border: 1px solid var(--fxd-border);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
}
.prs-fh-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 0px;
    box-sizing: border-box;
}
.prs-fh-initials {
    font-size: 20px;
    font-weight: 700;
    color: var(--fxd-text-muted);
}
.prs-fh-hero-text { flex: 1; min-width: 0; }
.prs-fh-title {
    margin: 0 0 4px;
    font-size: 22px;
    font-weight: 800;
    color: var(--fxd-text);
    line-height: 1.2;
}
.prs-fh-sub {
    margin: 0 0 10px;
    font-size: 12px;
    color: var(--fxd-text-muted);
    line-height: 1.5;
}

/* Badges row */
.prs-fh-badges {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}
.prs-fh-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 10px;
    font-weight: 600;
    padding: 3px 9px;
    border-radius: 20px;
    white-space: nowrap;
    letter-spacing: 0.3px;
}
.prs-fh-badge--blue {
    background: rgba(74,144,217,0.10);
    color: var(--fxd-info);
    border: 1px solid rgba(74,144,217,0.25);
}
.prs-fh-badge--green {
    background: rgba(46,204,138,0.10);
    color: var(--fxd-positive);
    border: 1px solid rgba(46,204,138,0.25);
}
.prs-fh-badge--silver {
    background: var(--fxd-surface-alt);
    color: var(--fxd-text-muted);
    border: 1px solid var(--fxd-border);
}

/* Byline row */
.prs-fh-byline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    padding: 11px 24px;
    background: var(--fxd-surface-alt);
    border-bottom: 1px solid var(--fxd-border);
}
.prs-fh-byline-left {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}
.prs-fh-byline-icon {
    display: flex;
    align-items: center;
    color: var(--fxd-text-muted);
}
.prs-fh-byline-label { font-size: 11px; color: var(--fxd-text-muted); }
.prs-fh-author {
    font-size: 11px;
    font-weight: 700;
    color: var(--fxd-text-muted);
    text-decoration: none;
}
.prs-fh-author:hover { color: var(--fxd-primary); }

/* Author hover card */
.prs-fh-author-hover {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.prs-fh-byline-photo-link {
    display: flex;
    line-height: 0;
}
.prs-fh-byline-photo {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}
.prs-fh-author-popover {
    position: fixed;
    z-index: 9999;
    display: flex;
    gap: 12px;
    width: 300px;
    max-width: 80vw;
    background: var(--fxd-surface);
    border: 1px solid var(--fxd-border);
    border-radius: 10px;
    padding: 14px;
    box-shadow: 0 8px 24px rgba(0,0,0,.16);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-4px);
    transition: opacity .15s ease, transform .15s ease, visibility .15s;
    pointer-events: none;
}
.prs-fh-author-popover.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}
.prs-fh-author-popover__side {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}
.prs-fh-author-popover__avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}
.prs-fh-author-popover__linkedin {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--fxd-surface-alt);
    color: var(--fxd-primary);
    transition: background .15s;
}
.prs-fh-author-popover__linkedin:hover {
    background: var(--fxd-primary);
    color: #fff;
}
.prs-fh-author-popover__body { min-width: 0; }
.prs-fh-author-popover__name {
    font-size: 13px;
    font-weight: 700;
    color: var(--fxd-text);
}
.prs-fh-author-popover__title {
    font-size: 11px;
    color: var(--fxd-primary);
    margin-top: 1px;
}
.prs-fh-author-popover__bio {
    font-size: 12px;
    line-height: 1.55;
    color: var(--fxd-text-muted);
    margin: 6px 0 0;
}
.prs-fh-author-popover__stats {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid var(--fxd-border);
}
.prs-fh-author-popover__stat {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    color: var(--fxd-text);
}
.prs-fh-author-popover__stat svg { color: var(--fxd-primary); flex-shrink: 0; }

.prs-fh-byline-sep { font-size: 11px; color: var(--fxd-border); }
.prs-fh-date { font-size: 11px; color: var(--fxd-text-muted); }

/* Fact-check badge */
.prs-fh-factcheck {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 10px;
    color: var(--fxd-positive);
    background: rgba(46,204,138,0.08);
    border: 1px solid rgba(46,204,138,0.2);
    border-radius: 20px;
    padding: 3px 10px;
    white-space: nowrap;
}
.prs-fh-factcheck strong { font-weight: 700; }

/* Stats bar */
.prs-fh-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
}
.prs-fh-stat {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 18px 24px;
    border-right: 1px solid var(--fxd-border);
}
.prs-fh-stat:last-child { border-right: none; }
.prs-fh-stat__label {
    font-size: 10px;
    color: var(--fxd-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    line-height: 1.3;
}
.prs-fh-stat__v {
    font-size: 15px;
    font-weight: 800;
    color: var(--fxd-text);
    line-height: 1;
    font-family: "Syne", "Outfit", sans-serif;
}
.prs-fh-stat__v--accent {
    color: var(--fxd-primary);
}

/* Risk disclaimer */
.prs-fh-risk {
    margin: 0;
    padding: 10px 24px;
    font-size: 10px;
    color: var(--fxd-text-muted);
    background: var(--fxd-surface-alt);
    border-top: 1px solid var(--fxd-border);
    line-height: 1.6;
}

/* Responsive */
@media (max-width: 600px) {
    .prs-fh-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    .prs-fh-stat:nth-child(2) { border-right: none; }
    .prs-fh-stat:nth-child(1),
    .prs-fh-stat:nth-child(2) { border-bottom: 1px solid var(--fxd-border); }
    .prs-fh-hero { padding: 18px 16px 14px; }
    .prs-fh-byline { padding: 10px 16px; }
    .prs-fh-stat { padding: 14px 16px; }
    .prs-fh-risk { padding: 10px 16px; }
}
