/*
Theme Name: Aparna Food Lab B
Description: A/B variant — warm, airy, photography-first lifestyle blog style.
Requires at least: 6.7
Tested up to: 6.9
Requires PHP: 7.2
Version: 0.2.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: aparna-foodlab-b
*/

/* === Custom Properties === */
:root {
	--afl-coral:   var(--wp--preset--color--primary);
	--afl-blush:   var(--wp--preset--color--secondary);
	--afl-sage:    var(--wp--preset--color--accent);
	--afl-ink:     var(--wp--preset--color--contrast);
	--afl-muted:   var(--wp--preset--color--muted);
	--afl-base:    var(--wp--preset--color--surface);
	--afl-white:   var(--wp--preset--color--base);
	--afl-radius:  4px;
	--afl-shadow:  0 2px 16px rgba(0,0,0,0.07);
	--afl-rule:    1px solid rgba(44,44,44,0.1);
}

/* === reset === */
*, *::before, *::after { box-sizing: border-box; }
img { max-width: 100%; height: auto; display: block; }
body { background: var(--afl-base); color: var(--afl-ink); -webkit-font-smoothing: antialiased; }
a { color: var(--afl-coral); text-decoration: none; transition: color 0.18s; }
a:hover { color: var(--afl-ink); }
.wp-block-post-title a { color: var(--afl-ink); }
.wp-block-post-title a:hover { color: var(--afl-coral); }

/* === header === */
.site-header {
	background: var(--afl-white);
	border-bottom: var(--afl-rule);
	position: sticky; top: 0; z-index: 100;
}
.site-header > .is-layout-constrained {
	padding: 0 clamp(1rem, 4vw, 2.5rem);
}
.site-header .is-layout-flex.is-content-justification-space-between {
	align-items: center; min-height: 70px;
	padding-top: 0.6rem; padding-bottom: 0.6rem;
}
.site-header__brand {
	gap: 0.25rem;
}
.site-header__brand-row {
	gap: 0.6rem;
}
.site-header__avatar img {
	border-radius: 50%;
}
.site-header__tagline {
	font-size: 0.7rem;
	color: var(--afl-muted);
	margin: 0;
	white-space: nowrap;
}
@media (max-width: 782px) {
	.site-header__tagline { display: none; }
}
/* Centred logo */
.site-header .wp-block-site-title {
	text-align: center; flex: 1; margin: 0;
}
.site-header .wp-block-site-title a {
	font-family: var(--wp--preset--font-family--playfair);
	font-size: clamp(1.6rem, 3vw, 2.1rem);
	font-weight: 700; font-style: italic;
	color: var(--afl-ink); letter-spacing: -0.01em;
}
.site-header .wp-block-site-title a:hover { color: var(--afl-coral); }
.site-header .wp-block-site-tagline {
	font-size: 0.68rem; letter-spacing: 0.14em;
	text-transform: uppercase; color: var(--afl-muted);
	text-align: center; margin-top: 0.1rem;
}
.site-header .wp-block-navigation a {
	font-size: 0.75rem !important; font-weight: 700 !important;
	letter-spacing: 0.1em; text-transform: uppercase;
	color: var(--afl-ink) !important; padding: 0.3rem 0.5rem !important;
	transition: color 0.18s;
}
.site-header .wp-block-navigation a:hover { color: var(--afl-coral) !important; }
.wp-block-navigation__responsive-container.is-menu-open { background: var(--afl-white); }

/* === hero / featured post === */
.hero-featured {
	position: relative; overflow: hidden;
	margin-bottom: 3rem;
}
.hero-featured .wp-block-post-featured-image img {
	width: 100%; height: clamp(320px, 55vw, 580px);
	object-fit: cover; display: block;
}
.hero-featured-overlay {
	position: absolute; bottom: 0; left: 0; right: 0;
	background: linear-gradient(to top, rgba(0,0,0,0.72) 0%, rgba(0,0,0,0.18) 60%, transparent 100%);
	padding: clamp(1.5rem, 4vw, 3rem) clamp(1.5rem, 5vw, 3.5rem);
	color: #fff;
}
.hero-featured-overlay .wp-block-post-terms a {
	font-size: 0.7rem; font-weight: 700; text-transform: uppercase;
	letter-spacing: 0.12em; color: var(--afl-coral);
	background: rgba(255,255,255,0.15); padding: 0.25rem 0.65rem;
	border-radius: 2px; display: inline-block; margin-bottom: 0.75rem;
}
.hero-featured-overlay .wp-block-post-title {
	font-family: var(--wp--preset--font-family--playfair);
	font-size: clamp(1.6rem, 4vw, 3rem); font-weight: 700;
	line-height: 1.15; color: #fff; margin-bottom: 0.75rem;
}
.hero-featured-overlay .wp-block-post-title a { color: #fff; }
.hero-featured-overlay .wp-block-post-title a:hover { color: var(--afl-blush); }
.hero-featured-overlay .wp-block-post-excerpt__excerpt {
	font-size: 1rem; color: rgba(255,255,255,0.82);
	max-width: 55ch; line-height: 1.6; margin-bottom: 1rem;
}
.hero-featured-overlay .wp-block-post-excerpt__more-link {
	font-size: 0.75rem; font-weight: 700; text-transform: uppercase;
	letter-spacing: 0.1em; color: var(--afl-coral);
	border-bottom: 1.5px solid var(--afl-coral); padding-bottom: 0.1rem;
	transition: color 0.18s, border-color 0.18s;
}
.hero-featured-overlay .wp-block-post-excerpt__more-link:hover {
	color: #fff; border-color: #fff;
}

/* === section label === */
.section-label {
	font-size: 0.7rem; font-weight: 700; text-transform: uppercase;
	letter-spacing: 0.14em; color: var(--afl-coral); margin-bottom: 0.4rem;
}

/* === category pills === */
.category-pills {
	display: flex; flex-wrap: wrap; gap: 0.5rem;
	justify-content: center; list-style: none; padding: 0; margin: 0 0 2.5rem;
}
.category-pills li { list-style: none; margin: 0; padding: 0; }
.category-pills a {
	display: inline-block; background: var(--afl-blush); color: var(--afl-ink);
	border: 1.5px solid transparent; font-size: 0.75rem; font-weight: 700;
	text-transform: uppercase; letter-spacing: 0.08em; padding: 0.45rem 1.1rem;
	border-radius: 99px; transition: background 0.18s, color 0.18s;
}
.category-pills a:hover { background: var(--afl-coral); color: #fff; }

/* === two-column layout === */
.content-sidebar-wrap {
	display: grid;
	grid-template-columns: 1fr 300px;
	gap: 3rem;
	align-items: start;
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 clamp(1rem, 4vw, 2.5rem);
}
@media (max-width: 900px) {
	.content-sidebar-wrap { grid-template-columns: 1fr; }
}

/* === post cards === */
.posts-feed .wp-block-post-template {
	display: flex; flex-direction: column; gap: 2.5rem;
	list-style: none; padding: 0; margin: 0;
}
.posts-feed .wp-block-post {
	background: var(--afl-white); border-radius: var(--afl-radius);
	overflow: hidden; transition: transform 0.2s, box-shadow 0.2s;
}
.posts-feed .wp-block-post:hover { transform: translateY(-3px); box-shadow: var(--afl-shadow); }
.posts-feed .wp-block-post-featured-image img {
	width: 100%; height: 260px; object-fit: cover;
}
.posts-feed .post-card-body { padding: 1.25rem 1.5rem 1.5rem; }
.posts-feed .wp-block-post-terms a {
	font-size: 0.68rem; font-weight: 700; text-transform: uppercase;
	letter-spacing: 0.1em; color: var(--afl-coral); display: inline-block; margin-bottom: 0.5rem;
}
.posts-feed .wp-block-post-title {
	font-family: var(--wp--preset--font-family--playfair);
	font-size: 1.45rem; font-weight: 700; line-height: 1.25;
	margin-bottom: 0.6rem;
}
.posts-feed .wp-block-post-excerpt__excerpt {
	font-size: 0.95rem; color: var(--afl-muted); line-height: 1.65; margin-bottom: 0.75rem;
}
.posts-feed .wp-block-post-excerpt__more-link {
	font-size: 0.75rem; font-weight: 700; text-transform: uppercase;
	letter-spacing: 0.09em; color: var(--afl-coral); font-style: italic;
	border-bottom: 1px solid var(--afl-coral); padding-bottom: 0.1rem;
	transition: color 0.15s;
}
.posts-feed .wp-block-post-excerpt__more-link:hover { color: var(--afl-ink); border-color: var(--afl-ink); }
.posts-feed .wp-block-post-date {
	font-size: 0.75rem; color: var(--afl-muted); margin-top: 0.5rem; display: block;
}
/* divider between posts */
.posts-feed .wp-block-post + .wp-block-post {
	border-top: var(--afl-rule); padding-top: 2.5rem;
	background: transparent; border-radius: 0;
}

/* === homepage all-videos section === */
.afl-all-videos .afl-section-heading {
	margin-bottom: 1.75rem;
}
.afl-all-videos-query .wp-block-post-template {
	gap: 2rem;
}

/* === sidebar === */
.site-sidebar {
	position: sticky; top: 90px;
}
.sidebar-widget {
	background: var(--afl-white); border-radius: var(--afl-radius);
	padding: 1.5rem; margin-bottom: 2rem;
	border: var(--afl-rule);
}
.sidebar-widget-title {
	font-family: var(--wp--preset--font-family--playfair);
	font-size: 1.1rem; font-weight: 700; color: var(--afl-ink);
	margin-bottom: 1rem; padding-bottom: 0.6rem;
	border-bottom: 2px solid var(--afl-coral);
}
.sidebar-widget .wp-block-post-template {
	list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 1rem;
}
.sidebar-widget .wp-block-post {
	display: flex; gap: 0.75rem; align-items: flex-start;
}
.sidebar-widget .wp-block-post-featured-image img {
	width: 70px; height: 70px; object-fit: cover;
	border-radius: var(--afl-radius); flex-shrink: 0;
}
.sidebar-widget .wp-block-post-title {
	font-size: 0.88rem; line-height: 1.35;
	font-family: var(--wp--preset--font-family--playfair);
}
.sidebar-widget .wp-block-categories {
	list-style: none; padding: 0; margin: 0;
}
.sidebar-widget .wp-block-categories li {
	border-bottom: var(--afl-rule); padding: 0.5rem 0;
	font-size: 0.88rem;
}
.sidebar-widget .wp-block-categories a { color: var(--afl-ink); font-weight: 600; }
.sidebar-widget .wp-block-categories a:hover { color: var(--afl-coral); }

/* === single post === */
.single-hero-image img {
	width: 100%; height: clamp(280px, 45vw, 500px);
	object-fit: cover; border-radius: var(--afl-radius);
	margin-bottom: 2rem;
}
.post-meta-bar {
	display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center;
	padding: 0.85rem 0; border-top: var(--afl-rule); border-bottom: var(--afl-rule);
	margin-bottom: 2rem; color: var(--afl-muted); font-size: 0.82rem;
}
.single-post-content { max-width: 720px; margin: 0 auto; }
.single-post-content p { font-size: 1.05rem; line-height: 1.8; margin-bottom: 1.4rem; }
.single-post-content .wp-block-embed__wrapper {
	position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden;
	border-radius: var(--afl-radius); margin-bottom: 2rem;
}
.single-post-content .wp-block-embed__wrapper iframe {
	position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0;
}

/* === comments === */
.wp-block-post-comments-form .comment-form input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="submit"]),
.wp-block-post-comments-form .comment-form textarea {
	border: var(--afl-rule); border-radius: var(--afl-radius);
	padding: 0.65rem 0.9rem; width: 100%;
	font-family: var(--wp--preset--font-family--lato);
	font-size: 0.95rem; background: var(--afl-white); color: var(--afl-ink);
	transition: border-color 0.18s;
}
.wp-block-post-comments-form .comment-form input[type="checkbox"],
.wp-block-post-comments-form .comment-form input[type="radio"] {
	width: 20px; height: 20px; flex: 0 0 auto;
}
.wp-block-post-comments-form .comment-form input:focus,
.wp-block-post-comments-form .comment-form textarea:focus { border-color: var(--afl-coral); outline: none; }
.wp-block-post-comments-form .comment-form .submit {
	background: var(--afl-coral); color: #fff; border: none;
	border-radius: var(--afl-radius); padding: 0.75rem 2rem;
	font-weight: 700; font-size: 0.8rem; text-transform: uppercase;
	letter-spacing: 0.08em; cursor: pointer; transition: background 0.18s;
}
.wp-block-post-comments-form .comment-form .submit:hover { background: #c94a34; }
.wp-block-comment-author-name a { color: var(--afl-coral); }
.wp-block-comments .comment { border-bottom: var(--afl-rule); padding: 1.5rem 0; }

/* === footer === */
.site-footer {
	background: var(--afl-ink); color: rgba(255,255,255,0.6);
	padding: 3.5rem clamp(1.5rem, 5vw, 3rem) 2rem;
	border-top: 3px solid var(--afl-coral); text-align: center;
	margin-top: 4rem;
}
.site-footer .wp-block-site-title a {
	font-family: var(--wp--preset--font-family--playfair);
	font-size: 1.6rem; font-style: italic; color: #fff; font-weight: 700;
}
.site-footer .wp-block-site-tagline { color: rgba(255,255,255,0.4); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; }
.site-footer .wp-block-navigation a {
	color: rgba(255,255,255,0.6) !important; font-size: 0.75rem !important;
	text-transform: uppercase; letter-spacing: 0.09em; font-weight: 600 !important;
	transition: color 0.18s;
}
.site-footer .wp-block-navigation a:hover { color: var(--afl-coral) !important; }
.site-footer .wp-block-paragraph { font-size: 0.75rem; color: rgba(255,255,255,0.6); }
.footer-nav-heading {
	font-size: 0.72rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.14em;
	color: rgba(255,255,255,0.6);
	margin-bottom: 0.75rem;
}
.footer-tagline {
	color: rgba(255,255,255,0.75) !important;
	font-style: italic;
	margin: 0;
}

/* === responsive === */
@media (max-width: 900px) {
	.hero-featured .wp-block-post-featured-image img { height: 280px; }
	.posts-feed .wp-block-post-featured-image img { height: 200px; }
}
@media (max-width: 600px) {
	.site-header .wp-block-site-title a { font-size: 1.4rem; }
	.hero-featured-overlay .wp-block-post-title { font-size: 1.5rem; }
	.posts-feed .wp-block-post-featured-image img { height: 180px; }
}

/* === header search (icon -> expand) === */
.header-right {
	display: flex;
	align-items: center;
	gap: 1rem;
}
.header-search-wrap {
	position: relative;
}
/* collapsed: show only the icon button */
.header-search-wrap .wp-block-search__inside-wrapper {
	display: flex;
	align-items: center;
	border: 2px solid transparent;
	border-radius: 50px;
	overflow: hidden;
	background: transparent;
	transition: border-color 0.22s, background 0.22s, box-shadow 0.22s;
}
.header-search-wrap .wp-block-search__input {
	width: 0 !important;
	padding: 0 !important;
	border: none !important;
	outline: none !important;
	box-shadow: none !important;
	background: transparent;
	font-family: var(--wp--preset--font-family--lato);
	font-size: 0.95rem;
	color: var(--afl-ink);
	transition: width 0.32s ease, padding 0.32s ease !important;
	white-space: nowrap;
	overflow: hidden;
}
.header-search-wrap .wp-block-search__input::placeholder {
	color: #aaa;
	font-style: italic;
}
.header-search-wrap .wp-block-search__button {
	flex-shrink: 0;
	border: none !important;
	outline: none !important;
	background: transparent !important;
	color: var(--afl-ink) !important;
	padding: 0.45rem 0.55rem !important;
	border-radius: 50px !important;
	cursor: pointer;
	transition: background 0.18s, color 0.18s;
	display: flex;
	align-items: center;
	justify-content: center;
}
.header-search-wrap .wp-block-search__button:hover {
	color: var(--afl-coral) !important;
}
.header-search-wrap .wp-block-search__button svg {
	width: 18px;
	height: 18px;
	fill: currentColor;
}
/* expanded state (toggled via JS) */
.header-search-wrap.is-open .wp-block-search__inside-wrapper {
	border-color: var(--afl-ink);
	background: var(--afl-white);
	box-shadow: 0 2px 16px rgba(0,0,0,0.10);
}
.header-search-wrap.is-open .wp-block-search__input {
	width: 50ch !important;
	padding: 0.45rem 0.75rem !important;
}
.header-search-wrap.is-open .wp-block-search__button {
	background: var(--afl-coral) !important;
	color: #fff !important;
}
@media (max-width: 700px) {
	.header-search-wrap.is-open .wp-block-search__input { width: 28ch; }
}

/* search results page — keep a standalone bar for results/archive pages */
.recipe-search-bar .wp-block-search__inside-wrapper {
	display: flex;
	align-items: center;
	border: 2px solid var(--afl-ink);
	border-radius: 50px;
	overflow: hidden;
	background: var(--afl-white);
	transition: border-color 0.2s, box-shadow 0.2s;
}
.recipe-search-bar .wp-block-search__inside-wrapper:focus-within {
	border-color: var(--afl-coral);
	box-shadow: 0 0 0 3px rgba(232,97,74,0.18);
}
.recipe-search-bar .wp-block-search__input {
	flex: 1;
	border: none !important;
	outline: none !important;
	box-shadow: none !important;
	padding: 0.85rem 1.25rem;
	font-family: var(--wp--preset--font-family--lato);
	font-size: 1rem;
	color: var(--afl-ink);
	background: transparent;
}
.recipe-search-bar .wp-block-search__input::placeholder {
	color: #aaa;
	font-style: italic;
}
.recipe-search-bar .wp-block-search__button {
	border: none !important;
	outline: none !important;
	background: var(--afl-coral) !important;
	color: #fff !important;
	padding: 0.75rem 1.25rem !important;
	border-radius: 0 50px 50px 0 !important;
	cursor: pointer;
	transition: background 0.18s;
	display: flex;
	align-items: center;
	justify-content: center;
}
.recipe-search-bar .wp-block-search__button:hover {
	background: #b5532f !important;
}
.recipe-search-bar .wp-block-search__button svg {
	fill: #fff;
	width: 18px;
	height: 18px;
}

/* === logo === */
.wp-block-site-logo img { height: 48px; width: auto; }
.footer-logo img { filter: brightness(0) invert(1); }

/* === search results page === */
.search-results-header {
	background: var(--afl-blush);
}
.search-results-header h1 {
	margin-bottom: 0.25rem;
}
.search-results-layout .post-card-body .wp-block-post-terms:last-of-type a {
	display: inline-block;
	background: var(--afl-blush);
	border-radius: 20px;
	padding: 0.15rem 0.65rem;
	margin: 0.15rem 0.15rem 0 0;
	font-size: 0.7rem;
	color: var(--afl-ink);
	text-decoration: none;
	transition: background 0.15s;
}
.search-results-layout .post-card-body .wp-block-post-terms:last-of-type a:hover {
	background: var(--afl-coral);
	color: #fff;
}

/* === single post — thumbnail + play button === */
.single-category-label a {
	font-size: 0.72rem; font-weight: 700; text-transform: uppercase;
	letter-spacing: 0.12em; color: var(--afl-coral); display: inline-block; margin-bottom: 0.6rem;
}
.video-thumb-wrap {
	position: relative; overflow: hidden; border-radius: var(--afl-radius);
	margin-bottom: 0;
}
.video-thumb-wrap .wp-block-post-featured-image img {
	width: 100%; height: clamp(240px, 45vw, 480px);
	object-fit: cover; display: block;
	transition: transform 0.4s ease;
}
.video-thumb-wrap:hover .wp-block-post-featured-image img {
	transform: scale(1.02);
}
/* dark gradient over thumbnail */
.video-thumb-wrap::after {
	content: '';
	position: absolute; inset: 0;
	background: linear-gradient(to top, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.1) 50%, transparent 100%);
	pointer-events: none; border-radius: var(--afl-radius);
}
/* play button overlay */
.play-btn-overlay {
	position: absolute; inset: 0; z-index: 2;
	display: flex; align-items: center; justify-content: center;
}
.play-btn .wp-element-button {
	display: flex; align-items: center; gap: 0.65rem;
	background: rgba(255,255,255,0.95) !important;
	color: var(--afl-ink) !important;
	border: none !important;
	border-radius: 50px !important;
	padding: 0.85rem 2rem !important;
	font-size: 0.82rem; font-weight: 700;
	text-transform: uppercase; letter-spacing: 0.1em;
	box-shadow: 0 4px 24px rgba(0,0,0,0.22);
	transition: background 0.18s, transform 0.18s, box-shadow 0.18s;
	cursor: pointer;
}
.play-btn .wp-element-button:hover {
	background: var(--afl-coral) !important;
	color: #fff !important;
	transform: scale(1.05);
	box-shadow: 0 6px 28px rgba(232,97,74,0.38);
}
/* SVG play triangle via CSS */
.play-icon {
	display: inline-block;
	width: 0; height: 0;
	border-top: 9px solid transparent;
	border-bottom: 9px solid transparent;
	border-left: 16px solid var(--afl-coral);
	transition: border-left-color 0.18s;
	flex-shrink: 0;
}
.play-btn .wp-element-button:hover .play-icon {
	border-left-color: #fff;
}
/* Short button — outlined style */
.short-btn .wp-element-button {
	display: flex; align-items: center; gap: 0.55rem;
	background: transparent !important;
	color: #fff !important;
	border: 2px solid rgba(255,255,255,0.85) !important;
	border-radius: 50px !important;
	padding: 0.75rem 1.5rem !important;
	font-size: 0.78rem; font-weight: 700;
	text-transform: uppercase; letter-spacing: 0.1em;
	backdrop-filter: blur(4px);
	transition: background 0.18s, color 0.18s, border-color 0.18s, transform 0.18s;
	cursor: pointer;
}
.short-btn .wp-element-button:hover {
	background: rgba(255,255,255,0.15) !important;
	border-color: #fff !important;
	transform: scale(1.04);
}
/* lightning bolt icon for shorts */
.short-icon {
	display: inline-block; width: 14px; height: 18px;
	background: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 16'%3E%3Cpath d='M6 0L0 9h4l-1 7 7-10H6z'/%3E%3C/svg%3E") no-repeat center/contain;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 16'%3E%3Cpath d='M6 0L0 9h4l-1 7 7-10H6z'/%3E%3C/svg%3E") no-repeat center/contain;
	flex-shrink: 0;
}
/* gap between play buttons */
.play-btn-overlay .wp-block-button + .wp-block-button { margin-left: 0.75rem; }

/* === shorts vertical embed === */
.wp-block-embed.wp-embed-aspect-9-16 .wp-block-embed__wrapper {
	max-width: 380px;
	margin: 0 auto;
}
.wp-block-embed.wp-embed-aspect-9-16 {
	display: none; /* hidden — lightbox plays it */
}

/* === video description === */
.video-description {
	padding: 0;
}
.video-description .wp-block-post-content p {
	font-size: 1.05rem; line-height: 1.8; color: var(--afl-ink);
}
.video-description .wp-block-embed__wrapper {
	display: none; /* hide raw embed — video plays via lightbox */
}

/* === more videos grid === */
.more-videos-grid .wp-block-post-template {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1.5rem;
	list-style: none; padding: 0; margin: 0;
}
.more-videos-grid .wp-block-post {
	background: var(--afl-white); border-radius: var(--afl-radius);
	overflow: hidden; transition: transform 0.2s, box-shadow 0.2s;
}
.more-videos-grid .wp-block-post:hover { transform: translateY(-3px); box-shadow: var(--afl-shadow); }
.more-videos-grid .wp-block-post-featured-image img {
	width: 100%; height: 160px; object-fit: cover;
}
.more-videos-grid .wp-block-post-title {
	font-family: var(--wp--preset--font-family--playfair);
	font-size: 0.95rem; font-weight: 700; line-height: 1.3;
}
.more-videos-grid .wp-block-post-terms a {
	font-size: 0.65rem; font-weight: 700; text-transform: uppercase;
	letter-spacing: 0.09em; color: var(--afl-coral);
}
@media (max-width: 700px) {
	.more-videos-grid .wp-block-post-template { grid-template-columns: 1fr; }
}

/* === LIGHTBOX === */
.video-lightbox {
	display: none;
	position: fixed; inset: 0; z-index: 9999;
	align-items: center; justify-content: center;
}
.video-lightbox.is-open { display: flex; }
.video-lightbox-backdrop {
	position: absolute; inset: 0;
	background: rgba(0,0,0,0.88);
	animation: lb-fade-in 0.22s ease;
}
.video-lightbox-inner {
	position: relative; z-index: 1;
	width: min(92vw, 960px);
	animation: lb-scale-in 0.25s cubic-bezier(0.34,1.56,0.64,1);
}
.video-lightbox-close {
	position: absolute; top: -2.5rem; right: 0;
	background: transparent; border: none;
	color: #fff; font-size: 2rem; line-height: 1;
	cursor: pointer; padding: 0.25rem 0.5rem;
	transition: color 0.15s, transform 0.15s;
}
.video-lightbox-close:hover { color: var(--afl-coral); transform: scale(1.15); }
.video-lightbox-frame {
	position: relative; padding-bottom: 56.25%; height: 0;
	overflow: hidden; border-radius: var(--afl-radius);
	box-shadow: 0 8px 48px rgba(0,0,0,0.6);
}
.video-lightbox-frame iframe {
	position: absolute; top: 0; left: 0;
	width: 100%; height: 100%; border: 0;
}
@keyframes lb-fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes lb-scale-in { from { opacity: 0; transform: scale(0.9); } to { opacity: 1; transform: scale(1); } }

/* === YouTube-style comments === */

/* Section heading */
.afl-comments-heading {
	font-family: var(--wp--preset--font-family--playfair-display);
	font-size: 1.25rem;
	color: var(--afl-ink);
	margin: 0 0 1.5rem;
	padding-bottom: 0.75rem;
	border-bottom: 2px solid var(--afl-blush);
}

/* ── name + email identity fields (shown once per comment form) ── */
.afl-identity-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1rem;
	margin-bottom: 1rem;
}
@media (max-width: 600px) {
	.afl-identity-row { grid-template-columns: 1fr; }
}
.afl-identity-row .afl-field { margin-bottom: 0; }
.afl-identity-row label {
	display: block;
	font-weight: 700;
	font-size: 0.85rem;
	margin-bottom: 0.35rem;
}
.afl-identity-input {
	width: 100%;
	box-sizing: border-box;
	border: var(--afl-rule); border-radius: var(--afl-radius);
	padding: 0.65rem 0.9rem;
	font-family: var(--wp--preset--font-family--lato);
	font-size: 0.95rem; background: var(--afl-white); color: var(--afl-ink);
	transition: border-color 0.18s;
}
.afl-identity-input:focus { border-color: var(--afl-coral); outline: none; }
.afl-email-field .afl-field-hint {
	display: block;
	color: var(--afl-muted);
	font-size: 0.78rem;
	margin-top: 0.3rem;
}

/* ── input row (new comment + reply) ── */
.afl-comment-row {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	margin-bottom: 1.75rem;
}
.afl-avatar-stub {
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: var(--afl-blush);
	flex-shrink: 0;
}
.afl-comment-input-wrap {
	display: flex;
	align-items: center;
	flex: 1;
	border-bottom: 2px solid #ccc;
	transition: border-color 0.2s;
}
.afl-comment-input-wrap:focus-within {
	border-color: var(--afl-coral);
}
.afl-comment-input {
	flex: 1;
	border: none;
	outline: none;
	background: transparent;
	font-family: var(--wp--preset--font-family--lato);
	font-size: 0.95rem;
	color: var(--afl-ink);
	padding: 0.5rem 0;
	min-width: 0;
}
.afl-comment-input::placeholder { color: #aaa; }
.afl-comment-post-btn {
	border: none;
	background: var(--afl-coral);
	color: #fff;
	font-family: var(--wp--preset--font-family--lato);
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	padding: 0.45rem 1.1rem;
	border-radius: 50px;
	cursor: pointer;
	margin-left: 0.6rem;
	white-space: nowrap;
	transition: background 0.15s, transform 0.15s;
}
.afl-comment-post-btn:hover { background: #b5532f; transform: translateY(-1px); }

/* Post button row — right-aligned below the input line */
.afl-comment-actions {
	display: flex;
	justify-content: flex-end;
	margin-top: 0.5rem;
	padding-right: 0;
}

/* hide WP's default submit wrapper (button is in afl-comment-actions) */
.comment-form .form-submit { display: none !important; }
/* hide default label above textarea */
.comment-form > p.comment-form-comment > label { display: none; }
/* hide notify checkboxes */
.comment-form-cookies-consent,
.comment-form-subscriptions,
#wp-comment-cookies-consent,
.comment-subscription-form,
p.comment-form-subscriptions,
.comment-form p:has(input[name="subscribe_comments"]),
.comment-form p:has(input[name="subscribe_blog"]) { display: none !important; }
/* hide the big POST COMMENT submit button rendered by core/comments block */
.wp-block-post-comments-form .form-submit,
.wp-block-post-comments-form input[type="submit"] { display: none !important; }

/* ── comment list ── */
.comment-list {
	list-style: none;
	padding: 0;
	margin: 0 0 2rem;
}
.comment-list li { border: none; }

/* block comment template wrapper */
.wp-block-comment-template li {
	display: flex;
	gap: 0.75rem;
	padding: 0.75rem 0;
	border: none;
	list-style: none;
}
.wp-block-comment-template li > * { min-width: 0; }

.afl-comment-meta {
	display: flex;
	align-items: baseline;
	gap: 0.5rem;
	margin-bottom: 0.2rem;
}
.afl-creator-badge {
	background: var(--afl-coral);
	color: #fff;
	font-size: 0.58rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	padding: 0.1rem 0.4rem;
	border-radius: 4px;
	margin-left: 0.4rem;
	vertical-align: middle;
}

/* each comment bubble */
.comment-body {
	display: flex;
	gap: 0.75rem;
	padding: 0.75rem 0;
}
.afl-comment-avatar, .comment-body .comment-author-avatar {
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: var(--afl-blush);
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 700;
	font-size: 0.85rem;
	color: var(--afl-coral);
	text-transform: uppercase;
}
.comment-content-wrap { flex: 1; min-width: 0; }
.comment-meta-line {
	display: flex;
	align-items: baseline;
	gap: 0.5rem;
	margin-bottom: 0.2rem;
}
.comment-author-name {
	font-weight: 700;
	font-size: 0.82rem;
	color: var(--afl-ink);
}
.comment-time {
	font-size: 0.72rem;
	color: #aaa;
}
/* admin badge */
.bypostauthor .comment-author-name::after {
	content: 'Creator';
	background: var(--afl-coral);
	color: #fff;
	font-size: 0.58rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	padding: 0.1rem 0.4rem;
	border-radius: 4px;
	margin-left: 0.4rem;
	vertical-align: middle;
}
.comment-text {
	font-size: 0.93rem;
	color: var(--afl-ink);
	line-height: 1.5;
	margin: 0 0 0.35rem;
}
.comment-text p { margin: 0; }

/* reply button */
.comment-reply-link {
	display: inline-flex;
	align-items: center;
	gap: 0.3rem;
	font-size: 0.75rem;
	font-weight: 700;
	color: #888;
	text-decoration: none;
	letter-spacing: 0.05em;
	transition: color 0.15s;
	background: none;
	border: none;
	cursor: pointer;
	padding: 0;
}
.comment-reply-link:hover { color: var(--afl-coral); }
.comment-reply-link::before { content: '↩ '; }

/* threaded indentation */
.comment-list .children {
	list-style: none;
	padding-left: 2.75rem;
	margin: 0;
}

/* reply form when inline */
#respond {
	margin: 0.5rem 0 1rem 2.75rem;
}
#respond .afl-reply-row { margin-bottom: 0.5rem; }
#cancel-comment-reply-link {
	display: inline-block;
	font-size: 0.72rem;
	color: #aaa;
	text-decoration: none;
	margin-top: 0.25rem;
}
#cancel-comment-reply-link:hover { color: var(--afl-coral); }

/* hide default respond heading when replying (we use placeholder text) */
#reply-title { display: none; }

/* moderation notice */
.comment-awaiting-moderation {
	background: #fff8e1;
	border-left: 3px solid #f0a500;
	padding: 0.3rem 0.65rem;
	border-radius: 4px;
	font-size: 0.75rem;
	color: #7a5c00;
	margin-bottom: 0.4rem;
}

/* Hide search bar on homepage only */
.home .header-search-wrap { display: none !important; }

/* === policy pages (disclaimer, editorial-policy, privacy) === */
.policy-hero {
	background: var(--afl-blush);
	padding: 3rem clamp(1rem, 4vw, 2.5rem) 2rem;
	border-bottom: var(--afl-rule);
}
.policy-hero h1 {
	font-family: var(--wp--preset--font-family--playfair);
	font-size: clamp(1.8rem, 4vw, 2.8rem);
	margin: 0;
}

/* === videos archive page === */
.videos-hero {
	background: var(--afl-blush);
	padding: 3rem clamp(1rem, 4vw, 2.5rem) 2.5rem;
	text-align: center;
	border-bottom: var(--afl-rule);
}
.videos-hero__title {
	font-family: var(--wp--preset--font-family--playfair);
	font-size: clamp(2rem, 5vw, 3.2rem);
	margin-bottom: 0.75rem;
}
.videos-hero__desc {
	max-width: 55ch;
	margin: 0 auto;
	color: var(--afl-muted);
	font-size: 1.05rem;
	line-height: 1.7;
}

/* video card grid */
.videos-archive-grid .wp-block-post-template {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 2rem;
	list-style: none;
	padding: 0; margin: 0;
}
@media (max-width: 900px) {
	.videos-archive-grid .wp-block-post-template { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
	.videos-archive-grid .wp-block-post-template { grid-template-columns: 1fr; }
}
.video-card {
	background: var(--afl-white);
	border-radius: var(--afl-radius);
	overflow: hidden;
	border: var(--afl-rule);
	transition: transform 0.2s, box-shadow 0.2s;
}
.video-card:hover {
	transform: translateY(-3px);
	box-shadow: var(--afl-shadow);
}
.video-card .wp-block-post-featured-image img {
	width: 100%;
	aspect-ratio: 16 / 9;
	object-fit: cover;
	display: block;
}
.video-card__body {
	padding: 0.9rem 1.1rem 1.1rem;
}
.video-card__category a {
	font-size: 0.68rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: var(--afl-coral);
	display: inline-block;
	margin-bottom: 0.35rem;
}
.video-card__title .wp-block-post-title {
	font-family: var(--wp--preset--font-family--playfair);
	font-size: 1.05rem;
	font-weight: 700;
	line-height: 1.3;
	margin-bottom: 0.4rem;
}
.video-card__title .wp-block-post-title a { color: var(--afl-ink); }
.video-card__title .wp-block-post-title a:hover { color: var(--afl-coral); }
.video-card__excerpt .wp-block-post-excerpt__excerpt {
	font-size: 0.88rem;
	color: var(--afl-muted);
	line-height: 1.6;
	margin-bottom: 0.4rem;
}
.video-card__excerpt .wp-block-post-excerpt__more-link {
	font-size: 0.75rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--afl-coral);
	border-bottom: 1px solid var(--afl-coral);
	padding-bottom: 0.1rem;
	transition: color 0.15s;
}
.video-card__excerpt .wp-block-post-excerpt__more-link:hover { color: var(--afl-ink); border-color: var(--afl-ink); }
.videos-empty {
	text-align: center;
	color: var(--afl-muted);
	padding: 2.5rem 0;
}

/* === podcasts archive page === */
.podcasts-hero {
	background: var(--afl-blush);
	padding: 3rem clamp(1rem, 4vw, 2.5rem) 2.5rem;
	text-align: center;
	border-bottom: var(--afl-rule);
}
.podcasts-hero__title {
	font-family: var(--wp--preset--font-family--playfair);
	font-size: clamp(2rem, 5vw, 3.2rem);
	margin-bottom: 0.75rem;
}
.podcasts-hero__desc {
	max-width: 55ch;
	margin: 0 auto;
	color: var(--afl-muted);
	font-size: 1.05rem;
	line-height: 1.7;
}

/* podcast card grid */
.podcast-archive-grid .wp-block-post-template {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 2rem;
	list-style: none;
	padding: 0; margin: 0;
}
@media (max-width: 900px) {
	.podcast-archive-grid .wp-block-post-template { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
	.podcast-archive-grid .wp-block-post-template { grid-template-columns: 1fr; }
}
.podcast-card {
	background: var(--afl-white);
	border-radius: var(--afl-radius);
	overflow: hidden;
	border: var(--afl-rule);
	transition: transform 0.2s, box-shadow 0.2s;
}
.podcast-card:hover {
	transform: translateY(-3px);
	box-shadow: var(--afl-shadow);
}
.podcast-card .wp-block-post-featured-image img {
	width: 100%;
	aspect-ratio: 1;
	object-fit: cover;
	display: block;
}
.podcast-card__body {
	padding: 1rem 1.25rem 1.25rem;
}
.podcast-card__series a {
	font-size: 0.68rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: var(--afl-coral);
	display: inline-block;
	margin-bottom: 0.4rem;
}
.podcast-card__title .wp-block-post-title {
	font-family: var(--wp--preset--font-family--playfair);
	font-size: 1.1rem;
	font-weight: 700;
	line-height: 1.3;
	margin-bottom: 0.5rem;
}
.podcast-card__title .wp-block-post-title a { color: var(--afl-ink); }
.podcast-card__title .wp-block-post-title a:hover { color: var(--afl-coral); }
.podcast-card__excerpt .wp-block-post-excerpt__excerpt {
	font-size: 0.9rem;
	color: var(--afl-muted);
	line-height: 1.6;
	margin-bottom: 0.5rem;
}
.podcast-card__excerpt .wp-block-post-excerpt__more-link {
	font-size: 0.75rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--afl-coral);
	border-bottom: 1px solid var(--afl-coral);
	padding-bottom: 0.1rem;
	transition: color 0.15s;
}
.podcast-card__excerpt .wp-block-post-excerpt__more-link:hover { color: var(--afl-ink); border-color: var(--afl-ink); }
.podcast-card__date {
	font-size: 0.75rem;
	color: var(--afl-muted);
}

/* empty state */
.podcast-empty {
	text-align: center;
	padding: 3.5rem 1.5rem;
	max-width: 520px;
	margin: 0 auto;
}
.podcast-empty__heading {
	font-family: var(--wp--preset--font-family--playfair);
	font-size: 1.6rem;
	margin-bottom: 0.75rem;
	color: var(--afl-ink);
}
.podcast-empty__text {
	color: var(--afl-muted);
	font-size: 0.95rem;
	line-height: 1.7;
}

/* === single podcast template === */
.podcast-single-wrap {
	padding-top: 2.5rem;
	padding-bottom: 0;
}
.podcast-single__series a {
	font-size: 0.72rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.12em;
	color: var(--afl-coral);
	display: inline-block;
	margin-bottom: 0.5rem;
}
.podcast-single__title {
	font-family: var(--wp--preset--font-family--playfair);
	font-size: clamp(1.8rem, 4vw, 2.8rem);
	font-weight: 700;
	line-height: 1.15;
	margin-bottom: 0.75rem;
}
.podcast-single__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	align-items: center;
	padding: 0.85rem 0;
	border-top: var(--afl-rule);
	border-bottom: var(--afl-rule);
	margin-bottom: 0;
	color: var(--afl-muted);
	font-size: 0.82rem;
}
.podcast-single__cover .wp-block-post-featured-image img {
	width: 100%;
	max-width: 300px;
	aspect-ratio: 1;
	object-fit: cover;
	border-radius: var(--afl-radius);
	box-shadow: var(--afl-shadow);
	margin: 0 auto;
	display: block;
}
/* SSP player inherits from post content — no autoplay; constrained width */
.podcast-single__player {
	padding: 0;
}
.podcast-single__player .wp-block-post-content {
	max-width: 100%;
}

/* more episodes grid (3-col, same as more-videos-grid) */
.more-episodes-section {
	padding: 2.5rem clamp(1rem, 4vw, 2.5rem);
	margin-top: 2rem;
}
.more-episodes-grid .wp-block-post-template {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1.5rem;
	list-style: none;
	padding: 0; margin: 0;
}
.more-episodes-grid .wp-block-post {
	background: var(--afl-white);
	border-radius: var(--afl-radius);
	overflow: hidden;
	transition: transform 0.2s, box-shadow 0.2s;
}
.more-episodes-grid .wp-block-post:hover { transform: translateY(-3px); box-shadow: var(--afl-shadow); }
.more-episodes-grid .wp-block-post-featured-image img {
	width: 100%;
	aspect-ratio: 1;
	object-fit: cover;
}
.more-episodes-grid .wp-block-post-title {
	font-family: var(--wp--preset--font-family--playfair);
	font-size: 0.95rem;
	font-weight: 700;
	line-height: 1.3;
}
.more-episodes-grid .wp-block-post-terms a {
	font-size: 0.65rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.09em;
	color: var(--afl-coral);
}
@media (max-width: 700px) {
	.more-episodes-grid .wp-block-post-template { grid-template-columns: 1fr; }
}

/* === afl/ai-disclosure block === */
.afl-ai-disclosure {
	display: block;
	background: #f0f7ff;
	border: 1.5px solid #a8c8f0;
	border-left: 4px solid #3a82c4;
	border-radius: var(--afl-radius);
	padding: 0.9rem 1.1rem;
	margin: 0;
}
.afl-ai-disclosure__label {
	font-size: 0.72rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.12em;
	color: #1a5a9a;
	margin: 0 0 0.35rem;
	line-height: 1.3;
}
.afl-ai-disclosure__text {
	font-size: 0.9rem;
	color: #1e3a5a;
	line-height: 1.6;
	margin: 0;
}

/* === afl/health-disclaimer block === */
.afl-health-disclaimer {
	display: block;
	background: #fdf8ee;
	border: 1.5px solid #e0c97a;
	border-left: 4px solid #b89a2a;
	border-radius: var(--afl-radius);
	padding: 0.9rem 1.1rem;
	margin: 0;
}
.afl-health-disclaimer__label {
	font-size: 0.72rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.12em;
	color: #7a5c00;
	margin: 0 0 0.35rem;
	line-height: 1.3;
}
.afl-health-disclaimer__text {
	font-size: 0.9rem;
	color: #4a3a00;
	line-height: 1.6;
	margin: 0 0 0.5rem;
}
.afl-health-disclaimer__text:last-child { margin-bottom: 0; }

/* === afl/related-podcast block (related video card on single-podcast) === */
.afl-related-video {
	margin: 0;
}
.afl-related-video__label {
	font-size: 0.72rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.12em;
	color: var(--afl-muted);
	margin: 0 0 0.6rem;
}
.afl-related-video__card {
	display: flex;
	align-items: center;
	gap: 1rem;
	padding: 1rem 1.25rem;
	background: var(--afl-white);
	border: var(--afl-rule);
	border-left: 3px solid var(--afl-coral);
	border-radius: var(--afl-radius);
	text-decoration: none;
	transition: box-shadow 0.18s, transform 0.18s;
}
.afl-related-video__card:hover {
	box-shadow: var(--afl-shadow);
	transform: translateY(-2px);
}
.afl-related-video__thumb {
	width: 72px;
	height: 72px;
	object-fit: cover;
	border-radius: var(--afl-radius);
	flex-shrink: 0;
}
.afl-related-video__text {
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 0.2rem;
	min-width: 0;
}
.afl-related-video__title {
	font-family: var(--wp--preset--font-family--playfair);
	font-size: 1rem;
	font-weight: 700;
	color: var(--afl-ink);
	line-height: 1.3;
	display: block;
}
.afl-related-video__cta {
	font-size: 0.75rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--afl-coral);
	display: block;
}
.afl-related-video__arrow {
	width: 20px;
	height: 20px;
	flex-shrink: 0;
	background: var(--afl-coral);
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 14'%3E%3Cpath d='M0 0l8 7-8 7z'/%3E%3C/svg%3E") no-repeat center/contain;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 14'%3E%3Cpath d='M0 0l8 7-8 7z'/%3E%3C/svg%3E") no-repeat center/contain;
}

/* === afl/post-actions block === */
.afl-post-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	align-items: center;
	margin: 1.75rem 0;
}
.afl-post-actions__btn {
	display: inline-flex;
	align-items: center;
	gap: 0.55rem;
	border-radius: 50px;
	font-size: 0.82rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.09em;
	padding: 0.75rem 1.65rem;
	text-decoration: none;
	transition: background 0.18s, color 0.18s, border-color 0.18s, transform 0.18s, box-shadow 0.18s;
	cursor: pointer;
	white-space: nowrap;
}
/* Button 1 – Watch Video: solid coral */
.afl-post-actions__btn--watch {
	background: var(--afl-coral);
	color: #fff;
	border: 2px solid var(--afl-coral);
}
.afl-post-actions__btn--watch:hover {
	background: #c94a34;
	border-color: #c94a34;
	color: #fff;
	transform: translateY(-2px);
	box-shadow: 0 4px 16px rgba(232,97,74,0.32);
}
/* Button 2 – View Recipe / View Details: outlined coral */
.afl-post-actions__btn--recipe {
	background: transparent;
	color: var(--afl-coral);
	border: 2px solid var(--afl-coral);
}
.afl-post-actions__btn--recipe:hover {
	background: var(--afl-coral);
	color: #fff;
	transform: translateY(-2px);
	box-shadow: 0 4px 16px rgba(232,97,74,0.22);
}
/* Button 3 – Listen to Analysis: muted/ghost */
.afl-post-actions__btn--podcast {
	background: transparent;
	color: var(--afl-ink);
	border: 2px solid rgba(44,44,44,0.25);
}
.afl-post-actions__btn--podcast:hover {
	background: var(--afl-ink);
	color: #fff;
	border-color: var(--afl-ink);
	transform: translateY(-2px);
}
/* Icons — CSS masks */
.afl-post-actions__icon {
	display: inline-block;
	width: 14px;
	height: 14px;
	flex-shrink: 0;
	background: currentColor;
}
.afl-post-actions__icon--play {
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 12'%3E%3Cpath d='M0 0l10 6-10 6z'/%3E%3C/svg%3E") no-repeat center/contain;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 12'%3E%3Cpath d='M0 0l10 6-10 6z'/%3E%3C/svg%3E") no-repeat center/contain;
}
.afl-post-actions__icon--recipe {
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 16'%3E%3Cpath d='M7 0C4.24 0 2 2.24 2 5c0 2.38 1.66 4.38 3.88 4.88L5 16h4l-.88-6.12A5.003 5.003 0 0 0 12 5c0-2.76-2.24-5-5-5zm0 8C5.35 8 4 6.65 4 5s1.35-3 3-3 3 1.35 3 3-1.35 3-3 3z'/%3E%3C/svg%3E") no-repeat center/contain;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 16'%3E%3Cpath d='M7 0C4.24 0 2 2.24 2 5c0 2.38 1.66 4.38 3.88 4.88L5 16h4l-.88-6.12A5.003 5.003 0 0 0 12 5c0-2.76-2.24-5-5-5zm0 8C5.35 8 4 6.65 4 5s1.35-3 3-3 3 1.35 3 3-1.35 3-3 3z'/%3E%3C/svg%3E") no-repeat center/contain;
}
.afl-post-actions__icon--podcast {
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 16'%3E%3Cpath d='M7 0a4 4 0 0 0-4 4v4a4 4 0 0 0 8 0V4a4 4 0 0 0-4-4zm-6 7a6 6 0 0 0 5 5.92V15H4v1h6v-1H8v-2.08A6 6 0 0 0 13 7h-1a5 5 0 0 1-10 0H1z'/%3E%3C/svg%3E") no-repeat center/contain;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 16'%3E%3Cpath d='M7 0a4 4 0 0 0-4 4v4a4 4 0 0 0 8 0V4a4 4 0 0 0-4-4zm-6 7a6 6 0 0 0 5 5.92V15H4v1h6v-1H8v-2.08A6 6 0 0 0 13 7h-1a5 5 0 0 1-10 0H1z'/%3E%3C/svg%3E") no-repeat center/contain;
}
@media (max-width: 500px) {
	.afl-post-actions { gap: 0.5rem; }
	.afl-post-actions__btn { font-size: 0.75rem; padding: 0.65rem 1.2rem; }
}

/* === accessibility: keyboard focus === */
a:focus-visible,
button:focus-visible,
[role="button"]:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
	outline: 2px solid var(--afl-coral);
	outline-offset: 3px;
	border-radius: 2px;
}
/* suppress focus ring for mouse users, keep for keyboard */
a:focus:not(:focus-visible),
button:focus:not(:focus-visible) {
	outline: none;
}

/* === accessibility: hamburger touch target (min 44×44) === */
/* Only enlarge on mobile — do NOT override core's display:none on desktop */
@media (max-width: 599px) {
	.wp-block-navigation__responsive-container-open {
		min-width: 44px;
		min-height: 44px;
		display: flex;
		align-items: center;
		justify-content: center;
		padding: 10px;
	}
}
.wp-block-navigation__responsive-container-close {
	min-width: 44px;
	min-height: 44px;
	align-items: center;
	justify-content: center;
	padding: 10px;
}
/* Ensure open button and close button are hidden on desktop when overlay is closed */
@media (min-width: 600px) {
	.site-header .wp-block-navigation__responsive-container-open { display: none; }
	.site-header .wp-block-navigation__responsive-container:not(.is-menu-open)
		.wp-block-navigation__responsive-container-close { display: none; }
}

/* === reduced motion === */
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; transition: none !important; }
}
.reveal { opacity: 1; transform: none; transition: opacity 0.5s ease, transform 0.5s ease; }

/* === Stage 1: homepage hero (afl-home-hero.php) — description banner === */
.afl-home-hero {
	padding-top: 2.25rem;
	padding-bottom: 2.25rem;
}
.afl-home-hero__row {
	gap: 1.75rem;
}
.afl-home-hero__text {
	gap: 0.5rem;
	max-width: 68ch;
}
.afl-home-hero__brand {
	font-family: var(--wp--preset--font-family--lato);
	font-size: 0.68rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: var(--wp--preset--color--primary);
	margin: 0;
}
.afl-home-hero__desc {
	font-size: clamp(0.85rem, 1.1vw, 0.92rem);
	line-height: 1.55;
	color: var(--afl-ink);
	margin: 0;
}
.afl-home-hero__buttons {
	flex-wrap: nowrap;
	flex-shrink: 0;
	margin-top: 0.5rem;
}
@media (max-width: 600px) {
	.afl-home-hero__buttons .wp-block-button {
		width: 100%;
	}
	.afl-home-hero__buttons .wp-block-button__link {
		display: block;
		text-align: center;
	}
}
/* Shared "About Aparna" card (patterns/afl-about-card.php) — lives only
   in the homepage sidebar, at every screen size. */
.afl-about-card {
	gap: 0.75rem;
	padding: 1.1rem;
	border-radius: var(--afl-radius);
}
.afl-about-card__avatar,
.afl-about-card .afl-about-card__avatar {
	flex-shrink: 0;
	width: 48px;
	height: 48px;
}
.afl-about-card__avatar img {
	border-radius: 50%;
	flex-shrink: 0;
	width: 48px;
	height: 48px;
}
.afl-about-card__text {
	gap: 0.35rem;
	min-width: 0;
}
.afl-about-card__title {
	font-family: var(--wp--preset--font-family--playfair);
	font-size: 0.95rem;
	font-weight: 700;
	color: var(--afl-ink);
	margin: 0;
	padding-bottom: 0.35rem;
	border-bottom: 2px solid var(--afl-coral);
}
.afl-about-card__desc {
	font-size: 0.78rem;
	line-height: 1.5;
	margin: 0;
}
.afl-about-sidebar .afl-about-card {
	padding: 1.5rem;
}

/* === Stage 1: homepage section headings + placeholders === */
.afl-section-heading {
	font-size: clamp(1.5rem, 3vw, 2.1rem);
	margin-bottom: 0.5rem;
}
.afl-section-desc {
	max-width: 62ch;
	color: var(--wp--preset--color--muted);
	margin-bottom: 1.5rem;
}
.afl-placeholder-note {
	font-style: italic;
	color: var(--wp--preset--color--muted);
	font-size: 0.9rem;
}

/* === Stage 1: Learn with AFL cards === */
.afl-learn-cards__row {
	gap: 2rem;
}
.afl-learn-card {
	background: var(--wp--preset--color--surface);
	border: 1px solid var(--wp--preset--color--secondary);
	border-radius: 8px;
	padding: 1.75rem;
}
.afl-learn-card__title {
	font-size: 1.25rem;
	margin-bottom: 0.5rem;
}
.afl-learn-card__desc {
	font-size: 0.95rem;
	margin-bottom: 0;
}

/* === Stage 3: clickable Recipes card === */
.afl-learn-card--linked {
	transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.afl-learn-card--linked:hover {
	transform: translateY(-3px);
	box-shadow: var(--afl-shadow);
	border-color: var(--afl-coral);
}
.afl-learn-card__link {
	margin: 0.9rem 0 0;
}
.afl-learn-card__link a {
	font-size: 0.85rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--afl-coral);
	text-decoration: none;
}
.afl-learn-card__link a:hover {
	text-decoration: underline;
}

/* === AFL-HOMEPAGE-PLAN.md: shared recipe-card visual identity ===
 * Grid layout and card-specific element styles (desc/meta/actions) now
 * live in wp-content/plugins/afl-site/blocks/latest-recipes/style.css,
 * since that block owns the markup as of Stage 2. These base card
 * styles remain here and are reused by the block's rendered markup. */
.afl-recipe-card {
	background: var(--wp--preset--color--surface);
	border-radius: var(--afl-radius);
	overflow: hidden;
	border: var(--afl-rule);
	transition: transform 0.2s, box-shadow 0.2s;
}
.afl-recipe-card:hover {
	transform: translateY(-3px);
	box-shadow: var(--afl-shadow);
}
.afl-recipe-card__thumb img {
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	display: block;
}
.afl-recipe-card__body {
	padding: 1.1rem 1.25rem 1.35rem;
}
.afl-recipe-card__title {
	font-family: var(--wp--preset--font-family--playfair);
	font-size: 1.2rem;
	font-weight: 700;
	line-height: 1.3;
	margin-bottom: 0.5rem;
}
.afl-recipe-card__title a { color: var(--afl-ink); }
.afl-recipe-card__title a:hover { color: var(--afl-coral); }
.afl-recipe-card .afl-post-actions {
	margin: 0;
}


