/* ============================================================
   GWW PROFILE FINAL CLEANUP V1.23.3.30
   Professional + Business
   ============================================================ */

/* ---------- HERO HEIGHTS AFTER LONG COPY IS REMOVED ---------- */

.gww-profile-tier.gww-tier-basic
:is(.gww-hero,.gww-business-hero) {
    min-height:300px !important;
}

.gww-profile-tier.gww-tier-intermediate
:is(.gww-hero,.gww-business-hero) {
    min-height:330px !important;
}

.gww-profile-tier.gww-tier-advanced
:is(.gww-hero,.gww-business-hero) {
    min-height:360px !important;
}

/* Empty authority/badge remnants must occupy no grid space. */
.gww-profile-tier
[data-gww-empty-hero-shell="hidden"] {
    display:none !important;
    width:0 !important;
    height:0 !important;
    min-width:0 !important;
    min-height:0 !important;
    margin:0 !important;
    padding:0 !important;
    border:0 !important;
}

/* Hero copy itself is the only title/content panel. */
.gww-profile-tier
:is(.gww-hero-copy,.gww-business-hero-copy) {
    box-sizing:border-box !important;
    overflow:visible !important;
}

/* ---------- BUSINESS PRESS: BASIC + INTERMEDIATE ---------- */

@supports selector(body:has(.gww-profile-tier--business.gww-tier-basic)) {

    body:has(.gww-profile-tier--business.gww-tier-basic)
    .gww-business-three-column,
    body:has(.gww-profile-tier--business.gww-tier-intermediate)
    .gww-business-three-column {
        display:grid !important;
        grid-template-columns:repeat(2,minmax(0,1fr)) !important;
        gap:18px !important;
        align-items:stretch !important;
    }

    body:has(.gww-profile-tier--business.gww-tier-basic)
    .gww-business-three-column > .gww-adv212-press,
    body:has(.gww-profile-tier--business.gww-tier-intermediate)
    .gww-business-three-column > .gww-adv212-press {
        grid-column:1 / -1 !important;
        width:100% !important;
        min-width:0 !important;
    }

    body:has(.gww-profile-tier--business.gww-tier-basic)
    .gww-adv212-press .gww-business-press-item,
    body:has(.gww-profile-tier--business.gww-tier-intermediate)
    .gww-adv212-press .gww-business-press-item {
        display:grid !important;
        grid-template-columns:120px minmax(0,1fr) !important;
        gap:14px !important;
        width:100% !important;
        min-width:0 !important;
        align-items:start !important;
    }

    body:has(.gww-profile-tier--business.gww-tier-basic)
    .gww-adv212-press
    :is(
        .gww-adv231-business-press-media,
        .gww-adv231-business-press-image,
        .gww-adv231-business-press-image-link
    ),
    body:has(.gww-profile-tier--business.gww-tier-intermediate)
    .gww-adv212-press
    :is(
        .gww-adv231-business-press-media,
        .gww-adv231-business-press-image,
        .gww-adv231-business-press-image-link
    ) {
        width:120px !important;
        max-width:120px !important;
    }
}

/* ---------- ADVANCED BUSINESS READABILITY ---------- */

@supports selector(body:has(#gww-advanced-business-root)) {

    body:has(#gww-advanced-business-root)
    [data-gww-field-source="business-summary"],
    body:has(#gww-advanced-business-root)
    [data-gww-field-source="business-summary"] * {
        color:#edf3f8 !important;
        opacity:1 !important;
    }

    body:has(#gww-advanced-business-root)
    .gww-business-authority-icon {
        color:#f3d48a !important;
        background:rgba(216,171,78,.12) !important;
        border:1px solid rgba(216,171,78,.25) !important;
    }

    body:has(#gww-advanced-business-root)
    .gww-business-authority-icon
    :is(i,svg) {
        color:#f3d48a !important;
        fill:currentColor !important;
    }
}

/* ---------- ADVANCED PROFESSIONAL/BUSINESS HERO TEXT ---------- */

@supports selector(body:has(#gww-advanced-profile-root)) {

    body:has(#gww-advanced-profile-root)
    #gww-advanced-profile-root .gww-hero-copy h1,
    body:has(#gww-advanced-business-root)
    #gww-advanced-business-root .gww-business-hero-copy h1 {
        white-space:normal !important;
        word-break:normal !important;
        overflow-wrap:normal !important;
        hyphens:none !important;
        width:auto !important;
        max-width:100% !important;
        line-height:1.02 !important;
    }

    body:has(#gww-advanced-profile-root)
    #gww-advanced-profile-root
    :is(.gww-specialty,.gww-location,.gww-share),
    body:has(#gww-advanced-business-root)
    #gww-advanced-business-root
    :is(
        .gww-business-hero-category,
        .gww-business-hero-location,
        .gww-business-hero-actions
    ) {
        position:static !important;
        transform:none !important;
        float:none !important;
        width:auto !important;
        max-width:100% !important;
    }
}

/* ---------- MOBILE ---------- */

@media(max-width:820px) {
    .gww-profile-tier
    :is(.gww-hero-inner,.gww-business-hero-grid) {
        grid-template-columns:1fr !important;
    }

    .gww-profile-tier
    :is(.gww-photo-card,.gww-business-logo-card) {
        grid-column:1 !important;
        grid-row:1 !important;
        justify-self:start !important;
    }

    .gww-profile-tier
    :is(.gww-hero-copy,.gww-business-hero-copy) {
        grid-column:1 !important;
        grid-row:2 !important;
        justify-self:start !important;
        width:100% !important;
        max-width:100% !important;
    }

    .gww-business-three-column {
        grid-template-columns:1fr !important;
    }

    .gww-business-three-column > .gww-adv212-press {
        grid-column:1 !important;
    }
}
