/* DVP responsive layout overrides. Load this after the other DVP CSS files.
   Split from support-detailed-profile.css. Keep DVP-only styles in these owner files. */


/* --------------------------------------------------------------------------
   Responsive layout
-------------------------------------------------------------------------- */

.dvp-hero-card {
    overflow: hidden;
}

.dvp-hero-card > div:first-child {
    min-width: 0;
    overflow: hidden;
}

.dvp-hero-card h2 {
    max-width: 100%;
    margin-bottom: 8px;
    padding-bottom: 3px;
    line-height: 1.04;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dvp-hero-status {
    justify-self: end;
    max-width: 100%;
}

@media (max-width: 1280px) {
    .dvp-activity-feeds-grid,
    .dvp-referral-network-grid {
        grid-template-columns: 1fr;
    }

    .dvp-activity-feed-scroll,
    .dvp-referral-network-panel.history .dvp-activity-feed-scroll {
        max-height: 250px;
    }
}

@media (max-width: 1180px) {
    .dvp-grid {
        grid-template-columns: 1fr;
    }

    .dvp-stat-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 860px) {
    .dvp-hero-card {
        grid-template-columns: 1fr;
    }

    .dvp-hero-status {
        min-width: 0;
        justify-self: stretch;
    }
}

@media (max-width: 760px) {
    #profile-detail .section-heading,
    #profile-detail .support-view-heading {
        display: block;
        margin-bottom: 10px;
    }

    #profile-detail .support-view-heading {
        padding: 12px;
    }

    #profile-detail .section-heading h2,
    #profile-detail .support-view-heading h2 {
        font-size: clamp(28px, 9vw, 38px);
        line-height: 0.96;
    }

    #profile-detail .section-heading p,
    #profile-detail .support-view-heading p {
        font-size: 12px;
        line-height: 1.4;
    }

    .dvp-shell,
    .dvp-grid,
    .dvp-column,
    .dvp-activity-stack {
        gap: 8px;
    }

    .dvp-card,
    .dvp-hero-card,
    .dvp-stat-card {
        border-radius: 12px !important;
    }

    .dvp-hero-card {
        gap: 9px;
        padding: 12px !important;
    }

    .dvp-hero-card h2 {
        margin-top: 4px;
        margin-bottom: 6px;
        font-size: clamp(24px, 7.8vw, 33px) !important;
        line-height: 1 !important;
        letter-spacing: -0.04em;
    }

    .dvp-hero-status {
        gap: 6px;
    }

    .dvp-status-pill {
        min-height: 30px;
        padding: 2px 8px;
        font-size: 11px;
    }

    .dvp-stat-grid,
    .dvp-dossier-group-body,
    .dvp-recruit-stage-grid,
    .dvp-referral-stage-grid {
        grid-template-columns: 1fr;
    }

    .dvp-platform-strip {
        gap: 4px;
    }

    .dvp-platform-pill {
        min-height: 23px;
        padding: 3px 6px;
        font-size: 9px;
        gap: 4px;
    }

    .dvp-platform-pill img {
        width: 12px;
        height: 12px;
    }
}