/* ==========================================================================
   "Good company" section: live audience map, yearly total, top countries.
   Shares tokens, pins, label and caption styles with hero.css; data comes
   from world-map.js. Root font-size is 62.5% (1rem = 10px).
   ========================================================================== */

.pb-world {
    position: relative;
    z-index: 1;
    width: 100%;
    background: var(--pbh-bg);
    color: var(--pbh-ink);
    font-family: var(--pbh-sans);
}

.pb-world-inner {
    max-width: 1440px;
    margin: 0 auto;
    padding: clamp(40px, 5vw, 56px) clamp(20px, 5.6vw, 80px) clamp(28px, 3vw, 36px);
}

/* ---------- Heading + total ---------- */

.pb-world-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px 48px;
    margin-bottom: 24px;
}

.pb-world-eyebrow {
    margin: 0 0 12px;
    color: var(--pbh-pink);
    font-size: 1.1rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.pb-world-title {
    margin: 0;
    color: var(--pbh-ink);
    font-family: var(--mukta-mahee);
    font-size: clamp(3rem, 3.4vw, 4.8rem);
    font-weight: 500;
    line-height: 1.1;
    letter-spacing: -0.01em;
}

.pb-world-stat {
    display: flex;
    align-items: center;
    gap: 18px;
    margin: 0;
    /* Lines up with the country list column on wide screens. */
    min-width: min(100%, 380px);
}

.pb-world-total {
    color: var(--pbh-pink);
    font-family: var(--mukta-mahee);
    font-size: clamp(4.4rem, 4.4vw, 6.4rem);
    font-weight: 500;
    line-height: 1;
}

.pb-world-stat-text {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.pb-world-stat-text strong {
    font-size: 1.5rem;
    font-weight: 600;
}

.pb-world-stat-text span {
    color: var(--pbh-muted);
    font-size: 1.2rem;
}

.pb-world-stat-text .pb-world-live {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-top: 2px;
    color: var(--pbh-pink);
    font-weight: 500;
}

.pb-world-live::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--pbh-pink);
}

.pb-world [hidden] {
    display: none;
}

/* ---------- Map + list ---------- */

.pb-world-body {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 380px);
    gap: clamp(28px, 3vw, 40px);
    align-items: start;
}

.pb-world-mapcol {
    min-width: 0;
}

.pb-world-map {
    position: relative;
    width: 100%;
    height: clamp(260px, 21vw, 340px);
    margin: 0;
    overflow: hidden;
    border-radius: 16px;
    background: var(--pbh-card);
}

.pb-world-credit {
    position: absolute;
    z-index: 3;
    right: 12px;
    bottom: 10px;
    margin: 0;
    color: #a59ca0;
    font-size: 0.95rem;
}

.pb-world-note {
    margin: 10px 0 0;
    color: var(--pbh-muted);
    font-size: 1.1rem;
    line-height: 1.5;
}

.pb-world-table {
    min-width: 0;
}

.pb-world-table-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
}

.pb-world-table-head h3 {
    margin: 0;
    font-size: 1.4rem;
    font-weight: 600;
}

.pb-world-table-head span {
    color: var(--pbh-muted);
    font-size: 1.1rem;
}

.pb-world-cols {
    display: flex;
    justify-content: space-between;
    margin: 12px 0 4px;
    color: var(--pbh-muted);
    font-size: 0.95rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.pb-world-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.pb-world-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: baseline;
    gap: 4px 12px;
    padding: 10px 0 6px;
    font-size: 1.3rem;
}

.pb-world-row strong {
    font-size: 1.4rem;
    font-weight: 600;
}

/* Width (share of the top country) is set inline by world-map.js. */
.pb-world-bar {
    grid-column: 1 / -1;
    height: 2px;
    border-radius: 2px;
    background: #e3a3c3;
}

.pb-world-row:first-child .pb-world-bar {
    background: var(--pbh-pink);
}

.pb-world-empty {
    padding: 14px 0;
    color: var(--pbh-muted);
    font-size: 1.3rem;
}

/* ---------- Footer notes ---------- */

.pb-world-foot {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 6px 24px;
    margin-top: 24px;
    padding-top: 14px;
    border-top: 1px solid var(--pbh-line);
    color: var(--pbh-muted);
    font-size: 1.1rem;
    line-height: 1.5;
}

.pb-world-foot p {
    margin: 0;
}

.pb-world-foot:not(:has(p:not([hidden]))) {
    display: none;
}

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

@media only screen and (max-width: 1024px) {
    .pb-world-inner {
        max-width: 720px;
    }

    .pb-world-head {
        align-items: flex-start;
    }

    .pb-world-body {
        grid-template-columns: minmax(0, 1fr);
    }

    .pb-world-map {
        height: auto;
        aspect-ratio: 16 / 9;
    }
}

@media only screen and (max-width: 540px) {
    .pb-world-inner {
        padding: 36px 16px 28px;
    }

    .pb-world-head {
        flex-direction: column;
        gap: 18px;
    }

    .pb-world-stat {
        min-width: 0;
        gap: 14px;
    }

    .pb-world-map {
        aspect-ratio: 16 / 10;
        border-radius: 12px;
    }

    .pb-world-foot {
        flex-direction: column;
    }
}
