/*
Theme Name:   BumbleBee Insight
Theme URI:    https://bumblebeeinsight.com/
Description:  Block child theme for BumbleBee Insight. All design tokens live in theme.json; this file carries only what theme.json cannot express. No JavaScript, no external requests.
Author:       Patrick Rooney, BumbleBee Insight
Template:     twentytwentyfive
Version:      1.1.0
Requires at least: 6.6
Requires PHP: 7.4
License:      GNU General Public License v2 or later
License URI:  https://www.gnu.org/licenses/gpl-2.0.html
Text Domain:  bumblebee
*/

/* ---------------------------------------------------------------- bands
   Sections carry their padding and colour from a class, not from inline
   block attributes. Two reasons: the post content stays clean enough to
   edit without fear, and a colour change later is one line here rather
   than an edit on every page.                                            */
.bb-section {
	padding-top: var(--wp--preset--spacing--70);
	padding-bottom: var(--wp--preset--spacing--70);
}
.bb-section--tight {
	padding-top: var(--wp--preset--spacing--60);
	padding-bottom: var(--wp--preset--spacing--60);
}
.bb-dark {
	background-color: var(--wp--preset--color--charcoal);
	color: var(--wp--preset--color--cream);
}
.bb-dark :is(h1, h2, h3, h4, h5, h6) { color: var(--wp--preset--color--cream); }
.bb-dark a:not(.wp-element-button) { color: var(--wp--preset--color--honey); }
.bb-dark a:not(.wp-element-button):hover { color: var(--wp--preset--color--cream); }
.bb-dark .wp-element-button,
.bb-dark .wp-block-button__link {
	background-color: var(--wp--preset--color--honey);
	color: var(--wp--preset--color--charcoal);
}
.bb-dark .wp-element-button:hover,
.bb-dark .wp-block-button__link:hover {
	background-color: var(--wp--preset--color--cream);
	color: var(--wp--preset--color--charcoal);
}
.bb-tint { background-color: var(--wp--preset--color--light-honey); }
.bb-tint .bb-card { border-color: #EFE2C6; }

/* ------------------------------------------------------------- typesetting
   Headings break on sense rather than leaving a single word stranded on the
   last line; paragraphs avoid a one-word final line. Both degrade silently
   in browsers that do not support them.                                   */
:is(h1, h2, h3, .bb-lead) { text-wrap: balance; }
p, li { text-wrap: pretty; }

/* ---------------------------------------------------------------- eyebrow */
.bb-eyebrow {
	font-family: var(--wp--preset--font-family--body);
	font-size: 0.8125rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--wp--preset--color--deep-amber);
	margin-bottom: 0.5rem;
}
.has-charcoal-background-color .bb-eyebrow,
.bb-dark .bb-eyebrow { color: var(--wp--preset--color--honey); }

/* ------------------------------------------------------------------- lead */
.bb-lead {
	font-size: var(--wp--preset--font-size--x-large);
	line-height: 1.5;
	color: var(--wp--preset--color--muted);
	max-width: 34em;
}
.bb-dark .bb-lead { color: var(--wp--preset--color--muted-dark); }

.bb-tagline {
	font-style: italic;
	color: var(--wp--preset--color--honey);
	font-size: var(--wp--preset--font-size--large);
}

.bb-note {
	font-size: var(--wp--preset--font-size--small);
	color: var(--wp--preset--color--muted);
}
.bb-dark .bb-note { color: var(--wp--preset--color--muted-dark); }

/* ------------------------------------------------- honeycomb texture band */
/* Pure CSS gradients — no image request, so it costs nothing to load and
   cannot shift layout. Decorative only; hidden from assistive tech.        */
.bb-hex { position: relative; isolation: isolate; overflow: hidden; }
.bb-hex::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	opacity: 0.5;
	background-image:
		repeating-linear-gradient(60deg,  rgba(255, 248, 231, .05) 0 1px, transparent 1px 46px),
		repeating-linear-gradient(-60deg, rgba(255, 248, 231, .05) 0 1px, transparent 1px 46px),
		repeating-linear-gradient(0deg,   rgba(255, 248, 231, .05) 0 1px, transparent 1px 40px);
	pointer-events: none;
}

/* ------------------------------------------------------------------ cards */
.bb-card {
	background: var(--wp--preset--color--white);
	border: 1px solid var(--wp--preset--color--rule);
	border-radius: 10px;
	padding: var(--wp--preset--spacing--50);
	/* No height:100% here. A flex item only stretches to match its siblings
	   when its cross size is auto, so setting a height breaks equal-height
	   cards — which is exactly what it looks like it should fix.            */
}
.bb-card > :first-child { margin-top: 0; }
.bb-card > :last-child  { margin-bottom: 0; }
.bb-card--dark {
	background: var(--wp--preset--color--charcoal-2);
	border-color: #3A3530;
	color: var(--wp--preset--color--cream);
}
.bb-card--dark :is(h2, h3, h4) { color: var(--wp--preset--color--cream); }
.bb-card--top { border-top: 4px solid var(--wp--preset--color--honey); }

/* Product cards keep their buttons on one baseline regardless of copy length */
.bb-card--product { display: flex; flex-direction: column; }
.bb-card--product .bb-card__cta { margin-top: auto; padding-top: var(--wp--preset--spacing--40); }

.bb-price {
	font-family: var(--wp--preset--font-family--head);
	font-weight: 700;
	font-size: var(--wp--preset--font-size--subhead);
	color: var(--wp--preset--color--charcoal);
}
.bb-card--dark .bb-price { color: var(--wp--preset--color--honey); }
.bb-price small {
	font-family: var(--wp--preset--font-family--body);
	font-weight: 400;
	font-size: var(--wp--preset--font-size--small);
	color: var(--wp--preset--color--muted);
}

/* ------------------------------------------------------------- tick lists */
.bb-ticks { list-style: none; padding-left: 0; }
.bb-ticks li {
	position: relative;
	padding-left: 1.9rem;
	margin-bottom: 0.6rem;
}
.bb-ticks li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.55em;
	width: 0.7rem;
	height: 0.7rem;
	border-radius: 50%;
	background: var(--wp--preset--color--honey);
}
.bb-ticks--cross li::before { background: var(--wp--preset--color--rule); }

/* Numbered steps */
.bb-steps { list-style: none; padding-left: 0; counter-reset: bbstep; }
.bb-steps > li {
	counter-increment: bbstep;
	position: relative;
	padding-left: 3.25rem;
	margin-bottom: var(--wp--preset--spacing--40);
}
.bb-steps > li::before {
	content: counter(bbstep);
	position: absolute;
	left: 0;
	top: -0.1em;
	width: 2.25rem;
	height: 2.25rem;
	display: grid;
	place-items: center;
	border-radius: 50%;
	background: var(--wp--preset--color--charcoal);
	color: var(--wp--preset--color--honey);
	font-family: var(--wp--preset--font-family--head);
	font-weight: 700;
	font-size: 1.0625rem;
}
.bb-dark .bb-steps > li::before {
	background: var(--wp--preset--color--honey);
	color: var(--wp--preset--color--charcoal);
}

/* -------------------------------------------------------------- scorecard */
.bb-scorecard { width: 100%; border-collapse: collapse; }
.bb-scorecard caption {
	text-align: left;
	font-weight: 700;
	padding-bottom: 0.75rem;
	color: var(--wp--preset--color--muted);
}
.bb-scorecard th,
.bb-scorecard td {
	text-align: left;
	padding: 0.7rem 0;
	border-bottom: 1px solid var(--wp--preset--color--rule);
}
.bb-scorecard td:last-child { text-align: right; font-weight: 700; }
.bb-rag-strong { color: var(--wp--preset--color--good); }
.bb-rag-fair   { color: var(--wp--preset--color--deep-amber); }
.bb-rag-weak   { color: var(--wp--preset--color--bad); }

/* ---------------------------------------------------------------- details */
/* Native <details>, so the FAQ needs no JavaScript at all. */
.bb-faq details {
	border-bottom: 1px solid var(--wp--preset--color--rule);
	padding: 1.1rem 0;
}
.bb-faq summary {
	cursor: pointer;
	font-weight: 700;
	font-size: var(--wp--preset--font-size--large);
	list-style: none;
	display: flex;
	justify-content: space-between;
	gap: 1rem;
	align-items: baseline;
}
.bb-faq summary::-webkit-details-marker { display: none; }
.bb-faq summary::after {
	content: "+";
	font-family: var(--wp--preset--font-family--head);
	color: var(--wp--preset--color--deep-amber);
	font-size: 1.5rem;
	line-height: 1;
	flex: none;
}
.bb-faq details[open] summary::after { content: "\2013"; }
.bb-faq details > :not(summary) { margin-top: 0.75rem; max-width: 46em; }

/* ------------------------------------------------------------ misc layout */
.bb-rule-top { border-top: 1px solid var(--wp--preset--color--rule); }

/* Anything that gets swapped in later (a logo, a report thumbnail) reserves
   its box up front, so the page never jumps while it loads. */
.bb-media { display: block; width: 100%; height: auto; }

/* ------------------------------------------------------ accessibility     */
.bb-skip-link {
	position: absolute;
	left: -9999px;
	top: 0;
	background: var(--wp--preset--color--charcoal);
	color: var(--wp--preset--color--cream);
	padding: 0.75rem 1.25rem;
	z-index: 100;
}
.bb-skip-link:focus { left: 0; }

:where(a, button, summary, input, textarea, select):focus-visible {
	outline: 2px solid var(--wp--preset--color--deep-amber);
	outline-offset: 2px;
}
.bb-dark :where(a, button, summary):focus-visible {
	outline-color: var(--wp--preset--color--honey);
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after {
		animation-duration: 0.01ms !important;
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}
}

/* ----------------------------------------------------------------- print */
@media print {
	.bb-hex::before, .bb-skip-link { display: none; }
	.bb-card { break-inside: avoid; }
	a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 0.85em; }
}

/* ---------------------------------------------------------- header/footer */
.bb-header {
	padding-top: 0.75rem;
	padding-bottom: 0.75rem;
	position: sticky;
	top: 0;
	z-index: 50;
	border-bottom: 1px solid #322D28;
}
.bb-header__in { gap: 1.5rem; }
.bb-brand a,
.bb-header .wp-block-site-title a {
	font-family: var(--wp--preset--font-family--head);
	font-weight: 700;
	font-size: 1.25rem;
	text-decoration: none;
	color: var(--wp--preset--color--cream);
}
.bb-header .wp-block-site-title a:hover { color: var(--wp--preset--color--honey); }
.bb-nav a { text-decoration: none; font-size: 0.9375rem; }
.bb-nav .bb-nav__cta a {
	background: var(--wp--preset--color--honey);
	color: var(--wp--preset--color--charcoal);
	font-weight: 700;
	padding: 0.45rem 1rem;
	border-radius: 6px;
}
.bb-nav .bb-nav__cta a:hover {
	background: var(--wp--preset--color--cream);
	color: var(--wp--preset--color--charcoal);
}
.bb-footer {
	padding-top: var(--wp--preset--spacing--60);
	padding-bottom: var(--wp--preset--spacing--60);
	font-size: 0.9375rem;
}
.bb-footer__in { gap: var(--wp--preset--spacing--50); }
/* ------------------------------------------------------------ band joins
   Every section carries its own vertical padding, so the default block gap
   between them would show as a white stripe between two full-bleed bands
   (and between the header and the first band). Remove the gap at these
   three joints only, and leave blockGap alone everywhere else.           */
.wp-site-blocks > * + * { margin-block-start: 0; }
.wp-site-blocks > main.wp-block-group { padding-top: 0; padding-bottom: 0; }
.entry-content > * + * { margin-block-start: 0; }
/* ------------------------------------------------------------------ video
   A click-to-play panel. Nothing is requested from YouTube until someone
   presses play, so the page stays free of third-party requests and cookies
   on load. The aspect-ratio box reserves its space, so the layout cannot
   jump when the player is swapped in.                                     */
.bb-video {
	position: relative;
	aspect-ratio: 16 / 9;
	max-width: 58rem;
	margin-inline: auto;
	border-radius: 12px;
	overflow: hidden;
	background:
		radial-gradient(circle at 30% 25%, #332E29 0%, transparent 60%),
		var(--wp--preset--color--charcoal-2);
	border: 1px solid #3A3530;
}
.bb-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.bb-video__btn {
	position: absolute;
	inset: 0;
	width: 100%;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 1.25rem;
	background: transparent;
	border: 0;
	cursor: pointer;
	color: var(--wp--preset--color--cream);
	font-family: inherit;
	text-align: center;
	padding: var(--wp--preset--spacing--40);
}
.bb-video__play {
	width: 4.5rem;
	height: 4.5rem;
	flex: none;
	border-radius: 50%;
	background: var(--wp--preset--color--honey);
	display: grid;
	place-items: center;
	transition: background-color .15s ease, transform .15s ease;
}
.bb-video__play::after {
	content: "";
	border-left: 1.35rem solid var(--wp--preset--color--charcoal);
	border-top: .85rem solid transparent;
	border-bottom: .85rem solid transparent;
	margin-left: .3rem;
}
.bb-video__btn:hover .bb-video__play,
.bb-video__btn:focus-visible .bb-video__play {
	background: var(--wp--preset--color--cream);
	transform: scale(1.05);
}
.bb-video__label {
	display: flex;
	flex-direction: column;
	gap: .3rem;
	font-weight: 700;
	font-size: var(--wp--preset--font-size--large);
}
.bb-video__label small {
	font-weight: 400;
	font-size: var(--wp--preset--font-size--small);
	color: var(--wp--preset--color--muted-dark);
}
/* ------------------------------------------------------------------- blog
   .entry-content children have no gap by default (see band joins), which
   suits full-width page sections but not running article text.            */
.bb-article.entry-content > * + * { margin-block-start: var(--wp--preset--spacing--40); }
.bb-article.entry-content > h2 { margin-block-start: var(--wp--preset--spacing--50); }
.bb-article th { text-align: left; }
.bb-article strong { font-weight: 700; }
.bb-postlist > li { border-top: 1px solid var(--wp--preset--color--rule); padding-top: var(--wp--preset--spacing--40); }

.bb-video-pending {
	max-width: 58rem;
	margin-inline: auto;
	padding: var(--wp--preset--spacing--50);
	border: 1px dashed #3A3530;
	border-radius: 12px;
	text-align: center;
}