/* Core layout tokens and reusable homepage components. */
.pb-buyers-shell {
    --pb-blue: #1769f5;
    --pb-blue-dark: #0b3f91;
    --pb-blue-soft: #eaf2ff;
    --pb-border: #dfe6f1;
    --pb-text: #182235;
    --pb-muted: #6f7d91;
    --pb-bg: #f5f7fb;
    --pb-card: #ffffff;
    --pb-shadow: 0 10px 30px rgba(15, 38, 75, 0.07);
    --pb-radius: 14px;
    color: var(--pb-text);
    background: var(--pb-bg);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    min-height: 100vh;
}

.pb-buyers-shell *,
.pb-buyers-shell *::before,
.pb-buyers-shell *::after {
    box-sizing: border-box;
}

.pb-buyers-page {
    max-width: 1620px;
    margin: 0 auto;
    padding: 10px 18px 28px;
}

.pb-buyers-dashboard-grid {
    display: grid;
    grid-template-columns: minmax(250px, 360px) minmax(460px, 1fr) minmax(315px, 420px);
    gap: 14px;
    align-items: start;
    margin-top: 12px;
}

.pb-buyers-dashboard-grid--no-left.pb-buyers-dashboard-grid--has-main.pb-buyers-dashboard-grid--has-right {
    grid-template-columns: minmax(460px, 1fr) minmax(315px, 420px);
}

.pb-buyers-dashboard-grid--has-left.pb-buyers-dashboard-grid--has-main.pb-buyers-dashboard-grid--no-right {
    grid-template-columns: minmax(250px, 360px) minmax(460px, 1fr);
}

.pb-buyers-dashboard-grid--no-left.pb-buyers-dashboard-grid--has-main.pb-buyers-dashboard-grid--no-right {
    grid-template-columns: minmax(0, 1fr);
}

.pb-buyers-dashboard-grid--has-left.pb-buyers-dashboard-grid--no-main.pb-buyers-dashboard-grid--has-right {
    grid-template-columns: minmax(250px, 360px) minmax(315px, 420px);
}

.pb-buyers-left-rail,
.pb-buyers-main-feed,
.pb-buyers-right-rail {
    min-width: 0;
}

.pb-buyers-main-feed,
.pb-buyers-right-rail {
    display: grid;
    gap: 14px;
}

.pb-buyers-card {
    background: var(--pb-card);
    border: 1px solid var(--pb-border);
    border-radius: var(--pb-radius);
    box-shadow: var(--pb-shadow);
    overflow: hidden;
}

.pb-buyers-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 15px 18px 10px;
}

.pb-buyers-section-head h2 {
    margin: 0;
    color: var(--pb-text);
    font-size: 18px;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.pb-buyers-section-head a {
    color: var(--pb-blue);
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.pb-buyers-avatar {
    align-items: center;
    background: linear-gradient(135deg, #dfe8f8, #f8fbff);
    border: 1px solid rgba(23, 105, 245, 0.22);
    border-radius: 50%;
    color: var(--pb-blue-dark);
    display: inline-flex;
    flex: 0 0 auto;
    font-size: 11px;
    font-weight: 800;
    height: 38px;
    justify-content: center;
    width: 38px;
}

.pb-buyers-avatar img {
    border-radius: inherit;
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.pb-buyers-avatar[data-avatar-index="1"] { background: linear-gradient(135deg, #eef4ff, #d7e8ff); }
.pb-buyers-avatar[data-avatar-index="2"] { background: linear-gradient(135deg, #f0f6ff, #e2ecf8); }
.pb-buyers-avatar[data-avatar-index="3"] { background: linear-gradient(135deg, #e6f3ff, #dfe6ff); }
.pb-buyers-avatar[data-avatar-index="4"] { background: linear-gradient(135deg, #f5f7fb, #dcecff); }
.pb-buyers-avatar[data-avatar-index="5"] { background: linear-gradient(135deg, #e8f0fb, #f7fbff); }
.pb-buyers-avatar[data-avatar-index="6"] { background: linear-gradient(135deg, #edf6ff, #e1e7f4); }
.pb-buyers-avatar[data-avatar-index="7"] { background: linear-gradient(135deg, #f6fbff, #dae9ff); }
.pb-buyers-avatar[data-avatar-index="8"] { background: linear-gradient(135deg, #eef2fb, #dbeeff); }
.pb-buyers-avatar[data-avatar-index="9"] { background: linear-gradient(135deg, #e9f2ff, #f6f8fd); }

.pb-buyers-btn,
.pb-buyers-primary-btn,
.pb-buyers-outline-btn,
.pb-buyers-icon-btn {
    border: 0;
    border-radius: 10px;
    cursor: pointer;
    font: inherit;
    font-weight: 800;
    transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}

.pb-buyers-primary-btn {
    background: var(--pb-blue);
    color: #fff;
    padding: 10px 22px;
}

.pb-buyers-outline-btn {
    background: #fff;
    border: 1px solid rgba(23, 105, 245, 0.45);
    color: var(--pb-blue);
    padding: 8px 16px;
}

.pb-buyers-icon-btn {
    align-items: center;
    background: #fff;
    border: 1px solid rgba(23, 105, 245, 0.25);
    color: var(--pb-blue);
    display: inline-flex;
    height: 36px;
    justify-content: center;
    width: 36px;
}

.pb-buyers-primary-btn:hover,
.pb-buyers-outline-btn:hover,
.pb-buyers-icon-btn:hover,
.pb-buyers-btn:hover {
    transform: translateY(-1px);
}

.pb-buyers-muted {
    color: var(--pb-muted);
    font-size: 13px;
    white-space: nowrap;
}

.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
}

@media (max-width: 1180px) {
    .pb-buyers-dashboard-grid {
        grid-template-columns: minmax(240px, 330px) minmax(420px, 1fr);
    }

    .pb-buyers-right-rail {
        grid-column: 1 / -1;
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 860px) {
    .pb-buyers-page {
        padding: 10px;
    }

    .pb-buyers-dashboard-grid,
    .pb-buyers-right-rail {
        grid-template-columns: 1fr;
    }

    .pb-buyers-section-head h2 {
        font-size: 16px;
    }
}

/* Hides the active theme header, footer, and page title on PB app pages. */
body.pb-buyers-homepage-page header.site-header,
body.pb-buyers-profile-page header.site-header,
body.pb-buyers-homepage-page #masthead,
body.pb-buyers-profile-page #masthead,
body.pb-buyers-homepage-page .site-header,
body.pb-buyers-profile-page .site-header,
body.pb-buyers-homepage-page .main-header-bar,
body.pb-buyers-profile-page .main-header-bar,
body.pb-buyers-homepage-page .ast-primary-header-bar,
body.pb-buyers-profile-page .ast-primary-header-bar,
body.pb-buyers-homepage-page .ast-mobile-header-wrap,
body.pb-buyers-profile-page .ast-mobile-header-wrap,
body.pb-buyers-homepage-page footer.site-footer,
body.pb-buyers-profile-page footer.site-footer,
body.pb-buyers-homepage-page #colophon,
body.pb-buyers-profile-page #colophon,
body.pb-buyers-homepage-page .site-footer,
body.pb-buyers-profile-page .site-footer {
    display: none !important;
}

body.pb-buyers-messaging-page header.site-header,
body.pb-buyers-messaging-page #masthead,
body.pb-buyers-messaging-page .site-header,
body.pb-buyers-messaging-page .main-header-bar,
body.pb-buyers-messaging-page .ast-primary-header-bar,
body.pb-buyers-messaging-page .ast-mobile-header-wrap,
body.pb-buyers-messaging-page footer.site-footer,
body.pb-buyers-messaging-page #colophon,
body.pb-buyers-messaging-page .site-footer {
    display: none !important;
}

/* Removes the page title area so the marketplace layout begins at the top. */
body.pb-buyers-homepage-page .entry-header,
body.pb-buyers-profile-page .entry-header,
body.pb-buyers-homepage-page .page-title,
body.pb-buyers-profile-page .page-title,
body.pb-buyers-homepage-page .entry-title,
body.pb-buyers-profile-page .entry-title,
body.pb-buyers-homepage-page .wp-block-post-title,
body.pb-buyers-profile-page .wp-block-post-title,
body.pb-buyers-homepage-page .ast-archive-description,
body.pb-buyers-profile-page .ast-archive-description {
    display: none !important;
}

body.pb-buyers-messaging-page .entry-header,
body.pb-buyers-messaging-page .page-title,
body.pb-buyers-messaging-page .entry-title,
body.pb-buyers-messaging-page .wp-block-post-title,
body.pb-buyers-messaging-page .ast-archive-description {
    display: none !important;
}

/* Expands the shortcode page to a full-width app-style canvas. */
body.pb-buyers-homepage-page #content,
body.pb-buyers-profile-page #content,
body.pb-buyers-homepage-page .site-content,
body.pb-buyers-profile-page .site-content,
body.pb-buyers-homepage-page .site-content .ast-container,
body.pb-buyers-profile-page .site-content .ast-container,
body.pb-buyers-homepage-page .ast-container,
body.pb-buyers-profile-page .ast-container,
body.pb-buyers-homepage-page #primary,
body.pb-buyers-profile-page #primary,
body.pb-buyers-homepage-page .content-area,
body.pb-buyers-profile-page .content-area,
body.pb-buyers-homepage-page .entry-content,
body.pb-buyers-profile-page .entry-content {
    margin: 0 !important;
    max-width: none !important;
    padding: 0 !important;
    width: 100% !important;
}

body.pb-buyers-messaging-page #content,
body.pb-buyers-messaging-page .site-content,
body.pb-buyers-messaging-page .site-content .ast-container,
body.pb-buyers-messaging-page .ast-container,
body.pb-buyers-messaging-page #primary,
body.pb-buyers-messaging-page .content-area,
body.pb-buyers-messaging-page .entry-content {
    margin: 0 !important;
    max-width: none !important;
    padding: 0 !important;
    width: 100% !important;
}

/* Prevents block/theme wrappers from constraining the homepage module. */
body.pb-buyers-homepage-page .entry-content > *,
body.pb-buyers-profile-page .entry-content > *,
body.pb-buyers-homepage-page .wp-site-blocks > *,
body.pb-buyers-profile-page .wp-site-blocks > * {
    max-width: none !important;
}

body.pb-buyers-messaging-page .entry-content > *,
body.pb-buyers-messaging-page .wp-site-blocks > * {
    max-width: none !important;
}

/* Shared public marketplace header used across PB public pages. */
/* Future note: the public header is intentionally full-bleed so PB app pages match the seller profile/header design; do not add a max-width to .pb-public-nav. */
.pb-public-nav {
    align-items: center;
    background: rgba(3, 18, 31, 0.98);
    border-bottom: 1px solid rgba(214, 184, 109, 0.22);
    box-sizing: border-box;
    color: #f7f2e7;
    display: grid;
    gap: clamp(10px, 1.15vw, 16px);
    grid-template-columns: minmax(210px, 250px) minmax(0, 1fr) minmax(190px, 270px) auto;
    min-height: 88px;
    margin: 0;
    max-width: none;
    overflow: visible;
    padding: 0 clamp(16px, 2vw, 30px);
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 30;
}

.pb-public-brand,
.pb-public-links a,
.pb-public-menu-trigger,
.pb-public-icons a {
    color: #f7f2e7;
    text-decoration: none;
}

.pb-public-brand {
    align-items: center;
    display: flex;
    gap: 14px;
    min-width: 0;
}

.pb-public-brand-mark {
    align-items: center;
    border: 1px solid rgba(214, 184, 109, 0.72);
    border-radius: 50%;
    color: #e2c77f;
    display: inline-flex;
    font-family: Georgia, serif;
    font-size: 20px;
    height: 50px;
    justify-content: center;
    width: 50px;
}

.pb-public-brand strong {
    color: #4d95dd;
    display: block;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 20px;
    letter-spacing: 0.08em;
    line-height: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
}


.pb-public-brand-copy {
    display: block;
    min-width: 0;
}

.pb-public-brand-logo {
    display: block;
    max-height: 30px;
    max-width: 188px;
    object-fit: contain;
    object-position: left center;
    width: auto;
}

.pb-public-brand small {
    color: #e2c77f;
    display: block;
    font-size: 11px;
    letter-spacing: 0.24em;
    margin-top: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
}

.pb-public-links {
    align-items: center;
    display: flex;
    gap: clamp(10px, 1.05vw, 20px);
    justify-content: center;
    min-width: 0;
}

.pb-public-links a,
.pb-public-menu-trigger,
.pb-public-icons a {
    font-size: 12px;
    letter-spacing: 0.065em;
    text-transform: uppercase;
    white-space: nowrap;
}

.pb-public-links .pb-public-live-updates-link,
.pb-buyers-seller-homepage-page .pb-public-links .pb-public-live-updates-link,
.pb-seller-home-page .pb-public-links .pb-public-live-updates-link {
    align-items: center;
    background: linear-gradient(135deg, #f8e8a8 0%, #d6b86d 100%) !important;
    border: 1px solid rgba(255, 244, 188, 0.72) !important;
    border-radius: 999px;
    box-shadow: 0 8px 22px rgba(214, 184, 109, 0.22);
    color: #061d31 !important;
    display: inline-flex;
    font-weight: 800;
    gap: 7px;
    letter-spacing: 0.08em !important;
    line-height: 1;
    padding: 9px 14px;
    text-shadow: none;
}

.pb-public-links .pb-public-live-updates-link::before,
.pb-buyers-seller-homepage-page .pb-public-links .pb-public-live-updates-link::before,
.pb-seller-home-page .pb-public-links .pb-public-live-updates-link::before {
    background: #1f8f66;
    border-radius: 999px;
    box-shadow: 0 0 0 3px rgba(31, 143, 102, 0.18);
    content: "";
    display: inline-block;
    height: 7px;
    width: 7px;
}

.pb-public-links .pb-public-live-updates-link:hover,
.pb-public-links .pb-public-live-updates-link:focus-visible,
.pb-public-links .pb-public-live-updates-link[aria-current="page"],
.pb-buyers-seller-homepage-page .pb-public-links .pb-public-live-updates-link:hover,
.pb-buyers-seller-homepage-page .pb-public-links .pb-public-live-updates-link:focus-visible,
.pb-buyers-seller-homepage-page .pb-public-links .pb-public-live-updates-link[aria-current="page"],
.pb-seller-home-page .pb-public-links .pb-public-live-updates-link:hover,
.pb-seller-home-page .pb-public-links .pb-public-live-updates-link:focus-visible,
.pb-seller-home-page .pb-public-links .pb-public-live-updates-link[aria-current="page"] {
    background: linear-gradient(135deg, #fff2bd 0%, #e2c77f 100%) !important;
    color: #021320 !important;
    transform: translateY(-1px);
}

.pb-public-menu {
    align-items: center;
    display: inline-flex;
    position: relative;
}

.pb-public-menu::after {
    content: "";
    display: block;
    height: 14px;
    left: -10px;
    position: absolute;
    right: -10px;
    top: 100%;
    z-index: 150;
}

.pb-public-menu-trigger {
    align-items: center;
    background: transparent;
    border: 0;
    color: #f7f2e7;
    cursor: pointer;
    display: inline-flex;
    font-family: inherit;
    font-weight: 700;
    gap: 6px;
    line-height: 1.2;
    margin: 0;
    padding: 12px 0;
}

.pb-public-menu-trigger span {
    color: #e2c77f;
    font-size: 12px;
    line-height: 1;
}

.pb-public-menu-trigger:focus-visible,
.pb-public-submenu a:focus-visible {
    outline: 2px solid rgba(226, 199, 127, 0.85);
    outline-offset: 3px;
}

.pb-public-submenu {
    background: rgba(6, 29, 49, 0.98);
    border: 1px solid rgba(214, 184, 109, 0.28);
    border-radius: 14px;
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.22);
    display: grid;
    gap: 2px;
    left: 50%;
    min-width: 164px;
    opacity: 0;
    padding: 8px;
    pointer-events: none;
    position: absolute;
    top: calc(100% + 10px);
    transform: translate(-50%, -6px);
    transition: opacity 0.16s ease, transform 0.16s ease, visibility 0.16s ease;
    visibility: hidden;
    z-index: 200;
}

.pb-public-menu:hover .pb-public-submenu,
.pb-public-menu:focus-within .pb-public-submenu,
.pb-public-menu.is-open .pb-public-submenu {
    opacity: 1;
    pointer-events: auto;
    transform: translate(-50%, 0);
    visibility: visible;
}

.pb-public-submenu a {
    border-radius: 10px;
    color: #f7f2e7;
    display: block;
    font-size: 12px;
    letter-spacing: 0.06em;
    padding: 10px 12px;
    text-align: left;
}

.pb-public-submenu a:hover,
.pb-public-submenu a:focus {
    background: rgba(77, 149, 221, 0.16);
    color: #ffffff;
}

.pb-public-search {
    align-items: center;
    border: 1px solid rgba(234, 242, 251, 0.22);
    border-radius: 999px;
    display: flex;
    height: 46px;
    min-width: 0;
    padding: 0 12px 0 18px;
}

.pb-public-search input {
    background: transparent;
    border: 0;
    color: #f7f2e7;
    flex: 1;
    font-size: 14px;
    min-width: 0;
    outline: 0;
}

.pb-public-search input::placeholder {
    color: rgba(247, 242, 231, 0.72);
}


.pb-public-search button {
    background: transparent;
    border: 0;
    color: #f7f2e7;
    cursor: pointer;
    font-size: 25px;
}

.pb-public-icons {
    align-items: center;
    display: flex;
    gap: 13px;
    justify-content: flex-end;
}

.pb-public-action {
    position: relative;
}

.pb-public-action em {
    align-items: center;
    background: #c7a25a;
    border-radius: 50%;
    color: #061d31;
    display: inline-flex;
    font-size: 11px;
    font-style: normal;
    height: 18px;
    justify-content: center;
    min-width: 18px;
    padding: 0 5px;
    position: absolute;
    right: -11px;
    top: -10px;
}

@media (max-width: 1520px) {
    .pb-public-nav {
        grid-template-columns: minmax(206px, 248px) minmax(0, 1fr) minmax(180px, 240px);
    }

    .pb-public-icons {
        display: none;
    }

    .pb-public-links {
        gap: clamp(8px, 0.9vw, 16px);
    }
}

@media (max-width: 1280px) {
    .pb-public-nav {
        grid-template-columns: minmax(210px, 250px) minmax(0, 1fr);
    }

    .pb-public-search {
        display: none;
    }
}

@media (max-width: 980px) {
    .pb-public-nav {
        grid-template-columns: 1fr;
        padding: 16px;
        position: static;
    }

    .pb-public-links {
        flex-wrap: wrap;
        gap: 16px;
        justify-content: flex-start;
    }

    .pb-public-submenu {
        left: 0;
        top: calc(100% + 6px);
        transform: translate(0, -6px);
    }

    .pb-public-menu:hover .pb-public-submenu,
    .pb-public-menu:focus-within .pb-public-submenu,
    .pb-public-menu.is-open .pb-public-submenu {
        transform: translate(0, 0);
    }
}

/* Moderator Homepage frontend shell controls. */
body.pb-buyers-moderator-homepage-page header.site-header,
body.pb-buyers-moderator-homepage-page #masthead,
body.pb-buyers-moderator-homepage-page .site-header,
body.pb-buyers-moderator-homepage-page .main-header-bar,
body.pb-buyers-moderator-homepage-page .ast-primary-header-bar,
body.pb-buyers-moderator-homepage-page .ast-mobile-header-wrap,
body.pb-buyers-moderator-homepage-page footer.site-footer,
body.pb-buyers-moderator-homepage-page #colophon,
body.pb-buyers-moderator-homepage-page .site-footer,
body.pb-buyers-moderator-homepage-page .entry-header,
body.pb-buyers-moderator-homepage-page .page-title,
body.pb-buyers-moderator-homepage-page .entry-title,
body.pb-buyers-moderator-homepage-page .wp-block-post-title,
body.pb-buyers-moderator-homepage-page .ast-archive-description {
    display: none !important;
}

body.pb-buyers-moderator-homepage-page #content,
body.pb-buyers-moderator-homepage-page .site-content,
body.pb-buyers-moderator-homepage-page .site-content .ast-container,
body.pb-buyers-moderator-homepage-page .ast-container,
body.pb-buyers-moderator-homepage-page #primary,
body.pb-buyers-moderator-homepage-page .content-area,
body.pb-buyers-moderator-homepage-page .entry-content {
    margin: 0 !important;
    max-width: none !important;
    padding: 0 !important;
    width: 100% !important;
}

body.pb-buyers-moderator-homepage-page .entry-content > *,
body.pb-buyers-moderator-homepage-page .wp-site-blocks > * {
    max-width: none !important;
}

/* 2257 seller access gate: public header links are visible but unavailable until approval. */
.pb-public-nav.pb-public-nav--2257-locked {
    opacity: 1;
}

.pb-public-nav--2257-locked .pb-public-brand,
.pb-public-nav--2257-locked .pb-public-links > *,
.pb-public-nav--2257-locked .pb-public-search,
.pb-public-nav--2257-locked .pb-public-icons a:not(.pb-public-logout) {
    filter: grayscale(1);
    opacity: 0.38;
    pointer-events: none;
    user-select: none;
}

.pb-public-nav--2257-locked .pb-public-links .pb-public-live-updates-link,
.pb-public-nav--2257-locked .pb-public-links .pb-public-live-updates-link:hover,
.pb-public-nav--2257-locked .pb-public-links .pb-public-live-updates-link:focus-visible {
    background: rgba(247, 242, 231, 0.12) !important;
    border-color: rgba(247, 242, 231, 0.18) !important;
    box-shadow: none;
    color: rgba(247, 242, 231, 0.72) !important;
    transform: none;
}

.pb-public-nav--2257-locked .pb-public-menu-trigger,
.pb-public-nav--2257-locked .pb-public-search input,
.pb-public-nav--2257-locked .pb-public-search button {
    cursor: not-allowed;
}

.pb-public-nav--2257-locked .pb-public-search input:disabled,
.pb-public-nav--2257-locked .pb-public-search button:disabled {
    opacity: 1;
}


/* Locked seller registration overlay for the universal header navigation. */
.pb-public-nav--2257-locked .pb-public-links {
    border-radius: 999px;
    isolation: isolate;
    min-height: 44px;
    padding: 4px 10px;
    position: relative;
}

.pb-public-nav--2257-locked .pb-public-links::before {
    background: linear-gradient(135deg, rgba(255, 250, 240, 0.34), rgba(214, 184, 109, 0.20));
    border: 1px solid rgba(255, 250, 240, 0.30);
    border-radius: 999px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.24);
    content: "";
    inset: 0;
    pointer-events: none;
    position: absolute;
    z-index: 5;
}

@supports ((-webkit-backdrop-filter: blur(10px)) or (backdrop-filter: blur(10px))) {
    .pb-public-nav--2257-locked .pb-public-links::before {
        -webkit-backdrop-filter: blur(10px) saturate(130%);
        backdrop-filter: blur(10px) saturate(130%);
    }
}

.pb-public-nav--2257-locked .pb-public-links::after {
    align-items: center;
    color: #fffaf0;
    content: "Site will be available after registration is completed and approved.";
    display: flex;
    font-size: 11px;
    font-weight: 900;
    inset: 0;
    justify-content: center;
    letter-spacing: 0.05em;
    line-height: 1.2;
    padding: 0 16px;
    pointer-events: none;
    position: absolute;
    text-align: center;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.45);
    text-transform: uppercase;
    z-index: 6;
}

/* Logged-out public-policy header gate: legal pages remain readable, but full-site navigation stays visibly locked. */
.pb-public-nav.pb-public-nav--login-gated {
    isolation: isolate;
    position: sticky;
}

.pb-public-nav--login-gated > :not(.pb-public-login-gate) {
    filter: blur(4px) grayscale(0.45);
    opacity: 0.44;
    pointer-events: none;
    user-select: none;
}

.pb-public-login-gate,
.pb-public-login-gate:visited {
    align-items: center;
    background: linear-gradient(135deg, rgba(255, 250, 240, 0.92), rgba(226, 199, 127, 0.92));
    border: 1px solid rgba(255, 250, 240, 0.82);
    border-radius: 999px;
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.34);
    color: #061d31;
    display: inline-flex;
    font-size: 12px;
    font-weight: 900;
    gap: 8px;
    left: 50%;
    letter-spacing: 0.08em;
    line-height: 1.2;
    max-width: min(88vw, 420px);
    padding: 13px 22px;
    position: absolute;
    text-align: center;
    text-decoration: none;
    text-transform: uppercase;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 8;
}

.pb-public-login-gate:hover,
.pb-public-login-gate:focus-visible {
    background: linear-gradient(135deg, #fffaf0, #e2c77f);
    color: #021320;
    outline: 2px solid rgba(255, 250, 240, 0.92);
    outline-offset: 3px;
}

@media (max-width: 980px) {
    .pb-public-nav--login-gated {
        min-height: 132px;
    }

    .pb-public-login-gate,
    .pb-public-login-gate:visited {
        font-size: 11px;
        padding: 12px 18px;
        width: calc(100% - 32px);
    }
}

/* Existing /tos/ and /coc/ pages use the PB standalone shell while keeping page-owned legal copy editable in WordPress. */
.pb-public-policy-shell {
    background: #f7f9fc;
    box-sizing: border-box;
    color: #122033;
    min-height: 62vh;
    padding: clamp(34px, 5vw, 76px) clamp(16px, 4vw, 42px);
}

.pb-public-policy-content {
    background: #ffffff;
    border: 1px solid rgba(18, 32, 51, 0.08);
    border-radius: 24px;
    box-shadow: 0 22px 60px rgba(15, 38, 75, 0.10);
    box-sizing: border-box;
    margin: 0 auto;
    max-width: 980px;
    padding: clamp(28px, 4vw, 58px);
}

.pb-public-policy-content > :first-child {
    margin-top: 0;
}

.pb-public-policy-content > :last-child {
    margin-bottom: 0;
}

.pb-public-policy-content h1,
.pb-public-policy-content h2,
.pb-public-policy-content h3 {
    color: #061d31;
}

.pb-public-policy-content a {
    color: #1d6fb8;
    font-weight: 700;
}
