:root {
    --bp-bg: #ffffff;
    --bp-surface: #f6f7f9;
    --bp-surface-strong: #eef1f4;
    --bp-text: #17202a;
    --bp-muted: #61707d;
    --bp-border: #dfe4e8;
    --bp-accent: #8f1f2d;
    --bp-accent-dark: #651620;
    --bp-accent-soft: #f8ecee;
    --bp-shadow: 0 20px 55px rgba(28, 38, 48, 0.09);
    --bp-radius: 18px;
    --bp-shell: 1380px;
    --bp-content: 760px;
}

@media (prefers-color-scheme: dark) {
    :root {
        --bp-bg: #111418;
        --bp-surface: #191e24;
        --bp-surface-strong: #20262d;
        --bp-text: #f5f7f9;
        --bp-muted: #b2bdc7;
        --bp-border: #303741;
        --bp-accent: #ef8c9c;
        --bp-accent-dark: #ffc0ca;
        --bp-accent-soft: #2a191d;
        --bp-shadow: 0 22px 60px rgba(0, 0, 0, 0.28);
    }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    background: var(--bp-bg);
    color: var(--bp-text);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.65;
}
a { color: var(--bp-accent); }
a:hover { color: var(--bp-accent-dark); }
img { max-width: 100%; height: auto; }

.bp-shell {
    width: min(calc(100% - 2rem), var(--bp-shell));
    margin-inline: auto;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: color-mix(in srgb, var(--bp-bg) 92%, transparent);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--bp-border);
}

.bp-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 74px;
    gap: 2rem;
}

.site-brand {
    display: inline-flex;
    align-items: center;
    gap: .7rem;
    color: var(--bp-text);
    font-size: 1.2rem;
    font-weight: 850;
    text-decoration: none;
    letter-spacing: -0.025em;
}

.site-brand-mark {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    color: white;
    background: var(--bp-accent);
    border-radius: 10px;
}

.site-brand-mark svg {
    width: 23px;
    height: 23px;
    fill: currentColor;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 1.2rem;
}

.site-nav ul,
.site-footer ul {
    display: flex;
    gap: 1.25rem;
    padding: 0;
    margin: 0;
    list-style: none;
}

.site-nav a,
.site-footer a {
    color: var(--bp-muted);
    text-decoration: none;
    font-weight: 700;
}

.bp-nav-library {
    padding: .65rem .95rem;
    color: white !important;
    background: var(--bp-accent);
    border-radius: 999px;
}

.bp-menu-toggle {
    display: none;
    border: 1px solid var(--bp-border);
    background: var(--bp-bg);
    color: var(--bp-text);
    border-radius: 10px;
    padding: .55rem .8rem;
    font-weight: 800;
}

.bp-hero {
    padding: 7rem 0 5.5rem;
    background:
        radial-gradient(circle at 20% 20%, color-mix(in srgb, var(--bp-accent) 13%, transparent), transparent 32rem),
        radial-gradient(circle at 82% 24%, color-mix(in srgb, #b98a55 10%, transparent), transparent 28rem),
        var(--bp-bg);
    border-bottom: 1px solid var(--bp-border);
}

.bp-hero-inner {
    max-width: 960px;
    text-align: center;
}

.bp-eyebrow {
    margin: 0 0 .75rem;
    color: var(--bp-accent);
    font-size: .8rem;
    font-weight: 850;
    letter-spacing: .13em;
    text-transform: uppercase;
}

.bp-hero h1,
.bp-archive-header h1,
.bp-article-header h1 {
    margin: 0;
    line-height: 1.04;
    letter-spacing: -0.05em;
}

.bp-hero h1 {
    font-size: clamp(3.4rem, 9vw, 7rem);
}

.bp-hero-copy,
.bp-lede {
    color: var(--bp-muted);
    font-size: clamp(1.05rem, 2vw, 1.35rem);
}

.bp-search-form {
    position: relative;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    margin: 2rem auto 0;
    max-width: 790px;
    padding: .45rem;
    background: var(--bp-bg);
    border: 1px solid var(--bp-border);
    border-radius: 999px;
    box-shadow: var(--bp-shadow);
}

.bp-search-icon {
    padding-left: 1rem;
    color: var(--bp-muted);
    font-size: 1.35rem;
}

.bp-search-form input {
    min-width: 0;
    padding: 1rem .8rem;
    color: var(--bp-text);
    background: transparent;
    border: 0;
    outline: 0;
    font-size: 1rem;
}

.bp-search-form input::placeholder {
    font-style: italic;
}

.bp-search-form button,
.bp-filter-actions button {
    padding: .9rem 1.3rem;
    color: white;
    background: var(--bp-accent);
    border: 0;
    border-radius: 999px;
    font-weight: 850;
    cursor: pointer;
}

.bp-live-results {
    position: absolute;
    inset: calc(100% + .75rem) 0 auto;
    overflow: hidden;
    text-align: left;
    background: var(--bp-bg);
    border: 1px solid var(--bp-border);
    border-radius: var(--bp-radius);
    box-shadow: var(--bp-shadow);
}

.bp-live-result {
    display: block;
    padding: 1rem 1.1rem;
    color: var(--bp-text);
    text-decoration: none;
    border-bottom: 1px solid var(--bp-border);
}

.bp-live-result small {
    display: block;
    color: var(--bp-accent);
    font-weight: 800;
    margin-top: .2rem;
}

.bp-live-result span {
    display: block;
    margin-top: .2rem;
    color: var(--bp-muted);
    font-size: .9rem;
}

.bp-no-results { padding: 1rem; margin: 0; }

.bp-quick-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: .7rem;
    margin-top: 1rem;
    color: var(--bp-muted);
    font-size: .92rem;
}

.bp-quick-links a { font-weight: 750; }

.bp-section { padding: 5rem 0; }
.bp-section-alt { background: var(--bp-surface); }

.bp-section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.6rem;
}

.bp-section-heading h2,
.bp-two-column-feature h2 {
    margin: 0;
    font-size: clamp(1.9rem, 4vw, 2.8rem);
    letter-spacing: -0.04em;
}

.bp-card-grid,
.bp-list-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.bp-card,
.bp-problem-card {
    padding: 1.5rem;
    background: var(--bp-bg);
    border: 1px solid var(--bp-border);
    border-radius: var(--bp-radius);
    box-shadow: 0 1px 0 rgba(0,0,0,.02);
}

.bp-card {
    position: relative;
    color: var(--bp-text);
    text-decoration: none;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.bp-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--bp-shadow);
    border-color: color-mix(in srgb, var(--bp-accent) 40%, var(--bp-border));
}

.bp-card-icon {
    position: absolute;
    top: 1.2rem;
    right: 1.2rem;
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    color: var(--bp-accent);
    background: var(--bp-accent-soft);
    border-radius: 999px;
}

.bp-card h3,
.bp-problem-card h3 {
    margin: 0 2.6rem .45rem 0;
    font-size: 1.25rem;
    line-height: 1.25;
}

.bp-card p,
.bp-problem-card p {
    color: var(--bp-muted);
}

.bp-problem-card h3 a {
    color: var(--bp-text);
    text-decoration: none;
}

.bp-card-meta {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 1rem;
    color: var(--bp-muted);
    font-size: .88rem;
}

.bp-read-more {
    white-space: nowrap;
    font-weight: 850;
    text-decoration: none;
}

.bp-two-column-feature {
    display: grid;
    grid-template-columns: .8fr 1.2fr;
    gap: 4rem;
    align-items: start;
}

.bp-chip-list {
    display: flex;
    flex-wrap: wrap;
    gap: .65rem;
}

.bp-chip {
    padding: .65rem .9rem;
    color: var(--bp-text);
    background: var(--bp-surface);
    border: 1px solid var(--bp-border);
    border-radius: 999px;
    text-decoration: none;
    font-weight: 750;
}

.bp-main { padding: 4rem 0 6rem; }

.bp-archive-header {
    max-width: 820px;
    margin-bottom: 2.5rem;
}

.bp-archive-header h1,
.bp-article-header h1 {
    font-size: clamp(2.5rem, 7vw, 4.9rem);
}

.bp-filter-panel {
    display: grid;
    grid-template-columns: 2fr repeat(5, 1fr);
    gap: .8rem;
    padding: 1.1rem;
    margin-bottom: 1rem;
    background: var(--bp-surface);
    border: 1px solid var(--bp-border);
    border-radius: var(--bp-radius);
}

.bp-filter-field {
    display: grid;
    gap: .35rem;
}

.bp-filter-field span {
    color: var(--bp-muted);
    font-size: .76rem;
    font-weight: 850;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.bp-filter-field input,
.bp-filter-field select {
    width: 100%;
    min-height: 44px;
    padding: .65rem .75rem;
    color: var(--bp-text);
    background: var(--bp-bg);
    border: 1px solid var(--bp-border);
    border-radius: 10px;
}

.bp-filter-actions {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.bp-filter-actions a { font-weight: 800; }

.bp-results-summary {
    margin: 1rem 0 1.4rem;
    color: var(--bp-muted);
}

.bp-docs-layout {
    display: grid;
    grid-template-columns: 220px minmax(0, var(--bp-content)) 220px;
    gap: 3rem;
    justify-content: center;
    align-items: start;
}

.bp-sticky-panel {
    position: sticky;
    top: 100px;
}

.bp-docs-nav-group + .bp-docs-nav-group {
    margin-top: 2rem;
}

.bp-docs-nav-group h2,
.bp-toc h2 {
    margin: 0 0 .7rem;
    font-size: .78rem;
    color: var(--bp-muted);
    letter-spacing: .1em;
    text-transform: uppercase;
}

.bp-docs-nav-list,
.bp-toc ol {
    padding: 0;
    margin: 0;
    list-style: none;
}

.bp-docs-nav-list li + li,
.bp-toc li + li {
    margin-top: .42rem;
}

.bp-docs-nav-list a,
.bp-toc a {
    color: var(--bp-muted);
    text-decoration: none;
    font-size: .92rem;
}

.bp-docs-nav-list a:hover,
.bp-toc a:hover {
    color: var(--bp-accent);
}

.bp-docs-more {
    display: inline-block;
    margin-top: .75rem;
    font-size: .88rem;
    font-weight: 850;
    text-decoration: none;
}

.bp-breadcrumbs {
    display: flex;
    gap: .5rem;
    margin-bottom: 1.2rem;
    color: var(--bp-muted);
    font-size: .9rem;
}

.bp-breadcrumbs a {
    color: var(--bp-muted);
    text-decoration: none;
}

.bp-article {
    min-width: 0;
}

.bp-article-header {
    padding-bottom: 2rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--bp-border);
}

.bp-taxonomy-row {
    margin-bottom: .65rem;
    color: var(--bp-accent);
    font-size: .78rem;
    font-weight: 850;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.bp-taxonomy-row a { text-decoration: none; }

.bp-entry-meta {
    display: flex;
    flex-wrap: wrap;
    gap: .65rem 1.2rem;
    margin-top: 1.2rem;
    color: var(--bp-muted);
    font-size: .9rem;
}

.bp-article-section {
    padding: 1.8rem 0 2.2rem;
    border-bottom: 1px solid var(--bp-border);
    scroll-margin-top: 105px;
}

.bp-article-section h2,
.bp-related-section h2 {
    margin-top: 0;
    font-size: 1.65rem;
    letter-spacing: -0.03em;
}

.bp-prose,
.bp-section-content {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.08rem;
}

.bp-prose > *:first-child,
.bp-section-content > *:first-child { margin-top: 0; }

.bp-prose > *:last-child,
.bp-section-content > *:last-child { margin-bottom: 0; }

.bp-related-section {
    padding-top: 2.2rem;
}

.bp-related-section { scroll-margin-top: 105px; }
.bp-related-section::before {
    content: "";
    display: block;
    height: 1px;
    background: var(--bp-border);
    margin-bottom: 2rem;
}

.bp-related-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.bp-related-card {
    padding: 1rem;
    background: var(--bp-surface);
    border: 1px solid var(--bp-border);
    border-radius: 14px;
}

.bp-related-card h3 {
    margin: 0 0 .35rem;
    font-size: 1rem;
}

.bp-related-card h3 a {
    color: var(--bp-text);
    text-decoration: none;
}

.bp-related-card p {
    margin: 0;
    color: var(--bp-muted);
    font-size: .9rem;
}

.bp-empty-state {
    grid-column: 1 / -1;
    padding: 3rem;
    text-align: center;
    background: var(--bp-surface);
    border: 1px solid var(--bp-border);
    border-radius: var(--bp-radius);
}

.bp-generic-page {
    max-width: 780px;
    margin-inline: auto;
}

.site-footer {
    padding: 3rem 0;
    border-top: 1px solid var(--bp-border);
    color: var(--bp-muted);
}

.bp-footer-inner {
    display: flex;
    justify-content: space-between;
    gap: 3rem;
}

.bp-footer-inner > div:first-child {
    max-width: 560px;
}

@media (max-width: 1180px) {
    .bp-docs-layout {
        grid-template-columns: 200px minmax(0, 760px);
    }

    .bp-docs-right {
        display: none;
    }

    .bp-filter-panel {
        grid-template-columns: repeat(3, 1fr);
    }

    .bp-filter-search {
        grid-column: span 3;
    }
}

@media (max-width: 900px) {
    .bp-card-grid,
    .bp-list-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .bp-two-column-feature {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .bp-docs-layout {
        grid-template-columns: 1fr;
    }

    .bp-docs-left {
        display: none;
    }

    .bp-filter-panel {
        grid-template-columns: repeat(2, 1fr);
    }

    .bp-filter-search {
        grid-column: span 2;
    }
}

@media (max-width: 720px) {
    .bp-menu-toggle {
        display: inline-flex;
    }

    .site-nav {
        position: absolute;
        top: calc(100% + 1px);
        left: 1rem;
        right: 1rem;
        display: none;
        align-items: stretch;
        flex-direction: column;
        padding: 1rem;
        background: var(--bp-bg);
        border: 1px solid var(--bp-border);
        border-radius: 14px;
        box-shadow: var(--bp-shadow);
    }

    .site-nav.is-open { display: flex; }

    .site-nav ul {
        flex-direction: column;
    }

    .bp-card-grid,
    .bp-list-grid,
    .bp-related-grid {
        grid-template-columns: 1fr;
    }

    .bp-filter-panel {
        grid-template-columns: 1fr;
    }

    .bp-filter-search {
        grid-column: auto;
    }

    .bp-search-form {
        grid-template-columns: auto 1fr;
        border-radius: var(--bp-radius);
    }

    .bp-search-form button {
        grid-column: 1 / -1;
        border-radius: 12px;
    }

    .bp-section-heading,
    .bp-footer-inner {
        align-items: flex-start;
        flex-direction: column;
    }

    .bp-card-meta {
        align-items: flex-start;
        flex-direction: column;
    }
}


/* Milestone 3 homepage */
.bp-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    margin-bottom: 1.25rem;
    padding: .4rem .7rem .4rem .4rem;
    color: var(--bp-muted);
    background: color-mix(in srgb, var(--bp-bg) 88%, transparent);
    border: 1px solid var(--bp-border);
    border-radius: 999px;
    font-size: .82rem;
    font-weight: 750;
    box-shadow: 0 8px 25px rgba(20, 30, 40, .05);
}

.bp-hero-badge-mark {
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    color: #fff;
    background: var(--bp-accent);
    border-radius: 999px;
    font-size: .67rem;
    font-weight: 900;
    letter-spacing: -.03em;
}

.bp-popular-searches {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: .55rem;
    margin-top: 1rem;
    color: var(--bp-muted);
    font-size: .9rem;
}

.bp-popular-searches a {
    padding: .22rem .55rem;
    color: var(--bp-text);
    background: color-mix(in srgb, var(--bp-surface) 88%, transparent);
    border: 1px solid var(--bp-border);
    border-radius: 999px;
    text-decoration: none;
    font-weight: 750;
}

.bp-stat-row {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1px;
    overflow: hidden;
    max-width: 900px;
    margin: 3rem auto 0;
    background: var(--bp-border);
    border: 1px solid var(--bp-border);
    border-radius: 16px;
}

.bp-stat {
    padding: 1rem;
    background: color-mix(in srgb, var(--bp-bg) 94%, transparent);
}

.bp-stat strong,
.bp-stat span {
    display: block;
}

.bp-stat strong {
    font-size: 1.5rem;
    letter-spacing: -.04em;
}

.bp-stat span {
    color: var(--bp-muted);
    font-size: .78rem;
}

.bp-featured-wrap {
    padding: 2rem 0 0;
    background: var(--bp-bg);
}

.bp-featured-problem {
    display: grid;
    grid-template-columns: 1.45fr .55fr;
    overflow: hidden;
    border: 1px solid var(--bp-border);
    border-radius: 24px;
    box-shadow: var(--bp-shadow);
}

.bp-featured-copy {
    padding: clamp(2rem, 5vw, 4rem);
    background: var(--bp-bg);
}

.bp-featured-copy h2 {
    margin: 0 0 .8rem;
    font-size: clamp(2rem, 5vw, 3.6rem);
    line-height: 1.04;
    letter-spacing: -.045em;
}

.bp-featured-copy h2 a {
    color: var(--bp-text);
    text-decoration: none;
}

.bp-featured-copy > p:not(.bp-eyebrow) {
    max-width: 760px;
    color: var(--bp-muted);
    font-size: 1.05rem;
}

.bp-featured-meta {
    display: flex;
    flex-wrap: wrap;
    gap: .6rem 1rem;
    margin: 1.25rem 0;
    color: var(--bp-muted);
    font-size: .85rem;
    font-weight: 750;
}

.bp-featured-meta a {
    text-decoration: none;
}

.bp-primary-link {
    display: inline-flex;
    margin-top: .5rem;
    font-weight: 850;
    text-decoration: none;
}

.bp-featured-art {
    display: grid;
    place-items: center;
    align-content: center;
    min-height: 320px;
    padding: 2rem;
    color: #fff;
    text-align: center;
    background:
        radial-gradient(circle at 70% 25%, rgba(255,255,255,.18), transparent 9rem),
        linear-gradient(145deg, var(--bp-accent), var(--bp-accent-dark));
}

.bp-featured-art span {
    display: block;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(7rem, 16vw, 13rem);
    line-height: .8;
    opacity: .95;
}

.bp-featured-art small {
    margin-top: 1.5rem;
    font-size: .72rem;
    font-weight: 850;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.bp-bible-browser {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.bp-testament-column {
    padding: 1.5rem;
    background: var(--bp-surface);
    border: 1px solid var(--bp-border);
    border-radius: var(--bp-radius);
}

.bp-testament-column h3 {
    margin: 0 0 1rem;
    font-size: 1.3rem;
    letter-spacing: -.025em;
}

.bp-book-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .35rem;
}

.bp-book-grid a {
    padding: .48rem .55rem;
    color: var(--bp-text);
    border-radius: 8px;
    text-decoration: none;
    font-size: .87rem;
    font-weight: 680;
    transition: background .16s ease, transform .16s ease;
}

.bp-book-grid a:hover {
    background: var(--bp-bg);
    transform: translateX(2px);
}

.bp-reveal {
    animation: bp-rise-in .55s ease both;
}

.bp-reveal:nth-child(2) { animation-delay: .03s; }
.bp-reveal:nth-child(3) { animation-delay: .06s; }
.bp-reveal:nth-child(4) { animation-delay: .09s; }
.bp-reveal:nth-child(5) { animation-delay: .12s; }
.bp-reveal:nth-child(6) { animation-delay: .15s; }

@keyframes bp-rise-in {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .bp-reveal {
        animation: none;
    }

    .bp-card,
    .bp-book-grid a {
        transition: none;
    }
}

@media (max-width: 900px) {
    .bp-stat-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .bp-featured-problem {
        grid-template-columns: 1fr;
    }

    .bp-featured-art {
        min-height: 220px;
    }

    .bp-bible-browser {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .bp-stat-row {
        grid-template-columns: 1fr;
    }

    .bp-book-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}


/* v0.4 approved homepage concept */
.bp-concept-header {
    position: relative;
    background: #fff;
}

.bp-concept-header .bp-header-inner {
    min-height: 92px;
}

.bp-concept-brand {
    display: flex;
    align-items: center;
    gap: .45rem;
}

.bp-character-logo {
    width: 82px;
    height: 78px;
    object-fit: contain;
    flex: 0 0 auto;
}

.bp-brand-copy {
    display: grid;
    line-height: 1;
}

.bp-brand-name {
    color: #17202a;
    font-size: clamp(1.75rem, 3vw, 2.55rem);
    font-weight: 850;
    letter-spacing: -.055em;
}

.bp-brand-name strong {
    color: #8f111c;
}

.bp-brand-tagline {
    margin-top: .35rem;
    color: #8f111c;
    font-size: .74rem;
    font-weight: 850;
}

.bp-concept-nav {
    margin-left: auto;
}

.bp-concept-nav a {
    color: #16202c;
    font-size: .9rem;
}

.bp-header-search {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    color: #17202a !important;
    font-size: 1.35rem !important;
}

.bp-concept-hero {
    padding: 1.45rem 0 1.65rem;
    background:
        radial-gradient(circle at 18% 12%, rgba(143,17,28,.055), transparent 27rem),
        radial-gradient(circle at 82% 20%, rgba(185,138,85,.06), transparent 24rem),
        #fff;
    border-top: 1px solid #e8ebee;
    border-bottom: 1px solid #e6e9ec;
}

.bp-concept-hero-inner {
    max-width: 1120px;
    text-align: center;
}

.bp-concept-hero h1 {
    max-width: 1080px;
    margin: 0 auto;
    color: #8f111c;
    font-size: clamp(2.25rem, 4.7vw, 4.7rem);
    line-height: 1.02;
    letter-spacing: -.045em;
    text-wrap: balance;
}

.bp-concept-description {
    max-width: 1040px;
    margin: .65rem auto 0;
    color: #465465;
    font-size: clamp(1rem, 1.45vw, 1.2rem);
    line-height: 1.5;
    text-wrap: balance;
}

.bp-concept-search {
    margin-top: .9rem;
    max-width: 900px;
    border-radius: 14px;
    box-shadow: 0 10px 28px rgba(25,35,45,.08);
}

.bp-concept-search button {
    min-width: 105px;
}

.bp-concept-popular {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: .45rem;
    margin-top: .8rem;
    font-size: .82rem;
}

.bp-concept-popular strong {
    color: #17202a;
}

.bp-concept-popular a {
    padding: .42rem .68rem;
    color: #8f111c;
    background: #fff;
    border: 1px solid #dfe3e7;
    border-radius: 7px;
    text-decoration: none;
    font-weight: 750;
    box-shadow: 0 2px 7px rgba(25,35,45,.04);
}

.bp-dashboard-section {
    padding: .85rem 0 4rem;
    background: #fbfcfd;
}

.bp-dashboard {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 350px;
    gap: .8rem;
}

.bp-dashboard-main,
.bp-dashboard-featured {
    min-width: 0;
}

.bp-panel {
    background: #fff;
    border: 1px solid #dfe4e8;
    border-radius: 10px;
    box-shadow: 0 1px 4px rgba(25,35,45,.03);
}

.bp-problem-types-panel {
    padding: 1rem;
}

.bp-panel-heading {
    margin-bottom: .8rem;
    padding-bottom: .55rem;
    border-bottom: 1px solid #dfe4e8;
}

.bp-panel-heading h2 {
    margin: 0;
    color: #17202a;
    font-size: 1rem;
    letter-spacing: -.015em;
}

.bp-concept-type-grid {
    display: grid;
    grid-template-columns: repeat(8, minmax(0, 1fr));
    gap: .45rem;
}

.bp-concept-type-card {
    display: flex;
    min-height: 168px;
    padding: .72rem .55rem;
    color: #17202a;
    text-align: center;
    flex-direction: column;
    align-items: center;
    background: #fff;
    border: 1px solid #dfe4e8;
    border-radius: 8px;
    text-decoration: none;
    transition: transform .15s ease, box-shadow .15s ease;
}

.bp-concept-type-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 9px 20px rgba(25,35,45,.08);
}

.bp-concept-type-icon {
    display: grid;
    place-items: center;
    min-height: 38px;
    color: #8f111c;
    font-size: 1.8rem;
    font-weight: 850;
}

.bp-concept-type-card h3 {
    margin: .45rem 0 .25rem;
    font-size: .83rem;
}

.bp-concept-type-card p {
    flex: 1;
    margin: 0 0 .5rem;
    color: #65717e;
    font-size: .66rem;
    line-height: 1.35;
}

.bp-concept-type-card strong {
    color: #8f111c;
    font-size: .66rem;
}

.bp-centered-action {
    padding-top: .8rem;
    text-align: center;
}

.bp-concept-button {
    display: inline-flex;
    padding: .62rem .85rem;
    color: #fff;
    background: #8f111c;
    border-radius: 6px;
    text-decoration: none;
    font-size: .78rem;
    font-weight: 850;
}

.bp-featured-panel {
    position: relative;
    min-height: 272px;
    overflow: hidden;
    padding: 3rem 1rem 1rem;
    background:
        linear-gradient(115deg, #fff 62%, rgba(143,17,28,.055) 62%),
        #fff;
}

.bp-featured-label {
    position: absolute;
    top: 0;
    left: 0;
    right: 25%;
    padding: .6rem .9rem;
    color: #fff;
    background: #8f111c;
    border-bottom-right-radius: 34px;
    font-size: .85rem;
    font-weight: 850;
}

.bp-featured-panel h2 {
    position: relative;
    z-index: 2;
    max-width: 62%;
    margin: .2rem 0 .35rem;
    color: #17202a;
    font-size: 1.15rem;
}

.bp-featured-taxonomy {
    position: relative;
    z-index: 2;
    max-width: 58%;
    color: #8f111c;
    font-size: .75rem;
    font-weight: 750;
}

.bp-featured-panel > p {
    position: relative;
    z-index: 2;
    max-width: 58%;
    color: #465465;
    font-size: .76rem;
    line-height: 1.55;
}

.bp-featured-illustration {
    position: absolute;
    right: .7rem;
    bottom: .3rem;
    width: 125px;
    height: 175px;
}

.bp-large-question {
    position: absolute;
    right: 0;
    bottom: 0;
    color: rgba(143,17,28,.18);
    font-family: Georgia, serif;
    font-size: 10rem;
    line-height: .8;
}

.bp-small-reader {
    position: absolute;
    left: 15px;
    bottom: 18px;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 55px;
    height: 70px;
    color: #fff;
    background: #17202a;
    border-radius: 28px 28px 8px 8px;
    font-family: Georgia, serif;
    font-size: 2.6rem;
}

.bp-dashboard-bottom {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1.02fr 1.32fr 1.05fr;
    gap: .8rem;
}

.bp-recent-panel,
.bp-bible-panel,
.bp-numbers-panel {
    padding: 1rem;
}

.bp-compact-list {
    display: grid;
}

.bp-compact-list > a {
    display: grid;
    grid-template-columns: 30px minmax(0,1fr) auto;
    gap: .55rem;
    align-items: center;
    padding: .45rem 0;
    color: #17202a;
    border-bottom: 1px solid #eef1f3;
    text-decoration: none;
}

.bp-list-icon {
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    color: #fff;
    background: #8f111c;
    border-radius: 6px;
    font-weight: 850;
}

.bp-list-copy {
    display: grid;
}

.bp-list-copy strong {
    font-size: .78rem;
}

.bp-list-copy small,
.bp-compact-list time {
    color: #7a8794;
    font-size: .66rem;
}

.bp-small-link {
    display: inline-flex;
    margin-top: .9rem;
    color: #3b5683;
    text-decoration: none;
    font-size: .74rem;
    font-weight: 750;
}

.bp-bible-panel h3 {
    margin: .7rem 0 .45rem;
    color: #8f111c;
    font-size: .78rem;
}

.bp-mini-book-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: .35rem;
}

.bp-mini-book-grid a {
    padding: .27rem .32rem;
    color: #8f111c;
    text-align: center;
    border: 1px solid #ddb7bb;
    border-radius: 5px;
    text-decoration: none;
    font-size: .63rem;
    font-weight: 700;
}

.bp-more-books {
    margin: .45rem 0;
    color: #65717e;
    font-size: .68rem;
}

.bp-numbers-panel dl {
    margin: 0;
}

.bp-numbers-panel dl > div {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 1rem;
    align-items: center;
    padding: .8rem 0;
    border-bottom: 1px solid #e7eaed;
}

.bp-numbers-panel dt {
    color: #465465;
    font-size: .78rem;
}

.bp-numbers-panel dd {
    margin: 0;
    color: #8f111c;
    font-size: 1.35rem;
    font-weight: 850;
}

@media (max-width: 1100px) {
    .bp-concept-type-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .bp-dashboard {
        grid-template-columns: 1fr;
    }

    .bp-dashboard-bottom {
        grid-template-columns: 1fr 1fr;
    }

    .bp-numbers-panel {
        grid-column: 1 / -1;
    }
}

@media (max-width: 760px) {
    .bp-character-logo {
        width: 60px;
        height: 58px;
    }

    .bp-brand-tagline {
        display: none;
    }

    .bp-concept-description {
        white-space: normal;
    }

    .bp-concept-type-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .bp-dashboard-bottom {
        grid-template-columns: 1fr;
    }

    .bp-numbers-panel {
        grid-column: auto;
    }

    .bp-mini-book-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}


/* Bible reader navigation */
.bp-header-bible {
    padding: .48rem .72rem;
    color: #8f111c !important;
    background: #f8ecee;
    border: 1px solid #e6c5c9;
    border-radius: 999px;
    font-size: .78rem !important;
    font-weight: 850 !important;
}

/* Single Problem pages: focused, one-column reading layout. */
.bp-single-problem-main {
    padding: clamp(3rem, 6vw, 5.5rem) 0;
}

.bp-single-problem-layout {
    display: block;
}

.bp-single-problem-article {
    width: min(100%, 920px);
    margin-inline: auto;
}

.bp-single-problem-article .bp-article-header h1 {
    font-size: clamp(3rem, 7vw, 5.5rem);
    max-width: 14ch;
}

.bp-single-problem-article .bp-article-content {
    max-width: 820px;
}

.bp-single-problem-article .bp-prose,
.bp-single-problem-article .bp-section-content {
    font-size: clamp(1.08rem, 1.3vw, 1.2rem);
    line-height: 1.78;
}

.bp-single-problem-article .bp-article-section {
    padding: 2.25rem 0 2.75rem;
}

@media (max-width: 720px) {
    .bp-single-problem-main {
        padding: 2.25rem 0 3.5rem;
    }

    .bp-single-problem-article .bp-article-header h1 {
        font-size: clamp(2.65rem, 14vw, 4rem);
    }
}

/* Public problem submission page */
.bp-submission-page {
    width: min(calc(100% - 2rem), 860px);
    margin: 0 auto;
    padding: clamp(3.5rem, 8vw, 7rem) 0 6rem;
}
.bp-submission-header { text-align: center; margin-bottom: 2rem; }
.bp-submission-header h1 {
    margin: 0;
    font-size: clamp(2.7rem, 7vw, 5rem);
    line-height: 1.02;
    letter-spacing: -.05em;
}
.bp-submission-header > p:last-child {
    max-width: 700px;
    margin: 1.15rem auto 0;
    color: var(--bp-muted);
    font-size: 1.15rem;
}
.bp-submission-form {
    padding: clamp(1.25rem, 4vw, 2.5rem);
    background: var(--bp-surface);
    border: 1px solid var(--bp-border);
    border-radius: 24px;
    box-shadow: var(--bp-shadow);
}
.bp-form-field { display: grid; gap: .55rem; margin-bottom: 1.35rem; }
.bp-form-field > span { font-weight: 850; }
.bp-form-field > span b { color: var(--bp-accent); }
.bp-form-field small, .bp-form-privacy { color: var(--bp-muted); }
.bp-form-field input, .bp-form-field textarea {
    width: 100%;
    padding: .95rem 1rem;
    color: var(--bp-text);
    background: var(--bp-bg);
    border: 1px solid var(--bp-border);
    border-radius: 12px;
    font: inherit;
}
.bp-form-field textarea { resize: vertical; min-height: 220px; }
.bp-form-field input:focus, .bp-form-field textarea:focus {
    outline: 3px solid color-mix(in srgb, var(--bp-accent) 20%, transparent);
    border-color: var(--bp-accent);
}
.bp-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.bp-form-privacy { font-size: .9rem; }
.bp-submit-button {
    display: inline-flex;
    justify-content: center;
    padding: .95rem 1.35rem;
    color: white;
    background: var(--bp-accent);
    border: 0;
    border-radius: 999px;
    font-weight: 850;
    font-size: 1rem;
    cursor: pointer;
}
.bp-submit-button:hover { background: var(--bp-accent-dark); }
.bp-form-notice {
    margin-bottom: 1.5rem;
    padding: 1rem 1.15rem;
    border: 1px solid var(--bp-border);
    border-radius: 14px;
}
.bp-form-success { background: #edf8f0; color: #245b31; border-color: #bcdcc4; }
.bp-form-error { background: var(--bp-accent-soft); color: var(--bp-accent-dark); }
.bp-honeypot { position: absolute !important; left: -9999px !important; }
@media (max-width: 680px) {
    .bp-form-grid { grid-template-columns: 1fr; gap: 0; }
    .bp-header-submit { text-align: center; }
}

/* Streamlined public submission page */
.bp-main-submission {
    padding-top: clamp(1.25rem, 3vw, 2.25rem);
}
.bp-shell-submission,
.bp-submit-page-wrapper {
    max-width: none;
}
.bp-submit-page-wrapper > .bp-prose {
    max-width: none;
}
.bp-submission-page {
    padding: 0 0 5rem;
}
.bp-submission-header {
    margin-bottom: 1.15rem;
}
.bp-submission-header h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
}
.bp-submission-header > p:last-child {
    margin-top: .75rem;
    font-size: 1.08rem;
    line-height: 1.65;
}
.bp-submission-reassurance {
    margin: 0 0 1.25rem;
    padding: 1rem 1.15rem;
    background: color-mix(in srgb, var(--bp-accent-soft) 62%, var(--bp-surface));
    border: 1px solid color-mix(in srgb, var(--bp-accent) 25%, var(--bp-border));
    border-radius: 16px;
}
.bp-submission-reassurance strong {
    display: block;
    color: var(--bp-text);
}
.bp-submission-reassurance p {
    margin: .3rem 0 0;
    color: var(--bp-muted);
    font-size: .96rem;
    line-height: 1.55;
}
@media (max-width: 680px) {
    .bp-main-submission { padding-top: 1rem; }
    .bp-submission-page { width: min(calc(100% - .5rem), 860px); }
    .bp-submission-header { text-align: left; }
}


/* Dedicated submission confirmation page */
.bp-confirmation-page {
    width: min(calc(100% - 2rem), 820px);
    margin: 0 auto;
    padding: .25rem 0 5rem;
}
.bp-confirmation-card {
    padding: clamp(2rem, 6vw, 4.5rem);
    text-align: center;
    background: var(--bp-surface);
    border: 1px solid var(--bp-border);
    border-radius: 28px;
    box-shadow: var(--bp-shadow);
}
.bp-confirmation-icon {
    display: grid;
    place-items: center;
    width: 72px;
    height: 72px;
    margin: 0 auto 1.2rem;
    color: #245b31;
    background: #edf8f0;
    border: 1px solid #bcdcc4;
    border-radius: 50%;
    font-size: 2.2rem;
    font-weight: 900;
    line-height: 1;
}
.bp-confirmation-eyebrow {
    margin: 0 0 .55rem;
    color: var(--bp-accent);
    font-size: .84rem;
    font-weight: 900;
    letter-spacing: .11em;
    text-transform: uppercase;
}
.bp-confirmation-card h1 {
    margin: 0;
    font-size: clamp(2.6rem, 7vw, 4.8rem);
    line-height: 1.02;
    letter-spacing: -.05em;
}
.bp-confirmation-lead {
    max-width: 620px;
    margin: 1rem auto 0;
    color: var(--bp-muted);
    font-size: clamp(1.08rem, 2vw, 1.22rem);
    line-height: 1.65;
}
.bp-confirmation-next {
    max-width: 620px;
    margin: 2rem auto 0;
    padding: 1.3rem 1.4rem;
    text-align: left;
    background: color-mix(in srgb, var(--bp-accent-soft) 50%, var(--bp-bg));
    border: 1px solid color-mix(in srgb, var(--bp-accent) 20%, var(--bp-border));
    border-radius: 16px;
}
.bp-confirmation-next h2 {
    margin: 0 0 .4rem;
    font-size: 1.15rem;
}
.bp-confirmation-next p {
    margin: 0;
    color: var(--bp-muted);
    line-height: 1.65;
}
.bp-confirmation-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .8rem;
    margin-top: 2rem;
}
.bp-confirmation-actions a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: .8rem 1.2rem;
    border-radius: 999px;
    font-weight: 850;
    text-decoration: none;
}
.bp-confirmation-primary {
    color: #fff;
    background: var(--bp-accent);
}
.bp-confirmation-primary:hover { background: var(--bp-accent-dark); }
.bp-confirmation-secondary {
    color: var(--bp-text);
    background: var(--bp-bg);
    border: 1px solid var(--bp-border);
}
@media (max-width: 560px) {
    .bp-confirmation-page { width: min(calc(100% - .5rem), 820px); }
    .bp-confirmation-card { border-radius: 20px; }
    .bp-confirmation-actions { display: grid; }
    .bp-confirmation-actions a { width: 100%; }
}

/* Premium single Problem reading experience — v0.8.0 */
.bp-single-problem-main {
    padding: clamp(1.5rem, 4vw, 3.25rem) 0 6rem;
    background:
        radial-gradient(circle at 15% 0%, color-mix(in srgb, var(--bp-accent-soft) 48%, transparent), transparent 28rem),
        var(--bp-bg);
}
.bp-single-problem-layout { width: min(calc(100% - 2rem), 1120px); }
.bp-single-problem-article { max-width: none; margin: 0 auto; }
.bp-single-problem-article .bp-breadcrumbs { max-width: 940px; margin: 0 auto 1.25rem; }

.bp-reading-progress {
    position: fixed;
    z-index: 9998;
    top: var(--wp-admin--admin-bar--height, 0px);
    left: 0;
    right: 0;
    height: 4px;
    pointer-events: none;
    background: transparent;
}
.bp-reading-progress span {
    display: block;
    width: 0;
    height: 100%;
    background: linear-gradient(90deg, var(--bp-accent), var(--bp-accent-dark));
    box-shadow: 0 0 10px color-mix(in srgb, var(--bp-accent) 45%, transparent);
}

.bp-problem-hero {
    position: relative;
    overflow: hidden;
    max-width: 1040px;
    margin: 0 auto clamp(1.5rem, 4vw, 2.75rem);
    padding: clamp(2rem, 6vw, 4.75rem);
    background:
        linear-gradient(135deg, color-mix(in srgb, var(--bp-accent-soft) 75%, white), var(--bp-surface) 68%);
    border: 1px solid color-mix(in srgb, var(--bp-accent) 22%, var(--bp-border));
    border-radius: 30px;
    box-shadow: 0 25px 70px rgba(19, 29, 42, .10);
}
.bp-problem-hero::after {
    content: "?";
    position: absolute;
    right: clamp(1rem, 4vw, 3rem);
    bottom: -3.5rem;
    color: color-mix(in srgb, var(--bp-accent) 7%, transparent);
    font-size: clamp(12rem, 28vw, 24rem);
    font-weight: 950;
    line-height: 1;
    transform: rotate(8deg);
    pointer-events: none;
}
.bp-problem-hero > * { position: relative; z-index: 1; }
.bp-problem-hero__eyebrow { display: flex; flex-wrap: wrap; align-items: center; gap: .55rem; }
.bp-problem-badge,
.bp-problem-reading-time {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: .42rem .78rem;
    color: var(--bp-muted);
    background: rgba(255,255,255,.74);
    border: 1px solid var(--bp-border);
    border-radius: 999px;
    font-size: .82rem;
    font-weight: 850;
    line-height: 1;
    text-decoration: none;
}
.bp-problem-badge:hover { border-color: var(--bp-accent); color: var(--bp-accent); }
.bp-problem-badge--accent { color: #fff; background: var(--bp-accent); border-color: var(--bp-accent); }
.bp-problem-badge--accent:hover { color: #fff; background: var(--bp-accent-dark); }
.bp-problem-reading-time { background: transparent; border-color: transparent; }
.bp-problem-hero h1 {
    max-width: 850px;
    margin: 1.35rem 0 0;
    font-size: clamp(3rem, 8vw, 6.6rem);
    line-height: .97;
    letter-spacing: -.065em;
    text-wrap: balance;
}
.bp-problem-hero__lede {
    max-width: 760px;
    margin: 1.35rem 0 0;
    color: color-mix(in srgb, var(--bp-text) 74%, var(--bp-muted));
    font-size: clamp(1.1rem, 2.2vw, 1.38rem);
    line-height: 1.65;
    text-wrap: pretty;
}
.bp-problem-hero__meta { margin-top: 1.35rem; color: var(--bp-muted); font-size: .92rem; }
.bp-problem-hero__meta a { font-weight: 800; }

.bp-article-content,
.bp-related-section,
.bp-problem-navigation,
.bp-problem-contribute { width: min(100%, 940px); margin-left: auto; margin-right: auto; }
.bp-article-content { display: grid; gap: 1.25rem; color: var(--bp-text); font-size: clamp(1.06rem, 1.5vw, 1.2rem); line-height: 1.82; }
.bp-article-card {
    overflow: hidden;
    padding: clamp(1.35rem, 4vw, 2.35rem);
    background: var(--bp-surface);
    border: 1px solid var(--bp-border);
    border-radius: 22px;
    box-shadow: 0 12px 38px rgba(19, 29, 42, .055);
}
.bp-article-card--passage { background: linear-gradient(135deg, #fffdf7, var(--bp-surface)); border-color: #e7dcc1; }
.bp-article-card--problem { border-left: 5px solid var(--bp-accent); }
.bp-article-card--apologetic { background: linear-gradient(135deg, #f6f8fb, var(--bp-surface)); }
.bp-article-card--critical { background: linear-gradient(135deg, color-mix(in srgb, var(--bp-accent-soft) 42%, white), var(--bp-surface)); }
.bp-article-card--references { background: #f8f9fb; }
.bp-article-card--related { margin-top: 1.25rem; }
.bp-article-card__heading { display: flex; align-items: center; gap: .8rem; margin: 0 0 1.2rem; }
.bp-article-card__heading h2 { margin: 0; font-size: clamp(1.45rem, 3vw, 2.1rem); line-height: 1.15; letter-spacing: -.025em; }
.bp-section-icon {
    display: grid;
    flex: 0 0 auto;
    place-items: center;
    width: 40px;
    height: 40px;
    color: var(--bp-accent);
    background: var(--bp-accent-soft);
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 900;
}
.bp-article-card > :last-child,
.bp-article-card__body > :last-child { margin-bottom: 0; }
.bp-article-card p { margin: 0 0 1.1em; }
.bp-article-card ul,
.bp-article-card ol { padding-left: 1.35em; }
.bp-article-card li + li { margin-top: .45rem; }
.bp-article-card blockquote {
    margin: 1.25rem 0;
    padding: 1.15rem 1.35rem;
    color: color-mix(in srgb, var(--bp-text) 85%, var(--bp-muted));
    background: color-mix(in srgb, var(--bp-bg) 65%, white);
    border-left: 4px solid var(--bp-accent);
    border-radius: 0 14px 14px 0;
    font-size: 1.08em;
}
.bp-article-card a { text-underline-offset: .2em; }

.bp-article-card--passage .bp-passage-reference,
.bp-article-card--passage p:first-child strong:first-child {
    display: inline-flex;
    margin-bottom: .7rem;
    color: var(--bp-accent-dark);
    font-family: var(--bp-font-sans, inherit);
    font-size: .92rem;
    font-weight: 900;
    letter-spacing: .04em;
    text-transform: uppercase;
}
.bp-article-card--passage blockquote,
.bp-article-card--passage .bp-passage-text {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: clamp(1.15rem, 2.2vw, 1.42rem);
    line-height: 1.75;
}

.bp-problem-navigation { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin-top: 1.25rem; }
.bp-problem-navigation__item {
    display: grid;
    gap: .3rem;
    min-height: 112px;
    padding: 1.25rem 1.35rem;
    color: var(--bp-text);
    background: var(--bp-surface);
    border: 1px solid var(--bp-border);
    border-radius: 18px;
    text-decoration: none;
    transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.bp-problem-navigation__item:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--bp-accent) 45%, var(--bp-border)); box-shadow: var(--bp-shadow); }
.bp-problem-navigation__item small { color: var(--bp-muted); font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.bp-problem-navigation__item strong { align-self: end; font-size: 1.08rem; }
.bp-problem-navigation__item--next { text-align: right; }

.bp-problem-contribute {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    margin-top: 1.25rem;
    padding: clamp(1.5rem, 4vw, 2.5rem);
    color: #fff;
    background: linear-gradient(135deg, var(--bp-accent-dark), var(--bp-accent));
    border-radius: 24px;
    box-shadow: 0 20px 50px color-mix(in srgb, var(--bp-accent) 20%, transparent);
}
.bp-problem-contribute__eyebrow { margin: 0 0 .35rem; font-size: .8rem; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; opacity: .78; }
.bp-problem-contribute h2 { margin: 0; color: #fff; font-size: clamp(1.7rem, 4vw, 2.5rem); }
.bp-problem-contribute p:not(.bp-problem-contribute__eyebrow) { max-width: 650px; margin: .55rem 0 0; line-height: 1.6; opacity: .9; }
.bp-problem-contribute__button { flex: 0 0 auto; color: var(--bp-accent-dark) !important; background: #fff !important; border-color: #fff !important; white-space: nowrap; }

@media (max-width: 760px) {
    .bp-single-problem-layout { width: min(calc(100% - 1rem), 1120px); }
    .bp-problem-hero { border-radius: 22px; }
    .bp-problem-hero h1 { font-size: clamp(2.8rem, 15vw, 5rem); }
    .bp-problem-navigation { grid-template-columns: 1fr; }
    .bp-problem-navigation__item--next { text-align: left; }
    .bp-problem-contribute { align-items: flex-start; flex-direction: column; }
    .bp-problem-contribute__button { width: 100%; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
    .bp-problem-navigation__item { transition: none; }
}


/* Single Problem refinement — v0.8.1 */
.bp-problem-hero {
    max-width: 940px;
    padding: clamp(1.5rem, 4vw, 2.5rem);
    border-radius: 22px;
    box-shadow: 0 14px 42px rgba(19, 29, 42, .07);
}
.bp-problem-hero::after { display: none; }
.bp-problem-hero h1 {
    max-width: 820px;
    margin-top: .9rem;
    font-size: clamp(2.5rem, 6vw, 4.75rem);
    line-height: 1.02;
    letter-spacing: -.05em;
}
.bp-problem-hero__lede {
    max-width: 720px;
    margin-top: .85rem;
    font-size: clamp(1rem, 1.8vw, 1.18rem);
    line-height: 1.6;
}

/* Use the native structured Problem sections as real cards. */
.bp-article-content {
    display: grid;
    gap: 1.2rem;
    width: min(100%, 940px);
    margin-inline: auto;
}
.bp-article-content > .bp-article-section {
    position: relative;
    margin: 0;
    padding: clamp(1.4rem, 4vw, 2.35rem);
    background: var(--bp-surface);
    border: 1px solid var(--bp-border);
    border-radius: 22px;
    box-shadow: 0 12px 34px rgba(19, 29, 42, .055);
}
.bp-article-content > .bp-article-section > h2 {
    display: flex;
    align-items: center;
    gap: .85rem;
    margin: 0 0 1.15rem;
    font-size: clamp(1.45rem, 3vw, 2rem);
    line-height: 1.2;
    letter-spacing: -.025em;
}
.bp-article-content > .bp-article-section > h2::before {
    display: grid;
    place-items: center;
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    color: var(--bp-accent);
    background: var(--bp-accent-soft);
    border-radius: 12px;
    font-family: system-ui, sans-serif;
    font-size: 1.05rem;
    font-weight: 900;
    line-height: 1;
}
.bp-article-section--summary > h2::before { content: "≡"; }
.bp-article-section--passages > h2::before { content: "▤"; }
.bp-article-section--problem > h2::before { content: "!"; }
.bp-article-section--apologetic > h2::before { content: "“"; }
.bp-article-section--critical > h2::before { content: "◆"; }
.bp-article-section--references > h2::before { content: "↗"; }
.bp-article-section--further-reading > h2::before { content: "+"; }

.bp-article-section--summary {
    background: linear-gradient(135deg, #ffffff, #f8fafc);
}
.bp-article-section--passages {
    background: linear-gradient(135deg, #fffdf6, #ffffff);
    border-color: #e6d9b9 !important;
}
.bp-article-section--problem {
    background: linear-gradient(135deg, #fff8f8, #ffffff);
    border-left: 5px solid var(--bp-accent) !important;
}
.bp-article-section--apologetic {
    background: linear-gradient(135deg, #f4f7fb, #ffffff);
    border-color: #d8e0eb !important;
}
.bp-article-section--critical {
    background: linear-gradient(135deg, color-mix(in srgb, var(--bp-accent-soft) 52%, white), #ffffff);
    border-color: color-mix(in srgb, var(--bp-accent) 24%, var(--bp-border)) !important;
}
.bp-article-section--references,
.bp-article-section--further-reading {
    background: linear-gradient(135deg, #f7f8fa, #ffffff);
}
.bp-article-section .bp-section-content {
    font-size: clamp(1.05rem, 1.45vw, 1.18rem);
    line-height: 1.8;
}
.bp-article-section .bp-section-content > :first-child { margin-top: 0; }
.bp-article-section .bp-section-content > :last-child { margin-bottom: 0; }
.bp-article-section--passages .bp-section-content {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: clamp(1.12rem, 2vw, 1.35rem);
    line-height: 1.75;
}

/* The plugin already supplies Related Problems; style that single output cleanly. */
.bp-article-content .bp-related-problems,
.bp-single-problem-article > .bp-related-problems,
.bp-single-problem-article .bp-reference-section {
    width: min(100%, 940px);
    margin: 1.2rem auto 0;
    padding: clamp(1.4rem, 4vw, 2.35rem);
    background: var(--bp-surface);
    border: 1px solid var(--bp-border);
    border-radius: 22px;
    box-shadow: 0 12px 34px rgba(19, 29, 42, .055);
}
.bp-single-problem-article .bp-related-problems .bp-section-heading h2 {
    font-size: clamp(1.55rem, 3vw, 2.15rem);
}
.bp-single-problem-article .bp-related-card p {
    line-height: 1.6;
}

@media (max-width: 760px) {
    .bp-problem-hero { padding: 1.35rem; }
    .bp-problem-hero h1 { font-size: clamp(2.35rem, 12vw, 4rem); }
    .bp-article-content > .bp-article-section { border-radius: 18px; }
}


/* Single Problem content order and simplification — v0.8.2 */
.bp-single-problem-article .bp-article-content > .bp-article-section--passages { order: 1; }
.bp-single-problem-article .bp-article-content > .bp-article-section--summary { order: 2; }
.bp-single-problem-article .bp-article-content > .bp-article-section--problem { order: 3; }
.bp-single-problem-article .bp-article-content > .bp-article-section--apologetic { order: 4; }
.bp-single-problem-article .bp-article-content > .bp-article-section--critical { order: 5; }
.bp-single-problem-article .bp-article-content > .bp-related-problems { order: 6; }

/* These editorial sections are intentionally not part of the public Problem layout. */
.bp-single-problem-article .bp-article-section--references,
.bp-single-problem-article .bp-article-section--further-reading,
.bp-single-problem-article .bp-problem-scripture-links,
.bp-single-problem-article .bp-reference-section {
    display: none !important;
}

/* Give the opening passage card a little more prominence without making it larger. */
.bp-single-problem-article .bp-article-section--passages {
    border-top: 4px solid var(--bp-accent) !important;
    box-shadow: 0 16px 42px rgba(19, 29, 42, .07);
}
.bp-single-problem-article .bp-article-section--passages > h2::before {
    color: #fff;
    background: var(--bp-accent);
}
.bp-single-problem-article .bp-article-section--passages .bp-section-content strong:first-child {
    display: inline-flex;
    align-items: center;
    margin: 0 .25rem .7rem 0;
    padding: .35rem .7rem;
    color: var(--bp-accent-dark);
    background: color-mix(in srgb, var(--bp-accent-soft) 72%, white);
    border: 1px solid color-mix(in srgb, var(--bp-accent) 20%, transparent);
    border-radius: 999px;
    font-family: var(--bp-font-sans, system-ui, sans-serif);
    font-size: .82rem;
    font-weight: 900;
    letter-spacing: .035em;
    text-transform: uppercase;
}

/* Single Problem section refinement — v0.8.3 */
/* Fallback for legacy or cached markup; the render filter removes this block normally. */
.bp-single-problem-article .bp-article-section--summary {
    display: none !important;
}

/* Replace placeholder glyphs with cohesive, purpose-built section artwork. */
.bp-single-problem-article .bp-article-section > h2::before,
.bp-single-problem-article .bp-related-problems .bp-section-heading h2::before {
    content: "" !important;
    background-position: center;
    background-repeat: no-repeat;
    background-size: 24px 24px;
}

/* Open Bible */
.bp-single-problem-article .bp-article-section--passages > h2::before {
    background-color: var(--bp-accent);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3.5 5.2c2.9-.7 5.7-.1 8.5 1.8v12c-2.8-1.9-5.6-2.5-8.5-1.8z'/%3E%3Cpath d='M20.5 5.2c-2.9-.7-5.7-.1-8.5 1.8v12c2.8-1.9 5.6-2.5 8.5-1.8z'/%3E%3Cpath d='M12 7v12'/%3E%3C/svg%3E");
}

/* Question mark in a circle */
.bp-single-problem-article .bp-article-section--problem > h2::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238d2936' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M9.8 9a2.35 2.35 0 1 1 3.45 2.08c-.82.44-1.25.95-1.25 1.92'/%3E%3Cpath d='M12 16.8h.01'/%3E%3C/svg%3E");
}

/* Preacher at a lectern */
.bp-single-problem-article .bp-article-section--apologetic > h2::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238d2936' stroke-width='1.65' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='5.4' r='2.25'/%3E%3Cpath d='M8.1 12.1c.4-2.5 1.7-3.9 3.9-3.9s3.5 1.4 3.9 3.9'/%3E%3Cpath d='M5.2 12.3h13.6l-1.6 7.2H6.8z'/%3E%3Cpath d='M12 14.1v3.6M10.5 15.9h3'/%3E%3C/svg%3E");
}

/* Balanced critical analysis */
.bp-single-problem-article .bp-article-section--critical > h2::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238d2936' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3v17M8 20h8M5 6h14'/%3E%3Cpath d='M7 6 3.8 12h6.4zM17 6l-3.2 6h6.4z'/%3E%3C/svg%3E");
}

/* Related Problems heading */
.bp-single-problem-article .bp-related-problems .bp-section-heading h2 {
    display: flex;
    align-items: center;
    gap: .85rem;
}
.bp-single-problem-article .bp-related-problems .bp-section-heading h2::before {
    display: grid;
    place-items: center;
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background-color: var(--bp-accent-soft);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238d2936' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9.5 14.5 14.5 9.5'/%3E%3Cpath d='M7.4 16.6 5.8 18.2a3.4 3.4 0 0 1-4.8-4.8l3.1-3.1a3.4 3.4 0 0 1 4.8 0'/%3E%3Cpath d='m16.6 7.4 1.6-1.6a3.4 3.4 0 1 1 4.8 4.8l-3.1 3.1a3.4 3.4 0 0 1-4.8 0' transform='translate(-1 -1)'/%3E%3C/svg%3E");
    background-position: center;
    background-repeat: no-repeat;
    background-size: 24px 24px;
}

/* Updated public flow after Summary removal. */
.bp-single-problem-article .bp-article-content > .bp-article-section--passages { order: 1; }
.bp-single-problem-article .bp-article-content > .bp-article-section--problem { order: 2; }
.bp-single-problem-article .bp-article-content > .bp-article-section--apologetic { order: 3; }
.bp-single-problem-article .bp-article-content > .bp-article-section--critical { order: 4; }
.bp-single-problem-article .bp-article-content > .bp-related-problems { order: 5; }


/* Conflicting Doctrines — separate comparison article system */
.bp-doctrine-hero { border-color:#c7b8dc; background:linear-gradient(135deg,#fbf9ff 0%,#f3eef9 100%); }
.bp-doctrine-badge { background:#5d3d79 !important; border-color:#5d3d79 !important; color:#fff !important; }
.bp-doctrine-content { display:grid; gap:1.25rem; margin-top:1.5rem; }
.bp-doctrine-content .bp-article-section { margin:0; padding:1.6rem 1.75rem; border:1px solid #dde2e8; border-radius:18px; box-shadow:0 8px 24px rgba(22,31,40,.045); background:#fff; }
.bp-doctrine-content .bp-article-section h2 { display:flex; align-items:center; gap:.7rem; margin:0 0 .85rem; font-size:1.45rem; color:#19232d; }
.bp-doctrine-content .bp-article-section h2::before { display:grid; place-items:center; flex:0 0 2.15rem; width:2.15rem; height:2.15rem; border-radius:50%; font-size:1.05rem; background:#ece6f4; color:#5d3d79; }
.bp-doctrine-content .bp-article-section--doctrine-overview { background:#fbf9ff; border-color:#d9cdea; }
.bp-doctrine-content .bp-article-section--doctrine-overview h2::before { content:'◉'; }
.bp-doctrine-content .bp-article-section--doctrine-passages { background:#fffaf0; border-color:#ead9ae; }
.bp-doctrine-content .bp-article-section--doctrine-passages h2::before { content:'📖'; font-size:1.15rem; background:#f4e7c6; }
.bp-doctrine-content .bp-article-section--position-one { background:#f3f8ff; border-color:#c7d9ef; }
.bp-doctrine-content .bp-article-section--position-one h2::before { content:'1'; background:#dceafa; color:#234f7b; font-weight:800; }
.bp-doctrine-content .bp-article-section--position-two { background:#f5fbf7; border-color:#c9e0d0; }
.bp-doctrine-content .bp-article-section--position-two h2::before { content:'2'; background:#dcefe2; color:#285c39; font-weight:800; }
.bp-doctrine-content .bp-article-section--additional-views { background:#fff8f4; border-color:#ecd2c4; }
.bp-doctrine-content .bp-article-section--additional-views h2::before { content:'+'; background:#f3dfd3; color:#85442d; font-weight:800; }
.bp-doctrine-content .bp-article-section--why-disagree { background:#fff7f7; border-color:#e6c7ca; }
.bp-doctrine-content .bp-article-section--why-disagree h2::before { content:'?'; background:#f2dcde; color:#8f1f2d; font-weight:900; }
.bp-doctrine-content .bp-article-section--historical-background { background:#f7f7f5; border-color:#d8d6cf; }
.bp-doctrine-content .bp-article-section--historical-background h2::before { content:'⌛'; background:#e9e7df; }
.bp-doctrine-related { margin-top:2rem; padding:1.75rem; border:1px solid #ddd5e7; border-radius:20px; background:#fbf9ff; }
.bp-doctrine-related--problems { background:#f8fafc; border-color:#dbe2e8; }
.bp-doctrine-related__heading { display:flex; align-items:center; gap:1rem; margin-bottom:1.25rem; }
.bp-doctrine-related__heading h2,.bp-doctrine-related__heading p { margin:0; }
.bp-doctrine-section-icon { display:grid; place-items:center; width:2.8rem; height:2.8rem; border-radius:50%; background:#5d3d79; color:#fff; font-size:1.25rem; font-weight:800; }
.bp-doctrine-archive-header { background:linear-gradient(135deg,#fbf9ff,#f2edf8); border:1px solid #ded2eb; border-radius:22px; padding:2.25rem; }
.bp-doctrine-card { border-top:4px solid #5d3d79; }
.bp-doctrine-card .bp-card-label { color:#5d3d79; }
.bp-card-taxonomy { display:flex; flex-wrap:wrap; gap:.45rem; margin:.9rem 0; }
.bp-card-taxonomy span { padding:.3rem .6rem; border-radius:999px; background:#eee8f5; color:#5d3d79; font-size:.78rem; font-weight:700; }
@media (max-width:700px){.bp-doctrine-content .bp-article-section{padding:1.25rem}.bp-doctrine-related{padding:1.25rem}.bp-doctrine-archive-header{padding:1.5rem}}


/* Doctrine section icon system — v0.9.1 */
.bp-doctrine-content .bp-article-section h2::before,
.bp-doctrine-section-icon {
  content:"" !important;
  background-repeat:no-repeat !important;
  background-position:center !important;
  background-size:1.22rem 1.22rem !important;
}
.bp-doctrine-content .bp-article-section--doctrine-overview h2::before {
  background-color:#ece6f4;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235d3d79' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M9.7 9a2.45 2.45 0 0 1 4.75.8c0 1.85-2.45 2.1-2.45 3.7'/%3E%3Cpath d='M12 17h.01'/%3E%3C/svg%3E") !important;
}
.bp-doctrine-content .bp-article-section--doctrine-passages h2::before {
  background-color:#f4e7c6;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23725318' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3.5 5.5c3.1-.9 5.8-.4 8.5 1.5v12c-2.7-1.9-5.4-2.4-8.5-1.5z'/%3E%3Cpath d='M20.5 5.5c-3.1-.9-5.8-.4-8.5 1.5v12c2.7-1.9 5.4-2.4 8.5-1.5z'/%3E%3Cpath d='M12 7v12'/%3E%3C/svg%3E") !important;
}
.bp-doctrine-content .bp-article-section--position-one h2::before {
  background-color:#dceafa;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23234f7b' stroke-width='1.8' d='M4 5.5h16v10H9l-5 4v-14z'/%3E%3Ctext x='12' y='13.4' text-anchor='middle' font-family='Arial' font-size='8' font-weight='700' fill='%23234f7b'%3E1%3C/text%3E%3C/svg%3E") !important;
}
.bp-doctrine-content .bp-article-section--position-two h2::before {
  background-color:#dcefe2;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23285c39' stroke-width='1.8' d='M4 5.5h16v10H9l-5 4v-14z'/%3E%3Ctext x='12' y='13.4' text-anchor='middle' font-family='Arial' font-size='8' font-weight='700' fill='%23285c39'%3E2%3C/text%3E%3C/svg%3E") !important;
}
.bp-doctrine-content .bp-article-section--additional-views h2::before {
  background-color:#f3dfd3;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2385442d' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 5h11v8H8l-4 3z'/%3E%3Cpath d='M10 16h6l4 3V9h-2'/%3E%3C/svg%3E") !important;
}
.bp-doctrine-content .bp-article-section--why-disagree h2::before {
  background-color:#f2dcde;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238f1f2d' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 4v5'/%3E%3Cpath d='M12 9 7 14'/%3E%3Cpath d='M12 9l5 5'/%3E%3Ccircle cx='12' cy='3' r='1.5'/%3E%3Ccircle cx='6' cy='16' r='2'/%3E%3Ccircle cx='18' cy='16' r='2'/%3E%3C/svg%3E") !important;
}
.bp-doctrine-content .bp-article-section--historical-background h2::before {
  background-color:#e9e7df;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235c574c' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 9h18'/%3E%3Cpath d='M5 9v9M9 9v9M15 9v9M19 9v9'/%3E%3Cpath d='M3 19h18M12 3 3 7h18z'/%3E%3C/svg%3E") !important;
}
.bp-doctrine-section-icon--related {
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='6' cy='12' r='2.5'/%3E%3Ccircle cx='18' cy='6' r='2.5'/%3E%3Ccircle cx='18' cy='18' r='2.5'/%3E%3Cpath d='m8.2 10.8 7.5-3.6M8.2 13.2l7.5 3.6'/%3E%3C/svg%3E") !important;
}
.bp-doctrine-section-icon--problems {
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 3h9l4 4v14H6z'/%3E%3Cpath d='M15 3v5h5'/%3E%3Cpath d='M12 11v4M12 18h.01'/%3E%3C/svg%3E") !important;
}


/* Compact Conflicting Doctrines archive hero — v0.9.2 */
.bp-doctrine-archive { padding-top: 2.5rem; }
.bp-doctrine-archive-header {
  padding: 1.35rem 1.75rem;
  margin-bottom: 1.5rem;
  border-radius: 18px;
}
.bp-doctrine-archive-header h1 {
  margin: 0 0 .45rem;
  font-size: clamp(2.25rem, 4.6vw, 3.65rem);
  line-height: 1.02;
}
.bp-doctrine-archive-header > p {
  margin: 0;
  max-width: 46rem;
  font-size: clamp(1rem, 1.55vw, 1.2rem);
  line-height: 1.5;
}
@media (max-width:700px){
  .bp-doctrine-archive { padding-top: 1.75rem; }
  .bp-doctrine-archive-header { padding: 1.1rem 1.2rem; margin-bottom: 1.15rem; }
}


/* Homepage Conflicting Doctrines index — v0.9.4 */
.bp-home-doctrines-panel {
    padding: 1rem;
    border-top: 4px solid #68418a;
    background: linear-gradient(180deg, #fbf8ff 0%, #ffffff 100%);
}

.bp-home-doctrines-heading h2 {
    color: #4f3270;
}

.bp-home-doctrine-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .65rem;
}

.bp-home-doctrine-card {
    display: flex;
    min-height: 108px;
    flex-direction: column;
    justify-content: space-between;
    padding: .9rem;
    border: 1px solid #dfd4eb;
    border-radius: 9px;
    background: #fff;
    box-shadow: 0 1px 3px rgba(58, 38, 75, .035);
}

.bp-home-doctrine-card h3 {
    margin: 0 0 .8rem;
    font-size: .95rem;
    line-height: 1.25;
}

.bp-home-doctrine-card h3 a {
    color: #17202a;
    text-decoration: none;
}

.bp-home-doctrine-card h3 a:hover,
.bp-home-doctrine-card h3 a:focus-visible {
    color: #8f111c;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.bp-home-doctrine-link {
    color: #68418a;
    font-size: .76rem;
    font-weight: 800;
    text-decoration: none;
}

.bp-home-doctrine-link:hover,
.bp-home-doctrine-link:focus-visible {
    color: #8f111c;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.bp-home-doctrines-all {
    display: inline-block;
    margin-top: .9rem;
    color: #4f3270;
}

@media (max-width: 1050px) {
    .bp-home-doctrines-panel {
        grid-column: 1 / -1;
    }
}

@media (max-width: 640px) {
    .bp-home-doctrine-grid {
        grid-template-columns: 1fr;
    }
}

/* Simplified doctrine article sections — v0.9.6 */
.bp-doctrine-content .bp-article-section--conflicting-positions {
    background: linear-gradient(135deg, #f5f8ff 0%, #faf7fc 100%);
    border-color: #cfc8e1;
}

.bp-doctrine-content .bp-article-section--conflicting-positions h2::before {
    background-color: #e8e2f2;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235d3d79' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3.5 5.5h8v7h-4l-4 3z'/%3E%3Cpath d='M20.5 8.5h-8v7h4l4 3z'/%3E%3C/svg%3E") !important;
}

/* Homepage discovery order — v0.9.7 */
.bp-concept-home .bp-dashboard-main {
    grid-column: 1 / -1;
}

/* Homepage Conflicting Doctrines — unified site palette, v0.9.9 */
.bp-home-doctrines-panel {
    padding: 1rem;
    border-top: 1px solid #dfe4e8;
    background: #fff;
}

.bp-home-doctrines-heading h2 {
    display: flex;
    align-items: center;
    gap: .55rem;
    color: #17202a;
}

.bp-home-doctrines-heading h2::before {
    content: "";
    width: 1.18rem;
    height: 1.18rem;
    flex: 0 0 1.18rem;
    background: center / contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238f111c' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3v18'/%3E%3Cpath d='M5 7h14'/%3E%3Cpath d='m5 7-3 6h6z'/%3E%3Cpath d='m19 7-3 6h6z'/%3E%3Cpath d='M8 21h8'/%3E%3C/svg%3E");
}

.bp-home-doctrine-card {
    border-color: #dfe4e8;
    background: #fff;
    box-shadow: 0 1px 3px rgba(25, 35, 45, .035);
}

.bp-home-doctrine-link,
.bp-home-doctrines-all {
    color: #8f111c;
}

.bp-home-doctrine-link:hover,
.bp-home-doctrine-link:focus-visible,
.bp-home-doctrines-all:hover,
.bp-home-doctrines-all:focus-visible {
    color: #17202a;
}


/* Problem type archive empty state — v1.0.0 */
.bp-problem-type-empty-state {
    max-width: 720px;
    margin: 1rem auto 0;
    padding: clamp(2rem, 5vw, 3.5rem);
}

.bp-problem-type-empty-state .bp-empty-state-icon {
    display: inline-grid;
    place-items: center;
    width: 58px;
    height: 58px;
    margin-bottom: 1rem;
    color: var(--bp-accent, #8b2635);
    background: rgba(139, 38, 53, .08);
    border-radius: 18px;
}

.bp-problem-type-empty-state .bp-empty-state-icon svg {
    width: 30px;
    height: 30px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.bp-problem-type-empty-state h2 {
    margin: 0 0 .65rem;
    font-size: clamp(1.35rem, 3vw, 1.75rem);
}

.bp-problem-type-empty-state p {
    max-width: 560px;
    margin: 0 auto;
    color: var(--bp-muted);
    font-size: 1.02rem;
    line-height: 1.7;
}

.bp-problem-type-empty-state p a {
    color: var(--bp-accent, #8b2635);
    font-weight: 700;
    text-underline-offset: 3px;
}

/* Single Problem title refinement — v1.0.3 */
.single-bp_problem .bp-problem-hero {
    padding: clamp(1.35rem, 3.2vw, 2.15rem);
}
.single-bp_problem .bp-problem-hero h1 {
    max-width: 790px;
    margin-top: .8rem;
    font-size: clamp(2.15rem, 4.35vw, 3.8rem);
    line-height: 1.04;
    letter-spacing: -.045em;
}
@media (max-width: 760px) {
    .single-bp_problem .bp-problem-hero h1 {
        font-size: clamp(2rem, 10.5vw, 3.15rem);
        line-height: 1.06;
    }
}


/* Remove redundant Reference Overview from single Problem pages — v1.0.4 */
.single-bp_problem .bp-reference-section {
    display: none !important;
}


.bp-problem-contribute__button{
display:inline-flex;align-items:center;justify-content:center;
padding:.9rem 1.4rem;border-radius:14px;
font-weight:700;text-decoration:none;
box-shadow:0 6px 18px rgba(0,0,0,.12);
transition:transform .18s ease,box-shadow .18s ease,background .18s ease;
}
.bp-problem-contribute__button:hover{
transform:translateY(-2px);
box-shadow:0 10px 22px rgba(0,0,0,.18);
background:#f8f8f8!important;
}


/* Submit-problem CTA button — v1.0.6 */
.single-bp_problem .bp-problem-contribute a.bp-problem-contribute__button {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 54px;
    padding: 0.95rem 1.45rem !important;
    color: var(--bp-accent-dark, #761623) !important;
    background: #ffffff !important;
    border: 2px solid #ffffff !important;
    border-radius: 14px !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.16) !important;
    font-size: 1rem;
    font-weight: 800 !important;
    line-height: 1.15;
    text-decoration: none !important;
    text-underline-offset: 0 !important;
    white-space: nowrap;
    transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease !important;
}
.single-bp_problem .bp-problem-contribute a.bp-problem-contribute__button:hover,
.single-bp_problem .bp-problem-contribute a.bp-problem-contribute__button:focus-visible {
    color: var(--bp-accent-dark, #761623) !important;
    background: #fff7f8 !important;
    border-color: #fff7f8 !important;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.22) !important;
    text-decoration: none !important;
    transform: translateY(-2px);
}
@media (max-width: 760px) {
    .single-bp_problem .bp-problem-contribute a.bp-problem-contribute__button {
        width: 100% !important;
        white-space: normal;
    }
}

/* Problems archive: content-first layout with search tools below the library. */
.bp-archive-search {
    margin-top: clamp(2.5rem, 6vw, 4.5rem);
}

.bp-archive-search-heading {
    margin-bottom: 1rem;
}

.bp-archive-search-heading h2 {
    margin-bottom: 0;
}
