/* FBS Policy Page Cleanup 1.1 — policy pages only. */
body.fbs-policy-cleanup-page {
    --fbs-blue: #0693E3;
    --fbs-text: #111827;
    --fbs-muted: #4b5563;
    overflow-x: hidden !important;
    font-family: 'Bricolage Grotesque', sans-serif !important;
}

body.fbs-policy-cleanup-page,
body.fbs-policy-cleanup-page * {
    box-sizing: border-box;
}

/* Remove the theme's duplicate page-title/breadcrumb presentation. */
body.fbs-policy-cleanup-page .wp-block-post-title,
body.fbs-policy-cleanup-page .entry-title,
body.fbs-policy-cleanup-page h1.wp-block-query-title,
body.fbs-policy-cleanup-page .wp-block-post-template + .wp-block-query-pagination,
body.fbs-policy-cleanup-page .wp-block-breadcrumbs {
    display: none !important;
}

/* Our title is inserted by JS, so it is consistent and editable from Settings. */
body.fbs-policy-cleanup-page .fbs-policy-display-title {
    display: block !important;
    width: min(100%, 960px) !important;
    margin: 24px auto 18px !important;
    padding: 0 24px !important;
    text-align: center !important;
    font-family: 'Bricolage Grotesque', sans-serif !important;
    font-size: clamp(30px, 5vw, 52px) !important;
    line-height: 1.08 !important;
    font-weight: 700 !important;
    letter-spacing: -0.025em !important;
    color: var(--fbs-text) !important;
}

body.fbs-policy-cleanup-page main,
body.fbs-policy-cleanup-page .wp-site-blocks,
body.fbs-policy-cleanup-page .wp-block-group,
body.fbs-policy-cleanup-page .wp-block-post-content,
body.fbs-policy-cleanup-page .entry-content,
body.fbs-policy-cleanup-page .page-content {
    max-width: 100% !important;
    min-width: 0 !important;
}

body.fbs-policy-cleanup-page .wp-block-post-content,
body.fbs-policy-cleanup-page .entry-content,
body.fbs-policy-cleanup-page .page-content {
    width: min(920px, calc(100% - 48px)) !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding: 12px 0 72px !important;
    font-family: 'Bricolage Grotesque', sans-serif !important;
    color: var(--fbs-text) !important;
    font-size: 18px !important;
    line-height: 1.68 !important;
    overflow-wrap: anywhere !important;
    word-break: normal !important;
}

body.fbs-policy-cleanup-page .wp-block-post-content > :first-child,
body.fbs-policy-cleanup-page .entry-content > :first-child,
body.fbs-policy-cleanup-page .page-content > :first-child {
    margin-top: 0 !important;
}

body.fbs-policy-cleanup-page .wp-block-post-content h1,
body.fbs-policy-cleanup-page .entry-content h1,
body.fbs-policy-cleanup-page .page-content h1,
body.fbs-policy-cleanup-page .wp-block-post-content h2,
body.fbs-policy-cleanup-page .entry-content h2,
body.fbs-policy-cleanup-page .page-content h2,
body.fbs-policy-cleanup-page .wp-block-post-content h3,
body.fbs-policy-cleanup-page .entry-content h3,
body.fbs-policy-cleanup-page .page-content h3 {
    font-family: 'Bricolage Grotesque', sans-serif !important;
    color: var(--fbs-text) !important;
    overflow-wrap: anywhere !important;
}

body.fbs-policy-cleanup-page .wp-block-post-content h1,
body.fbs-policy-cleanup-page .entry-content h1,
body.fbs-policy-cleanup-page .page-content h1 {
    font-size: clamp(28px, 4vw, 44px) !important;
    line-height: 1.12 !important;
    margin: 0 0 20px !important;
    font-weight: 700 !important;
}
body.fbs-policy-cleanup-page .wp-block-post-content h2,
body.fbs-policy-cleanup-page .entry-content h2,
body.fbs-policy-cleanup-page .page-content h2 {
    font-size: clamp(22px, 3vw, 31px) !important;
    line-height: 1.2 !important;
    margin: 38px 0 12px !important;
    font-weight: 700 !important;
}
body.fbs-policy-cleanup-page .wp-block-post-content h3,
body.fbs-policy-cleanup-page .entry-content h3,
body.fbs-policy-cleanup-page .page-content h3 {
    font-size: 21px !important;
    line-height: 1.3 !important;
    margin: 28px 0 9px !important;
    font-weight: 600 !important;
}

body.fbs-policy-cleanup-page .wp-block-post-content p,
body.fbs-policy-cleanup-page .entry-content p,
body.fbs-policy-cleanup-page .page-content p {
    max-width: 100% !important;
    margin: 0 0 16px !important;
    color: var(--fbs-muted) !important;
}
body.fbs-policy-cleanup-page strong { color: var(--fbs-text) !important; font-weight: 600 !important; }
body.fbs-policy-cleanup-page a { color: var(--fbs-blue) !important; text-underline-offset: 3px !important; }
body.fbs-policy-cleanup-page img { max-width: 100% !important; height: auto !important; }
body.fbs-policy-cleanup-page iframe,
body.fbs-policy-cleanup-page video { max-width: 100% !important; }
body.fbs-policy-cleanup-page table { display: block !important; width: 100% !important; max-width: 100% !important; overflow-x: auto !important; }
body.fbs-policy-cleanup-page pre,
body.fbs-policy-cleanup-page code { max-width: 100% !important; overflow-x: auto !important; white-space: pre-wrap !important; overflow-wrap: anywhere !important; }

@media (max-width: 767px) {
    body.fbs-policy-cleanup-page .fbs-policy-display-title {
        width: 100% !important;
        margin: 16px auto 12px !important;
        padding: 0 16px !important;
        font-size: 29px !important;
        line-height: 1.12 !important;
    }
    body.fbs-policy-cleanup-page .wp-block-post-content,
    body.fbs-policy-cleanup-page .entry-content,
    body.fbs-policy-cleanup-page .page-content {
        width: calc(100% - 28px) !important;
        max-width: none !important;
        padding: 8px 0 48px !important;
        font-size: 16px !important;
        line-height: 1.62 !important;
    }
    body.fbs-policy-cleanup-page .wp-block-post-content h1,
    body.fbs-policy-cleanup-page .entry-content h1,
    body.fbs-policy-cleanup-page .page-content h1 {
        font-size: 26px !important;
        line-height: 1.12 !important;
        margin-bottom: 16px !important;
    }
    body.fbs-policy-cleanup-page .wp-block-post-content h2,
    body.fbs-policy-cleanup-page .entry-content h2,
    body.fbs-policy-cleanup-page .page-content h2 { font-size: 21px !important; margin: 28px 0 9px !important; }
    body.fbs-policy-cleanup-page .wp-block-post-content h3,
    body.fbs-policy-cleanup-page .entry-content h3,
    body.fbs-policy-cleanup-page .page-content h3 { font-size: 18px !important; margin: 22px 0 7px !important; }
    body.fbs-policy-cleanup-page .wp-block-post-content p,
    body.fbs-policy-cleanup-page .entry-content p,
    body.fbs-policy-cleanup-page .page-content p { margin-bottom: 13px !important; }
    body.fbs-policy-cleanup-page .wp-block-post-content ul,
    body.fbs-policy-cleanup-page .wp-block-post-content ol,
    body.fbs-policy-cleanup-page .entry-content ul,
    body.fbs-policy-cleanup-page .entry-content ol,
    body.fbs-policy-cleanup-page .page-content ul,
    body.fbs-policy-cleanup-page .page-content ol { padding-left: 20px !important; }
}
