/* Scoped editorial layouts; the site's shared header and footer remain unchanged. */
body #main-content.bn-library-page { background: #fffdf9; color: #332b25; }
.bn-library-shell { width: 80%; max-width: 1900px; margin: 0 auto; padding: 38px 0 80px; }
.bn-breadcrumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 0 12px; font-size: 14px; line-height: 1.6; margin-bottom: 30px; }
.bn-breadcrumbs a { display: inline-flex; align-items: center; min-height: 32px; }
.bn-library-page a { color: #69412d; text-underline-offset: .2em; }
.bn-library-page a:focus-visible { outline: 3px solid #69412d; outline-offset: 4px; border-radius: 3px; }
.bn-library-page .bn-eyebrow { color: #765039; font-size: 13px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; padding: 0; margin: 0 0 14px; }
.bn-library-heading { max-width: 830px; margin-bottom: 32px; }
body .bn-library-page h1 { font-family: Aptos,"Segoe UI",Helvetica,Arial,sans-serif; font-size: clamp(32px,3.5vw,54px); line-height: 1.15; font-weight: 600; letter-spacing: -.025em; margin: 0 0 22px; padding: 0; color: #36251c; overflow-wrap: break-word; }
.bn-library-intro { font-size: 18px; line-height: 1.75; }
.bn-library-intro p { padding: 0; margin: 0; }
.bn-category-nav { margin: 0 0 38px; }
.bn-category-nav ul { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; margin: 0; padding: 0; }
.bn-category-nav li { margin: 0; padding: 0; }
.bn-category-nav a { display: flex; align-items: center; min-height: 44px; border: 1px solid #c9b6a5; background: #fffdf9; border-radius: 8px; padding: 10px 18px; color: #5b3928; font-size: 15px; font-weight: 500; line-height: 1.4; text-decoration: none; }
.bn-category-nav a:hover { background: #f4ede4; border-color: #8a6247; }
.bn-category-nav a[aria-current] { background: #69412d; border-color: #69412d; color: #fffdf9; }
.bn-card-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 30px; }
.bn-content-card { display: flex; flex-direction: column; margin: 0; min-width: 0; border: 1px solid #e1d6ca; border-radius: 16px; overflow: hidden; background: #fff; box-shadow: 0 6px 20px rgb(64 41 23 / 4%); }
.bn-card-image { display: block; aspect-ratio: 3 / 2; overflow: hidden; }
.bn-card-image img { display: block; width: 100%; height: 100%; object-fit: cover; }
.bn-card-copy { padding: 24px; flex: 1; display: flex; flex-direction: column; }
body .bn-library-page .bn-card-copy h2 { font-family: Aptos,"Segoe UI",Helvetica,Arial,sans-serif; font-size: 24px; font-weight: 600; line-height: 1.28; letter-spacing: -.015em; padding: 0; margin: 0 0 15px; }
.bn-card-copy h2 a { text-decoration: none; color: #36251c; }
.bn-card-copy h2 a:hover { text-decoration: underline; }
.bn-card-copy > p:not(.bn-eyebrow) { font-size: 16px; line-height: 1.65; padding: 0; margin: 0 0 20px; }
.bn-card-read { font-size: 15px; font-weight: 600; display: inline-flex; gap: 6px; align-items: center; min-height: 44px; margin-top: auto; text-decoration: underline; align-self: flex-start; }
.bn-library-page .pagination { margin-top: 35px; }
.bn-article { max-width: 1040px; margin: 0 auto; }
.bn-article-heading { max-width: 820px; margin: 0 auto 30px; }
.bn-updated { color: #74675d; font-size: 14px; padding: 0; }
.bn-recipe-jump { display: flex; flex-wrap: wrap; gap: 10px 24px; margin-top: 20px; }
.bn-recipe-jump a { display: inline-flex; align-items: center; min-height: 44px; font-size: 15px; text-decoration: underline; font-weight: 500; }
.bn-feature-image { margin: 0 0 38px; }
.bn-feature-image img { display: block; width: 100%; max-height: 580px; height: auto; object-fit: cover; border-radius: 14px; }
.bn-feature-image figcaption { color: #75685c; font-size: 12px; padding-top: 8px; text-align: right; }
.bn-editorial-content { max-width: 76ch; margin: 0 auto; font-size: 18px; line-height: 1.8; }
.bn-editorial-content p { margin: 0 0 22px; padding: 0; font-size: inherit; line-height: inherit; }
body .bn-editorial-content h2 { font-family: Aptos,"Segoe UI",Helvetica,Arial,sans-serif; font-size: clamp(25px,2.3vw,32px); font-weight: 600; line-height: 1.25; letter-spacing: -.015em; color: #36251c; margin: 40px 0 18px; padding: 0; scroll-margin-top: 130px; }
body .bn-editorial-content h3 { font-family: Aptos,"Segoe UI",Helvetica,Arial,sans-serif; font-size: 22px; line-height: 1.4; font-weight: 600; margin: 28px 0 14px; padding: 0; color: #493326; }
.bn-editorial-content ul,.bn-editorial-content ol { margin: 0 0 26px; padding: 0 0 0 1.4em; }
.bn-editorial-content li { padding: 0 0 8px 3px; }
.bn-editorial-content a { text-decoration: underline; overflow-wrap: anywhere; }
.bn-editorial-content .bn-ingredients { background: #f6f0e8; border: 1px solid #e2d4c5; border-radius: 12px; padding: 24px 30px 20px 48px; }
.bn-editorial-content .bn-recipe-steps { padding-left: 1.55em; }
.bn-editorial-content .bn-recipe-steps li { padding-left: 9px; margin-bottom: 16px; }
.bn-editorial-content .bn-recipe-steps li::marker { color: #69412d; font-weight: 600; }
.bn-editorial-content table { display: block; max-width: 100%; overflow-x: auto; font-size: 16px; }
.bn-archive-gallery { margin: 44px auto 0; padding-top: 28px; border-top: 1px solid #ded0c1; }
.bn-archive-gallery h2 { font-size: 25px; line-height: 1.3; margin-bottom: 14px; }
.bn-archive-gallery > p { max-width: 76ch; font-size: 16px; line-height: 1.7; }
.bn-gallery-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 20px; margin-top: 20px; }
.bn-gallery-grid figure { margin: 0; }
.bn-gallery-grid img { display: block; width: 100%; height: auto; border-radius: 9px; }
.bn-gallery-grid figcaption { font-size: 14px; line-height: 1.6; padding-top: 8px; }
.bn-back-link { max-width: 76ch; margin: 36px auto 0; padding-top: 22px; border-top: 1px solid #ded0c1; font-size: 16px; }
.bn-back-link a { display: inline-flex; min-height: 44px; align-items: center; text-decoration: underline; }
@media (max-width: 1100px) { .bn-card-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 24px; } }
@media (max-width: 680px) {
    .bn-library-shell { width: 80%; padding-top: 24px; padding-bottom: 48px; }
    .bn-breadcrumbs { margin-bottom: 22px; }
    .bn-card-grid,.bn-gallery-grid { grid-template-columns: minmax(0,1fr); }
    .bn-card-copy { padding: 22px; }
    .bn-category-nav { margin-bottom: 28px; }
    .bn-category-nav ul { gap: 8px; }
    .bn-category-nav a { font-size: 14px; padding: 10px 12px; }
    .bn-editorial-content { font-size: 17px; line-height: 1.8; }
    .bn-feature-image { margin-bottom: 26px; }
    .bn-feature-image img { border-radius: 10px; }
    .bn-editorial-content .bn-ingredients { padding: 20px 18px 14px 36px; }
}
.bn-diagrams figure { margin: 32px 0; }
.bn-diagrams img { display: block; width: 100%; height: auto; border-radius: 10px; }
.bn-diagrams figcaption { font-size: 15px; line-height: 1.65; padding-top: 12px; color: #5e4b3d; }
/* Override the legacy Divi heading scale only within the editorial library. */
body #main-content.bn-library-page h1 { font-size: clamp(32px,3.5vw,54px) !important; line-height: 1.15 !important; }
body #main-content.bn-library-page .bn-card-copy h2 { font-size: 24px !important; line-height: 1.28 !important; }
body #main-content.bn-library-page .bn-editorial-content h2 { font-size: clamp(25px,2.3vw,32px) !important; line-height: 1.25 !important; }
body #main-content.bn-library-page .bn-editorial-content h3 { font-size: 22px !important; line-height: 1.4 !important; }
body #main-content.bn-library-page p, body #main-content.bn-library-page li { font-weight: 400; }
body #main-content.bn-library-page .bn-eyebrow { font-weight: 600; }
body #main-content.bn-library-page .bn-editorial-content ul { list-style: disc !important; }
body #main-content.bn-library-page .bn-editorial-content ol { list-style: decimal !important; }
body #main-content.bn-library-page .bn-editorial-content li { display: list-item; list-style: inherit !important; }
