/* ================================================
   PHOENIX — COMPANY PROFILE
   phi-* class system | --ph-* tokens
   Mirrors press-release's masthead + 2-column phi-grid layout, with one
   added block (Market Reports mentions).
================================================ */

.phoenix-main--company-profile {
    padding-bottom: 56px;
}

.pcp-masthead {
    padding: 96px 0 32px;
}

.pcp-masthead-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.pcp-masthead-logo {
    margin-bottom: 20px;
}

.pcp-masthead-logo img {
    display: block;
    max-height: 48px;
    width: auto;
}

.pcp-eyebrow {
    font-size: 0.6875rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--ph-gold);
    margin-bottom: 14px;
}

.pcp-title {
    font-size: 3rem;
    max-width: 920px;
    margin-bottom: 16px;
}

.pcp-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--ph-text-dim);
    font-size: 0.8125rem;
}

.pcp-meta-link {
    color: var(--ph-gold);
    text-decoration: none;
}

.pcp-meta-link:hover {
    color: var(--ph-text-bright);
}

.pcp-meta-sep {
    color: var(--ph-text-dim);
}

.pcp-content p,
.pcp-content li {
    color: var(--ph-text-muted);
}

/* ================================================
   BODY LAYOUT — same phi-grid as press-release/article/
   industry/segment. Not shared via a base stylesheet -- each
   type's own CSS file owns its copy -- and this one was never
   written, so the whole grid/sidebar/card system below rendered
   completely unstyled (default block stacking, no sidebar card,
   no CTA buttons) despite the template markup being correct.
================================================ */

.phi-body {
    background: var(--ph-bg);
}

.phi-wrap {
    max-width: 1360px;
    margin: 0 auto;
    padding: 0 40px;
}

.phi-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 272px;
    gap: 56px;
    align-items: start;
    padding-top: 52px;
    padding-bottom: 80px;
}

.phi-content-col {
    min-width: 0;
}

/* ---- Overview content typography ---- */

.pcp-content {
    color: var(--ph-text);
    font-size: 1rem;
    line-height: 1.85;
}

.pcp-content h2 {
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--ph-text-bright);
    margin-top: 56px;
    margin-bottom: 16px;
    padding-left: 14px;
    border-left: 3px solid var(--ph-gold);
    line-height: 1.3;
}

.pcp-content h3 {
    font-size: 1.0625rem;
    font-weight: 600;
    color: var(--ph-text-bright);
    margin-top: 34px;
    margin-bottom: 10px;
}

.pcp-content p {
    margin-bottom: 24px;
}

.pcp-content ul,
.pcp-content ol {
    padding-left: 20px;
    margin-bottom: 22px;
}

.pcp-content li {
    margin-bottom: 8px;
    line-height: 1.75;
}

.pcp-content strong,
.pcp-content b {
    color: var(--ph-text-bright);
    font-weight: 600;
}

.pcp-content a {
    color: var(--ph-gold);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.15s ease, color 0.15s ease;
}

.pcp-content a:hover {
    border-bottom-color: var(--ph-gold);
    color: var(--ph-gold-light);
}

.pcp-content img {
    max-width: 100%;
    height: auto;
}

.pcp-content blockquote {
    margin: 32px 0;
    padding: 20px 24px;
    border-left: 3px solid var(--ph-gold);
    background: var(--ph-surface);
    color: var(--ph-text-muted);
    font-style: italic;
    font-size: 1.0625rem;
    line-height: 1.7;
}

/* ================================================
   SIDEBAR CARD — sticky
================================================ */

.phi-sidebar-col {
    position: sticky;
    /* The Phi chat toggle is position:fixed at top:88px / right:16px (76px
       round); pinning the card at 88px put them on top of each other once
       you scrolled. 232px clears the toggle and its "Need help?" hint bubble (88 + 76 + ~72). */
    top: 232px;
    align-self: start; /* required for sticky in grid */
}

.phi-sidebar-card {
    background: var(--ph-surface);
    border: 1px solid var(--ph-border);
    border-top: 2px solid var(--ph-gold);
    padding: 22px 18px 20px;
}

.phi-card-eyebrow {
    font-family: var(--ph-font-mono, 'IBM Plex Mono', monospace);
    font-size: 0.625rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ph-gold);
    margin: 0 0 18px;
}

.phi-card-btn {
    display: block;
    width: 100%;
    padding: 11px 16px;
    background: linear-gradient(135deg, #0f57d0 0%, #1b7fe0 100%);
    color: #ffffff;
    border: none;
    border-radius: 4px;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    cursor: pointer;
    transition: filter 0.15s ease, transform 0.12s ease;
    text-align: center;
    margin-bottom: 10px;
}

.phi-card-btn:hover {
    filter: brightness(1.12);
    transform: translateY(-1px);
}

.phi-card-btn--secondary {
    background: transparent;
    border: 1px solid var(--ph-border);
    color: var(--ph-text-muted);
}

.phi-card-btn--secondary:hover {
    border-color: var(--ph-gold);
    color: var(--ph-gold);
    filter: none;
    background: transparent;
}

.phi-card-divider {
    height: 1px;
    background: var(--ph-border);
    margin: 18px 0;
}

.phi-card-cta-label {
    font-size: 0.75rem;
    color: var(--ph-text-muted);
    line-height: 1.5;
    margin: 0 0 10px;
}

.phi-card-cta-link {
    display: block;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--ph-gold);
    text-decoration: none;
    letter-spacing: 0.02em;
    transition: color 0.15s ease;
}

.phi-card-cta-link:hover {
    color: var(--ph-gold-light);
}

.pcp-mentions {
    margin-top: 36px;
    padding-top: 28px;
    border-top: 1px solid var(--ph-border);
}

.pcp-mentions-list {
    display: grid;
    gap: 12px;
    padding-left: 20px;
}

.pcp-mentions-list a {
    color: var(--ph-gold);
}

/* ---- Jump-to-section nav (Overview / Market Reports) ---- */

body.single-company-profile .phi-section-nav {
    margin-bottom: 24px;
}

body.single-company-profile .phi-section-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

body.single-company-profile .phi-section-nav a {
    display: inline-block;
    padding: 8px 14px;
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    color: var(--ph-text-muted);
    text-decoration: none;
    background: var(--ph-surface);
    border: 1px solid var(--ph-border);
    border-radius: 4px;
    transition: color var(--ph-ease), border-color var(--ph-ease), background var(--ph-ease);
}

body.single-company-profile .phi-section-nav a:hover {
    color: var(--ph-text-bright);
    border-color: var(--ph-gold);
}

/* ================================================
   MARKET PRESENCE — reverse lookup (which reports mention
   this company), thumbnail card grid, full width below the
   editorial grid.
================================================ */

.pcp-presence {
    padding: 8px 0 72px;
}

.pcp-presence-head {
    margin-bottom: 28px;
}

.pcp-presence-sub {
    color: var(--ph-text-muted);
    font-size: 0.9375rem;
    margin-top: 8px;
}

.pcp-presence-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
}

.pcp-presence-card {
    display: flex;
    flex-direction: column;
    background: var(--ph-surface);
    border: 1px solid var(--ph-border);
    text-decoration: none;
    overflow: hidden;
    transition: border-color var(--ph-ease), transform var(--ph-ease);
}

.pcp-presence-card:hover {
    border-color: var(--ph-gold);
    transform: translateY(-2px);
}

.pcp-presence-card--hidden {
    display: none;
}

.pcp-presence-thumb {
    aspect-ratio: 16 / 10;
    background: var(--ph-surface-2);
    overflow: hidden;
}

.pcp-presence-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.pcp-presence-thumb-fallback {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pcp-presence-thumb-fallback span {
    font-family: var(--ph-font-display, 'Cormorant Garamond', serif);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--ph-gold);
}

.pcp-presence-card-body {
    padding: 16px 18px 18px;
}

.pcp-presence-card-meta {
    font-size: 0.6875rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ph-gold);
    margin: 0 0 8px;
}

.pcp-presence-card-title {
    font-size: 0.9375rem;
    font-weight: 600;
    line-height: 1.4;
    color: var(--ph-text-bright);
    margin: 0;
}

.pcp-presence-more {
    display: block;
    margin: 28px auto 0;
    padding: 11px 24px;
    background: transparent;
    border: 1px solid var(--ph-border);
    color: var(--ph-text-muted);
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    cursor: pointer;
    transition: color var(--ph-ease), border-color var(--ph-ease);
}

.pcp-presence-more:hover {
    color: var(--ph-gold);
    border-color: var(--ph-gold);
}

@media (max-width: 900px) {
    .pcp-masthead-inner {
        padding: 0 16px;
    }
    .pcp-title {
        font-size: 2.125rem;
    }
    .phi-grid {
        grid-template-columns: 1fr;
        gap: 0;
        padding-top: 0;
        padding-bottom: 48px;
    }
    .phi-content-col {
        padding-top: 36px;
    }
    .phi-sidebar-col {
        position: static;
        align-self: auto;
        padding: 0 0 8px;
    }
    .phi-wrap {
        padding: 0 16px;
    }
    .pcp-presence-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 14px;
    }
}

/* ---- Anchor jumps: the sticky header (72px) was clipping the heading you
   land on. scroll-margin-top keeps it clear of the header. ---- */

#section-overview,
#section-presence,
.pcp-content h2,
.pcp-content h3 {
    scroll-margin-top: 96px;
}

/* ---- Chart/infographic figures: the generated PNGs have an opaque white
   background, which read as a stray white slab on the dark theme. Present
   them deliberately as light panels with a caption beneath. ---- */

.pcp-content figure {
    margin: 28px 0;
}

.pcp-content figure img {
    background: #ffffff;
    border: 1px solid var(--ph-border);
    border-radius: 6px;
    padding: 12px;
    box-sizing: border-box;
}

.pcp-content figcaption {
    margin-top: 10px;
    font-size: 0.8125rem;
    line-height: 1.5;
    color: var(--ph-text-dim);
}

/* ---- Light-background callouts (inline-styled boxes such as 'Data status'):
   body text defaults to the dark theme's light gray, which is unreadable on
   a pale box. Give anything with an inline light (#f...) background dark
   text and a darker link color. ---- */

.pcp-content div[style*="background:#f"],
.pcp-content div[style*="background: #f"] {
    color: #1f2933;
}

.pcp-content div[style*="background:#f"] p,
.pcp-content div[style*="background:#f"] li,
.pcp-content div[style*="background: #f"] p,
.pcp-content div[style*="background: #f"] li {
    color: #1f2933;
}

.pcp-content div[style*="background:#f"] strong,
.pcp-content div[style*="background: #f"] strong {
    color: #0f1720;
}

.pcp-content div[style*="background:#f"] a,
.pcp-content div[style*="background: #f"] a {
    color: #8a5a00;
    border-bottom-color: #8a5a00;
}
