/*
Theme Name: Blood & Bone Seminar
Theme URI: https://bloodandboneseminar.com
Author: Blood & Bone Seminar
Description: Lightweight, Gutenberg-native (FSE) block theme for bloodandboneseminar.com. Built as a strict re-platform off Elementor — same brand colours (accent #1279BE, Poppins), no page-builder bloat. Content-first article layout tuned for Core Web Vitals and Bing/Yahoo organic.
Version: 1.2.0
Requires at least: 6.5
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: bbs
Tags: blog, one-column, full-site-editing, block-patterns, custom-colors, custom-menu, editor-style, featured-images, threaded-comments
*/

/* Block themes load this file automatically. Keep supplemental CSS minimal —
   design tokens live in theme.json. */

/* Smooth anchor jumps for long medical articles */
html { scroll-behavior: smooth; }

/* Header nav polish */
.bbs-header .wp-block-navigation { font-weight: 500; }
.bbs-header .wp-block-navigation a:hover { color: var(--wp--preset--color--accent); }

/* Readable article measure + link affordance in body content */
.bbs-article .wp-block-post-content a {
	text-decoration: underline;
	text-underline-offset: 2px;
	text-decoration-thickness: 1px;
}
.bbs-article .wp-block-post-content a:hover { color: var(--wp--preset--color--accent-dark); }

/* Post meta row */
.bbs-meta { color: #6b7280; font-size: var(--wp--preset--font-size--small); }
.bbs-meta a { color: #6b7280; text-decoration: none; }
.bbs-meta a:hover { color: var(--wp--preset--color--accent); }

/* Card hover for query loops */
.bbs-card { transition: box-shadow .15s ease, transform .15s ease; }
.bbs-card:hover { box-shadow: 0 6px 20px rgba(16,24,40,.08); transform: translateY(-2px); }

/* Skip link */
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 8px; top: 8px; z-index: 100; background: #fff; padding: 8px 12px; }

/* Imported page content: keep images responsive (never overflow) */
.bbs-article .wp-block-html img { max-width: 100%; height: auto; }

/* --- Speaker grid ([bbs_speakers]) --- */
.bbs-speaker-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
	gap: 1.1rem;
	margin: 1.75rem 0;
}
.bbs-speaker-card {
	display: flex; flex-direction: column; align-items: center; text-align: center;
	gap: 0.6rem; padding: 1.1rem 0.75rem;
	border: 1px solid var(--wp--preset--color--border); border-radius: 12px;
	text-decoration: none; color: var(--wp--preset--color--contrast);
	transition: box-shadow .15s ease, transform .15s ease, border-color .15s ease;
}
.bbs-speaker-card:hover {
	box-shadow: 0 6px 20px rgba(16,24,40,.08); transform: translateY(-2px);
	border-color: var(--wp--preset--color--accent);
}
.bbs-speaker-photo {
	width: 84px; height: 84px; border-radius: 50%;
	background-size: cover; background-position: center;
	background-color: var(--wp--preset--color--surface);
	display: flex; align-items: center; justify-content: center;
	font-size: 1.8rem; font-weight: 700; color: var(--wp--preset--color--accent);
}
.bbs-speaker-name { font-weight: 600; font-size: 0.92rem; line-height: 1.3; }

/* --- Contact form ([bbs_contact_form]) --- */
.bbs-contact-form { max-width: 560px; }
.bbs-contact-form p { margin: 0 0 1rem; }
.bbs-contact-form label { display: block; font-weight: 600; font-size: 0.92rem; margin-bottom: 0.3rem; }
.bbs-contact-form label .req { color: var(--wp--preset--color--accent); }
.bbs-contact-form input,
.bbs-contact-form textarea {
	width: 100%; box-sizing: border-box;
	padding: 0.65rem 0.8rem; font-size: 1rem; font-family: inherit;
	border: 1px solid var(--wp--preset--color--border); border-radius: 8px;
	background: #fff; color: var(--wp--preset--color--contrast);
}
.bbs-contact-form input:focus,
.bbs-contact-form textarea:focus {
	outline: none; border-color: var(--wp--preset--color--accent);
	box-shadow: 0 0 0 3px rgba(18,121,190,.15);
}
.bbs-contact-form button { cursor: pointer; }
/* honeypot — hidden from humans, visible to bots */
.bbs-hp { position: absolute !important; left: -9999px !important; height: 0; overflow: hidden; }
.bbs-form-notice { padding: 0.85rem 1.1rem; border-radius: 8px; margin-bottom: 1.25rem; font-size: 0.95rem; }
.bbs-form-ok  { background: #e9f3e0; border: 1px solid #b5d99c; color: #2f5117; }
.bbs-form-err { background: #fdecea; border: 1px solid #f3b9b3; color: #7a271f; }

/* --- Homepage / cards polish --- */
.bbs-card { overflow: hidden; }
.bbs-card .wp-block-post-featured-image,
.bbs-card .wp-block-post-featured-image img { width: 100%; }
.bbs-card .wp-block-post-featured-image img { height: 180px; object-fit: cover; display: block; }

/* Hero cover heading/paragraph stay white regardless of theme link colours */
.wp-block-cover h1, .wp-block-cover p { color: #fff; }
.wp-block-cover .wp-block-button__link { color: #fff; }

/* Topic list on homepage */
.bbs-topics { list-style: none; margin: 0; padding: 0; }
.bbs-topics li { padding: 0.35rem 0; border-bottom: 1px solid var(--wp--preset--color--border); }
.bbs-topics a { text-decoration: none; font-weight: 500; }

/* Logo never overflows on small screens */
.bbs-logo img { max-height: 42px; }

/* Keep logo + menu on ONE line on desktop, like the live site */
@media (min-width: 900px) {
	.bbs-header > .wp-block-group { flex-wrap: nowrap; }
	.bbs-header .wp-block-navigation,
	.bbs-header .wp-block-navigation__container { flex-wrap: nowrap; }
}
@media (max-width: 782px) {
	.bbs-header .wp-block-navigation { font-size: 1rem; }
}

/* ---------- Retention: Listen + Share toolbar ---------- */
.bbs-toolbar {
	display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
	gap: 0.75rem 1rem; margin: 0 0 var(--wp--preset--spacing--50, 1.5rem);
	padding: 0.6rem 0; border-top: 1px solid var(--wp--preset--color--border);
	border-bottom: 1px solid var(--wp--preset--color--border);
}
.bbs-listen { display: flex; align-items: center; gap: 0.4rem; }
.bbs-listen__btn {
	display: inline-flex; align-items: center; gap: 0.4rem;
	padding: 0.4rem 0.9rem; border: 1px solid var(--wp--preset--color--accent);
	border-radius: 999px; background: var(--wp--preset--color--accent); color: #fff;
	font: 600 0.85rem/1 inherit; font-family: inherit; cursor: pointer;
	transition: background .15s ease;
}
.bbs-listen__btn:hover { background: var(--wp--preset--color--accent-dark); }
.bbs-listen.is-playing .bbs-listen__btn { background: var(--wp--preset--color--accent-dark); }
.bbs-listen__ico { flex: none; }
.bbs-listen__rate {
	padding: 0.4rem 0.6rem; border: 1px solid var(--wp--preset--color--border);
	border-radius: 999px; background: #fff; color: var(--wp--preset--color--contrast);
	font: 600 0.8rem/1 inherit; font-family: inherit; cursor: pointer; min-width: 2.6rem;
}
.bbs-listen__rate:hover { border-color: var(--wp--preset--color--accent); }
.bbs-share { display: flex; align-items: center; gap: 0.4rem; }
.bbs-share__label {
	font-size: 0.8rem; font-weight: 600; color: var(--wp--preset--color--muted);
	margin-right: 0.15rem;
}
.bbs-share a {
	display: inline-flex; align-items: center; justify-content: center;
	width: 2rem; height: 2rem; border-radius: 50%;
	background: var(--wp--preset--color--surface); color: var(--wp--preset--color--contrast);
	border: 1px solid var(--wp--preset--color--border); transition: all .15s ease;
}
.bbs-share a:hover {
	background: var(--wp--preset--color--accent); color: #fff;
	border-color: var(--wp--preset--color--accent);
}
.bbs-share a[data-net="copy"].is-copied {
	background: #16a34a; color: #fff; border-color: #16a34a;
}

/* ---------- Retention: Call-to-action ---------- */
.bbs-cta {
	display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
	gap: 1rem 1.5rem; margin-top: var(--wp--preset--spacing--60, 2.5rem);
	padding: 1.5rem 1.75rem; border-radius: 12px;
	background: var(--wp--preset--color--surface);
	border: 1px solid var(--wp--preset--color--border);
	border-left: 4px solid var(--wp--preset--color--accent);
}
.bbs-cta__body { flex: 1 1 260px; }
.bbs-cta__title {
	margin: 0 0 0.35rem; font-size: 1.2rem; font-weight: 700;
	color: var(--wp--preset--color--contrast);
}
.bbs-cta__text { margin: 0; font-size: 0.95rem; color: var(--wp--preset--color--muted); }
.bbs-cta__btn {
	flex: none; display: inline-block; padding: 0.7rem 1.4rem; border-radius: 999px;
	background: var(--wp--preset--color--accent); color: #fff !important;
	font-weight: 600; text-decoration: none; white-space: nowrap;
	transition: background .15s ease;
}
.bbs-cta__btn:hover { background: var(--wp--preset--color--accent-dark); }

@media (max-width: 600px) {
	.bbs-toolbar { justify-content: flex-start; }
	.bbs-cta { flex-direction: column; align-items: flex-start; }
	.bbs-cta__btn { width: 100%; text-align: center; }
}

/* ---------- Newsletter signup (footer) ---------- */
.bbs-newsletter {
	display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
	gap: 1rem 2rem;
}
.bbs-newsletter__intro { flex: 1 1 300px; }
.bbs-newsletter__title {
	margin: 0 0 0.25rem; font-size: 1.15rem; font-weight: 700;
	color: var(--wp--preset--color--contrast);
}
.bbs-newsletter__text { margin: 0; font-size: 0.9rem; color: var(--wp--preset--color--muted); }
.bbs-newsletter__form {
	display: flex; flex-wrap: wrap; gap: 0.5rem; flex: 1 1 320px; max-width: 460px;
}
.bbs-newsletter__form input[type="email"] {
	flex: 1 1 200px; min-width: 0; padding: 0.6rem 0.85rem;
	border: 1px solid var(--wp--preset--color--border); border-radius: 8px;
	font: inherit; color: var(--wp--preset--color--contrast); background: #fff;
}
.bbs-newsletter__form input[type="email"]:focus {
	outline: none; border-color: var(--wp--preset--color--accent);
}
.bbs-newsletter__form button {
	flex: none; padding: 0.6rem 1.3rem; border: none; border-radius: 8px;
	background: var(--wp--preset--color--accent); color: #fff;
	font-weight: 600; cursor: pointer; transition: background .15s ease;
}
.bbs-newsletter__form button:hover { background: var(--wp--preset--color--accent-dark); }
.bbs-newsletter__msg { flex: 1 1 100%; margin: 0.15rem 0 0; font-size: 0.9rem; font-weight: 600; }
.bbs-newsletter__msg.is-ok { color: #16a34a; }
.bbs-newsletter__msg.is-err { color: #dc2626; }
@media (max-width: 600px) {
	.bbs-newsletter { flex-direction: column; align-items: flex-start; }
	.bbs-newsletter__form { max-width: none; width: 100%; }
}
