/*
Theme Name: Born Abel
Theme URI: https://bornabel.org
Description: Lightweight custom theme for Born Abel (501c3). Gold #a78c3c, cream #fcf2e0, Oswald headings. Page content stays as editable WordPress blocks.
Version: 1.0.0
Requires PHP: 8.0
Author: Born Abel
Text Domain: bornabel
*/

/* ---------- Font (self-hosted Oswald, all weights in one file) ---------- */
@font-face {
	font-family: "Oswald";
	font-style: normal;
	font-weight: 200 700;
	font-display: swap;
	src: url("assets/fonts/oswald-latin.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Tokens ---------- */
:root {
	--ba-gold: #a78c3c;
	--ba-gold-dark: #78642b;   /* gold for small text: 4.8:1+ on all light backgrounds */
	--ba-gold-btn: #857030;    /* gold for buttons: white text 4.8:1 */
	--ba-gold-btn-hover: #6f5d27;
	--ba-gold-soft: #efe3c4;
	--ba-cream: #fcf2e0;
	--ba-sand: #f8ecd4;
	--ba-ink: #2b2622;
	--ba-body: #47413b;
	--ba-muted: #6d655d;
	--ba-line: rgba(167,140,60,.22);
	--ba-radius: 20px;
	--ba-radius-sm: 12px;
	--ba-shadow: 0 12px 32px rgba(43,38,34,.10);
	--ba-shadow-lg: 0 20px 44px rgba(43,38,34,.14);
	--ba-max: 1160px;
	--ba-font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--ba-font-head: Oswald, "Arial Narrow", sans-serif;
	--hdr-h: 92px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html.no-scroll { overflow: hidden; }
body { margin: 0; font-family: var(--ba-font-body); font-size: 18px; line-height: 1.7; color: var(--ba-body); background: #fff; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img, svg, video { max-width: 100%; height: auto; }
h1, h2, h3, h4, h5, h6 { font-family: var(--ba-font-head); color: var(--ba-ink); font-weight: 500; line-height: 1.15; margin: 0 0 .5em; letter-spacing: .01em; }
h1 { font-size: clamp(36px, 5vw, 60px); }
h2 { font-size: clamp(28px, 3.4vw, 42px); }
h3 { font-size: 24px; }
p { margin: 0 0 1em; }
a { color: var(--ba-gold-dark); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--ba-ink); }
:focus-visible { outline: 3px solid var(--ba-gold); outline-offset: 2px; }
button, input, select, textarea { font: inherit; }
figure { margin: 0 0 1.5em; }
hr { border: 0; border-top: 1px solid var(--ba-line); margin: 2em 0; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); white-space: nowrap; }
.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 1000; background: var(--ba-ink); color: #fff; padding: 10px 16px; border-radius: 8px; }
.skip-link:focus { left: 8px; }

.wrap { max-width: var(--ba-max); margin: 0 auto; padding: 0 22px; }
.wrap--narrow { max-width: 820px; }
.wrap--content { padding-top: 8px; padding-bottom: clamp(48px, 7vw, 88px); }
.page-head { background: linear-gradient(180deg, var(--ba-cream), #fff); padding: clamp(36px, 6vw, 72px) 0 clamp(20px, 3vw, 36px); text-align: center; }
.page-title { margin: 0; font-size: clamp(36px, 5vw, 58px); }
.page-title::after { content: ""; display: block; width: 56px; height: 4px; border-radius: 4px; background: var(--ba-gold); margin: 16px auto 0; }
.ba-kicker-text { font-family: var(--ba-font-head); text-transform: uppercase; letter-spacing: .16em; font-size: 14px; color: var(--ba-gold-dark); margin: 0 0 .5em; }
.entry-content > .alignwide { max-width: var(--ba-max); margin-left: auto; margin-right: auto; }
.entry-full > .alignfull, .entry-full > .wp-block-group.alignfull { margin: 0; width: 100%; max-width: 100%; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96); backdrop-filter: saturate(1.4) blur(8px); transition: box-shadow .2s; }
.admin-bar .site-header { top: 32px; }
.site-header.is-scrolled { box-shadow: 0 6px 20px rgba(43,38,34,.08); }
.hdr { max-width: 1240px; margin: 0 auto; padding: 0 22px; height: var(--hdr-h); display: flex; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; flex: 0 0 auto; }
.brand__logo { height: 74px; width: auto; display: block; }
.brand__text { font-family: var(--ba-font-head); font-size: 26px; color: var(--ba-ink); }
.main-nav { margin-left: auto; }
.main-nav .menu { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 2px; }
.main-nav .menu > li { position: relative; }
.main-nav .menu > li > a { display: flex; align-items: center; gap: 5px; padding: 10px 12px; font-family: var(--ba-font-head); font-size: 17px; letter-spacing: .02em; color: var(--ba-ink); text-decoration: none; white-space: nowrap; border-radius: 8px; transition: color .15s, background .15s; }
.main-nav .menu > li > a:hover, .main-nav .menu > li.current-menu-item > a, .main-nav .menu > li.current-menu-ancestor > a { color: var(--ba-gold-dark); }
.main-nav .menu > li.current-menu-item > a { box-shadow: inset 0 -3px 0 var(--ba-gold); border-radius: 0; }
.main-nav .menu-item-has-children > a::after { content: ""; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); margin-left: 4px; }
.main-nav .sub-menu { list-style: none; margin: 0; padding: 8px 0; position: absolute; top: calc(100% + 6px); left: 0; min-width: 250px; background: #fff; border-radius: 14px; box-shadow: 0 18px 40px rgba(43,38,34,.14); border-top: 3px solid var(--ba-gold); opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .16s, transform .16s, visibility .16s; z-index: 60; }
.main-nav .menu-item-has-children:hover > .sub-menu, .main-nav .menu-item-has-children:focus-within > .sub-menu, .main-nav .menu-item-has-children.is-open > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.main-nav .menu-item-has-children::before { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 10px; }
.main-nav .sub-menu a { display: block; padding: 10px 20px; color: var(--ba-ink); text-decoration: none; font-size: 16px; }
.main-nav .sub-menu a:hover { background: var(--ba-cream); color: var(--ba-gold-dark); }
.main-nav .ba-menu-donate { margin-left: 10px; }
.main-nav .ba-menu-donate > a, .m-menu .ba-menu-donate > a { background: var(--ba-gold-btn); color: #fff !important; border-radius: 999px !important; padding: 11px 24px !important; text-transform: uppercase; letter-spacing: .08em !important; font-weight: 500; box-shadow: 0 6px 16px rgba(167,140,60,.28) !important; }
.main-nav .ba-menu-donate > a:hover { background: var(--ba-gold-btn-hover); }
.menu-toggle { display: none; margin-left: auto; align-items: center; gap: 8px; background: transparent; border: 2px solid var(--ba-gold); color: var(--ba-gold-dark); border-radius: 999px; padding: 8px 16px; min-height: 46px; font-family: var(--ba-font-head); text-transform: uppercase; letter-spacing: .08em; font-size: 15px; cursor: pointer; }
.menu-toggle__bars { display: inline-grid; gap: 4px; }
.menu-toggle__bars span { display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px; }

/* Mobile panel */
.mobile-panel { position: fixed; inset: 0; z-index: 100; }
.mobile-panel__overlay { position: absolute; inset: 0; background: rgba(43,38,34,.45); opacity: 0; transition: opacity .25s; }
.mobile-panel__sheet { position: absolute; top: 0; right: 0; bottom: 0; width: min(88vw, 380px); background: #fff; display: flex; flex-direction: column; transform: translateX(100%); transition: transform .25s ease; overflow-y: auto; }
.mobile-panel.is-open .mobile-panel__overlay { opacity: 1; }
.mobile-panel.is-open .mobile-panel__sheet { transform: none; }
.mobile-panel__head { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; border-bottom: 1px solid var(--ba-line); }
.mobile-panel__head .brand__logo { height: 54px; }
.mobile-panel__close { width: 46px; height: 46px; border-radius: 50%; border: 0; background: var(--ba-cream); color: var(--ba-ink); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.mobile-panel__close svg { width: 22px; height: 22px; }
.m-menu { list-style: none; margin: 0; padding: 8px 18px; }
.m-menu > li { border-bottom: 1px solid var(--ba-line); display: flex; flex-wrap: wrap; align-items: center; }
.m-menu > li > a { flex: 1; display: flex; align-items: center; min-height: 56px; font-family: var(--ba-font-head); font-size: 20px; color: var(--ba-ink); text-decoration: none; }
.m-menu > li.current-menu-item > a { color: var(--ba-gold-dark); }
.m-menu__expand { width: 48px; height: 48px; border: 0; background: transparent; color: var(--ba-gold-dark); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; border-radius: 50%; }
.m-menu__expand svg { width: 22px; height: 22px; transition: transform .2s; }
.m-menu__expand[aria-expanded="true"] svg { transform: rotate(180deg); }
.m-menu .sub-menu { list-style: none; margin: 0 0 10px; padding: 4px 0 4px 14px; width: 100%; border-left: 3px solid var(--ba-gold-soft); }
.m-menu .sub-menu a { display: flex; align-items: center; min-height: 46px; color: var(--ba-body); text-decoration: none; font-size: 17px; }
.m-menu > li.ba-menu-donate { border: 0; margin-top: 18px; }
.m-menu > li.ba-menu-donate > a { justify-content: center; font-size: 18px; min-height: 54px; }
.mobile-panel__foot { margin-top: auto; padding: 18px; border-top: 1px solid var(--ba-line); display: flex; flex-direction: column; gap: 12px; }
.mobile-panel__foot > a { color: var(--ba-ink); }

/* Social icons */
.social { display: flex; gap: 10px; }
.social a { width: 44px; height: 44px; border-radius: 50%; background: var(--ba-cream); display: inline-flex; align-items: center; justify-content: center; color: var(--ba-gold-dark); }
.social a:hover { background: var(--ba-gold-btn); color: #fff; }
.social svg { width: 22px; height: 22px; fill: currentColor; }

/* Generic pill link (theme templates) */
.ba-btn-link { display: inline-flex; align-items: center; justify-content: center; background: var(--ba-gold-btn); color: #fff !important; border-radius: 999px; padding: 13px 28px; min-height: 50px; font-family: var(--ba-font-head); text-transform: uppercase; letter-spacing: .07em; font-size: 15px; text-decoration: none; transition: background .2s; border: 2px solid var(--ba-gold-btn); }
.ba-btn-link:hover { background: var(--ba-gold-btn-hover); border-color: var(--ba-gold-btn-hover); }
.ba-btn-link--outline { background: transparent; color: var(--ba-gold-dark) !important; }
.ba-btn-link--outline:hover { background: var(--ba-gold-btn); color: #fff !important; }

/* ---------- Instagram band ---------- */
.ba-ig { background: var(--ba-cream); padding: clamp(44px, 6vw, 72px) 22px; text-align: center; }
.ba-ig__inner { max-width: 1200px; margin: 0 auto; }
.ba-ig__kicker { font-family: var(--ba-font-head); letter-spacing: .16em; text-transform: uppercase; color: var(--ba-gold-dark); font-size: 14px; margin: 0 0 6px; }
.ba-ig__title { font-size: clamp(28px, 3vw, 38px); margin: 0 0 24px; }
.ba-ig__title a { color: inherit; text-decoration: none; }
.ba-ig__grid { list-style: none; margin: 0 0 26px; padding: 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.ba-ig__grid a { display: block; border-radius: 14px; overflow: hidden; aspect-ratio: 1 / 1; background: #efe3c4; }
.ba-ig__grid img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s; }
.ba-ig__grid a:hover img { transform: scale(1.05); }

/* ---------- Footer ---------- */
.site-footer { background: #fff; border-top: 4px solid var(--ba-gold); }
.ftr { max-width: 1200px; margin: 0 auto; padding: 56px 22px 32px; display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; }
.ftr h2 { font-size: 17px; letter-spacing: .1em; text-transform: uppercase; color: var(--ba-gold-dark); margin: 0 0 14px; }
.ftr p { font-size: 16px; line-height: 1.6; color: var(--ba-muted); }
.ftr ul { list-style: none; margin: 0; padding: 0; }
.ftr li { margin: 0 0 9px; }
.ftr a { color: var(--ba-ink); text-decoration: none; }
.ftr a:hover { color: var(--ba-gold-dark); text-decoration: underline; }
.ftr__logo img { width: 170px; height: auto; margin-bottom: 12px; }
.ftr__legal { font-size: 14px !important; }
.ftr .social { margin: 6px 0 18px; }
.ftr .ba-btn-link { color: #fff; }
.ftr__bottom { max-width: 1200px; margin: 0 auto; padding: 18px 22px 28px; border-top: 1px solid var(--ba-line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; font-size: 14px; color: var(--ba-muted); }
.ftr__bottom a { color: var(--ba-muted); }
.ftr__bottom nav a + a { margin-left: 18px; }

/* ---------- Blog / search / 404 ---------- */
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 28px; padding: 32px 0 64px; }
.post-card { background: #fff; border-radius: var(--ba-radius); box-shadow: var(--ba-shadow); overflow: hidden; }
.post-card__img img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; display: block; }
.post-card__body { padding: 20px 22px 24px; }
.post-card h2 { font-size: 22px; }
.post-card h2 a { color: var(--ba-ink); text-decoration: none; }
.notfound { padding: clamp(56px, 9vw, 120px) 0; text-align: center; background: linear-gradient(180deg, var(--ba-cream), #fff); }
.notfound__links { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin: 24px 0; }
.search-form { display: flex; gap: 8px; max-width: 520px; margin: 0 auto; }
.search-form input { flex: 1; min-height: 50px; border: 2px solid #e6dac0; border-radius: 999px; padding: 0 20px; background: #fff; }
.search-form button { min-height: 50px; border: 0; border-radius: 999px; padding: 0 24px; background: var(--ba-gold-btn); color: #fff; font-family: var(--ba-font-head); text-transform: uppercase; letter-spacing: .07em; cursor: pointer; }
.empty { text-align: center; padding: 48px 0 72px; }
.single-hero { border-radius: var(--ba-radius); margin: 24px 0; }

/* ---------- Responsive header/footer ---------- */
@media (max-width: 1180px) {
	.main-nav .menu > li > a { font-size: 15px; padding: 10px 9px; }
}
@media (max-width: 1000px) {
	.main-nav { display: none; }
	.menu-toggle { display: inline-flex; }
	:root { --hdr-h: 76px; }
	.brand__logo { height: 62px; }
	.ftr { grid-template-columns: 1fr 1fr; }
	.ba-ig__grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 600px) {
	body { font-size: 17px; }
	.ftr { grid-template-columns: 1fr; gap: 28px; text-align: center; padding-top: 40px; }
	.ftr .social { justify-content: center; }
	.ftr__bottom { flex-direction: column; text-align: center; }
	.ba-ig__grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
	.ba-ig__grid li:nth-child(n+5) { display: none; }
	.menu-toggle__label { display: none; }
	.menu-toggle { padding: 8px 12px; }
}
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.mobile-panel__sheet, .mobile-panel__overlay, .main-nav .sub-menu, .ba-ig__grid img { transition: none; }
}

/* Product gallery is always visible (WooCommerce fades it in with JS; never leave it hidden). */
.woocommerce div.product div.images.woocommerce-product-gallery { opacity: 1 !important; }
.site-header .brand__logo, .woocommerce-page .site-header .brand__logo { height: 74px !important; width: auto !important; max-width: none; }
.mobile-panel .brand__logo, .woocommerce-page .mobile-panel .brand__logo { height: 54px !important; width: auto !important; max-width: none !important; }
@media (max-width: 1000px) {
	.site-header .brand__logo, .woocommerce-page .site-header .brand__logo { height: 62px !important; }
	.mobile-panel .brand__logo, .woocommerce-page .mobile-panel .brand__logo { height: 52px !important; }
}
.brand picture, .mobile-panel picture { display: block; line-height: 0; }
.woocommerce div.product .stock.in-stock { color: #3f5f1a; }
.woocommerce div.product .stock.out-of-stock { color: #9b2c22; }


/* =========================================================================
   Born Abel design system (Nov 2026 reskin)
   Brand: gold #a78c3c · cream #fcf2e0 · Oswald headings · Abel artwork
   Applies to pages rebuilt with ba-section blocks (body.ba-reskin) + shared bits.
   ========================================================================= */

/* ---------- Base type (rebuilt pages) ---------- */
.entry-content { font-family: var(--ba-font-body); color: var(--ba-body); font-size: 18px; line-height: 1.7; }
.entry-content p { margin: 0 0 1em; }
.entry-content a:not(.wp-block-button__link):not(.ba-plain) { color: var(--ba-gold-dark); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.entry-content a:not(.wp-block-button__link):hover { color: var(--ba-ink); }
.entry-content strong { color: inherit; }
.entry-content h1, .entry-content h2, .entry-content h3, .entry-content h4 { font-family: var(--ba-font-head); color: var(--ba-ink); letter-spacing: .01em; }

/* ---------- Sections ---------- */
.ba-section { padding: clamp(52px, 7vw, 96px) 22px; margin: 0 !important; position: relative; }
.ba-section > .wp-block-group__inner-container,
.ba-section.is-layout-constrained > * { max-width: var(--ba-max); margin-left: auto !important; margin-right: auto !important; }
.ba-band-white { background: #fff; }
.ba-band-cream { background: var(--ba-cream); }
.ba-band-sand { background: var(--ba-sand); }
.ba-band-plum { background: #f5edf3; }

.ba-band-white + .ba-band-white::before { content: ""; position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: min(var(--ba-max), calc(100% - 44px)); height: 1px; background: var(--ba-line); }

/* Hero */
.ba-hero { background: radial-gradient(900px 420px at 85% 10%, rgba(239,227,196,.8), transparent 60%), linear-gradient(180deg, var(--ba-cream) 0%, #fff 100%); padding-top: clamp(40px, 6vw, 80px); padding-bottom: clamp(44px, 6vw, 84px); }
.ba-hero .ba-title { font-size: clamp(38px, 5.6vw, 66px) !important; line-height: 1.04; font-weight: 500; margin: 0 0 .3em !important; }
.ba-hero .ba-lead { font-size: clamp(19px, 1.7vw, 22px); color: var(--ba-body); }
.ba-hero--center { text-align: center; }
.ba-hero--center .ba-lead { max-width: 760px; margin-left: auto; margin-right: auto; }
.ba-hero--center .ba-actions { justify-content: center; }

/* Kicker + headings */
.ba-kicker { font-family: var(--ba-font-head) !important; text-transform: uppercase; letter-spacing: .16em; font-size: 14px !important; font-weight: 500; color: var(--ba-gold-dark) !important; margin: 0 0 .6em !important; }
.ba-h2 { font-size: clamp(30px, 3.5vw, 44px) !important; line-height: 1.12; font-weight: 500; margin: 0 0 .55em !important; }
.ba-h2::after { content: ""; display: block; width: 56px; height: 4px; border-radius: 4px; background: var(--ba-gold); margin-top: 16px; }
.ba-center { text-align: center; }
.ba-center .ba-h2::after, .ba-hero--center .ba-title::after { margin-left: auto; margin-right: auto; }
.ba-section-head { text-align: center; max-width: 780px; margin: 0 auto clamp(28px, 4vw, 44px) !important; }
.ba-section-head .ba-h2::after { margin-left: auto; margin-right: auto; }
.ba-subtitle { font-family: var(--ba-font-head); font-size: 20px !important; color: var(--ba-gold-dark); letter-spacing: .02em; margin-top: -.3em !important; }

/* Split: image beside text */
.ba-split { gap: clamp(28px, 5vw, 64px) !important; align-items: center !important; margin: 0 !important; }
.ba-split--rev { flex-direction: row-reverse; }
.ba-split .wp-block-column { min-width: 0; }
.ba-media { margin: 0 !important; }
.ba-media img { width: 100%; height: auto; border-radius: var(--ba-radius); box-shadow: var(--ba-shadow); display: block; background: #fff; }
.ba-media--plain img { box-shadow: none; border-radius: 0; background: transparent; }
.ba-copy > *:last-child { margin-bottom: 0 !important; }

/* Prose */
.ba-prose { max-width: 780px; margin-left: auto !important; margin-right: auto !important; }
.ba-prose.ba-center p { margin-left: auto; margin-right: auto; }
.ba-prose h2 { font-size: 28px; margin: 1.6em 0 .5em; }
.ba-prose h3 { font-size: 22px; margin: 1.4em 0 .4em; }
.ba-prose figure { margin: 1.5em 0; }
.ba-prose figure img { border-radius: var(--ba-radius-sm); }

/* Buttons */
.ba-actions { gap: 12px !important; margin-top: 1.6em !important; flex-wrap: wrap; }
.ba-btn .wp-block-button__link, .ba-btn-outline .wp-block-button__link {
	font-family: var(--ba-font-head); text-transform: uppercase; letter-spacing: .07em; font-size: 15px; font-weight: 500;
	border-radius: 999px !important; padding: 14px 28px !important; min-height: 50px; display: inline-flex; align-items: center; justify-content: center;
	border: 2px solid var(--ba-gold-btn) !important; text-decoration: none !important; line-height: 1.2; transition: background .2s, color .2s, transform .2s, box-shadow .2s;
}
.ba-btn .wp-block-button__link { background: var(--ba-gold-btn) !important; color: #fff !important; box-shadow: 0 6px 16px rgba(167,140,60,.28); }
.ba-btn .wp-block-button__link:hover, .ba-btn .wp-block-button__link:focus-visible { background: var(--ba-gold-btn-hover) !important; border-color: var(--ba-gold-btn-hover) !important; transform: translateY(-1px); }
.ba-btn-outline .wp-block-button__link { background: transparent !important; color: var(--ba-gold-dark) !important; }
.ba-btn-outline .wp-block-button__link:hover, .ba-btn-outline .wp-block-button__link:focus-visible { background: var(--ba-gold-btn) !important; color: #fff !important; }
.ba-btn .wp-block-button__link:focus-visible, .ba-btn-outline .wp-block-button__link:focus-visible { outline: 3px solid var(--ba-ink); outline-offset: 3px; }

/* Checklist */
.ba-checklist { list-style: none !important; padding: 0 !important; margin: 1.2em 0 !important; display: grid; gap: 10px; }
.ba-checklist li { position: relative; padding: 12px 16px 12px 50px; background: #fff; border-radius: var(--ba-radius-sm); box-shadow: 0 4px 14px rgba(43,38,34,.06); font-size: 17px; line-height: 1.5; }
.ba-checklist li::before { content: "✓"; position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 26px; height: 26px; border-radius: 50%; background: var(--ba-gold-btn); color: #fff; font-size: 14px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.ba-band-cream .ba-checklist li, .ba-band-sand .ba-checklist li { background: #fff; }

/* Cards */
.ba-card-grid > .wp-block-group__inner-container,
.ba-card-grid.is-layout-constrained,
.ba-card-grid.is-layout-flow { display: grid !important; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: clamp(18px, 2.4vw, 30px); max-width: none !important; }
.ba-card-grid--2 > .wp-block-group__inner-container, .ba-card-grid--2.is-layout-constrained { grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr)); }
.ba-card-grid > .wp-block-group__inner-container > *, .ba-card-grid > * { margin: 0 !important; max-width: none !important; }
.ba-card { background: #fff; border-radius: var(--ba-radius); box-shadow: var(--ba-shadow); overflow: hidden; display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s; height: 100%; }
.ba-card > .wp-block-group__inner-container { display: flex; flex-direction: column; height: 100%; }
.ba-card:hover { transform: translateY(-3px); box-shadow: var(--ba-shadow-lg); }
.ba-card .ba-card-media { margin: 0 !important; background: var(--ba-cream); }
.ba-card .ba-card-media img { width: 100%; aspect-ratio: 1 / 1; object-fit: contain; display: block; border-radius: 0; box-shadow: none; }
.ba-card .ba-card-media--cover img { object-fit: cover; }
.ba-card-body { padding: 20px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.ba-card-body > .wp-block-group__inner-container { display: flex; flex-direction: column; flex: 1; }
.ba-card h3 { font-size: 22px !important; font-weight: 500; line-height: 1.2; margin: 0 0 .45em !important; }
.ba-card p { font-size: 16px; line-height: 1.6; color: var(--ba-body); }
.ba-card .ba-actions { margin-top: auto !important; padding-top: 8px; }
.ba-card .ba-btn .wp-block-button__link, .ba-card .ba-btn-outline .wp-block-button__link { padding: 11px 20px !important; min-height: 44px; font-size: 14px; }
.ba-band-white .ba-card { background: var(--ba-cream); }
.ba-band-white .ba-card .ba-card-media { background: #fff; }

/* Read-more for long card text (pure CSS, keeps all text in the page) */
.ba-clamp p { display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden; }
.ba-clamp:focus-within p, .ba-clamp:hover p { -webkit-line-clamp: unset; }

/* Quote / lead statement */
.ba-statement { max-width: 860px; margin: 0 auto !important; text-align: center; font-family: Georgia, "Times New Roman", serif; font-style: italic; font-size: clamp(20px, 2.2vw, 26px) !important; line-height: 1.55; color: var(--ba-ink); }

/* Galleries */
.ba-gallery-wrap .wp-block-gallery img, .ba-gallery-wrap .tiled-gallery img, .ba-gallery-wrap .coblocks-gallery img { border-radius: 14px; }
.ba-gallery-wrap .wp-block-gallery { gap: 14px !important; }
.ba-gallery-wrap figure.wp-block-image { margin-bottom: 14px; }

/* Forms kept from Jetpack (newsletter + contact) */
.ba-form-wrap { max-width: 720px; margin: 0 auto !important; }
.ba-form-wrap input[type=email], .ba-form-wrap input[type=text], .ba-form-wrap textarea { border: 2px solid #e6dac0 !important; border-radius: 12px !important; padding: 14px 16px !important; font-size: 17px !important; background: #fff !important; width: 100%; }
.ba-form-wrap input:focus, .ba-form-wrap textarea:focus { outline: none; border-color: var(--ba-gold) !important; box-shadow: 0 0 0 4px rgba(167,140,60,.15); }
.ba-form-wrap button, .ba-form-wrap .wp-block-button__link { background: var(--ba-gold-btn) !important; color: #fff !important; border-radius: 999px !important; font-family: var(--ba-font-head) !important; text-transform: uppercase; letter-spacing: .07em; padding: 14px 32px !important; border: 0 !important; min-height: 50px; }
.ba-form-wrap label { font-weight: 600; color: var(--ba-ink); }

/* CTA band */
.ba-cta { background: linear-gradient(135deg, var(--ba-gold-btn) 0%, #7a6629 100%); color: #fff; text-align: center; }
.ba-cta .ba-h2, .ba-cta p, .ba-cta .ba-kicker { color: #fff !important; }
.ba-cta .ba-h2::after { background: #fff; margin-left: auto; margin-right: auto; }
.ba-cta .ba-actions { justify-content: center; }
.ba-cta .ba-btn .wp-block-button__link { background: #fff !important; color: var(--ba-gold-dark) !important; border-color: #fff !important; box-shadow: none; }
.ba-cta .ba-btn-outline .wp-block-button__link { color: #fff !important; border-color: #fff !important; }

/* Wide banner image */
.ba-banner { margin: 0 !important; }
.ba-banner img { width: 100%; height: auto; display: block; border-radius: var(--ba-radius); box-shadow: var(--ba-shadow); }

/* ---------- Tablet ---------- */
@media (max-width: 960px) {
	.entry-content { font-size: 17px; }
}

/* ---------- Phones ---------- */
@media (max-width: 781px) {
	.ba-section { padding: 48px 18px; }
	.ba-hero { padding-top: 32px; padding-bottom: 44px; }
	.ba-split, .ba-split--rev { flex-direction: column !important; gap: 22px !important; }
	.ba-split .wp-block-column { flex-basis: 100% !important; width: 100%; }
	.ba-split .ba-media-col { order: -1; }
	.ba-hero .ba-copy { text-align: center; }
	.ba-hero .ba-title::after, .ba-hero .ba-h2::after { margin-left: auto; margin-right: auto; }
	.ba-hero .ba-actions { justify-content: center; }
	.ba-actions { flex-direction: column; align-items: stretch; }
	.ba-actions .wp-block-button { width: 100%; }
	.ba-actions .wp-block-button__link { width: 100%; }
	.ba-card .ba-actions { flex-direction: column; }
	.ba-h2 { font-size: 30px !important; }
	.ba-checklist li { font-size: 16px; }
	.ba-card-grid > .wp-block-group__inner-container, .ba-card-grid.is-layout-constrained { grid-template-columns: 1fr; }
	.ba-card-grid--books > .wp-block-group__inner-container, .ba-card-grid--books.is-layout-constrained { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
	.ba-card-grid--books .ba-card-body { padding: 14px 14px 16px; }
	.ba-card-grid--books h3 { font-size: 17px !important; }
	.ba-card-grid--books p { font-size: 14px; }
	.ba-card-grid--books .ba-clamp p { -webkit-line-clamp: 4; }
}

@media (prefers-reduced-motion: reduce) {
	.ba-card, .ba-btn .wp-block-button__link, .ba-btn-outline .wp-block-button__link { transition: none; }
	.ba-card:hover { transform: none; }
}

/* Centered hero intro text */
.ba-hero--center p { text-align: center; max-width: 780px; margin-left: auto !important; margin-right: auto !important; }
.ba-hero--center .ba-banner { margin-top: 28px !important; }
.ba-card-grid--2 > .wp-block-group__inner-container, .ba-card-grid--2.is-layout-constrained { grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.ba-card-grid--2 .ba-card-media img { padding: 14px; }

/* Galleries as a tidy grid */
.ba-gallery-wrap .wp-block-gallery.has-nested-images { display: grid !important; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); gap: 16px !important; }
.ba-gallery-wrap .wp-block-gallery.has-nested-images figure.wp-block-image { width: auto !important; margin: 0 !important; }
.ba-gallery-wrap .wp-block-gallery.has-nested-images figure.wp-block-image img { width: 100%; height: 100% !important; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 14px; }
.ba-gallery-wrap > .wp-block-group__inner-container > * + * { margin-top: 16px; }
@media (max-width: 781px) { .ba-gallery-wrap .wp-block-gallery.has-nested-images { grid-template-columns: repeat(2, 1fr); gap: 10px !important; } }

/* The Newsletter plugin form */
.ba-form-wrap .tnp-subscription { max-width: 560px; margin: 0 auto; }
.ba-form-wrap .tnp-subscription input[type=text], .ba-form-wrap .tnp-subscription input[type=email] { border: 2px solid #e6dac0 !important; border-radius: 12px !important; padding: 14px 16px !important; font-size: 17px !important; background: #fff !important; }
.ba-form-wrap .tnp-subscription input.tnp-submit, .ba-form-wrap .tnp-subscription input[type=submit] { background: var(--ba-gold-btn) !important; color: #fff !important; border-radius: 999px !important; font-family: var(--ba-font-head) !important; text-transform: uppercase; letter-spacing: .07em; padding: 14px 34px !important; border: 0 !important; min-height: 50px; width: 100%; cursor: pointer; font-size: 16px !important; }
.ba-form-wrap .tnp-subscription input[type=submit]:hover { background: var(--ba-gold-dark) !important; }
.ba-form-wrap .tnp-subscription label { font-weight: 600; color: var(--ba-ink); font-size: 15px; }
.ba-form-wrap .tnp-privacy-field label { font-weight: 400; }
.ba-form-wrap { background: #fff; border-radius: var(--ba-radius); box-shadow: var(--ba-shadow); padding: clamp(22px, 4vw, 40px) !important; }
.ba-band-white .ba-form-wrap { background: var(--ba-cream); box-shadow: none; }
@media (max-width: 781px) {
	.ba-card-grid--books .ba-btn .wp-block-button__link { font-size: 13px !important; padding: 10px 10px !important; letter-spacing: .03em; min-height: 42px; white-space: nowrap; }
}

/* ---------- Phones: hero photos run edge to edge (no card, no shadow) ---------- */
@media (max-width: 781px) {
	.ba-hero:has(.ba-split .ba-media-col .ba-media) { padding-top: 0; }
	.ba-hero:has(.ba-banner) { padding-bottom: 0; }
	.ba-hero .ba-media-col .ba-media,
	.ba-hero .ba-banner {
		margin-left: -18px !important; margin-right: -18px !important;
		width: calc(100% + 36px); max-width: none;
	}
	.ba-hero .ba-media img,
	.ba-hero .ba-banner img { border-radius: 0; box-shadow: none; background: transparent; }
}

/* ---------- Board (About page) ---------- */
.ba-board { scroll-margin-top: calc(var(--hdr-h, 92px) + 12px); }
.ba-board .ba-board-intro { max-width: 760px; margin: 0 auto 36px !important; }
.ba-board-grid > .wp-block-group__inner-container,
.ba-board-grid.is-layout-constrained,
.ba-board-grid.is-layout-flow { display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(18px, 2.4vw, 28px); max-width: 1160px !important; align-items: start; }
.ba-board-grid > * , .ba-board-grid > .wp-block-group__inner-container > * { margin: 0 !important; max-width: none !important; }
.ba-board-card { background: #fff; border-radius: var(--ba-radius); box-shadow: var(--ba-shadow); padding: 28px 26px 24px; text-align: center; border-top: 5px solid var(--ba-gold); }
.ba-board-card > * { max-width: none !important; }
.ba-board-photo { margin: 0 auto 14px !important; }
.ba-board-photo img { width: 200px !important; height: 200px !important; object-fit: contain; border-radius: 50%; box-shadow: none !important; background: transparent; display: block; margin: 0 auto; }
.ba-board-name { font-size: 26px !important; margin: 0 0 .15em !important; }
.ba-board-role { font-family: var(--ba-font-head); text-transform: uppercase; letter-spacing: .12em; font-size: 14px !important; color: var(--ba-gold-dark); margin: 0 0 .9em !important; }
.ba-board-bio { font-size: 16.5px; line-height: 1.65; text-align: left; margin: 0 0 .6em !important; }
.ba-board-more { text-align: left; margin: 0 !important; border-top: 1px solid rgba(167,140,60,.25); padding-top: 10px; }
.ba-board-more summary { cursor: pointer; font-family: var(--ba-font-head); text-transform: uppercase; letter-spacing: .08em; font-size: 14px; color: var(--ba-gold-dark); padding: 6px 0; list-style: none; display: flex; align-items: center; gap: 8px; min-height: 44px; }
.ba-board-more summary::-webkit-details-marker { display: none; }
.ba-board-more summary::after { content: "+"; font-size: 20px; line-height: 1; margin-left: auto; }
.ba-board-more[open] summary::after { content: "–"; }
.ba-board-more summary:focus-visible { outline: 3px solid var(--ba-gold); outline-offset: 3px; border-radius: 6px; }
.ba-board-more p { font-size: 16px; line-height: 1.65; margin: .6em 0 0 !important; }
.ba-board-also { margin: 30px auto 0 !important; font-size: 16px; }
.ba-board .ba-actions { margin-top: 18px !important; }
@media (max-width: 1000px) {
	.ba-board-grid > .wp-block-group__inner-container, .ba-board-grid.is-layout-constrained, .ba-board-grid.is-layout-flow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
	.ba-board-grid > .wp-block-group__inner-container, .ba-board-grid.is-layout-constrained, .ba-board-grid.is-layout-flow { grid-template-columns: 1fr; }
	.ba-board-card { padding: 24px 20px 18px; }
	.ba-board-photo img { width: 170px !important; height: 170px !important; }
}
.ba-board .ba-h2::after { margin-left: auto !important; margin-right: auto !important; }


/* ---------- WooCommerce: shop, product, cart, checkout, account ---------- */
.woocommerce .product_title, .woocommerce-loop-product__title, .woocommerce h1, .woocommerce h2, .woocommerce h3,
.woocommerce-cart h2, .woocommerce-checkout h3, .wc-block-components-title { font-family: Oswald, sans-serif !important; font-weight: 500 !important; color: #2b2622; }
.woocommerce .product_title { font-size: clamp(30px, 3.6vw, 44px) !important; line-height: 1.12; }
.woocommerce div.product p.price, .woocommerce div.product span.price, .woocommerce ul.products li.product .price { color: #2b2622 !important; font-family: Oswald, sans-serif; font-size: 22px; }
.woocommerce a.button, .woocommerce button.button, .woocommerce input.button, .woocommerce .single_add_to_cart_button,
.woocommerce a.checkout-button, .woocommerce #place_order, .woocommerce-page .return-to-shop a.button, .wc-block-components-button:not(.is-link) {
	background: #857030 !important; color: #fff !important; border-radius: 999px !important; font-family: Oswald, sans-serif !important;
	text-transform: uppercase; letter-spacing: .07em; font-weight: 500 !important; padding: 14px 28px !important; border: 0 !important; min-height: 50px; line-height: 1.2 !important; transition: background .2s;
}
.woocommerce a.button:hover, .woocommerce button.button:hover, .woocommerce .single_add_to_cart_button:hover, .woocommerce a.checkout-button:hover, .woocommerce #place_order:hover { background: #6f5d27 !important; }
.woocommerce .quantity .qty, .woocommerce form .form-row input.input-text, .woocommerce form .form-row textarea, .woocommerce form .form-row select, .woocommerce-ordering select {
	border: 2px solid #e6dac0 !important; border-radius: 12px !important; padding: 12px 14px !important; min-height: 50px; background: #fff; font-size: 16px;
}
.woocommerce .quantity .qty { width: 80px; }
.woocommerce-message, .woocommerce-info, .woocommerce-error, .woocommerce-notices-wrapper .wc-block-components-notice-banner {
	background: #fcf2e0 !important; color: #2b2622 !important; border: 0 !important; border-left: 5px solid #a78c3c !important; border-radius: 12px !important; padding: 16px 20px !important;
}
.woocommerce-message::before, .woocommerce-info::before { color: #a78c3c !important; }
.woocommerce ul.products li.product { background: #fff; border-radius: 18px; box-shadow: 0 12px 32px rgba(43,38,34,.10); padding: 14px 14px 20px !important; text-align: left; transition: transform .2s, box-shadow .2s; }
.woocommerce ul.products li.product:hover { transform: translateY(-3px); box-shadow: 0 20px 44px rgba(43,38,34,.14); }
.woocommerce ul.products li.product img { border-radius: 12px; background: #fcf2e0; }
.woocommerce ul.products li.product .woocommerce-loop-product__title { font-size: 20px !important; padding-top: 10px !important; }
.woocommerce div.product div.images img { border-radius: 20px; box-shadow: 0 12px 32px rgba(43,38,34,.10); background: #fcf2e0; }
.woocommerce div.product .woocommerce-tabs ul.tabs li { border-radius: 999px 999px 0 0; }
.woocommerce div.product .product_meta { font-size: 14px; color: #6d655d; border-top: 1px solid rgba(167,140,60,.22); padding-top: 14px; margin-top: 18px; }
.woocommerce .woocommerce-breadcrumb, .woocommerce .nv-breadcrumbs-wrap { font-size: 14px; }
.woocommerce table.shop_table { border-radius: 16px; overflow: hidden; border-color: #efe3c4 !important; }
@media (max-width: 781px) {
	.woocommerce .single_add_to_cart_button { width: 100%; }
	.woocommerce div.product form.cart { display: flex; gap: 10px; }
}

/* ---------- Theme glue for rebuilt pages ---------- */
.ba-reskin .entry-content, .entry-content { font-family: var(--ba-font-body); }
.shop-main { padding-bottom: 64px; }
.shop-main .wrap { padding-top: 28px; }
.woocommerce .woocommerce-breadcrumb a { color: var(--ba-gold-dark); }
