/* ============================================================
   GWW PROFILE TIER CONTENT FINISH V1.23.3.31
   Professional + Business
   ============================================================ */

/* ============================================================
   SUMMARY / COMPANY OVERVIEW
   Same profile data across tiers; only presentation changes.
   Keep the full Summary immediately before Contact on all tiers.
   ============================================================ */

.gww-profile-tier--professional
[data-gww-field-source="professional-summary"] {
    display:block !important;
    visibility:visible !important;
    opacity:1 !important;
    grid-column:1 / -1 !important;
    width:100% !important;
    min-width:0 !important;
    order:90 !important;
}

.gww-profile-tier--business
[data-gww-field-source="business-summary"] {
    display:block !important;
    visibility:visible !important;
    opacity:1 !important;
    grid-column:1 / -1 !important;
    width:100% !important;
    min-width:0 !important;
    order:90 !important;
}

/* Ensure Contact remains after Summary. */
.gww-profile-tier--professional
.gww-contact-form {
    order:100 !important;
}

.gww-profile-tier--business
.gww-business-bottom-contact {
    order:100 !important;
}

/* ============================================================
   BUSINESS PRESS — ROBUST FULL-WIDTH RULES
   Works whether Press is a direct child or wrapped.
   ============================================================ */

.gww-profile-tier--business
.gww-business-three-column
:has(.gww-adv212-press) {
    grid-column:1 / -1 !important;
}

.gww-profile-tier--business
.gww-business-three-column
.gww-adv212-press {
    grid-column:1 / -1 !important;
    width:100% !important;
    min-width:0 !important;
    max-width:none !important;
}

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

.gww-profile-tier--business
.gww-adv212-press
.gww-adv231-business-press-media {
    display:block !important;
    visibility:visible !important;
    opacity:1 !important;
    width:140px !important;
    min-width:140px !important;
    max-width:140px !important;
}

.gww-profile-tier--business
.gww-adv212-press
:is(
    .gww-adv231-business-press-image,
    .gww-adv231-business-press-image-link img,
    .gww-adv231-business-press-media img
) {
    display:block !important;
    visibility:visible !important;
    opacity:1 !important;
    width:140px !important;
    max-width:140px !important;
    height:auto !important;
}

.gww-profile-tier--business
.gww-adv212-press
:is(h1,h2,h3,p,a,strong,span) {
    word-break:normal !important;
    overflow-wrap:normal !important;
    hyphens:none !important;
    max-width:100% !important;
}

/* ============================================================
   BUSINESS ADVANCED HERO
   Long prose is body content, not hero content.
   ============================================================ */

.gww-profile-tier--business
[data-gww-stray-hero-copy="hidden"] {
    display:none !important;
}

/* ============================================================
   BASIC / INTERMEDIATE SUMMARY CARDS
   Keep their own tier identity.
   ============================================================ */

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

    body:has(.gww-profile-tier.gww-tier-basic)
    [data-gww-field-source="professional-summary"],
    body:has(.gww-profile-tier.gww-tier-basic)
    [data-gww-field-source="business-summary"] {
        color:#17304f !important;
        background:#fff !important;
        border:1px solid #e0e7f0 !important;
        box-shadow:0 5px 15px rgba(21,46,78,.06) !important;
    }

    body:has(.gww-profile-tier.gww-tier-intermediate)
    [data-gww-field-source="professional-summary"],
    body:has(.gww-profile-tier.gww-tier-intermediate)
    [data-gww-field-source="business-summary"] {
        color:#14335d !important;
        background:
            linear-gradient(
                180deg,
                #ffffff,
                #fbfdff
            )
            !important;
        border:1px solid #b9cde7 !important;
        border-top:3px solid #4f78ce !important;
        box-shadow:0 10px 24px rgba(21,63,113,.10) !important;
    }
}

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

@media(max-width:720px) {
    .gww-profile-tier--business
    .gww-adv212-press
    .gww-business-press-item {
        grid-template-columns:1fr !important;
    }

    .gww-profile-tier--business
    .gww-adv212-press
    .gww-adv231-business-press-media {
        width:min(180px,100%) !important;
        min-width:0 !important;
        max-width:180px !important;
    }
}
