/*
 * Baraka theme — pages other than the home page: the space under the fixed
 * nav, editor content (pages, posts), archives, 404 and WooCommerce pages
 * that do not have their own Baraka design yet. Same tokens as home.css.
 */

/* Skip link: hidden until focused with the keyboard. */
.bh-skip { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 1000; padding: 10px 16px; border-radius: 999px; background: #3a2c26; color: #fff; font: 500 14px/1 "Jost", Arial, sans-serif; text-decoration: none; }
.bh-skip:focus { top: 12px; }

/* Content starts below the floating nav (16px gap + 72px bar + air). */
.bh-page-body { padding: 124px var(--bh-gutter) 96px; background: #fff; }
.admin-bar .bh-page-body { padding-top: calc(124px + var(--wp-admin--admin-bar--height, 32px)); }
@media (max-width: 780px) { .bh-page-body { padding-top: 96px; padding-bottom: 64px; } }

.bh-content { max-width: 820px; margin-inline: auto; }
.bh-content--wide { max-width: var(--bh-wrap); }
.bh-content__head { margin-bottom: 32px; }
.bh-content__head--wide { max-width: var(--bh-wrap); margin-inline: auto; }
.bh-content__img { margin: 0 0 32px; overflow: hidden; border-radius: 16px; }
.bh-content__img img { width: 100%; }
.bh-content__empty { max-width: var(--bh-wrap); margin-inline: auto; color: var(--bh-body); }

/* Text from the WordPress editor. */
.bh-prose { font-size: 17px; line-height: 1.7; color: var(--bh-body); }
.bh-prose :where(p, ul, ol, blockquote, figure, table) { margin: 0 0 1.1em; }
.bh-prose :where(ul, ol) { padding-inline-start: 1.3em; }
.bh-prose :where(ul) { list-style: disc; }
.bh-prose :where(ol) { list-style: decimal; }
.bh-prose :where(h2, h3, h4) { margin: 1.6em 0 .5em; font-weight: 500 !important; line-height: 1.25; color: var(--bh-coffee); }
.bh-prose h2 { font-size: 28px; }
.bh-prose h3 { font-size: 22px; }
.bh-prose h4 { font-size: 18px; }
.bh-prose a { color: var(--bh-clay); text-decoration: underline; text-underline-offset: 2px; }
.bh-prose img { border-radius: 12px; }
.bh-prose blockquote { padding-inline-start: 18px; border-inline-start: 3px solid var(--bh-khaki); color: var(--bh-ink); }
.bh-prose table { width: 100%; border-collapse: collapse; }
.bh-prose :where(th, td) { padding: 10px 12px; border-bottom: 1px solid var(--bh-line); text-align: start; }

/* Blog and archives reuse the home page's journal cards. */
.bh-archive { max-width: var(--bh-wrap); margin-inline: auto; }
.bh-pager { max-width: var(--bh-wrap); margin: 40px auto 0; }
.bh-pager .nav-links { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.bh-pager .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 40px; padding: 0 12px; border: 1px solid var(--bh-line-2); border-radius: 999px; color: var(--bh-coffee); }
.bh-pager .page-numbers.current { background: var(--bh-coffee); border-color: var(--bh-coffee); color: #fff; }

/* 404. */
.bh-404 { padding-block: 40px; text-align: center; }
.bh-404__text { margin: 14px 0 28px; color: var(--bh-body); font-size: 17px; }

/* WooCommerce pages until their Baraka design is built: brand font, colours and buttons. */
.bh-woo { font-size: 16px; color: var(--bh-ink); }
.bh-woo :where(h1, h2, h3) { color: var(--bh-coffee); font-weight: 500 !important; }
.bh-woo :where(.button, button.button, input.button, .checkout-button, #place_order) {
	display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 26px;
	border: 0; border-radius: 999px; background: var(--bh-coffee); color: #fff; font: 500 14px/1 var(--bh-font); letter-spacing: 1px; cursor: pointer;
}
.bh-woo :where(.button, button.button, input.button):hover { background: var(--bh-walnut); color: #fff; }
.bh-woo :where(input[type="text"], input[type="email"], input[type="tel"], input[type="password"], input[type="number"], select, textarea) {
	min-height: 46px; padding: 10px 14px; border: 1px solid var(--bh-line-2); border-radius: 10px; background: #fff; font: inherit; color: inherit;
}
.bh-woo .woocommerce-message, .bh-woo .woocommerce-info, .bh-woo .woocommerce-error { border-radius: 12px; border-top-color: var(--bh-clay); background: var(--bh-cream); }

/*
 * Elementor's global kit styles every link and button on the site
 * (.elementor-kit-N a { font-family: … }). Until Elementor is removed, keep the
 * Baraka chrome and the theme's own sections on the theme's type.
 */
.bh .bh-nav :is(a, button, input), .bh .bh-sheet :is(a, button),
.bh .bh-footer :is(a, button), .bh .bh-hero :is(a, button),
.bh .bh-section :is(a, button), .bh .bh-trust :is(a, button), .bh .bh-404 :is(a, button) { font-family: var(--bh-font); }
.bh .bh-fold { font: inherit; letter-spacing: inherit; text-transform: inherit; color: inherit; }

/* A whole picture that links (banner slide with text, story photo): the link
   covers the picture; the text and its button stay on top and clickable. */
.bh-stretch { position: absolute; inset: 0; z-index: 1; }
.bh-hero__shade, .bh-story__shade { pointer-events: none; }
.bh-hero__body, .bh-story__body { z-index: 2; pointer-events: none; }
.bh-hero__body a, .bh-story__body a { pointer-events: auto; }
.bh .bh-trust__item { color: inherit; text-decoration: none; }
.bh .bh-trust__item:hover strong { text-decoration: underline; text-underline-offset: 3px; }

/* The site's legacy custom CSS forces "h1–h6, p, a { font-weight: inherit !important }"; these use the font shorthand, so restate the weight. */
.bh-skip, .bh-woo :where(.button, button.button, input.button, .checkout-button, #place_order) { font-weight: 500 !important; }

/* Elementor's kit also sets its own font on headings (pages still flagged as Elementor-built): keep the theme's. */
body .bh :is(h1, h2, h3, h4, h5, h6) { font-family: var(--bh-font); }
