/* ============================================================
   Link in Bio page — scoped styles (.lib-bio-*)
   Loaded conditionally on the page-link-in-bio template.
   Mobile-first, single centred column, full-width stacked cards.
   ============================================================ */

.lib-bio-page {
	background: var(--off-white);
	min-height: 100vh;
	padding: 2.5rem 1.25rem 3rem;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 1.75rem;
}

/* Header / logo */
.lib-bio-header {
	width: 100%;
	max-width: 600px;
	text-align: center;
}

.lib-bio-logo {
	margin: 0 auto 0.5rem;
}

.lib-bio-logo img {
	width: 160px;
	height: auto;
}

/* Tagline */
.lib-bio-tagline {
	color: var(--mid-grey);
	margin: 0 0 1.5rem;
	font-weight: 500;
}

/* Main column */
.lib-bio-main {
	width: 100%;
	max-width: 600px;
	display: flex;
	flex-direction: column;
	gap: 1.25rem;
}

.lib-bio-main > * {
	margin-block-start: 0 !important;
	margin-block-end: 0 !important;
}

/* Latest from the blog */
.lib-bio-blog-title {
	color: var(--primary);
	margin: 0 0 1rem;
}

.lib-bio-query,
.lib-bio-posts {
	width: 100%;
}

.lib-bio-posts {
	display: flex;
	flex-direction: column;
	gap: 1rem;
	margin: 0;
}

.lib-bio-post-card {
	background: var(--white);
	border-radius: 16px;
	overflow: hidden;
	box-shadow: var(--shadow-card);
	border: 1px solid var(--border);
	transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.lib-bio-post-card:hover {
	transform: translateY(-3px);
	box-shadow: var(--shadow-card-hover);
}

.lib-bio-post-img {
	margin: 0;
}

.lib-bio-post-img img {
	width: 100%;
	height: auto;
	display: block;
}

.lib-bio-post-body {
	padding: 1rem 1.25rem 1.25rem;
}

.lib-bio-post-title {
	margin: 0 0 0.35rem;
	line-height: 1.3;
	font-weight: 600;
}

.lib-bio-post-title a {
	color: var(--primary);
	text-decoration: none;
}

.lib-bio-post-title a:hover {
	color: var(--teal-dark);
}

.lib-bio-post-date {
	color: var(--mid-grey);
	margin: 0;
}

.lib-bio-post-date a {
	color: var(--mid-grey);
	text-decoration: none;
}

/* CTA cards */
.lib-bio-card {
	width: 100%;
	background: var(--white);
	border-radius: 16px;
	padding: 1.75rem 1.5rem;
	box-shadow: var(--shadow-card);
	border: 1px solid var(--border);
	border-top: 4px solid var(--teal);
	text-align: center;
	transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.lib-bio-card:hover {
	transform: translateY(-3px);
	box-shadow: var(--shadow-card-hover);
}

.lib-bio-card--audit { border-top-color: var(--teal); }
.lib-bio-card--playbook { border-top-color: var(--orange); }
.lib-bio-card--membership { border-top-color: var(--salmon); }

.lib-bio-card-title {
	color: var(--primary);
	margin: 0 0 0.5rem;
}

.lib-bio-card-text {
	color: var(--mid-grey);
	margin: 0 0 1.25rem;
	line-height: 1.55;
}

.lib-bio-card-btns {
	justify-content: center;
}

.lib-bio-btn .wp-block-button__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	width: 100%;
	max-width: 320px;
	padding: 0.85rem 2rem;
	border-radius: 100px;
	background: var(--teal);
	color: var(--white);
	font-weight: 600;
	text-decoration: none;
	transition: all 0.25s cubic-bezier(0.4,0,0.2,1);
}

.lib-bio-btn .wp-block-button__link:hover {
	background: var(--teal-dark);
	transform: translateY(-2px);
	box-shadow: 0 6px 20px rgba(78,165,156,0.35);
}

/* Footer */
.lib-bio-footer {
	width: 100%;
	max-width: 600px;
	text-align: center;
	margin-top: 0.5rem;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.75rem;
}

.lib-bio-socials {
	justify-content: center;
	flex-wrap: nowrap;
	gap: 0.5rem;
}

.lib-bio-socials .wp-social-link {
	margin: 0;
}

.lib-bio-copyright {
	color: var(--mid-grey);
	margin: 0;
}

/* Desktop refinements */
@media (min-width: 768px) {
	.lib-bio-page {
		padding-top: 3.5rem;
	}
	.lib-bio-card {
		padding: 2rem 2rem;
	}
}

/* Force animated/hover blocks visible in the editor (JS doesn't run there) */
.editor-styles-wrapper .lib-bio-card,
.editor-styles-wrapper .lib-bio-post-card {
	transform: none !important;
}
