:root {
	--btb-blog-accent: #6d3f34;
	--btb-blog-accent-dark: #35231f;
	--btb-blog-bg: #f7f1e9;
	--btb-blog-card: #fffdf9;
	--btb-blog-ink: #2c2522;
	--btb-blog-muted: #756a64;
	--btb-blog-line: rgba(53, 35, 31, 0.14);
	--btb-blog-gold: #b28b5b;
	--btb-blog-radius: 22px;
	--btb-blog-shadow: 0 20px 55px rgba(53, 35, 31, 0.10);
}

.wo-btb-blog-page,
.wo-btb-single-post {
	background: var(--btb-blog-bg);
}


/* Keep the active block theme in control of the global site frame. */
.wo-btb-blog-page .wp-site-blocks,
.wo-btb-single-post .wp-site-blocks {
	max-width: none !important;
	overflow-x: clip;
	width: 100%;
}

.wo-btb-blog-page .wp-site-blocks > header.wp-block-template-part,
.wo-btb-blog-page .wp-site-blocks > footer.wp-block-template-part,
.wo-btb-single-post .wp-site-blocks > header.wp-block-template-part,
.wo-btb-single-post .wp-site-blocks > footer.wp-block-template-part {
	align-self: stretch;
	grid-column: 1 / -1;
	margin-inline: 0 !important;
	max-width: none !important;
	width: 100% !important;
}

/* The plugin supplies its own page/article headings and metadata. */
.wo-btb-blog-page main .wp-block-post-title,
.wo-btb-blog-page main .wp-block-post-featured-image,
.wo-btb-single-post main .wp-block-post-title,
.wo-btb-single-post main .wp-block-post-featured-image,
.wo-btb-single-post main .wp-block-post-date,
.wo-btb-single-post main .wp-block-post-author-name,
.wo-btb-single-post main .wp-block-post-terms,
.wo-btb-single-post main .wp-block-post-excerpt,
.wo-btb-single-post main .wp-block-comments,
.wo-btb-single-post main .wp-block-post-navigation-link {
	display: none !important;
}

.btb-theme-content-reset {
	margin: 0 !important;
	max-width: none !important;
	padding: 0 !important;
	width: 100%;
}

.btb-blog-template-main,
.btb-blog-shell,
.btb-article-shell {
	margin-block: 0;
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
	max-width: none !important;
	padding: 0;
	width: 100vw;
}

.btb-blog-shell,
.btb-article-shell {
	color: var(--btb-blog-ink);
	font-size: 17px;
	line-height: 1.7;
}

.btb-blog-shell *,
.btb-article-shell * {
	box-sizing: border-box;
}

.btb-blog-wrap,
.btb-article-wrap {
	margin-inline: auto;
	max-width: 1220px;
	padding-inline: clamp(20px, 4vw, 54px);
	width: 100%;
}

.btb-blog-hero {
	background:
		radial-gradient(circle at 10% 20%, rgba(255,255,255,0.13), transparent 32%),
		linear-gradient(135deg, var(--btb-blog-accent-dark), var(--btb-blog-accent));
	color: #fff;
	isolation: isolate;
	overflow: hidden;
	position: relative;
}

.btb-blog-hero::after {
	border: 1px solid rgba(255,255,255,0.18);
	border-radius: 50%;
	content: "";
	height: 420px;
	position: absolute;
	right: -120px;
	top: -190px;
	width: 420px;
	z-index: -1;
}

.btb-blog-hero__inner {
	padding-block: clamp(76px, 10vw, 138px);
	text-align: center;
}

.btb-blog-kicker {
	color: var(--btb-blog-gold);
	font-size: 0.78rem;
	font-weight: 750;
	letter-spacing: 0.16em;
	margin: 0 0 14px;
	text-transform: uppercase;
}

.btb-blog-hero .btb-blog-kicker,
.btb-article-hero .btb-blog-kicker {
	color: #ead5b8;
}

.btb-blog-hero h1,
.btb-article-hero h1,
.btb-blog-featured h2,
.btb-blog-card h2,
.btb-related-posts h2,
.btb-article-cta h2,
.btb-article-author h2 {
	font-family: var(--wp--preset--font-family--heading, Georgia, "Times New Roman", serif);
	font-weight: 500;
	letter-spacing: -0.025em;
}

.btb-blog-hero h1 {
	color: #fff;
	font-size: clamp(2.7rem, 7vw, 5.6rem);
	line-height: 0.98;
	margin: 0 auto 22px;
	max-width: 900px;
}

.btb-blog-hero__intro {
	color: rgba(255,255,255,0.82);
	font-size: clamp(1rem, 2vw, 1.25rem);
	margin: 0 auto;
	max-width: 720px;
}

.btb-blog-main {
	background: var(--btb-blog-bg);
	padding-block: clamp(46px, 7vw, 96px);
}

.btb-blog-tools {
	align-items: center;
	border-bottom: 1px solid var(--btb-blog-line);
	display: flex;
	gap: 24px;
	justify-content: space-between;
	margin-bottom: 44px;
	padding-bottom: 24px;
}

.btb-blog-categories {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.btb-blog-categories a {
	border: 1px solid var(--btb-blog-line);
	border-radius: 999px;
	color: var(--btb-blog-accent-dark);
	font-size: 0.86rem;
	font-weight: 700;
	padding: 8px 15px;
	text-decoration: none;
	transition: 160ms ease;
}

.btb-blog-categories a:hover,
.btb-blog-categories a:focus-visible,
.btb-blog-categories a.is-active {
	background: var(--btb-blog-accent);
	border-color: var(--btb-blog-accent);
	color: #fff;
}

.btb-blog-search {
	display: flex;
	flex: 0 1 360px;
}

.btb-blog-search input {
	background: var(--btb-blog-card);
	border: 1px solid var(--btb-blog-line);
	border-radius: 999px 0 0 999px;
	color: var(--btb-blog-ink);
	font: inherit;
	min-width: 0;
	padding: 11px 16px;
	width: 100%;
}

.btb-blog-search button,
.btb-blog-button {
	background: var(--btb-blog-accent);
	border: 1px solid var(--btb-blog-accent);
	border-radius: 999px;
	color: #fff;
	cursor: pointer;
	font: inherit;
	font-size: 0.9rem;
	font-weight: 750;
	padding: 11px 20px;
	text-decoration: none;
	transition: transform 160ms ease, background 160ms ease;
}

.btb-blog-search button {
	border-radius: 0 999px 999px 0;
}

.btb-blog-search button:hover,
.btb-blog-button:hover,
.btb-blog-search button:focus-visible,
.btb-blog-button:focus-visible {
	background: var(--btb-blog-accent-dark);
	border-color: var(--btb-blog-accent-dark);
	color: #fff;
	transform: translateY(-1px);
}

.btb-blog-featured {
	background: var(--btb-blog-card);
	border: 1px solid var(--btb-blog-line);
	border-radius: calc(var(--btb-blog-radius) + 6px);
	display: grid;
	grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
	margin-bottom: clamp(46px, 7vw, 86px);
	overflow: hidden;
	box-shadow: var(--btb-blog-shadow);
}

.btb-blog-featured__image,
.btb-blog-card__image,
.btb-article-hero__image {
	background: #e8ded5;
	display: block;
	overflow: hidden;
}

.btb-blog-featured__image img,
.btb-blog-card__image img,
.btb-article-hero__image img,
.btb-blog-image-placeholder {
	display: block;
	height: 100%;
	object-fit: cover;
	width: 100%;
}

.btb-blog-featured__image {
	min-height: 480px;
}

.btb-blog-featured__content {
	align-self: center;
	padding: clamp(32px, 5vw, 66px);
}

.btb-blog-meta {
	align-items: center;
	color: var(--btb-blog-muted);
	display: flex;
	flex-wrap: wrap;
	font-size: 0.8rem;
	font-weight: 650;
	gap: 8px 18px;
	letter-spacing: 0.03em;
	margin-bottom: 14px;
	text-transform: uppercase;
}

.btb-blog-meta span + span::before {
	color: var(--btb-blog-gold);
	content: "•";
	margin-right: 18px;
}

.btb-blog-featured h2 {
	font-size: clamp(2rem, 4vw, 3.4rem);
	line-height: 1.08;
	margin: 0 0 18px;
}

.btb-blog-featured h2 a,
.btb-blog-card h2 a,
.btb-blog-card__footer a {
	color: var(--btb-blog-accent-dark);
	text-decoration: none;
}

.btb-blog-featured__content > p:not(.btb-blog-kicker) {
	color: var(--btb-blog-muted);
	margin: 0 0 22px;
}

.btb-blog-text-link {
	color: var(--btb-blog-accent);
	font-weight: 800;
	text-decoration: none;
}

.btb-blog-grid {
	display: grid;
	gap: clamp(20px, 3vw, 34px);
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.btb-blog-card {
	background: var(--btb-blog-card);
	border: 1px solid var(--btb-blog-line);
	border-radius: var(--btb-blog-radius);
	display: flex;
	flex-direction: column;
	height: 100%;
	overflow: hidden;
	transition: transform 180ms ease, box-shadow 180ms ease;
}

.btb-blog-card:hover {
	box-shadow: var(--btb-blog-shadow);
	transform: translateY(-4px);
}

.btb-blog-card__image {
	aspect-ratio: 3 / 2;
}

.btb-blog-card__image img {
	transition: transform 350ms ease;
}

.btb-blog-card:hover .btb-blog-card__image img {
	transform: scale(1.035);
}

.btb-blog-card__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	padding: 25px;
}

.btb-blog-card h2 {
	font-size: clamp(1.45rem, 2.2vw, 2rem);
	line-height: 1.14;
	margin: 0 0 13px;
}

.btb-blog-card__body > p {
	color: var(--btb-blog-muted);
	font-size: 0.96rem;
	margin: 0 0 24px;
}

.btb-blog-card__footer {
	align-items: center;
	border-top: 1px solid var(--btb-blog-line);
	display: flex;
	font-size: 0.84rem;
	font-weight: 750;
	justify-content: space-between;
	margin-top: auto;
	padding-top: 16px;
}

.btb-blog-card__footer > span {
	color: var(--btb-blog-muted);
}

.btb-blog-image-placeholder {
	align-items: center;
	background:
		linear-gradient(135deg, rgba(255,255,255,.18), transparent 45%),
		var(--btb-blog-accent-dark);
	display: flex;
	justify-content: center;
	min-height: 250px;
}

.btb-blog-image-placeholder span {
	color: rgba(255,255,255,.26);
	font-family: Georgia, serif;
	font-size: clamp(5rem, 10vw, 9rem);
}

.btb-blog-results-heading {
	margin: 0 0 30px;
}

.btb-blog-results-heading p {
	color: var(--btb-blog-muted);
	font-size: .82rem;
	font-weight: 800;
	letter-spacing: .12em;
	margin: 0;
	text-transform: uppercase;
}

.btb-blog-results-heading h2 {
	font-family: var(--wp--preset--font-family--heading, Georgia, serif);
	font-size: clamp(2rem, 4vw, 3.2rem);
	font-weight: 500;
	margin: 4px 0 0;
}

.btb-blog-empty {
	background: var(--btb-blog-card);
	border: 1px solid var(--btb-blog-line);
	border-radius: var(--btb-blog-radius);
	padding: 60px 30px;
	text-align: center;
}

.btb-blog-empty h2 {
	font-family: Georgia, serif;
	font-size: 2.2rem;
	margin: 0 0 8px;
}

.btb-blog-empty p {
	color: var(--btb-blog-muted);
	margin: 0 0 24px;
}

.btb-blog-pagination {
	margin-top: 48px;
}

.btb-blog-pagination ul {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	justify-content: center;
	list-style: none;
	margin: 0;
	padding: 0;
}

.btb-blog-pagination a,
.btb-blog-pagination span {
	align-items: center;
	background: var(--btb-blog-card);
	border: 1px solid var(--btb-blog-line);
	border-radius: 999px;
	color: var(--btb-blog-accent-dark);
	display: flex;
	font-size: .9rem;
	font-weight: 750;
	justify-content: center;
	min-height: 42px;
	min-width: 42px;
	padding: 8px 14px;
	text-decoration: none;
}

.btb-blog-pagination .current,
.btb-blog-pagination a:hover {
	background: var(--btb-blog-accent);
	border-color: var(--btb-blog-accent);
	color: #fff;
}

/* Single article */
.btb-article-hero {
	background:
		radial-gradient(circle at 75% 20%, rgba(255,255,255,.12), transparent 28%),
		linear-gradient(135deg, var(--btb-blog-accent-dark), var(--btb-blog-accent));
	color: #fff;
	padding-block: clamp(54px, 8vw, 105px);
}

.btb-article-hero__grid {
	align-items: center;
	display: grid;
	gap: clamp(36px, 6vw, 80px);
	grid-template-columns: minmax(0, 1fr) minmax(320px, .82fr);
}

.btb-article-back {
	color: rgba(255,255,255,.78);
	display: inline-block;
	font-size: .88rem;
	font-weight: 750;
	margin-bottom: 36px;
	text-decoration: none;
}

.btb-article-hero h1 {
	color: #fff;
	font-size: clamp(2.65rem, 6.5vw, 5.5rem);
	line-height: 1;
	margin: 0 0 24px;
}

.btb-article-meta {
	color: rgba(255,255,255,.72);
	margin-bottom: 0;
}

.btb-article-meta span + span::before {
	color: #ead5b8;
}

.btb-article-deck {
	color: rgba(255,255,255,.82);
	font-size: 1.1rem;
	margin: 26px 0 0;
	max-width: 690px;
}

.btb-article-hero__image {
	aspect-ratio: 4 / 3;
	border: 1px solid rgba(255,255,255,.22);
	border-radius: calc(var(--btb-blog-radius) + 8px);
	box-shadow: 0 28px 70px rgba(0,0,0,.25);
}

.btb-article-layout {
	align-items: start;
	display: grid;
	gap: clamp(38px, 7vw, 90px);
	grid-template-columns: minmax(0, 760px) minmax(230px, 1fr);
	padding-block: clamp(58px, 8vw, 104px);
}

.btb-article-content {
	background: var(--btb-blog-card);
	border: 1px solid var(--btb-blog-line);
	border-radius: var(--btb-blog-radius);
	font-size: clamp(1rem, 1.5vw, 1.12rem);
	line-height: 1.82;
	padding: clamp(28px, 6vw, 76px);
}

.btb-article-content > :first-child {
	margin-top: 0;
}

.btb-article-content > :last-child {
	margin-bottom: 0;
}

.btb-article-content h2,
.btb-article-content h3,
.btb-article-content h4 {
	color: var(--btb-blog-accent-dark);
	font-family: var(--wp--preset--font-family--heading, Georgia, serif);
	font-weight: 500;
	line-height: 1.15;
	margin: 1.8em 0 .65em;
}

.btb-article-content h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); }
.btb-article-content h3 { font-size: clamp(1.55rem, 3vw, 2.1rem); }

.btb-article-content p,
.btb-article-content li {
	color: #443b37;
}

.btb-article-content a {
	color: var(--btb-blog-accent);
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}

.btb-article-content blockquote {
	border-left: 4px solid var(--btb-blog-gold);
	color: var(--btb-blog-accent-dark);
	font-family: Georgia, serif;
	font-size: clamp(1.35rem, 2.5vw, 1.85rem);
	font-style: italic;
	line-height: 1.45;
	margin: 2em 0;
	padding: 12px 0 12px 28px;
}

.btb-article-content img {
	border-radius: 14px;
	height: auto;
	max-width: 100%;
}

.btb-article-content figcaption {
	color: var(--btb-blog-muted);
	font-size: .82rem;
	text-align: center;
}

.btb-article-author {
	background: var(--btb-blog-card);
	border: 1px solid var(--btb-blog-line);
	border-radius: var(--btb-blog-radius);
	padding: 30px;
	position: sticky;
	top: 30px;
}

.btb-article-author img {
	border-radius: 50%;
	height: 84px;
	margin-bottom: 20px;
	width: 84px;
}

.btb-article-author h2 {
	font-size: 1.8rem;
	margin: 0 0 10px;
}

.btb-article-author p:last-child {
	color: var(--btb-blog-muted);
	font-size: .94rem;
	margin-bottom: 0;
}

.btb-article-cta {
	align-items: center;
	background: var(--btb-blog-accent-dark);
	border-radius: calc(var(--btb-blog-radius) + 8px);
	color: #fff;
	display: flex;
	gap: 40px;
	justify-content: space-between;
	margin-bottom: 52px;
	padding: clamp(30px, 5vw, 58px);
}

.btb-article-cta h2 {
	color: #fff;
	font-size: clamp(2rem, 4vw, 3.2rem);
	line-height: 1.05;
	margin: 0 0 10px;
}

.btb-article-cta p:not(.btb-blog-kicker) {
	color: rgba(255,255,255,.76);
	margin: 0;
	max-width: 650px;
}

.btb-article-cta .btb-blog-button {
	background: #fff;
	border-color: #fff;
	color: var(--btb-blog-accent-dark);
	flex: 0 0 auto;
}

.btb-article-navigation {
	border-bottom: 1px solid var(--btb-blog-line);
	border-top: 1px solid var(--btb-blog-line);
	display: grid;
	grid-template-columns: 1fr 1fr;
	margin-bottom: clamp(56px, 8vw, 100px);
	padding-block: 24px;
}

.btb-article-navigation__item > span,
.btb-article-navigation__item > a span,
.btb-article-navigation__item span {
	color: var(--btb-blog-muted);
	display: block;
	font-size: .75rem;
	font-weight: 800;
	letter-spacing: .12em;
	margin-bottom: 6px;
	text-transform: uppercase;
}

.btb-article-navigation a {
	color: var(--btb-blog-accent-dark);
	font-family: Georgia, serif;
	font-size: 1.15rem;
	text-decoration: none;
}

.btb-article-navigation__next {
	border-left: 1px solid var(--btb-blog-line);
	padding-left: 30px;
	text-align: right;
}

.btb-related-posts {
	padding-bottom: clamp(65px, 9vw, 120px);
}

.btb-related-posts__heading {
	margin-bottom: 30px;
	text-align: center;
}

.btb-related-posts h2 {
	font-size: clamp(2.1rem, 4vw, 3.4rem);
	margin: 0;
}

.screen-reader-text {
	clip: rect(1px,1px,1px,1px);
	clip-path: inset(50%);
	height: 1px;
	overflow: hidden;
	position: absolute !important;
	width: 1px;
	word-wrap: normal !important;
}

@media (max-width: 980px) {
	.btb-blog-featured,
	.btb-article-hero__grid,
	.btb-article-layout {
		grid-template-columns: 1fr;
	}
	.btb-blog-featured__image { min-height: 360px; }
	.btb-blog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.btb-article-author { position: static; }
}

@media (max-width: 720px) {
	.btb-blog-tools,
	.btb-article-cta {
		align-items: stretch;
		flex-direction: column;
	}
	.btb-blog-search { flex-basis: auto; width: 100%; }
	.btb-blog-grid { grid-template-columns: 1fr; }
	.btb-blog-featured__image { min-height: 280px; }
	.btb-blog-featured__content { padding: 28px; }
	.btb-blog-meta span + span::before { margin-right: 8px; }
	.btb-blog-meta { gap: 6px 8px; }
	.btb-article-hero__image { order: -1; }
	.btb-article-back { margin-bottom: 25px; }
	.btb-article-content { border-left: 0; border-radius: 0; border-right: 0; margin-inline: -20px; padding: 30px 20px; }
	.btb-article-navigation { grid-template-columns: 1fr; gap: 22px; }
	.btb-article-navigation__next { border-left: 0; border-top: 1px solid var(--btb-blog-line); padding-left: 0; padding-top: 22px; text-align: left; }
	.btb-article-cta .btb-blog-button { text-align: center; }
}


/* Neutralise theme spacing around the replaced content block only. */
.wo-btb-blog-page main:has(.btb-blog-shell),
.wo-btb-single-post main:has(.btb-article-shell) {
	margin: 0 !important;
	max-width: none !important;
	padding: 0 !important;
}

.wo-btb-blog-page main:has(.btb-blog-shell) > *,
.wo-btb-single-post main:has(.btb-article-shell) > * {
	margin-block-start: 0;
}


/*
 * A block theme may wrap its native title/meta blocks and the post-content
 * block in one or more Groups. Keep only the branch containing the branded
 * article shell, then collapse the now-empty theme wrappers. This prevents
 * orphan text such as "Written by in" and removes the large blank area above
 * the article hero.
 */
.wo-btb-single-post main:has(.btb-article-shell) > *:not(.btb-article-shell):not(:has(.btb-article-shell)),
.wo-btb-single-post main:has(.btb-article-shell) *:has(.btb-article-shell) > *:not(.btb-article-shell):not(:has(.btb-article-shell)) {
	display: none !important;
}

.wo-btb-single-post main:has(.btb-article-shell),
.wo-btb-single-post main:has(.btb-article-shell) *:has(.btb-article-shell) {
	border: 0 !important;
	margin: 0 !important;
	max-width: none !important;
	min-height: 0 !important;
	padding: 0 !important;
	width: 100% !important;
}
