/*
Theme Name: Benjamin Greenfield
Theme URI: https://benjamingreenfieldbooks.com/
Description: Child theme of Neve FSE for benjamingreenfieldbooks.com. Field-guide redesign, September 2026.
Author: MINDSPARKPRESS LTD
Template: neve-fse
Version: 1.0.0
Requires at least: 6.6
Requires PHP: 8.0
Text Domain: benjamin-greenfield
*/

:root {
	--bg-paper: #F4F0E6;
	--bg-soil: #20251E;
	--bg-leaf: #3F6F3C;
	--bg-terra: #8B431E;
	--bg-sprout: #E6EEDF;
	--bg-muted: #697064;
	--bg-twine: #D7D0BF;
	--bg-white: #FFFFFF;
	--bg-cream: #FFFDF7;
	--bg-head: 'Bitter', Georgia, serif;
	--bg-body: 'Source Sans 3', Arial, sans-serif;
	--bg-max: 1344px;
	--bg-pad: 48px;
}

/* ---------- base ---------- */
html { scroll-padding-top: 90px; }
body { background: var(--bg-paper); color: var(--bg-soil); font-family: var(--bg-body); -webkit-font-smoothing: antialiased; }
.wp-site-blocks { padding: 0 !important; }
.wp-site-blocks > * { margin-block-start: 0 !important; }
.wp-site-blocks > main { margin: 0 !important; }
img { max-width: 100%; height: auto; }
a { text-underline-offset: 2px; }
.bg-main a:not(.bg-btn):hover { color: var(--bg-terra); }
:focus-visible { outline: 3px solid var(--bg-terra); outline-offset: 2px; }

.bg-kick { font-family: var(--bg-body); font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--bg-leaf); margin-bottom: 10px; }
.bg-kick--pale { color: #C9DDB8; }
.bg-kick--sp { margin-top: 30px; }
.bg-h2 { font-family: var(--bg-head); font-weight: 700; font-size: 38px; line-height: 1.15; margin: 0 0 24px; }
.bg-sub { color: var(--bg-muted); margin: -14px 0 22px; }
.bg-deck { font-size: 22px; color: var(--bg-muted); line-height: 1.45; margin: 14px 0 0; }
.bg-link { font-weight: 700; color: var(--bg-leaf); }
.bg-more { margin: 26px 0 0; font-weight: 700; }
.bg-more a { color: var(--bg-leaf); }

.bg-btn { display: inline-block; background: var(--bg-leaf); color: #fff !important; font-weight: 700; font-size: 16px; line-height: 1.3; padding: 13px 22px; border-radius: 7px; text-decoration: none; border: 1.5px solid var(--bg-leaf); transition: background .15s, border-color .15s; }
.bg-btn:hover { background: #2F552D; border-color: #2F552D; }
.bg-btn--alt { background: transparent; color: var(--bg-soil) !important; border-color: var(--bg-soil); }
.bg-btn--alt:hover { background: var(--bg-soil); color: #fff !important; border-color: var(--bg-soil); }
.bg-btn--pale { background: #C9DDB8; border-color: #C9DDB8; color: var(--bg-soil) !important; }
.bg-btn--pale:hover { background: #fff; border-color: #fff; }
.bg-btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }

.bg-sec { max-width: var(--bg-max); margin: 0 auto; padding: 72px var(--bg-pad); }
.bg-sec--tight { padding-top: 12px; }
.bg-sec--list { padding-top: 8px; }

/* ---------- header ---------- */
.bg-bar { background: var(--bg-white); border-bottom: 1px solid var(--bg-twine); position: sticky; top: 0; z-index: 50; }
.admin-bar .bg-bar { top: 32px; }
.bg-bar__in { max-width: var(--bg-max); margin: 0 auto; padding: 18px var(--bg-pad); display: flex; align-items: center; gap: 24px; }
.bg-logo { font-family: var(--bg-head); font-weight: 700; font-size: 24px; color: var(--bg-soil) !important; text-decoration: none; white-space: nowrap; }
.bg-nav { display: flex; gap: 22px; margin-left: auto; font-size: 15px; font-weight: 600; }
.bg-nav a { color: var(--bg-soil); text-decoration: none; white-space: nowrap; padding: 4px 0; border-bottom: 2px solid transparent; }
.bg-nav a:hover, .bg-nav a[aria-current] { color: var(--bg-leaf); border-bottom-color: var(--bg-leaf); }
.bg-bar__cta { font-size: 15px; padding: 11px 18px; white-space: nowrap; }
.bg-burger { display: none; }

/* ---------- home hero ---------- */
.bg-hero { display: grid; grid-template-columns: 45% 55%; min-height: 560px; background: var(--bg-paper); }
.bg-hero__t { padding: 60px 48px 44px max(48px, calc((100vw - var(--bg-max)) / 2 + 48px)); display: flex; flex-direction: column; justify-content: center; }
.bg-hero__h1 { font-family: var(--bg-head); font-weight: 700; font-size: 52px; line-height: 1.04; margin: 0 0 16px; }
.bg-hero__p { font-size: 19px; color: var(--bg-muted); margin: 0; }
.bg-hero__i { position: relative; min-height: 560px; overflow: hidden; }
.bg-hero__img { position: absolute; inset: 0; width: 100%; height: 100% !important; object-fit: cover; object-position: 72% center; }
.bg-season { position: absolute; left: 24px; bottom: 24px; width: 290px; background: var(--bg-cream); border: 1px solid var(--bg-twine); border-radius: 6px; padding: 18px 20px; box-shadow: 0 10px 30px rgba(20, 30, 20, .18); }
.bg-season__k { font-family: var(--bg-head); font-weight: 700; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--bg-terra); }
.bg-season__short { display: none; }
.bg-season b { font-family: var(--bg-head); font-size: 21px; display: block; margin: 4px 0 8px; }
.bg-season ul { margin: 0; padding-left: 18px; }
.bg-season li { font-size: 15px; margin-bottom: 4px; }
.bg-season a { color: var(--bg-soil); }

.bg-tasks { display: grid; grid-template-columns: repeat(7, 1fr); border-top: 1px solid var(--bg-twine); border-bottom: 1px solid var(--bg-twine); background: var(--bg-white); }
.bg-tasks a { padding: 20px 14px; text-align: center; border-right: 1px dashed var(--bg-twine); color: var(--bg-soil); text-decoration: none; }
.bg-tasks a:last-child { border-right: 0; }
.bg-tasks a:hover { background: var(--bg-paper); }
.bg-tasks b { font-family: var(--bg-head); font-size: 19px; display: block; }
.bg-tasks small { color: var(--bg-muted); font-size: 13px; }
.bg-tasks .on { background: var(--bg-sprout); }
.bg-tasks .on b { color: var(--bg-leaf); }

.bg-packets { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.bg-pk { background: var(--bg-white); border: 1px solid var(--bg-twine); border-radius: 4px; overflow: hidden; color: var(--bg-soil) !important; text-decoration: none; display: block; transition: transform .15s, box-shadow .15s; }
.bg-pk:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(20, 30, 20, .12); }
.bg-pk__top { background: var(--c); color: #fff; padding: 12px 16px 10px; font-family: var(--bg-head); font-weight: 700; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; }
.bg-pk__top span { opacity: .85; }
.bg-pk__b { padding: 16px; font-size: 16px; }
.bg-pk b { font-family: var(--bg-head); font-size: 19px; line-height: 1.2; display: block; margin-bottom: 8px; }
.bg-pk small { color: var(--bg-muted); font-size: 13.5px; display: block; border-top: 1px dashed var(--bg-twine); padding-top: 8px; margin-top: 8px; }

.bg-book { display: grid; grid-template-columns: 330px 1fr 300px; gap: 48px; align-items: center; background: var(--bg-soil); color: var(--bg-paper); border-radius: 10px; padding: 44px 48px; }
.bg-book__cover img { width: 100%; display: block; box-shadow: 0 16px 36px rgba(0, 0, 0, .4); border-radius: 2px; }
.bg-book__title { font-family: var(--bg-head); font-size: 34px; line-height: 1.1; margin: 0 0 12px; color: #fff; }
.bg-book__lead { font-size: 17px; opacity: .9; margin: 0 0 12px; }
.bg-book ul { padding-left: 20px; font-size: 16px; margin: 0 0 22px; }
.bg-book li { margin-bottom: 6px; }
.bg-book__side { border-left: 1px solid rgba(255, 255, 255, .2); padding-left: 28px; font-size: 15.5px; }
.bg-book__side b { font-family: var(--bg-head); color: #C9DDB8; display: block; margin-bottom: 6px; font-size: 17px; }

/* cards */
.bg-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.bg-card { background: var(--bg-white); border: 1px solid var(--bg-twine); border-radius: 8px; overflow: hidden; transition: transform .15s, box-shadow .15s; }
.bg-card:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(20, 30, 20, .12); }
.bg-card__link { display: block; color: var(--bg-soil) !important; text-decoration: none; height: 100%; }
.bg-card__img { aspect-ratio: 3 / 2; background: var(--bg-sprout); overflow: hidden; }
.bg-card__img img { width: 100%; height: 100% !important; object-fit: cover; display: block; }
.bg-card__body { padding: 16px 20px 20px; }
.bg-card__cat { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--bg-leaf); }
.bg-card__title { font-family: var(--bg-head); font-weight: 700; font-size: 21px; line-height: 1.25; margin: 6px 0 8px; }
.bg-card__meta { font-size: 14px; color: var(--bg-muted); }
.bg-empty { color: var(--bg-muted); }

.bg-pages { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 40px; font-weight: 600; }
.bg-pages .page-numbers { padding: 8px 14px; border: 1px solid var(--bg-twine); border-radius: 6px; background: var(--bg-white); color: var(--bg-soil); text-decoration: none; }
.bg-pages .page-numbers.current { background: var(--bg-leaf); border-color: var(--bg-leaf); color: #fff; }
.bg-pages .dots { border: 0; background: none; }

/* reviews */
.bg-reviews { max-width: none; background: var(--bg-sprout); }
.bg-reviews > .bg-kick, .bg-reviews > .bg-h2, .bg-reviews > .bg-sub { max-width: calc(var(--bg-max) - 96px); margin-left: auto; margin-right: auto; }
.bg-reviews > .wp-block-group { max-width: none; }
.bg-rev__card { border: 1px solid var(--bg-twine); box-shadow: none !important; }

/* about */
.bg-about { display: grid; grid-template-columns: 1fr 420px; gap: 48px; align-items: center; }
.bg-about p { font-size: 18px; }
.bg-about__img img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: center 25%; border-radius: 6px; display: block; }
.bg-rule { border: 2px solid var(--bg-leaf); border-radius: 4px; padding: 16px 20px; background: #F4F7EF; margin: 22px 0; }
.bg-rule__h { font-family: var(--bg-head); font-weight: 700; color: var(--bg-leaf); font-size: 14px; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 4px; }
.bg-rule p { margin: 0; font-size: 18px; font-family: var(--bg-head); font-weight: 600; }

/* ---------- footer ---------- */
.bg-foot { background: var(--bg-soil); color: rgba(255, 255, 255, .78); font-size: 14px; }
.bg-foot__in { max-width: var(--bg-max); margin: 0 auto; padding: 44px var(--bg-pad) 28px; }
.bg-foot__grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 28px; }
.bg-foot__brand { font-family: var(--bg-head); font-weight: 700; font-size: 22px; color: #fff; margin-bottom: 8px; }
.bg-foot__title { color: #fff; font-weight: 700; margin-bottom: 8px; }
.bg-foot ul { list-style: none; margin: 0; padding: 0; }
.bg-foot li { margin-bottom: 6px; }
.bg-foot a { color: rgba(255, 255, 255, .85); text-decoration: none; }
.bg-foot a:hover { color: #fff; text-decoration: underline; }
.bg-foot p { margin: 0; }
.bg-foot__pub { border-top: 1px solid rgba(255, 255, 255, .18); margin-top: 28px; padding-top: 16px; display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; font-size: 13px; }

/* ---------- single post ---------- */
.bg-phead { max-width: var(--bg-max); margin: 0 auto; padding: 56px var(--bg-pad) 28px; }
.bg-phead > * { max-width: 880px; }
.bg-crumb { font-size: 13px; color: var(--bg-muted); margin-bottom: 14px; }
.bg-crumb a { color: var(--bg-muted); text-decoration: none; }
.bg-crumb a.on { color: var(--bg-leaf); font-weight: 700; }
.bg-phead__h1 { font-family: var(--bg-head); font-weight: 700; font-size: 52px; line-height: 1.08; margin: 0; }
.bg-pmeta { display: flex; gap: 14px; align-items: center; font-size: 14px; color: var(--bg-muted); margin-top: 18px; }
.bg-pmeta img { width: 40px !important; height: 40px !important; border-radius: 50%; object-fit: cover; }
.bg-pmeta a { color: var(--bg-soil); text-decoration: none; }
.bg-phero { max-width: var(--bg-max); margin: 0 auto 40px; padding: 0 var(--bg-pad); }
.bg-phero img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 8px; max-height: 560px; display: block; }

.bg-p-wrap { max-width: var(--bg-max); margin: 0 auto !important; padding: 0 var(--bg-pad) 64px !important; display: grid !important; grid-template-columns: minmax(0, 68ch) 260px; gap: 56px; justify-content: space-between; align-items: start; }
.bg-p-wrap > * { margin: 0 !important; max-width: none !important; }
.bg-p-main { min-width: 0; }
.bg-p-main .wp-block-post-content { font-size: 19px; line-height: 1.72; }
.bg-p-main .wp-block-post-content > * { max-width: none; margin-left: 0 !important; margin-right: 0 !important; }
.bg-p-main .wp-block-post-content h2 { font-size: 32px; margin: 44px 0 14px; line-height: 1.15; }
.bg-p-main .wp-block-post-content h3 { font-size: 23px; margin: 30px 0 10px; }
.bg-p-main .wp-block-post-content p { margin: 0 0 1.1em; }
.bg-p-main .wp-block-post-content img { border-radius: 6px; }
.bg-p-main .wp-block-post-content figcaption { font-size: 14px; color: var(--bg-muted); }
.bg-p-main .wp-block-post-content a { color: var(--bg-leaf); }
.bg-p-main .wp-block-post-content ul, .bg-p-main .wp-block-post-content ol { padding-left: 1.3em; }
.bg-p-main .wp-block-post-content li { margin-bottom: .35em; }
.bg-p-main .wp-block-post-content blockquote { border-left: 4px solid var(--bg-leaf); margin: 26px 0; padding: 4px 0 4px 20px; font-style: italic; }

/* tables: default look */
.bg-p-main .wp-block-table table { border-collapse: collapse; width: 100%; font-size: 16px; background: var(--bg-white); }
.bg-p-main .wp-block-table td, .bg-p-main .wp-block-table th { border: 1px solid var(--bg-twine); padding: 10px 14px; text-align: left; vertical-align: top; }
.bg-p-main .wp-block-table thead { border-bottom: 2px solid var(--bg-leaf); }
.bg-p-main .wp-block-table th { font-family: var(--bg-head); font-size: 15px; background: var(--bg-sprout); }
.bg-p-main .wp-block-table { margin: 22px 0 26px; overflow-x: auto; }
/* "at a glance" tables (two columns, labels in bold, no header row) become the data grid */
.bg-p-main .wp-block-table:not(:has(thead)):not(:has(td:nth-child(3))) table { background: transparent; }
.bg-p-main .wp-block-table:not(:has(thead)):not(:has(td:nth-child(3))) tbody { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--bg-twine); border-radius: 4px; background: var(--bg-white); overflow: hidden; }
.bg-p-main .wp-block-table:not(:has(thead)):not(:has(td:nth-child(3))) tr { display: block; padding: 12px 16px; border-right: 1px solid var(--bg-twine); border-bottom: 1px solid var(--bg-twine); margin: 0 -1px -1px 0; font-size: 15px; line-height: 1.45; }
.bg-p-main .wp-block-table:not(:has(thead)):not(:has(td:nth-child(3))) td { display: block; border: 0; padding: 0; }
.bg-p-main .wp-block-table:not(:has(thead)):not(:has(td:nth-child(3))) td:first-child { font-family: var(--bg-head); font-weight: 700; font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--bg-terra); margin-bottom: 2px; }
.bg-p-main .wp-block-table:not(:has(thead)):not(:has(td:nth-child(3))) td:first-child strong { font-weight: 700; }
.bg-p-main .wp-block-table figcaption { font-size: 14px; color: var(--bg-muted); }

/* toc */
.bg-toc { position: sticky; top: 100px; font-size: 14px; border-left: 2px solid var(--bg-twine); padding-left: 16px; max-height: calc(100vh - 130px); overflow-y: auto; }
.admin-bar .bg-toc { top: 132px; }
.bg-toc__h { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 10px; }
.bg-toc__list { list-style: none; margin: 0; padding: 0; }
.bg-toc__list li { padding: 5px 0; line-height: 1.35; }
.bg-toc__list a { color: var(--bg-muted); text-decoration: none; }
.bg-toc__list a:hover { color: var(--bg-soil); }
.bg-toc__list a.on { color: var(--bg-leaf); font-weight: 700; }
.bg-toc:empty, .bg-toc.is-empty { display: none; }

/* boxes */
.bg-pbox { border: 1px solid var(--bg-twine); background: var(--bg-white); border-radius: 8px; padding: 20px 24px; margin: 26px 0; font-size: 16.5px; line-height: 1.55; }
.bg-pbox__h { font-weight: 800; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--bg-leaf); margin-bottom: 8px; }
.bg-pbox--terra { border-top: 5px solid var(--bg-terra); margin: 0; }
.bg-pbox--leaf { border-top: 5px solid var(--bg-leaf); margin: 0; }
.bg-pbox a { color: var(--bg-leaf); }
.bg-pbook { display: grid; grid-template-columns: 120px 1fr; gap: 22px; align-items: center; margin-top: 40px; }
.bg-pbook img { width: 120px; height: auto; display: block; border-radius: 3px; box-shadow: 0 6px 18px rgba(0, 0, 0, .18); }
.bg-pbook__t { font-family: var(--bg-head); font-size: 22px; line-height: 1.2; display: block; }
.bg-pbook p { margin: 6px 0 12px; }
.bg-pauth { display: grid; grid-template-columns: 96px 1fr; gap: 20px; align-items: center; border-top: 1px solid var(--bg-twine); padding-top: 26px; margin-top: 30px; font-size: 16px; }
.bg-pauth img { width: 96px; height: 120px !important; object-fit: cover; object-position: center 25%; border-radius: 8px; display: block; }
.bg-pauth p { margin: 0; }
.bg-pauth a { color: var(--bg-leaf); font-weight: 700; }

/* comments */
.bg-p-main .wp-block-comments { margin-top: 40px !important; font-size: 16px; }
.bg-p-main .wp-block-comments h2, .bg-p-main .wp-block-comments h3 { font-size: 24px; }
.bg-p-main .wp-block-comments input[type=text], .bg-p-main .wp-block-comments input[type=email], .bg-p-main .wp-block-comments input[type=url], .bg-p-main .wp-block-comments textarea { width: 100%; border: 1px solid var(--bg-twine); border-radius: 6px; padding: 10px 12px; font: inherit; background: var(--bg-white); }
.bg-p-main .wp-block-comments .wp-block-button__link, .bg-p-main .wp-block-comments input[type=submit] { background: var(--bg-leaf); color: #fff; border: 0; border-radius: 7px; padding: 12px 22px; font-weight: 700; cursor: pointer; }

/* ---------- archives ---------- */
.bg-ahead { max-width: var(--bg-max); margin: 0 auto; padding: 56px var(--bg-pad) 32px; }
.bg-ahead__h1 { font-family: var(--bg-head); font-weight: 700; font-size: 52px; line-height: 1.08; margin: 0; }
.bg-ahead__intro { max-width: 760px; font-size: 19px; color: #3C4239; margin-top: 16px; }
.bg-ahead__intro p { margin: 0; }
.bg-ahead__intro a, .bg-adesc a { color: var(--bg-leaf); }
.bg-adesc { max-width: 760px; font-size: 17px; border-top: 1px solid var(--bg-twine); padding-top: 28px; }
.bg-ahead .search-form, .bg-404 .search-form, .bg-ahead form[role=search], .bg-404 form[role=search] { display: flex; gap: 10px; max-width: 520px; margin-top: 22px; }
.bg-ahead input[type=search], .bg-404 input[type=search] { flex: 1; border: 1px solid var(--bg-twine); border-radius: 7px; padding: 12px 14px; font: inherit; font-size: 16px; background: var(--bg-white); }
.bg-ahead input[type=submit], .bg-404 input[type=submit], .bg-ahead button, .bg-404 button { background: var(--bg-leaf); color: #fff; border: 0; border-radius: 7px; padding: 12px 20px; font: inherit; font-weight: 700; cursor: pointer; }
.bg-ahead .screen-reader-text, .bg-404 .screen-reader-text { position: absolute; clip: rect(1px, 1px, 1px, 1px); width: 1px; height: 1px; overflow: hidden; }

/* ---------- plain pages ---------- */
.bg-ahead--page { padding-bottom: 12px; }
.bg-ahead--page > * { max-width: 720px; margin-left: auto !important; margin-right: auto !important; }
.bg-page { max-width: 720px; margin: 0 auto !important; padding: 0 24px 72px !important; font-size: 19px; line-height: 1.72; }
.bg-page a { color: var(--bg-leaf); }
.bg-page h2 { font-size: 32px; margin: 40px 0 14px; }
.bg-page img { border-radius: 6px; }
.bg-page .wp-block-button__link { color: #fff; }

/* the blog page (id 26): intro, topic links and search stay; the list becomes the card grid */
.bg-page--wide { max-width: var(--bg-max); padding: 0 var(--bg-pad) 72px !important; }
.bg-page--wide > .wp-block-post-content > * { max-width: 760px; margin-left: 0 !important; }
.bg-page--wide > .wp-block-post-content > .bg-bloglist, .bg-page--wide .bg-bloglist { max-width: none !important; margin-top: 36px; }
.bg-page--wide .wp-block-search { max-width: 520px !important; }
.bg-page--wide .wp-block-search__input { border: 1px solid var(--bg-twine); border-radius: 7px; padding: 10px 14px; background: var(--bg-white); }
.bg-page--wide .wp-block-search__button { background: var(--bg-leaf); color: #fff; border: 0; border-radius: 7px; font-weight: 700; }
.bg-page--wide p:empty { display: none; }

/* ---------- book page ---------- */
.bg-bhero { max-width: var(--bg-max); margin: 0 auto; padding: 56px var(--bg-pad) 40px; display: grid; grid-template-columns: 420px 1fr; gap: 56px; align-items: center; }
.bg-bhero__cover { background: var(--bg-white); border: 1px solid var(--bg-twine); border-radius: 6px; padding: 36px 0; text-align: center; }
.bg-bhero__cover img { width: 72%; height: auto; display: inline-block; box-shadow: 0 16px 36px rgba(0, 0, 0, .25); border-radius: 2px; }
.bg-bhero__h1 { font-family: var(--bg-head); font-weight: 700; font-size: 48px; line-height: 1.08; margin: 0; }
.bg-bhero__ul { margin: 20px 0 0; padding-left: 20px; font-size: 18px; }
.bg-bhero__ul li { margin-bottom: 6px; }
.bg-formats { font-size: 14px; color: var(--bg-muted); margin-top: 12px; }
.bg-two { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.bg-strip { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--bg-twine); border-radius: 4px; overflow: hidden; margin-bottom: 26px; }
.bg-strip div { padding: 16px 18px; background: var(--bg-white); border-right: 1px solid var(--bg-twine); font-size: 14.5px; }
.bg-strip div:last-child { border-right: 0; }
.bg-strip b { font-family: var(--bg-head); font-size: 18px; display: block; }
.bg-strip .on { background: var(--bg-leaf); color: #fff; }
.bg-kick-wrap { padding-bottom: 0; }
/* the page's own content under the new top: the first Buy Now row is replaced by the hero buttons */
.bg-book-content > .wp-block-post-content > .wp-block-buttons:first-child { display: none; }
.bg-book-content .wp-block-image img { max-width: 360px; width: 100%; height: auto; }
.bg-book-content .wp-block-button__link { background: var(--bg-leaf); color: #fff; }

/* ---------- 404 ---------- */
.bg-404 { max-width: var(--bg-max); margin: 0 auto; padding: 64px var(--bg-pad) 40px; display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.bg-404__h1 { font-family: var(--bg-head); font-weight: 700; font-size: 56px; line-height: 1.05; margin: 0; }
.bg-404__i img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 8px; display: block; }

/* iubenda button, copied from the parent theme's global styles */
.iubenda-uspr-btn.iubenda-uspr-btn { font-size: 14px !important; border-radius: 6px !important; }
.iubenda-uspr-btn.iubenda-uspr-btn a { padding: .55rem .8rem !important; gap: .4rem !important; grid-gap: .4rem !important; }
.iubenda-uspr-btn.iubenda-uspr-btn a img { width: 1.9rem !important; }

/* ---------- tablet ---------- */
@media (max-width: 1200px) {
	.bg-nav { gap: 16px; font-size: 14.5px; }
	.bg-bar__in { gap: 18px; }
	.bg-book { grid-template-columns: 240px 1fr; }
	.bg-book__side { grid-column: 1 / -1; border-left: 0; border-top: 1px solid rgba(255, 255, 255, .2); padding: 20px 0 0; }
	.bg-hero__h1 { font-size: 44px; }
}
@media (max-width: 1080px) {
	.bg-nav, .bg-bar__in > .bg-bar__cta { display: none; }
	.bg-burger { display: block; margin-left: auto; }
	.bg-burger summary { list-style: none; cursor: pointer; width: 44px; height: 44px; display: flex; flex-direction: column; justify-content: center; gap: 5px; padding: 0 10px; }
	.bg-burger summary::-webkit-details-marker { display: none; }
	.bg-burger summary span { display: block; height: 2px; background: var(--bg-soil); border-radius: 2px; }
	.bg-burger[open] summary span:nth-child(2) { opacity: 0; }
	.bg-burger__nav { position: absolute; left: 0; right: 0; top: 100%; background: var(--bg-white); border-bottom: 1px solid var(--bg-twine); padding: 8px var(--bg-pad) 20px; display: flex; flex-direction: column; box-shadow: 0 12px 24px rgba(20, 30, 20, .1); }
	.bg-burger__nav a:not(.bg-btn) { padding: 12px 0; border-bottom: 1px solid var(--bg-paper); color: var(--bg-soil); text-decoration: none; font-weight: 600; font-size: 17px; }
	.bg-burger__nav .bg-btn { margin-top: 14px; text-align: center; }
	.bg-bar__in { position: relative; }
	.bg-packets { grid-template-columns: repeat(2, 1fr); }
	.bg-p-wrap { grid-template-columns: minmax(0, 1fr); }
	.bg-toc { display: none; }
	.bg-about { grid-template-columns: 1fr 340px; }
	.bg-bhero { grid-template-columns: 340px 1fr; gap: 40px; }
}

/* ---------- phone ---------- */
@media (max-width: 781px) {
	:root { --bg-pad: 20px; }
	body { font-size: 17px; }
	.admin-bar .bg-bar { top: 0; position: relative; }
	.bg-bar { position: sticky; }
	.bg-bar__in { padding-top: 14px; padding-bottom: 14px; }
	.bg-logo { font-size: 21px; }
	.bg-sec { padding-top: 44px; padding-bottom: 44px; }
	.bg-sec--tight { padding-top: 4px; }
	.bg-h2 { font-size: 28px; margin-bottom: 18px; }
	.bg-deck { font-size: 18px; }

	.bg-hero { display: flex; flex-direction: column; min-height: 0; }
	.bg-hero__i { display: contents; }
	.bg-hero__img { position: static; height: 230px !important; order: 0; }
	.bg-hero__t { order: 1; }
	.bg-season { position: static; width: auto; margin: 16px 20px 0; padding: 14px 16px; box-shadow: none; order: 2; }
	.bg-season__long { display: none; }
	.bg-season__short { display: inline; }
	.bg-season__k { font-size: 12px; }
	.bg-season b { font-size: 18px; margin-bottom: 6px; }
	.bg-hero__t { padding: 22px 20px 8px; }
	.bg-hero__h1 { font-size: 32px; line-height: 1.06; margin-bottom: 12px; }
	.bg-hero__p { font-size: 17px; }
	.bg-btns { gap: 10px; }
	.bg-btns .bg-btn { flex: 1 1 100%; text-align: center; }

	.bg-tasks { grid-template-columns: repeat(7, minmax(108px, 1fr)); overflow-x: auto; margin-top: 28px; }
	.bg-tasks a { padding: 14px 10px; }
	.bg-tasks b { font-size: 17px; }

	.bg-packets { grid-template-columns: 1fr; gap: 10px; }
	.bg-pk { border-left: 6px solid var(--c); }
	.bg-pk__top { background: none; color: var(--c); padding: 12px 14px 0; font-size: 11px; }
	.bg-pk__b { padding: 2px 14px 12px; font-size: 15px; }
	.bg-pk b { font-size: 17px; margin-bottom: 4px; }
	.bg-pk small { display: none; }

	.bg-book { grid-template-columns: 1fr; gap: 20px; padding: 26px 22px; }
	.bg-book__cover { max-width: 200px; }
	.bg-book__title { font-size: 26px; }
	.bg-book__side { grid-column: auto; }

	.bg-cards { grid-template-columns: 1fr; gap: 20px; }
	.bg-about { grid-template-columns: 1fr; gap: 24px; }
	.bg-about__img { order: -1; }
	.bg-rev__card { flex-basis: 300px !important; }

	.bg-foot__grid { grid-template-columns: 1fr 1fr; }
	.bg-foot__grid > div:first-child { grid-column: 1 / -1; }
	.bg-foot__pub { flex-direction: column; gap: 8px; }

	.bg-phead { padding-top: 28px; padding-bottom: 20px; }
	.bg-phead__h1, .bg-ahead__h1 { font-size: 34px; }
	.bg-pmeta { font-size: 13px; }
	.bg-phero { margin-bottom: 26px; }
	.bg-p-main .wp-block-post-content { font-size: 18px; }
	.bg-p-main .wp-block-post-content h2 { font-size: 26px; margin-top: 34px; }
	.bg-p-main .wp-block-table:not(:has(thead)):not(:has(td:nth-child(3))) tbody { grid-template-columns: repeat(2, 1fr); }
	.bg-pbook { grid-template-columns: 84px 1fr; gap: 16px; padding: 16px; }
	.bg-pbook img { width: 84px; }
	.bg-pbook .bg-btn { display: block; text-align: center; }
	.bg-pauth { grid-template-columns: 72px 1fr; }
	.bg-pauth img { width: 72px; height: 90px !important; }

	.bg-ahead { padding-top: 28px; padding-bottom: 20px; }
	.bg-ahead__intro { font-size: 17px; }

	.bg-bhero { grid-template-columns: 1fr; padding-top: 24px; gap: 24px; }
	.bg-bhero__cover { padding: 22px 0; }
	.bg-bhero__cover img { width: 58%; }
	.bg-bhero__h1 { font-size: 32px; }
	.bg-bhero__ul { font-size: 17px; }
	.bg-two { grid-template-columns: 1fr; gap: 16px; }
	.bg-strip { grid-template-columns: 1fr 1fr; }
	.bg-strip div:nth-child(2) { border-right: 0; }
	.bg-strip div:nth-child(-n+2) { border-bottom: 1px solid var(--bg-twine); }

	.bg-404 { grid-template-columns: 1fr; padding-top: 28px; gap: 24px; }
	.bg-404__h1 { font-size: 38px; }
	.bg-404__i { order: -1; }

	.bg-page { font-size: 18px; padding: 0 20px 48px !important; }
}
