/* ============================================================
   GWW PROFILE TIER DISTINCTION V1.23.3.29
   Professional + Business
   ============================================================ */

.gww-profile-tier {
    --gww329-blue:#2f5fd7;
    --gww329-blue2:#17478f;
    --gww329-mid-bg:#eaf2fb;
    --gww329-mid-line:#b9cde7;
    --gww329-mid-ink:#14335d;
    --gww329-gold:#d8ab4e;
}

/* ============================================================
   ALL TIERS — HERO CLEANUP
   The full Summary lives in the body. Do not duplicate it in hero.
   ============================================================ */

.gww-profile-tier .gww-hero-summary,
.gww-profile-tier .gww-business-hero-summary {
    display:none !important;
}

/* Remove every known authority/verified badge shell. */
.gww-profile-tier .gww-directory-authority-badge,
.gww-profile-tier .gww-directory-authority-check,
.gww-profile-tier [data-gww-authority-badge],
.gww-profile-tier [data-gww-verified-badge],
.gww-profile-tier [class*="authority-badge"],
.gww-profile-tier [class*="verified-badge"],
.gww-profile-tier [class*="directory-verified"],
.gww-profile-tier .gww-business-verified {
    display:none !important;
}

/* ============================================================
   BASIC — SIMPLE DIRECTORY PRESENTATION
   ============================================================ */

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

    body:has(.gww-profile-tier.gww-tier-basic) .content-site {
        background:#f5f8fc !important;
    }

    body:has(.gww-profile-tier.gww-tier-basic)
    .gww-profile-tier.gww-tier-basic
    :is(.gww-hero-copy,.gww-business-hero-copy) {
        background:#fff !important;
        color:#17304f !important;
        border:1px solid #d9e3ef !important;
        box-shadow:0 7px 18px rgba(15,42,74,.07) !important;
    }

    body:has(.gww-profile-tier.gww-tier-basic)
    .gww-profile-tier.gww-tier-basic
    :is(.gww-hero-copy,.gww-business-hero-copy)
    :is(h1,.gww-location,.gww-business-hero-location) {
        color:#17304f !important;
        text-shadow:none !important;
        -webkit-text-stroke:0 !important;
    }

    body:has(.gww-profile-tier.gww-tier-basic)
    .gww-profile-tier.gww-tier-basic
    :is(.gww-specialty,.gww-business-hero-category) {
        color:#2857bf !important;
    }

    body:has(.gww-profile-tier.gww-tier-basic)
    :is(
        .gww-sidebar-card,
        .gww-editorial-section,
        .gww-business-card,
        .gww-business-section-card,
        .gww-business-media-card,
        .gww-business-contact-card,
        .gww-business-bottom-contact
    ) {
        background:#fff !important;
        border:1px solid #e0e7f0 !important;
        box-shadow:0 5px 15px rgba(21,46,78,.06) !important;
    }
}

/* ============================================================
   INTERMEDIATE — ENHANCED PROFESSIONAL PRESENTATION
   Clearly different from Basic, but still lighter than Advanced.
   ============================================================ */

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

    body:has(.gww-profile-tier.gww-tier-intermediate) .content-site {
        background:
            linear-gradient(
                180deg,
                #e8f1fb 0%,
                #f4f8fd 52%,
                #edf4fb 100%
            )
            !important;
    }

    body:has(.gww-profile-tier.gww-tier-intermediate)
    .gww-profile-tier.gww-tier-intermediate
    :is(.gww-hero,.gww-business-hero) {
        background:
            linear-gradient(
                125deg,
                #082a58 0%,
                #0c4789 58%,
                #1464ae 100%
            )
            !important;
    }

    body:has(.gww-profile-tier.gww-tier-intermediate)
    .gww-profile-tier.gww-tier-intermediate
    :is(.gww-hero-copy,.gww-business-hero-copy) {
        color:#fff !important;
        background:
            linear-gradient(
                135deg,
                rgba(4,28,61,.90),
                rgba(8,62,116,.82)
            )
            !important;
        border:1px solid rgba(255,255,255,.30) !important;
        box-shadow:0 14px 32px rgba(0,31,76,.24) !important;
    }

    body:has(.gww-profile-tier.gww-tier-intermediate)
    .gww-profile-tier.gww-tier-intermediate
    :is(.gww-hero-copy,.gww-business-hero-copy) h1,
    body:has(.gww-profile-tier.gww-tier-intermediate)
    .gww-profile-tier.gww-tier-intermediate
    :is(.gww-location,.gww-business-hero-location) {
        color:#fff !important;
    }

    body:has(.gww-profile-tier.gww-tier-intermediate)
    .gww-profile-tier.gww-tier-intermediate
    :is(.gww-specialty,.gww-business-hero-category) {
        color:#d9ebff !important;
    }

    body:has(.gww-profile-tier.gww-tier-intermediate)
    :is(
        .gww-fact-strip,
        .gww-business-authority-strip,
        .gww-business-info-strip
    ) {
        background:#fff !important;
        border:1px solid var(--gww329-mid-line) !important;
        border-top:4px solid var(--gww329-blue) !important;
        box-shadow:0 10px 24px rgba(21,63,113,.11) !important;
    }

    body:has(.gww-profile-tier.gww-tier-intermediate)
    :is(
        .gww-sidebar-card,
        .gww-editorial-section,
        .gww-business-card,
        .gww-business-section-card,
        .gww-business-media-card,
        .gww-business-contact-card,
        .gww-business-bottom-contact
    ) {
        color:var(--gww329-mid-ink) !important;
        background:
            linear-gradient(
                180deg,
                #ffffff,
                #fbfdff
            )
            !important;
        border:1px solid var(--gww329-mid-line) !important;
        border-top:3px solid #4f78ce !important;
        box-shadow:0 10px 24px rgba(21,63,113,.10) !important;
    }

    body:has(.gww-profile-tier.gww-tier-intermediate)
    :is(
        .gww-sidebar-card,
        .gww-editorial-section,
        .gww-business-card,
        .gww-business-section-card,
        .gww-business-media-card,
        .gww-business-contact-card,
        .gww-business-bottom-contact
    )
    :is(h1,h2,h3) {
        color:#173f78 !important;
    }

    body:has(.gww-profile-tier.gww-tier-intermediate)
    :is(
        .gww-editorial-section.gww-adv212-press,
        .gww-business-card.gww-adv212-press
    ) {
        background:
            linear-gradient(
                135deg,
                #f5f9ff,
                #eaf3ff
            )
            !important;
        border-top:4px solid #2359c6 !important;
    }

    body:has(.gww-profile-tier.gww-tier-intermediate)
    :is(
        .gww-primary-btn,
        .gww-business-primary-btn,
        .gww-business-hero-btn,
        .gww-submit-btn
    ) {
        background:#2f5fd7 !important;
        border-color:#2f5fd7 !important;
        color:#fff !important;
    }
}

/* ============================================================
   ADVANCED — HERO COLUMN REPAIR
   Keep image positioning/scaling system authoritative.
   ============================================================ */

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

    body:has(#gww-advanced-profile-root)
    #gww-advanced-profile-root .gww-photo-card {
        grid-column:1 !important;
        grid-row:1 !important;
        justify-self:start !important;
        align-self:center !important;
    }

    body:has(#gww-advanced-profile-root)
    #gww-advanced-profile-root .gww-hero-copy {
        grid-column:2 !important;
        grid-row:1 !important;
        justify-self:start !important;
        align-self:center !important;
        min-width:0 !important;
        width:min(100%,680px) !important;
        max-width:680px !important;
    }

    body:has(#gww-advanced-profile-root)
    #gww-advanced-profile-root .gww-hero-copy h1 {
        display:block !important;
        width:auto !important;
        max-width:100% !important;
        min-width:0 !important;
        white-space:normal !important;
        word-break:normal !important;
        overflow-wrap:normal !important;
        hyphens:none !important;
        font-size:clamp(40px,4.7vw,60px) !important;
        line-height:1.02 !important;
    }

    body:has(#gww-advanced-profile-root)
    #gww-advanced-profile-root
    :is(.gww-specialty,.gww-location,.gww-share) {
        display:block !important;
        width:auto !important;
        max-width:100% !important;
        white-space:normal !important;
        word-break:normal !important;
        overflow-wrap:normal !important;
    }

    /* Advanced Business gets the same geometry correction. */
    body:has(#gww-advanced-business-root)
    #gww-advanced-business-root .gww-business-logo-card {
        grid-column:1 !important;
        grid-row:1 !important;
        justify-self:start !important;
        align-self:center !important;
    }

    body:has(#gww-advanced-business-root)
    #gww-advanced-business-root .gww-business-hero-copy {
        grid-column:2 !important;
        grid-row:1 !important;
        justify-self:start !important;
        align-self:center !important;
        min-width:0 !important;
        width:min(100%,680px) !important;
        max-width:680px !important;
    }

    body:has(#gww-advanced-business-root)
    #gww-advanced-business-root .gww-business-hero-copy h1 {
        display:block !important;
        width:auto !important;
        max-width:100% !important;
        min-width:0 !important;
        white-space:normal !important;
        word-break:normal !important;
        overflow-wrap:normal !important;
        hyphens:none !important;
        font-size:clamp(40px,4.7vw,60px) !important;
        line-height:1.02 !important;
    }

    body:has(#gww-advanced-business-root)
    #gww-advanced-business-root
    :is(
        .gww-business-hero-category,
        .gww-business-hero-location,
        .gww-business-hero-actions
    ) {
        display:block !important;
        width:auto !important;
        max-width:100% !important;
        white-space:normal !important;
        word-break:normal !important;
        overflow-wrap:normal !important;
    }
}

/* ============================================================
   MOBILE
   ============================================================ */

@media(max-width:820px) {
    .gww-profile-tier .gww-hero-summary,
    .gww-profile-tier .gww-business-hero-summary {
        display:none !important;
    }

    @supports selector(body:has(#gww-advanced-profile-root)) {
        body:has(#gww-advanced-profile-root)
        #gww-advanced-profile-root .gww-hero-copy,
        body:has(#gww-advanced-business-root)
        #gww-advanced-business-root .gww-business-hero-copy {
            grid-column:1 !important;
            grid-row:2 !important;
            width:100% !important;
            max-width:100% !important;
        }
    }
}
