/* ================================================================
   Tourism Tribe — Lib Design System
   Reusable component library for Gutenberg pages.
   Load globally via functions.php.
   Fonts: Fraunces (display) + DM Sans (body)
   ================================================================ */

/* ── CSS variables (scoped to any lib-page-wrap context) ───────── */

.lib-page-wrap {
	--coral:        #f98277;
	--coral-dark:   #e06b5f;
	--coral-light:  #fce9e7;
	--charcoal:     #3a3a3a;
	--charcoal-dim: #5a5a5a;
	--cream:        #fdf9f5;
	--white:        #ffffff;
	--border:       rgba(58,58,58,0.1);
	--font-display: 'Fraunces', Georgia, serif;
	--font-body:    'DM Sans', system-ui, sans-serif;
}

/* ── Global font-weight fix ────────────────────────────────────── */
/* Astra sets body font-weight: 300 via customizer. DM Sans only
   loads at 400–600, so we override to ensure consistent rendering. */
body {
	font-weight: 400;
}

.lib-page-wrap,
.lib-page-wrap * { box-sizing: border-box; }

.lib-page-wrap a { text-decoration: none; }

/* Override Astra's entry-content[data-ast-blocks-layout] > * max-width constraint */
.entry-content[data-ast-blocks-layout] > .lib-page-wrap,
.entry-content[data-ast-blocks-layout] > .wp-block-group.lib-page-wrap {
	max-width: 100% !important;
	width: 100% !important;
}

/* ── Hero ────────────────────────────────────────────────────── */

.lib-hero {
	background: var(--coral);
	position: relative;
	overflow: hidden;
	padding: 2.5rem 1.5rem 6rem;
	text-align: center;
}

.lib-hero::before {
	content: '';
	position: absolute;
	top: -120px;
	right: -120px;
	width: 400px;
	height: 400px;
	border-radius: 50%;
	border: 56px solid rgba(255,255,255,0.08);
	box-shadow: 0 0 0 56px rgba(255,255,255,0.05), 0 0 0 112px rgba(255,255,255,0.03);
	pointer-events: none;
}

.lib-hero-inner {
	position: relative;
	z-index: 1;
	max-width: 620px;
	margin: 0 auto;
}

/* Two-column hero layout when image is present */
.lib-hero-2col {
	display: flex;
	align-items: center;
	gap: 2rem;
	max-width: 960px;
	text-align: left;
}

.lib-hero-2col .lib-hero-content { flex: 1 1 0; }

.lib-hero-2col .lib-socials { justify-content: flex-start; }

.lib-hero-image {
	flex: 0 0 auto;
	width: 280px;
	display: none; /* hidden on mobile */
}

.lib-hero-image img {
	width: 100%;
	height: auto;
	border-radius: 12px;
	object-fit: cover;
	display: block;
}

@media (min-width: 768px) {
	.lib-hero-image { display: block; }
	.lib-hero-2col .lib-hero-sub { max-width: 100%; }
}

.lib-logo-wrap { margin-bottom: 2rem; }

.lib-logo-wrap a { display: inline-block; }

.lib-logo-wrap img {
	height: 44px;
	width: auto;
	filter: brightness(0) invert(1);
}

.lib-logo-text {
	font-family: var(--font-display);
	font-size: 1.4rem;
	font-weight: 700;
	color: var(--white);
	letter-spacing: -0.02em;
	display: inline-block;
}

.lib-hero h1 {
	font-family: var(--font-display) !important;
	font-size: clamp(1.9rem, 5.5vw, 3rem) !important;
	font-weight: 700 !important;
	font-style: italic !important;
	color: var(--white) !important;
	line-height: 1.15 !important;
	letter-spacing: -0.03em !important;
	margin: 0 0 1rem !important;
}

.lib-hero-sub {
	font-family: var(--font-body);
	font-size: 1.05rem;
	color: rgba(255,255,255,0.85);
	line-height: 1.6;
	margin: 0 auto 2rem;
	max-width: 480px;
}

/* Social pills */
.lib-socials {
	display: flex;
	justify-content: center;
	gap: 0.6rem;
	flex-wrap: wrap;
}

.lib-social-link {
	display: inline-flex;
	align-items: center;
	gap: 0.375rem;
	background: rgba(255,255,255,0.18);
	border: 1px solid rgba(255,255,255,0.3);
	color: var(--white) !important;
	font-family: var(--font-body);
	font-size: 0.78rem;
	font-weight: 500;
	padding: 0.45rem 1rem;
	border-radius: 100px;
	transition: background 0.2s ease;
	backdrop-filter: blur(6px);
}

.lib-social-link:hover {
	background: rgba(255,255,255,0.3);
	color: var(--white) !important;
}

.lib-hero-wave {
	position: absolute;
	bottom: -1px;
	left: 0;
	right: 0;
	line-height: 0;
}

.lib-hero-wave svg { display: block; width: 100%; }

/* ── Shared section styles ───────────────────────────────────── */

.lib-section { padding: 4rem 1.5rem; }

.lib-container {
	max-width: 700px;
	margin: 0 auto;
	width: 100%;
}

/* Remove default Gutenberg group padding within lib context */
.lib-page-wrap .wp-block-group:not(.lib-section):not(.lib-container):not(.lib-footer-strip) {
	padding: 0;
}

.lib-section-label {
	font-family: var(--font-body) !important;
	font-size: 0.68rem !important;
	font-weight: 600 !important;
	letter-spacing: 0.14em !important;
	text-transform: uppercase !important;
	color: var(--coral) !important;
	margin: 0 0 0.65rem !important;
}

.lib-section-heading {
	font-family: var(--font-display) !important;
	font-size: clamp(1.55rem, 3.5vw, 2.1rem) !important;
	font-weight: 700 !important;
	color: var(--charcoal) !important;
	line-height: 1.2 !important;
	letter-spacing: -0.025em !important;
	margin: 0 0 0.65rem !important;
}

.lib-section-lead {
	font-family: var(--font-body);
	font-size: 1rem;
	color: var(--charcoal-dim);
	line-height: 1.65;
	margin: 0 0 2rem;
}

/* ── Form / Lead magnet section ──────────────────────────────── */

.lib-form-section { background: var(--cream); }

/* Two-column layout: form content left, resource image right */
.lib-form-cols {
	display: flex;
	align-items: center;
	gap: 3rem;
	max-width: 960px;
	margin: 0 auto;
	padding: 0 1.5rem;
}

.lib-form-cols .wp-block-group.lib-container {
	flex: 1 1 0;
	max-width: none !important;
	margin: 0;
	padding: 0;
}

.lib-form-resource-img {
	flex: 0 0 auto;
	width: 260px;
	display: none;
	align-self: flex-end;
}

.lib-form-resource-img img {
	width: 100%;
	height: auto;
	display: block;
	border-radius: 16px 16px 0 0;
}

@media (min-width: 900px) {
	.lib-form-resource-img { display: block; }
}

/* When two-column is active, remove padding from lib-form-section itself */
.lib-form-section:has(.lib-form-cols) { padding-left: 0; padding-right: 0; }

.lib-benefits {
	list-style: none !important;
	padding: 0 !important;
	margin: 0 0 2rem !important;
	display: flex;
	flex-direction: column;
	gap: 0.6rem;
}

.lib-benefits li {
	font-family: var(--font-body);
	font-size: 0.95rem;
	color: var(--charcoal);
	display: flex;
	align-items: flex-start;
	gap: 0.65rem;
	line-height: 1.5;
}

.lib-benefits li::before {
	content: '' !important;
	flex-shrink: 0;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: var(--coral) url("data:image/svg+xml,%3Csvg width='10' height='8' viewBox='0 0 10 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 4L3.5 6.5L9 1' stroke='white' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center !important;
	margin-top: 1px;
}

/* Gravity Forms overrides */
.lib-form-section .gform_wrapper { margin: 0 !important; }

.lib-form-section .gform_wrapper .gfield { margin-bottom: 1rem !important; }

.lib-form-section .gform_wrapper .gfield_label,
.lib-form-section .gform_wrapper .ginput_complex label {
	font-family: var(--font-body) !important;
	font-size: 0.83rem !important;
	font-weight: 600 !important;
	color: var(--charcoal) !important;
	margin-bottom: 0.4rem !important;
}

.lib-form-section .gform_wrapper input[type="text"],
.lib-form-section .gform_wrapper input[type="email"],
.lib-form-section .gform_wrapper input[type="tel"],
.lib-form-section .gform_wrapper select {
	width: 100% !important;
	font-family: var(--font-body) !important;
	font-size: 1rem !important;
	padding: 0.8rem 1rem !important;
	border: 1.5px solid rgba(58,58,58,0.2) !important;
	border-radius: 10px !important;
	background: var(--white) !important;
	color: var(--charcoal) !important;
	outline: none !important;
	box-shadow: none !important;
	-webkit-appearance: none !important;
	appearance: none !important;
	transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
}

.lib-form-section .gform_wrapper input:focus,
.lib-form-section .gform_wrapper select:focus {
	border-color: var(--coral) !important;
	box-shadow: 0 0 0 3px var(--coral-light) !important;
}

.lib-form-section .gform_wrapper input::placeholder { color: #b0b0b0 !important; }

.lib-form-section .gform_wrapper .gform_button,
.lib-form-section .gform_wrapper input[type="submit"] {
	width: 100% !important;
	font-family: var(--font-body) !important;
	font-size: 1.05rem !important;
	font-weight: 600 !important;
	padding: 1rem 2rem !important;
	background: var(--coral) !important;
	color: var(--white) !important;
	border: none !important;
	border-radius: 12px !important;
	cursor: pointer !important;
	margin-top: 0.5rem !important;
	letter-spacing: -0.01em !important;
	transition: background 0.2s ease, transform 0.15s cubic-bezier(0.34,1.56,0.64,1) !important;
}

.lib-form-section .gform_wrapper .gform_button:hover,
.lib-form-section .gform_wrapper input[type="submit"]:hover {
	background: var(--coral-dark) !important;
	transform: translateY(-2px) !important;
}

.lib-form-section .gform_wrapper .gform_button:active,
.lib-form-section .gform_wrapper input[type="submit"]:active {
	transform: translateY(0) !important;
}

.lib-form-section .gform_wrapper .gfield_error input,
.lib-form-section .gform_wrapper .gfield_error select {
	border-color: #e53e3e !important;
}

.lib-form-section .gform_wrapper .validation_message,
.lib-form-section .gform_wrapper .gfield_validation_message {
	font-family: var(--font-body) !important;
	font-size: 0.78rem !important;
	color: #e53e3e !important;
	margin-top: 0.25rem !important;
}

.lib-form-section .gform_wrapper .gform_confirmation_message {
	font-family: var(--font-body) !important;
	background: var(--coral-light) !important;
	border-radius: 12px !important;
	padding: 1.5rem !important;
	text-align: center !important;
	color: var(--charcoal) !important;
}

.lib-form-section .gform_wrapper .ginput_complex .ginput_full,
.lib-form-section .gform_wrapper .ginput_complex .ginput_left,
.lib-form-section .gform_wrapper .ginput_complex .ginput_right {
	width: 100% !important;
	float: none !important;
	padding: 0 !important;
}

.lib-form-section .gform_wrapper .gform_title,
.lib-form-section .gform_wrapper .gform_description { display: none !important; }

/* ── Podcast section ─────────────────────────────────────────── */

.lib-podcast-section {
	background: var(--charcoal);
	position: relative;
	overflow: hidden;
}

.lib-podcast-section::before {
	content: '';
	position: absolute;
	bottom: -100px;
	left: -100px;
	width: 320px;
	height: 320px;
	border-radius: 50%;
	border: 50px solid rgba(249,130,119,0.12);
	box-shadow: 0 0 0 50px rgba(249,130,119,0.06);
	pointer-events: none;
}

.lib-podcast-section .lib-section-label { color: var(--coral) !important; }
.lib-podcast-section .lib-section-heading { color: var(--white) !important; }
.lib-podcast-section .lib-section-lead { color: rgba(255,255,255,0.6); }

.lib-podcast-card {
	display: flex;
	align-items: center;
	gap: 1.25rem;
	background: rgba(255,255,255,0.07);
	border: 1px solid rgba(255,255,255,0.1);
	border-radius: 16px;
	padding: 1.25rem;
	margin-bottom: 1.5rem;
	position: relative;
	z-index: 1;
	transition: background 0.2s ease, transform 0.25s cubic-bezier(0.34,1.56,0.64,1);
}

.lib-podcast-card:hover {
	background: rgba(255,255,255,0.11);
	transform: translateY(-3px);
}

.lib-podcast-artwork {
	flex-shrink: 0;
	width: 72px;
	height: 72px;
	border-radius: 12px;
	background: var(--coral);
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
}

.lib-podcast-artwork img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.lib-podcast-meta { flex: 1; min-width: 0; }

.lib-podcast-tag {
	font-family: var(--font-body) !important;
	font-size: 0.68rem !important;
	font-weight: 600 !important;
	letter-spacing: 0.1em !important;
	text-transform: uppercase !important;
	color: var(--coral) !important;
	margin: 0 0 0.35rem !important;
}

.lib-podcast-title {
	font-family: var(--font-display) !important;
	font-size: 1rem !important;
	font-weight: 600 !important;
	color: var(--white) !important;
	line-height: 1.35 !important;
	margin: 0 !important;
	overflow: hidden;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
}

.lib-podcast-arrow {
	flex-shrink: 0;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: var(--coral);
	display: flex;
	align-items: center;
	justify-content: center;
}

.lib-podcast-listen {
	display: flex;
	gap: 0.6rem;
	flex-wrap: wrap;
	position: relative;
	z-index: 1;
}

.lib-listen-btn {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	font-family: var(--font-body);
	font-size: 0.78rem;
	font-weight: 500;
	color: rgba(255,255,255,0.65) !important;
	padding: 0.5rem 1rem;
	border-radius: 100px;
	border: 1px solid rgba(255,255,255,0.2);
	transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.lib-listen-btn:hover {
	color: var(--white) !important;
	border-color: rgba(255,255,255,0.45);
	background: rgba(255,255,255,0.06);
}

/* ── Blog section ────────────────────────────────────────────── */

.lib-blog-section { background: var(--white); }

/* Grid — works for both shortcode output and Query Loop block */
.lib-blog-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1.25rem;
	margin-top: 0.5rem;
}

/* Query Loop: post-template renders as <ul> — reset list styles */
ul.lib-blog-grid,
.lib-blog-grid.wp-block-post-template {
	list-style: none !important;
	padding: 0 !important;
	margin-top: 0.5rem !important;
}

/* Query Loop: each <li> needs to stack like a flex column so card fills height */
.lib-blog-grid.wp-block-post-template > li {
	display: flex;
	flex-direction: column;
}

@media (min-width: 580px) {
	.lib-blog-grid { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 900px) {
	.lib-blog-grid { grid-template-columns: repeat(3, 1fr); }
	.lib-blog-section .lib-container,
	.lib-podcast-section .lib-container,
	.lib-form-section .lib-container { max-width: 960px; }
}

/* Card — works for both <a class="lib-blog-card"> and <div class="wp-block-group lib-blog-card"> */
.lib-blog-card {
	display: block;
	border-radius: 16px;
	overflow: hidden;
	background: var(--cream);
	border: 1px solid var(--border);
	transition: transform 0.25s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.25s ease;
	position: relative; /* needed for stretched-link */
	height: 100%;
}

.lib-blog-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 12px 40px rgba(249,130,119,0.14);
}

/* Featured image — shortcode <img> */
.lib-blog-card-img {
	width: 100%;
	height: 180px;
	object-fit: cover;
	display: block;
}

/* Featured image — Query Loop <figure class="wp-block-post-featured-image"> */
.lib-blog-card .wp-block-post-featured-image,
.lib-blog-card .wp-block-post-featured-image a {
	display: block;
	margin: 0;
}

.lib-blog-card .wp-block-post-featured-image img {
	width: 100%;
	height: 180px;
	object-fit: cover;
	display: block;
}

.lib-blog-card-placeholder {
	width: 100%;
	height: 180px;
	background: linear-gradient(135deg, var(--coral-light) 0%, #fdecd4 100%);
}

.lib-blog-card-body { padding: 1.25rem; }

/* Category — shortcode <p> and Query Loop <div class="wp-block-post-terms"> */
.lib-blog-card-cat,
.lib-blog-card-cat a {
	font-family: var(--font-body) !important;
	font-size: 0.65rem !important;
	font-weight: 600 !important;
	letter-spacing: 0.1em !important;
	text-transform: uppercase !important;
	color: var(--coral) !important;
	margin: 0 0 0.45rem !important;
	text-decoration: none !important;
}

/* Title — shortcode <h3> and Query Loop <h3 class="wp-block-post-title"> */
.lib-blog-card-title,
.lib-blog-card-title a {
	font-family: var(--font-display) !important;
	font-size: 1rem !important;
	font-weight: 700 !important;
	color: var(--charcoal) !important;
	line-height: 1.35 !important;
	margin: 0 0 0.55rem !important;
	text-decoration: none !important;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

/* Stretched link — makes the whole card clickable via the title link */
.lib-blog-card-title a::after {
	content: '';
	position: absolute;
	inset: 0;
}

/* Excerpt — shortcode <p> and Query Loop <div class="wp-block-post-excerpt"> */
.lib-blog-card-excerpt,
.lib-blog-card-excerpt p {
	font-family: var(--font-body) !important;
	font-size: 0.83rem !important;
	color: var(--charcoal-dim) !important;
	line-height: 1.55 !important;
	margin: 0 !important;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

/* Hide Query Loop's auto-generated "Read more" link inside cards */
.lib-blog-card .wp-block-post-excerpt__more-link { display: none; }

.lib-blog-more {
	text-align: center;
	margin-top: 2rem;
}

.lib-btn-outline {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	font-family: var(--font-body);
	font-size: 0.9rem;
	font-weight: 600;
	color: var(--charcoal) !important;
	padding: 0.8rem 1.75rem;
	border-radius: 100px;
	border: 2px solid var(--charcoal);
	transition: background 0.2s ease, color 0.2s ease;
}

.lib-btn-outline:hover {
	background: var(--charcoal);
	color: var(--white) !important;
}

/* ── CTA / call-to-action section ────────────────────────────── */

.lib-cta-section {
	background: var(--coral);
	text-align: center;
}

.lib-cta-section .lib-section-heading { color: var(--white) !important; }
.lib-cta-section .lib-section-lead { color: rgba(255,255,255,0.85); }

.lib-btn-primary {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	font-family: var(--font-body);
	font-size: 1rem;
	font-weight: 600;
	color: var(--coral) !important;
	background: var(--white);
	padding: 0.9rem 2rem;
	border-radius: 100px;
	border: none;
	transition: transform 0.2s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.2s ease;
}

.lib-btn-primary:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

/* ── Footer strip ────────────────────────────────────────────── */

.lib-footer-strip {
	background: var(--cream);
	text-align: center;
	padding: 1.5rem;
	border-top: 1px solid var(--border);
}

.lib-footer-strip p {
	font-family: var(--font-body) !important;
	font-size: 0.78rem !important;
	color: var(--charcoal-dim) !important;
	margin: 0 !important;
}

.lib-footer-strip a { color: var(--coral) !important; }

/* ── Site footer ─────────────────────────────────────────────── */

.lib-site-footer {
	font-family: var(--font-body);
}

/* Top bar — cream background with feature, contact, podcast cols */
.lib-footer-top {
	background: var(--cream);
	padding: 3rem 1.5rem;
}

.lib-footer-top-inner {
	max-width: 960px;
	margin: 0 auto;
	display: grid;
	grid-template-columns: 1fr;
	gap: 2.5rem;
}

@media (min-width: 700px) {
	.lib-footer-top-inner { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 960px) {
	.lib-footer-top-inner { grid-template-columns: 1.2fr 1fr 1.4fr; }
}

/* Feature column (image + CTA link) */
.lib-footer-feature {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 0.5rem;
}

.lib-footer-feature-img {
	width: 80px;
	height: auto;
	display: block;
	margin-bottom: 0.25rem;
}

.lib-footer-feature-link {
	font-family: var(--font-display);
	font-size: 1.05rem;
	font-weight: 700;
	color: var(--coral) !important;
	letter-spacing: -0.02em;
}

.lib-footer-feature p {
	font-size: 0.85rem;
	color: var(--charcoal-dim);
	line-height: 1.55;
	margin: 0;
}

/* Contact column */
.lib-footer-contact {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	justify-content: center;
}

.lib-footer-contact a {
	font-size: 0.9rem;
	color: var(--charcoal) !important;
	display: block;
}

.lib-footer-contact a:hover { color: var(--coral) !important; }

/* Podcast + socials column */
.lib-footer-podcast-col {
	display: flex;
	flex-direction: column;
	gap: 1.25rem;
}

.lib-footer-podcast-row {
	display: flex;
	align-items: flex-start;
	gap: 1rem;
}

.lib-footer-podcast-icon {
	flex-shrink: 0;
	width: 44px;
	height: 44px;
	background: var(--coral-light);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
}

.lib-footer-podcast-label {
	font-size: 0.68rem !important;
	font-weight: 700 !important;
	letter-spacing: 0.14em !important;
	text-transform: uppercase !important;
	color: var(--coral) !important;
	margin: 0 0 0.35rem !important;
}

.lib-footer-podcast-col p {
	font-size: 0.83rem;
	color: var(--charcoal-dim);
	line-height: 1.55;
	margin: 0;
}

.lib-footer-socials {
	display: flex;
	gap: 0.6rem;
	flex-wrap: wrap;
}

.lib-footer-social-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	background: rgba(58,58,58,0.08);
	color: var(--charcoal) !important;
	transition: background 0.2s ease, color 0.2s ease;
}

.lib-footer-social-icon:hover {
	background: var(--coral);
	color: var(--white) !important;
}

/* Main section — charcoal with office locations */
.lib-footer-main {
	background: var(--charcoal);
	padding: 3rem 1.5rem;
}

.lib-footer-offices {
	max-width: 960px;
	margin: 0 auto;
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 2rem 1.5rem;
}

@media (min-width: 600px) {
	.lib-footer-offices { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 960px) {
	.lib-footer-offices { grid-template-columns: repeat(6, 1fr); gap: 1.5rem; }
}

.lib-footer-office-name {
	font-family: var(--font-display) !important;
	font-size: 0.88rem !important;
	font-weight: 700 !important;
	color: var(--white) !important;
	margin: 0 0 0.5rem !important;
	letter-spacing: -0.01em !important;
}

.lib-footer-office-tag {
	font-size: 0.68rem !important;
	font-weight: 600 !important;
	letter-spacing: 0.1em !important;
	text-transform: uppercase !important;
	color: var(--coral) !important;
	margin: 0 0 0.5rem !important;
}

.lib-footer-office-divider {
	width: 24px;
	height: 2px;
	background: var(--coral);
	margin: 0.5rem 0 0.75rem;
	display: block;
}

.lib-footer-office-address {
	font-size: 0.78rem !important;
	color: rgba(255,255,255,0.55) !important;
	line-height: 1.65 !important;
	margin: 0 !important;
}

/* Acknowledgement section */
.lib-footer-ack-section {
	background: var(--charcoal);
	border-top: 1px solid rgba(255,255,255,0.08);
	padding: 2.5rem 1.5rem;
	text-align: center;
}

.lib-footer-ack-inner {
	max-width: 760px;
	margin: 0 auto;
}

.lib-footer-flag {
	width: 48px;
	height: auto;
	margin: 0 auto 1rem;
	display: block;
}

.lib-footer-ack-text {
	font-size: 0.78rem !important;
	color: rgba(255,255,255,0.45) !important;
	line-height: 1.75 !important;
	margin: 0 0 1.5rem !important;
}

.lib-footer-copyright {
	font-size: 0.78rem !important;
	color: rgba(255,255,255,0.55) !important;
	margin: 0 !important;
}

.lib-footer-copyright a { color: rgba(255,255,255,0.7) !important; }
.lib-footer-copyright a:hover { color: var(--coral) !important; }

/* Legal links bar */
.lib-footer-legal {
	background: var(--charcoal);
	border-top: 1px solid rgba(255,255,255,0.06);
	padding: 1.25rem 1.5rem;
	text-align: center;
}

.lib-footer-legal a {
	font-size: 0.75rem;
	color: rgba(255,255,255,0.4) !important;
	transition: color 0.2s ease;
}

.lib-footer-legal a:hover { color: var(--coral) !important; }

.lib-footer-legal span {
	color: rgba(255,255,255,0.2);
	margin: 0 0.5rem;
}

/* ── Page load animation ─────────────────────────────────────── */

@keyframes lib-fade-up {
	from { opacity: 0; transform: translateY(18px); }
	to   { opacity: 1; transform: translateY(0); }
}

.lib-hero-inner > * { animation: lib-fade-up 0.6s ease both; }
.lib-hero-inner > *:nth-child(1) { animation-delay: 0.05s; }
.lib-hero-inner > *:nth-child(2) { animation-delay: 0.15s; }
.lib-hero-inner > *:nth-child(3) { animation-delay: 0.25s; }
.lib-hero-inner > *:nth-child(4) { animation-delay: 0.35s; }

@media (prefers-reduced-motion: reduce) {
	.lib-hero-inner > * { animation: none; }
}

/* ── Sidebar layouts (TT25 PHP templates) ───────────────────── */

/* Lesson layout: sidebar left, content right */
.lib-lesson-layout {
	display: flex;
	align-items: flex-start;
	gap: 2rem;
	max-width: 1200px;
	margin: 0 auto;
	padding: 2rem 1.5rem;
}

.lib-lesson-sidebar {
	flex: 0 0 260px;
	min-width: 0;
}

.lib-lesson-main {
	flex: 1;
	min-width: 0;
}

@media (max-width: 768px) {
	.lib-lesson-layout {
		flex-direction: column;
	}
	.lib-lesson-sidebar {
		flex: none;
		width: 100%;
	}
}

/* ─── Layout ─────────────────────────────────────────────────── */

.lib-archive-layout,
.lib-single-layout {
	display: flex;
	align-items: flex-start;
	gap: 3rem;
	max-width: 1200px;
	margin: 0 auto;
	padding: 3rem 2rem;
}

.lib-archive-main,
.lib-single-main {
	flex: 1;
	min-width: 0;
}

.lib-archive-sidebar,
.lib-single-sidebar {
	flex: 0 0 268px;
	min-width: 0;
	position: sticky;
	top: 2rem;
	max-height: calc(100vh - 4rem);
	overflow-y: auto;
	scrollbar-width: none;
}

.lib-single-sidebar::-webkit-scrollbar { display: none; }

@media (max-width: 900px) {
	.lib-archive-layout,
	.lib-single-layout {
		flex-direction: column-reverse;
		padding: 2rem 1.25rem;
		gap: 2rem;
	}
	.lib-archive-sidebar,
	.lib-single-sidebar {
		flex: none;
		width: 100%;
		position: static;
		max-height: none;
	}
}


/* ─── Archive header ─────────────────────────────────────────── */

.lib-archive-header {
	margin-bottom: 2.5rem;
}

.lib-archive-title {
	font-family: var(--wp--preset--font-family--display, 'Fraunces', Georgia, serif);
	font-size: clamp(1.75rem, 3vw, 2.25rem);
	color: var(--charcoal);
	margin: 0 0 0.5rem;
}

.lib-archive-description {
	color: var(--charcoal-dim, #5a5a5a);
	font-size: 1rem;
}


/* ─── Single post: article header ───────────────────────────── */

.lib-single-article {
	max-width: 720px;
}

.lib-single-header {
	margin-bottom: 2rem;
}

/* Category pill */
.lib-single-cat {
	display: inline-block !important;
	background: var(--coral);
	color: #fff;
	font-size: 0.7rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	text-decoration: none;
	padding: 0.3rem 0.85rem;
	border-radius: 20px;
	margin-bottom: 1.1rem;
	transition: background 0.2s;
}

.lib-single-cat:hover {
	background: var(--coral-dark);
}

.lib-single-title {
	font-family: var(--wp--preset--font-family--display, 'Fraunces', Georgia, serif);
	font-size: clamp(1.75rem, 4vw, 2.625rem);
	font-weight: 500;
	line-height: 1.15;
	color: var(--charcoal);
	margin: 0 0 1rem;
	letter-spacing: -0.02em;
}

.lib-single-date {
	font-size: 0.8125rem;
	color: var(--charcoal-dim, #5a5a5a);
	letter-spacing: 0.02em;
}


/* ─── Hero image ─────────────────────────────────────────────── */

.lib-single-hero-image {
	margin-bottom: 2.5rem;
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 4px 28px rgba(58, 58, 58, 0.1);
}

.lib-single-hero-image img {
	width: 100%;
	height: auto;
	display: block;
}


/* ─── Post content typography ────────────────────────────────── */

.lib-single-content {
	font-size: 1.0625rem;
	line-height: 1.8;
	color: var(--charcoal);
}

.lib-single-content p {
	margin: 0 0 1.5rem;
}

.lib-single-content h2 {
	font-family: var(--wp--preset--font-family--display, 'Fraunces', Georgia, serif);
	font-size: clamp(1.375rem, 2.5vw, 1.625rem);
	font-weight: 500;
	line-height: 1.25;
	color: var(--charcoal);
	margin: 2.75rem 0 1rem;
	letter-spacing: -0.02em;
}

.lib-single-content h3 {
	font-family: var(--wp--preset--font-family--display, 'Fraunces', Georgia, serif);
	font-size: 1.1875rem;
	font-weight: 500;
	color: var(--charcoal);
	margin: 2.25rem 0 0.75rem;
}

.lib-single-content h4,
.lib-single-content h5,
.lib-single-content h6 {
	font-weight: 700;
	color: var(--charcoal);
	margin: 1.75rem 0 0.5rem;
}

.lib-single-content a {
	color: var(--coral);
	text-decoration: underline;
	text-underline-offset: 3px;
	text-decoration-thickness: 1px;
}

.lib-single-content a:hover {
	color: var(--coral-dark);
}

.lib-single-content ul,
.lib-single-content ol {
	margin: 0 0 1.5rem;
	padding-left: 1.5rem;
}

.lib-single-content li {
	margin-bottom: 0.5rem;
	line-height: 1.7;
}

.lib-single-content blockquote {
	border-left: 3px solid var(--coral);
	margin: 2rem 0;
	padding: 0.25rem 0 0.25rem 1.5rem;
	color: var(--charcoal-dim, #5a5a5a);
	font-style: italic;
	font-size: 1.125rem;
}

.lib-single-content img {
	border-radius: 8px;
	max-width: 100%;
	height: auto;
}

.lib-single-content figure {
	margin: 2rem 0;
}

.lib-single-content figcaption {
	font-size: 0.8125rem;
	color: var(--charcoal-dim, #5a5a5a);
	text-align: center;
	margin-top: 0.5rem;
}


/* ─── Post navigation ────────────────────────────────────────── */

.lib-single-nav {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1rem;
	margin-top: 3.5rem;
	padding-top: 2.5rem;
	border-top: 2px solid #f0e8e0;
	max-width: 720px;
}

.lib-single-nav-item {
	display: flex;
	flex-direction: column;
	gap: 0.4rem;
	padding: 1.125rem 1.25rem;
	background: var(--cream, #fdf9f5);
	border: 1px solid #e8ddd4;
	border-radius: 10px;
	text-decoration: none;
	transition: background 0.2s, border-color 0.2s, transform 0.15s;
}

.lib-single-nav-item:hover {
	background: var(--coral-light, #fce9e7);
	border-color: var(--coral);
	transform: translateY(-2px);
}

.lib-single-nav-next {
	text-align: right;
}

.lib-single-nav-label {
	font-size: 0.7rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--coral);
}

.lib-single-nav-post-title {
	font-family: var(--wp--preset--font-family--display, 'Fraunces', Georgia, serif);
	font-size: 0.9375rem;
	font-weight: 500;
	color: var(--charcoal);
	line-height: 1.35;
}

@media (max-width: 600px) {
	.lib-single-nav {
		grid-template-columns: 1fr;
	}
}


/* ─── Sidebar widgets ────────────────────────────────────────── */

.lib-lesson-sidebar .widget,
.lib-archive-sidebar .widget,
.lib-single-sidebar .widget {
	margin-bottom: 0;
}

.tt-blog-widget {
	background: #fff;
	border: 1px solid #e8ddd4;
	border-radius: 12px;
	padding: 1.25rem;
	margin-bottom: 1.25rem;
}

.tt-lesson-widget-title {
	font-family: var(--wp--preset--font-family--display, 'Fraunces', Georgia, serif);
	font-size: 1rem;
	font-weight: 500;
	color: var(--charcoal);
	margin: 0 0 1rem;
	padding-bottom: 0.75rem;
	border-bottom: 1px solid #f0e8e0;
	letter-spacing: -0.01em;
}

/* Product / help items */
.tt-help-products {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: 0.625rem;
}

.tt-help-product-item {
	margin: 0;
}

.tt-help-product-link {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	padding: 0.875rem 1rem;
	background: var(--cream, #fdf9f5);
	border: 1px solid #ede5dc;
	border-radius: 8px;
	text-decoration: none;
	transition: background 0.18s, border-color 0.18s;
}

.tt-help-product-link:hover {
	background: var(--coral-light, #fce9e7);
	border-color: var(--coral);
}

.tt-help-product-title {
	font-size: 0.8125rem;
	font-weight: 600;
	color: var(--charcoal);
	line-height: 1.4;
}

.tt-help-product-price {
	display: inline-block;
	align-self: flex-start;
	background: var(--coral);
	color: #fff;
	font-size: 0.6875rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	padding: 0.2rem 0.6rem;
	border-radius: 20px;
}

/* Related posts */
.tt-related-list {
	list-style: none;
	padding: 0;
	margin: 0;
}

.tt-related-item {
	border-bottom: 1px solid #f5ede6;
}

.tt-related-item:last-child {
	border-bottom: none;
}

.tt-related-link {
	display: flex;
	align-items: flex-start;
	gap: 0.5rem;
	padding: 0.625rem 0;
	text-decoration: none;
	color: var(--charcoal);
	font-size: 0.8125rem;
	line-height: 1.45;
	transition: color 0.15s;
}

.tt-related-link::before {
	content: "→";
	color: var(--coral);
	flex-shrink: 0;
	font-size: 0.75rem;
	margin-top: 0.1em;
	transition: transform 0.15s;
	display: inline-block;
}

.tt-related-link:hover {
	color: var(--coral);
}

.tt-related-link:hover::before {
	transform: translateX(3px);
}

.tt-related-title {
	flex: 1;
}


/* ─── Archive categories sidebar ─────────────────────────────── */

.lib-archive-sidebar .wp-block-categories-list,
.lib-archive-sidebar .wp-block-categories-list li {
	list-style: none;
	padding: 0;
	margin: 0;
}

.lib-archive-sidebar .wp-block-categories-list a {
	display: block;
	padding: 0.4rem 0;
	color: var(--charcoal);
	border-bottom: 1px solid #f0e8e0;
	font-size: 0.9rem;
}

.lib-archive-sidebar .wp-block-categories-list a:hover {
	color: var(--coral);
}


/* ─── Responsive video embeds ────────────────────────────────── */
/* WordPress normally handles this via wp-embed-responsive body class,
   but we reinforce it here in case block styles are stripped */

.lib-single-content .wp-block-embed.wp-has-aspect-ratio .wp-block-embed__wrapper {
	position: relative;
	padding-bottom: 56.25%;
	height: 0;
	overflow: hidden;
}

.lib-single-content .wp-block-embed.wp-embed-aspect-4-3 .wp-block-embed__wrapper {
	padding-bottom: 75%;
}

.lib-single-content .wp-block-embed.wp-embed-aspect-16-9 .wp-block-embed__wrapper {
	padding-bottom: 56.25%;
}

.lib-single-content .wp-block-embed.wp-has-aspect-ratio .wp-block-embed__wrapper iframe {
	position: absolute;
	top: 0;
	left: 0;
	width: 100% !important;
	height: 100% !important;
	border: 0;
}


/* ─── Podcast provider icons ─────────────────────────────────── */
/* Targets the "Find us on your favourite podcast provider" group block:
   a flex row with h3 on left and gallery of platform icons on right */

.lib-single-content .wp-block-group.is-content-justification-space-between.is-layout-flex {
	align-items: center;
	gap: 1rem;
	padding: 1rem 1.25rem;
	background: var(--cream, #fdf9f5);
	border: 1px solid #e8ddd4;
	border-radius: 10px;
	flex-wrap: wrap;
	margin-top: 2rem;
}

.lib-single-content .wp-block-group.is-content-justification-space-between.is-layout-flex > .wp-block-heading {
	font-family: var(--wp--preset--font-family--body, 'DM Sans', sans-serif) !important;
	font-size: 0.8125rem !important;
	font-weight: 600 !important;
	color: var(--charcoal-dim, #5a5a5a) !important;
	margin: 0 !important;
	flex-shrink: 0;
}

.lib-single-content .wp-block-group.is-content-justification-space-between.is-layout-flex .wp-block-gallery {
	display: flex;
	flex-wrap: wrap;
	gap: 0.625rem;
	align-items: center;
	flex: 0 0 auto;
}

.lib-single-content .wp-block-group.is-content-justification-space-between.is-layout-flex .wp-block-gallery .wp-block-image {
	margin: 0;
	flex: 0 0 auto;
}

.lib-single-content .wp-block-group.is-content-justification-space-between.is-layout-flex .wp-block-gallery img {
	width: 52px !important;
	height: 52px !important;
	max-width: 52px !important;
	object-fit: contain;
	border-radius: 8px;
	transition: transform 0.15s, opacity 0.15s;
}

.lib-single-content .wp-block-group.is-content-justification-space-between.is-layout-flex .wp-block-gallery a:hover img {
	transform: scale(1.08);
	opacity: 0.85;
}

@media (max-width: 600px) {
	.lib-single-content .wp-block-group.is-content-justification-space-between.is-layout-flex {
		justify-content: flex-start;
	}
}


/* ─── Pagination ─────────────────────────────────────────────── */

.lib-pagination {
	margin-top: 3rem;
	text-align: center;
}
