/*
 * Homeschool Assistant Blog — compiled theme styles.
 *
 * Tokens and class behavior are ported from the approved Next.js design
 * (src/components/homepage-v2/homepage-v2.module.css + src/components/blog/*),
 * scoped under .hsa-scope so Kadence's own block styles in post content are
 * left alone outside the blog chrome.
 */

.hsa-scope,
body.hsa-scope {
	--hp-navy: #123f55;
	--hp-teal: #0e7c80;
	--hp-teal-dark: #0b6569;
	--hp-orange: #f0643d;
	--hp-gold: #f2a51a;
	--hp-gold-dark: #c28415;
	--hp-terracotta: #d9532b;
	--hp-terracotta-dark: #b8451f;
	--hp-terracotta-12: color-mix(in srgb, var(--hp-terracotta) 12%, white);
	--hp-terracotta-08: color-mix(in srgb, var(--hp-terracotta) 8%, white);
	--hp-sage-12: color-mix(in srgb, var(--hp-green) 14%, white);
	--hp-green: #58a477;
	--hp-green-dark: #3d7a56;
	--hp-green-ink: #2b5e40; /* text on sage pills: 6.5:1 (green-dark was 4.4:1) */
	--hp-ivory: #fbfaf6;
	--hp-surface: #f4f3ee;
	--hp-border: #dfe3e2;
	--hp-body: #233e50;
	--hp-body-70: color-mix(in srgb, var(--hp-body) 70%, transparent);
	--hp-navy-50: color-mix(in srgb, var(--hp-navy) 50%, transparent);
	--hp-teal-12: color-mix(in srgb, var(--hp-teal) 12%, white);
	--hp-sage-wash: #ECF2EB;
	--hp-mist: #EEF4F6;
	--font-display: 'Newsreader', Georgia, 'Iowan Old Style', serif;
	--font-body: 'Manrope', system-ui, -apple-system, sans-serif;

	font-family: var(--font-body);
	color: var(--hp-body);
	background: #fff;
}

.hsa-scope * { box-sizing: border-box; }
/* max-width only — NOT height:auto. A blanket `.hsa-scope img { height: auto }`
 * is (0,1,1) specificity, which beat single-class sizing rules below it in the
 * cascade (e.g. `.hsa-logo-img { height: 38px }` is (0,1,0)) and forced every
 * sized image — the header/footer logo, the hero botanical art — back to its
 * natural intrinsic size. Images that DO want responsive height set it
 * themselves (.hsa-prose img, .hsa-cover-img). */
.hsa-scope img { max-width: 100%; }
.hsa-scope img:not([class]) { height: auto; }
/* (0,1,1): beats Kadence's `a` / `a:hover` colors. Any class that styles an <a>
 * and sets color must be written `.hsa-scope .hsa-x` (0,2,0) to beat this reset;
 * a bare `.hsa-x` (0,1,0) silently inherits instead (dark "Get Started Free" text). */
.hsa-scope a { color: inherit; text-decoration: none; }

.hsa-shell {
	width: 100%;
	max-width: 1280px;
	margin-inline: auto;
	padding-inline: 20px;
}
@media (min-width: 1280px) {
	.hsa-shell { padding-inline: 64px; }
}

.hsa-eyebrow {
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--hp-terracotta-dark);
	margin: 0 0 12px;
}

.hsa-scope .hsa-teal-link {
	display: inline-block;
	font-size: 16px;
	font-weight: 600;
	color: var(--hp-teal-dark);
}
.hsa-teal-link:hover { text-decoration: underline; text-underline-offset: 4px; }

.hsa-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 48px;
	padding: 0 20px;
	border-radius: 8px;
	font-weight: 600;
	font-size: 16px;
	white-space: nowrap;
	border: 1px solid transparent;
	transition: background-color .2s, border-color .2s, color .2s;
}
.hsa-scope .hsa-btn--teal { background: var(--hp-teal); color: #fff; }
.hsa-btn--teal:hover { background: var(--hp-teal-dark); color: #fff; }
.hsa-btn--block { width: 100%; }

/* ── Header ─────────────────────────────────────────────────────────── */
.hsa-header {
	position: relative;
	background: var(--hp-ivory);
	border-bottom: 1px solid var(--hp-border);
}
.hsa-header-bar {
	min-height: 76px;
	display: flex;
	align-items: center;
	gap: 24px;
	flex-wrap: nowrap;
	padding-block: 12px;
}
.hsa-header-logo { margin-right: auto; display: flex; align-items: center; flex-shrink: 0; }
.hsa-logo-img { height: 38px; width: auto; }

.hsa-nav-desktop { display: none; align-items: center; gap: 32px; }
@media (min-width: 1024px) { .hsa-nav-desktop { display: flex; } }

.hsa-scope .hsa-nav-link {
	font-size: 16px;
	font-weight: 500;
	color: var(--hp-body);
	white-space: nowrap;
	transition: color .2s;
}
.hsa-nav-link:hover { color: var(--hp-teal); }
.hsa-nav-link.is-active {
	font-weight: 600;
	color: var(--hp-navy);
	text-decoration: underline;
	text-decoration-color: var(--hp-terracotta);
	text-decoration-thickness: 2px;
	text-underline-offset: 10px;
}

.hsa-topics-menu { position: relative; }
.hsa-topics-trigger {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	background: none;
	border: none;
	cursor: pointer;
	font: inherit;
	font-size: 16px;
	font-weight: 500;
	color: var(--hp-body);
	padding: 0;
}
.hsa-topics-trigger:hover { color: var(--hp-teal); }
.hsa-topics-trigger[aria-expanded="true"] svg { transform: rotate(180deg); }
.hsa-topics-list {
	position: absolute;
	left: 50%;
	transform: translateX(-50%);
	top: calc(100% + 16px);
	width: 256px;
	background: #fff;
	border: 1px solid var(--hp-border);
	border-radius: 12px;
	box-shadow: 0 18px 44px -16px rgba(18,63,85,0.3);
	padding: 8px;
	list-style: none;
	margin: 0;
	z-index: 50;
}
.hsa-topics-list a {
	display: block;
	padding: 10px 12px;
	border-radius: 8px;
	font-size: 16px;
	font-weight: 500;
	color: var(--hp-navy);
}
.hsa-topics-list a:hover, .hsa-topics-list a.is-active {
	background: var(--hp-surface);
	color: var(--hp-teal-dark);
	font-weight: 600;
}

.hsa-header-divider { display: none; width: 1px; height: 24px; background: var(--hp-border); }
@media (min-width: 1024px) { .hsa-header-divider { display: block; } }

.hsa-header-actions { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }

.hsa-search-toggle {
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	border-radius: 999px;
	background: none;
	border: none;
	cursor: pointer;
	color: var(--hp-navy);
}
.hsa-search-toggle:hover { background: var(--hp-surface); }
.hsa-search-panel {
	position: absolute;
	inset-inline: 0;
	top: 100%;
	z-index: 40;
	background: var(--hp-ivory);
	border-bottom: 1px solid var(--hp-border);
}
.hsa-search-panel form { max-width: 680px; margin-inline: auto; padding: 16px 24px; }
.hsa-search-field {
	display: flex;
	align-items: center;
	height: 52px;
	padding: 0 5px 0 20px;
	border-radius: 999px;
	background: #fff;
	border: 1px solid var(--hp-border);
}
.hsa-search-field:focus-within { border-color: var(--hp-teal); box-shadow: 0 0 0 4px var(--hp-teal-12); }
.hsa-search-field svg { flex-shrink: 0; color: var(--hp-body); }
.hsa-search-field input {
	flex: 1;
	min-width: 0;
	max-width: none;
	height: 100%;
	padding: 0 12px;
	border: 0;
	border-radius: 0;
	box-shadow: none;
	background: transparent;
	font-size: 16px;
	color: var(--hp-navy);
}
.hsa-search-field input:focus { outline: none; box-shadow: none; }
.hsa-search-field .hsa-btn { height: 42px; padding: 0 20px; border-radius: 999px; }

.hsa-cta-desktop { display: none; }
@media (min-width: 640px) { .hsa-cta-desktop { display: inline-flex; height: 44px; } }

.hsa-mobile-menu { position: relative; }
@media (min-width: 1024px) { .hsa-mobile-menu { display: none; } }
.hsa-mobile-menu summary {
	list-style: none;
	cursor: pointer;
	width: 44px;
	height: 44px;
	display: grid;
	place-items: center;
	border-radius: 8px;
	color: var(--hp-navy);
}
.hsa-mobile-menu summary::-webkit-details-marker { display: none; }
.hsa-mobile-menu[open] summary { background: var(--hp-surface); }
.hsa-mobile-nav {
	position: absolute;
	right: 0;
	top: calc(100% + 8px);
	width: 240px;
	background: #fff;
	border: 1px solid var(--hp-border);
	border-radius: 12px;
	box-shadow: 0 18px 44px -16px rgba(18,63,85,0.3);
	padding: 8px;
	z-index: 50;
}
.hsa-scope .hsa-mobile-link {
	display: block;
	padding: 12px;
	border-radius: 8px;
	font-size: 17px;
	font-weight: 500;
	color: var(--hp-navy);
}
.hsa-scope .hsa-mobile-link--indent { padding-left: 24px; font-size: 16px; }
.hsa-mobile-link:hover, .hsa-mobile-link.is-active { background: var(--hp-surface); font-weight: 600; color: var(--hp-teal-dark); }
.hsa-mobile-topics-label {
	padding: 12px 12px 4px;
	margin: 0;
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.12em;
	color: var(--hp-terracotta-dark);
}
.hsa-mobile-cta { margin-top: 4px; padding-top: 8px; border-top: 1px solid var(--hp-border); }
@media (min-width: 640px) { .hsa-mobile-cta { display: none; } }

/* ── Hero ───────────────────────────────────────────────────────────── */
.hsa-hero { background: var(--hp-ivory); border-bottom: 1px solid var(--hp-border); overflow: hidden; }
.hsa-hero-inner {
	display: grid;
	gap: 48px;
	align-items: center;
	padding-block: 48px;
}
@media (min-width: 1024px) { .hsa-hero-inner { grid-template-columns: minmax(0,1fr) 430px; padding-block: 72px; } }
.hsa-hero-copy { max-width: 610px; }
.hsa-hero h1, .hsa-post-header h1, .hsa-about-hero h1, .hsa-category-header h1 {
	font-family: var(--font-display);
	color: var(--hp-navy);
	font-weight: 600;
	line-height: 1.08;
	margin: 0 0 24px;
}
.hsa-hero h1 { font-size: 42px; }
@media (min-width: 768px) { .hsa-hero h1 { font-size: 56px; } }
.hsa-hero p.hsa-lede { font-size: 19px; line-height: 1.6; max-width: 500px; margin: 0; }
.hsa-underline { position: relative; font-style: italic; display: inline-block; }
.hsa-underline::after {
	content: '';
	position: absolute;
	left: -3%; bottom: -4px; width: 106%; height: 11px;
	background: var(--hp-orange);
	/* The Underlined stroke from src/components/site/primitives.tsx, stretched the same way (preserveAspectRatio none). */
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 10' preserveAspectRatio='none'%3E%3Cpath d='M2,8.5 C18,3.2 44,2.2 70,4.4 C82,5.4 92,6.6 98,4.8' fill='none' stroke='%23000' stroke-width='3.4' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat 0 0 / 100% 100%;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 10' preserveAspectRatio='none'%3E%3Cpath d='M2,8.5 C18,3.2 44,2.2 70,4.4 C82,5.4 92,6.6 98,4.8' fill='none' stroke='%23000' stroke-width='3.4' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat 0 0 / 100% 100%;
}

.hsa-hero-search { margin-top: 36px; max-width: 520px; }
.hsa-hero-search .hsa-search-field { height: 58px; box-shadow: 0 14px 32px -24px var(--hp-navy-50); }
.hsa-hero-search .hsa-btn { height: 46px; }

.hsa-topic-chips { margin-top: 28px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.hsa-topic-chips-label { font-size: 14px; font-weight: 600; margin-right: 4px; }
.hsa-scope .hsa-chip {
	display: inline-flex; align-items: center; height: 36px; padding: 0 14px;
	border-radius: 999px; border: 1px solid var(--hp-border); background: #fff;
	font-size: 14px; font-weight: 600; color: var(--hp-navy);
}
.hsa-chip:hover { border-color: var(--hp-teal); color: var(--hp-teal-dark); }

.hsa-hero-art { position: relative; width: 100%; max-width: 430px; aspect-ratio: 43/42; display: none; }
@media (min-width: 1024px) { .hsa-hero-art { display: block; justify-self: end; } }
.hsa-hero-art--small { max-width: 340px; aspect-ratio: 34/30; }
.hsa-dots { position: absolute; right: -24px; bottom: -24px; pointer-events: none; }
.hsa-dots circle { fill: var(--hp-terracotta); }
.hsa-hero-art-panel {
	position: absolute; inset: 0; overflow: hidden;
	background: var(--hp-sage-wash);
	border-radius: 215px 215px 28px 28px;
}
.hsa-hero-art--small .hsa-hero-art-panel { border-radius: 170px 170px 24px 24px; }
.hsa-hero-art-sprig { position: absolute; top: 4%; left: -3%; height: 86%; width: auto; pointer-events: none; }
.hsa-hero-art--small .hsa-hero-art-sprig { top: 3%; height: 82%; }
.hsa-hero-art-piece { position: absolute; bottom: 8%; width: auto; pointer-events: none; }
.hsa-hero-art-piece--left { left: 27%; width: 52%; }
.hsa-hero-art-piece--right { right: 4%; width: 19%; }
.hsa-hero-art--small .hsa-hero-art-piece--left { left: 16%; width: 58%; }
.hsa-hero-art--small .hsa-hero-art-piece--right { right: 3%; width: 24%; }

/* ── Grid / cards ───────────────────────────────────────────────────── */
.hsa-content-section { padding-block: 48px; }
@media (min-width: 1024px) { .hsa-content-section { padding-block: 56px; } }
.hsa-showing-count { font-size: 15px; margin: 0 0 24px; }

.hsa-featured-card {
	display: grid;
	border: 1px solid var(--hp-border);
	border-radius: 16px;
	background: #fff;
	overflow: hidden;
	margin-bottom: 40px;
}
@media (min-width: 768px) { .hsa-featured-card { grid-template-columns: minmax(0,1.1fr) minmax(0,1fr); } }
.hsa-featured-media { display: block; position: relative; aspect-ratio: 16/10; background: var(--hp-surface); }
@media (min-width: 768px) { .hsa-featured-media { aspect-ratio: auto; min-height: 400px; } }
.hsa-featured-body { display: flex; flex-direction: column; justify-content: center; padding: 28px 36px; }
@media (min-width: 1024px) { .hsa-featured-body { padding: 56px; } }
.hsa-featured-title { margin: 0 0 16px; }
.hsa-featured-title a { font-family: var(--font-display); font-size: 30px; font-weight: 600; line-height: 1.1; color: var(--hp-navy); }
@media (min-width: 1024px) { .hsa-featured-title a { font-size: 40px; } }
.hsa-featured-title a:hover { color: var(--hp-teal-dark); }
.hsa-featured-excerpt { font-size: 17px; line-height: 1.6; margin: 0 0 20px; }
.hsa-featured-cta { margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--hp-border); }

.hsa-grid {
	display: grid;
	gap: 24px;
	grid-template-columns: 1fr;
}
@media (min-width: 640px) { .hsa-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .hsa-grid { grid-template-columns: repeat(3, 1fr); gap: 28px; } }

.hsa-card {
	display: flex;
	flex-direction: column;
	border: 1px solid var(--hp-border);
	border-radius: 16px;
	background: #fff;
	overflow: hidden;
	transition: border-color .2s, box-shadow .2s, transform .2s;
}
.hsa-card:hover { border-color: var(--hp-teal); box-shadow: 0 22px 44px -30px var(--hp-navy-50); transform: translateY(-2px); }
.hsa-card-media { display: block; position: relative; aspect-ratio: 16/10; background: var(--hp-surface); }
.hsa-card-body { display: flex; flex-direction: column; flex: 1; padding: 24px; }
.hsa-card-title { margin: 0 0 8px; }
.hsa-card-title a { font-family: var(--font-display); font-size: 23px; font-weight: 600; line-height: 1.2; color: var(--hp-navy); }
.hsa-card-title a:hover { color: var(--hp-teal-dark); }
.hsa-card-excerpt { font-size: 16px; line-height: 1.6; margin: 0; }
.hsa-card-meta { margin-top: auto; padding-top: 20px; display: flex; align-items: center; gap: 8px; font-size: 14px; flex-wrap: wrap; }
.hsa-meta-group { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }

.hsa-cover { position: absolute; inset: 0; overflow: hidden; }
.hsa-card-media, .hsa-featured-media { position: relative; }
.hsa-cover-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* Square/tall featured images (printable set covers) are shown whole: cropping them into the wide
 * card or 21:9 post lead cuts off the set's title. See hsa_post_cover(). */
.hsa-cover--whole .hsa-cover-img { object-fit: contain; }
/* Absolutely centered, not a grid item: a percentage height on a grid item
 * resolves against an auto row, so the art rendered at natural size and ran
 * off the bottom of the post's 21:9 lead (same note in BlogArt.tsx). */
.hsa-cover--illustrated::before {
	content: ''; position: absolute; inset: 0;
	background: radial-gradient(ellipse 60% 70% at 50% 55%, rgba(255,255,255,0.6), rgba(255,255,255,0) 70%);
}
.hsa-cover--illustrated img {
	position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
	width: auto; max-width: 78%; object-fit: contain;
}

.hsa-scope .hsa-pill {
	display: inline-flex; align-self: flex-start; align-items: center; height: 26px; padding: 0 10px;
	border-radius: 999px; background: var(--hp-terracotta-12); color: var(--hp-terracotta-dark);
	font-size: 13px; font-weight: 700; margin-bottom: 12px;
}
.hsa-featured-body .hsa-pill { margin-bottom: 0; }
.hsa-pill:hover { background: var(--hp-terracotta-08); }

.hsa-pagination { margin-top: 48px; display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap; }
.hsa-pagination .page-numbers {
	display: inline-flex; align-items: center; justify-content: center;
	min-height: 44px; min-width: 44px; padding: 0 16px;
	border-radius: 999px; border: 1px solid var(--hp-border); background: #fff;
	color: var(--hp-navy); font-weight: 600; font-size: 15px;
}
.hsa-pagination .page-numbers.current { background: var(--hp-teal); border-color: transparent; color: #fff; }
.hsa-pagination .page-numbers:hover:not(.current) { border-color: var(--hp-teal); }
.hsa-pagination .page-numbers.dots { border: none; background: none; }

.hsa-empty { text-align: center; padding: 64px 0; max-width: 520px; margin-inline: auto; }
.hsa-empty h2 { font-family: var(--font-display); font-size: 32px; color: var(--hp-navy); }
.hsa-empty p { font-size: 17px; line-height: 1.6; margin-bottom: 28px; }

/* ── Breadcrumbs ────────────────────────────────────────────────────── */
.hsa-breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 4px 8px; list-style: none; margin: 0; padding: 0; font-size: 14px; font-weight: 600; }
.hsa-breadcrumbs li { display: flex; align-items: center; gap: 8px; }
.hsa-crumb-sep { color: var(--hp-body-70); }
.hsa-breadcrumbs a { color: var(--hp-teal-dark); }
.hsa-breadcrumbs a:hover { text-decoration: underline; text-underline-offset: 4px; }
.hsa-breadcrumbs span[aria-current] { color: var(--hp-body); }

/* ── Category / About header band ──────────────────────────────────── */
.hsa-category-header, .hsa-about-hero { background: var(--hp-ivory); border-bottom: 1px solid var(--hp-border); overflow: hidden; }
.hsa-category-header-inner, .hsa-about-hero-inner { display: grid; gap: 48px; align-items: center; padding-block: 48px; }
@media (min-width: 1024px) { .hsa-category-header-inner, .hsa-about-hero-inner { grid-template-columns: minmax(0,1fr) 340px; padding-block: 64px; } }
.hsa-category-header h1 { font-size: 42px; }
.hsa-about-hero h1 { font-size: 40px; margin-bottom: 20px; }
@media (min-width: 768px) { .hsa-category-header h1, .hsa-about-hero h1 { font-size: 54px; } }
.hsa-about-hero-copy { max-width: 640px; }
.hsa-about-hero-copy .hsa-post-breadcrumbs { margin-bottom: 32px; }
.hsa-category-desc, .hsa-about-lede { font-size: 19px; line-height: 1.6; max-width: 540px; margin: 0; }
.hsa-count-badge {
	margin-top: 24px; display: inline-flex; align-items: center; height: 32px; padding: 0 14px;
	border-radius: 999px; background: #fff; border: 1px solid var(--hp-border); font-size: 14px; font-weight: 600;
}

.hsa-sort { margin-bottom: 32px; display: flex; align-items: center; justify-content: flex-end; gap: 12px; flex-wrap: wrap; }
.hsa-sort-label { font-size: 14px; font-weight: 600; }
.hsa-sort-group { display: inline-flex; padding: 4px; border-radius: 999px; background: var(--hp-surface); border: 1px solid var(--hp-border); }
.hsa-sort-group a { display: inline-flex; align-items: center; height: 36px; padding: 0 16px; border-radius: 999px; font-size: 14px; font-weight: 600; }
.hsa-sort-group a.is-active { background: #fff; color: var(--hp-navy); box-shadow: 0 2px 8px -3px var(--hp-navy-50); }

/* ── About page cards ───────────────────────────────────────────────── */
.hsa-about-body { padding-block: 56px; }
@media (min-width: 1024px) { .hsa-about-body { padding-block: 80px; } }
.hsa-about-intro.hsa-prose { max-width: 700px; margin-inline: auto; font-size: 18px; line-height: 1.7; }
.hsa-about-intro p + p { margin-top: 20px; }
.hsa-about-cards-head { text-align: center; max-width: 640px; margin: 56px auto 40px; }
.hsa-about-cards-head h2 { font-family: var(--font-display); font-size: 34px; font-weight: 600; line-height: 1.18; color: var(--hp-navy); margin: 0; }
@media (min-width: 768px) { .hsa-about-cards-head h2 { font-size: 38px; } }
.hsa-about-cards { display: grid; gap: 20px; list-style: none; margin: 0; padding: 0; }
@media (min-width: 768px) { .hsa-about-cards { grid-template-columns: repeat(3, 1fr); } }
.hsa-about-card { border: 1px solid var(--hp-border); border-radius: 20px; background: #fff; padding: 28px; }
.hsa-about-card-art { height: 88px; margin-bottom: 20px; display: flex; align-items: flex-end; }
.hsa-about-card-art img { max-height: 88px; width: auto; height: auto; }
.hsa-about-card h3 { font-family: var(--font-display); font-size: 24px; font-weight: 600; color: var(--hp-navy); margin: 0 0 8px; }
.hsa-about-card p { font-size: 16px; line-height: 1.6; margin: 0; }

/* ── Single post ────────────────────────────────────────────────────── */
.hsa-post-header { background: var(--hp-ivory); border-bottom: 1px solid var(--hp-border); }
.hsa-post-header-inner { max-width: 700px; margin-inline: auto; padding-block: 40px; }
@media (min-width: 1024px) { .hsa-post-header-inner { padding-block: 56px; } }
.hsa-post-header h1 { font-size: 38px; margin-bottom: 0; }
@media (min-width: 640px) { .hsa-post-header h1 { font-size: 46px; } }
@media (min-width: 1024px) { .hsa-post-header h1 { font-size: 56px; } }
.hsa-post-breadcrumbs { margin-bottom: 28px; }
.hsa-post-byline { margin-top: 32px; display: flex; align-items: center; gap: 14px; }
.hsa-avatar {
	display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; flex-shrink: 0;
	background: var(--hp-sage-12); color: var(--hp-green-ink); font-weight: 700;
}
.hsa-post-byline .hsa-avatar { width: 44px; height: 44px; font-size: 17px; }
.hsa-post-byline-text { font-size: 15px; line-height: 1.375; }
.hsa-post-byline-text p { margin: 0; }
.hsa-post-byline-text .name { font-weight: 700; color: var(--hp-navy); margin: 0; }

.hsa-post-lead { position: relative; max-width: 1040px; margin: 40px auto 0; }
@media (min-width: 1024px) { .hsa-post-lead { margin-top: 56px; } }
/* md+ only: at phone width the dot field would push past the side gutter. */
.hsa-post-lead-dots { display: none; }
@media (min-width: 768px) { .hsa-post-lead-dots { display: block; } }
.hsa-post-lead-media { position: relative; aspect-ratio: 16/10; border-radius: 20px; overflow: hidden; background: var(--hp-surface); }
@media (min-width: 768px) { .hsa-post-lead-media { aspect-ratio: 21/9; border-radius: 28px; } }
/* A whole (square) cover shrinks the lead box to the cover instead of letterboxing it in 21:9. */
.hsa-post-lead:has(.hsa-cover--whole) .hsa-post-lead-media { aspect-ratio: 1; max-width: 480px; margin-inline: auto; }
.hsa-post-lead:has(.hsa-cover--whole) .hsa-post-lead-dots { display: none; }

.hsa-post-body { max-width: 700px; margin-inline: auto; padding-block: 48px 64px; }
@media (min-width: 1024px) { .hsa-post-body { padding-block: 64px 96px; } }

.hsa-prose { max-width: none; font-size: 18px; line-height: 1.7; color: var(--hp-body); }
.hsa-prose > * + * { margin-top: 1.15em; }
.hsa-prose h2 { font-family: var(--font-display); font-size: 26px; line-height: 1.25; font-weight: 600; color: var(--hp-navy); margin-top: 2em; }
.hsa-prose h3 { font-size: 20px; line-height: 1.35; font-weight: 700; color: var(--hp-navy); margin-top: 1.6em; }
.hsa-prose ul, .hsa-prose ol { padding-left: 1.35em; }
.hsa-prose li + li { margin-top: 0.4em; }
.hsa-prose li::marker { color: var(--hp-teal); }
.hsa-prose strong { font-weight: 700; color: var(--hp-navy); }
.hsa-prose blockquote { border-left: 3px solid var(--hp-teal); padding-left: 20px; font-size: 19px; line-height: 1.55; color: var(--hp-navy); margin-top: 1.8em; }
.hsa-prose img { width: 100%; height: auto; border-radius: 10px; margin-top: 1.8em; }
.hsa-prose a { color: var(--hp-teal-dark); text-decoration: underline; text-underline-offset: 3px; }
.hsa-prose a:hover { color: var(--hp-teal); }
/* Buttons inside a post (worksheet-blog's download + sign-up buttons): centered, white on teal like
 * .hsa-btn--teal. The .hsa-prose prefix beats `.hsa-prose a` above, which otherwise paints the
 * button text dark teal on the button's own dark background. */
.hsa-prose .wp-block-buttons { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.hsa-prose .wp-block-button__link {
	display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 12px 28px;
	border-radius: 8px; background: var(--hp-teal); color: #fff; font-size: 17px; font-weight: 700;
	line-height: 1.3; text-align: center; text-decoration: none; transition: background-color .2s;
}
.hsa-prose .wp-block-button__link:hover,
.hsa-prose .wp-block-button__link:focus-visible { background: var(--hp-teal-dark); color: #fff; }

.hsa-tags { margin-top: 48px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.hsa-scope .hsa-tag {
	display: inline-flex; align-items: center; height: 32px; padding: 0 12px; border-radius: 999px;
	background: var(--hp-surface); border: 1px solid var(--hp-border); font-size: 14px; font-weight: 600; color: var(--hp-navy);
}
.hsa-tag:hover { border-color: var(--hp-teal); color: var(--hp-teal-dark); }

.hsa-post-footer { margin-top: 56px; padding-top: 32px; border-top: 1px solid var(--hp-border); }
.hsa-post-footer-row { display: flex; flex-direction: column; gap: 24px; }
@media (min-width: 640px) { .hsa-post-footer-row { flex-direction: row; align-items: center; justify-content: space-between; } }
.hsa-post-author { display: flex; align-items: center; gap: 16px; }
.hsa-post-author .hsa-avatar { width: 52px; height: 52px; font-size: 20px; }
.hsa-avatar--icon { background: #fff; border: 1px solid var(--hp-border); overflow: hidden; }
.hsa-avatar--icon img { width: 78%; height: 78%; object-fit: contain; }
.hsa-post-author:has(.hsa-author-bio) { align-items: flex-start; }
.hsa-author-bio { margin: 8px 0 0; max-width: 460px; font-size: 15px; line-height: 1.6; color: var(--hp-body); }
.hsa-scope .hsa-author-link { display: inline-block; margin-top: 6px; font-size: 14px; font-weight: 700; color: var(--hp-teal-dark); }
.hsa-scope .hsa-author-link:hover { color: var(--hp-teal); text-decoration: underline; text-underline-offset: 4px; }
.hsa-written-by { font-size: 12px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--hp-terracotta-dark); margin: 0 0 2px; }
.hsa-author-name { font-size: 18px; font-weight: 700; color: var(--hp-navy); margin: 0; }

.hsa-share { display: flex; align-items: center; gap: 10px; }
.hsa-share-label { font-size: 14px; font-weight: 600; margin-right: 6px; }
.hsa-share a {
	display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px;
	border-radius: 999px; border: 1px solid var(--hp-border); background: #fff; color: var(--hp-navy);
}
.hsa-share a:hover { border-color: var(--hp-teal); color: var(--hp-teal-dark); }

.hsa-related { background: var(--hp-surface); border-top: 1px solid var(--hp-border); padding-block: 56px; }
@media (min-width: 1024px) { .hsa-related { padding-block: 80px; } }
.hsa-related-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 36px; }
.hsa-related-head h2 { font-family: var(--font-display); font-size: 34px; color: var(--hp-navy); margin: 0; }

/* ── Closing CTA ────────────────────────────────────────────────────── */
.hsa-closing-cta { background: var(--hp-mist); position: relative; overflow: hidden; }
.hsa-closing-cta-inner { display: grid; gap: 32px; align-items: center; padding-block: 40px; }
@media (min-width: 768px) { .hsa-closing-cta-inner { grid-template-columns: minmax(0,0.52fr) minmax(0,1fr); gap: 48px; } }
.hsa-closing-cta h2 { font-family: var(--font-display); font-size: 34px; font-weight: 600; line-height: 1.18; text-wrap: balance; color: var(--hp-navy); margin: 0 0 16px; }
@media (min-width: 768px) { .hsa-closing-cta h2 { font-size: 38px; } }
.hsa-closing-cta p { font-size: 17px; line-height: 1.6; margin: 0 0 20px; max-width: 380px; }
.hsa-closing-cta-art { position: absolute; right: -24px; bottom: 0; width: 300px; height: auto; opacity: 0.45; display: none; }
@media (min-width: 1024px) { .hsa-closing-cta-art { display: block; } }

/* ── Footer ─────────────────────────────────────────────────────────── */
.hsa-footer { background: #fff; border-top: 1px solid var(--hp-border); }
.hsa-footer-grid { display: grid; gap: 32px; padding-block: 36px; grid-template-columns: 1fr; }
@media (min-width: 768px) { .hsa-footer-grid { grid-template-columns: minmax(0,1.3fr) repeat(4, minmax(0,1fr)); } }
.hsa-footer-logo { height: 24px; width: auto; margin-bottom: 8px; }
.hsa-footer-brand p { font-size: 16px; opacity: 0.75; margin: 0; }
.hsa-footer-col-title { font-size: 16px; font-weight: 700; color: var(--hp-navy); margin: 0 0 12px; }
.hsa-footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.hsa-footer-col a { font-size: 16px; opacity: 0.75; }
/* Phone touch targets, as the app's globals.css gives every link below 768px. */
@media (max-width: 767px) { .hsa-footer-col a { display: inline-flex; align-items: center; min-height: 44px; } }
.hsa-footer-col a:hover { opacity: 1; color: var(--hp-teal); }
.hsa-footer-bottom { border-top: 1px solid var(--hp-border); padding-block: 20px; }
.hsa-footer-bottom p { text-align: center; font-size: 15px; opacity: 0.75; margin: 0; }

/* ── 404 ────────────────────────────────────────────────────────────── */
.hsa-404 { text-align: center; max-width: 560px; margin: 0 auto; padding-block: 80px 112px; }
.hsa-404 h1 { font-family: var(--font-display); font-size: 44px; color: var(--hp-navy); margin: 0 0 16px; }
.hsa-404 p { font-size: 19px; line-height: 1.6; margin: 0 0 32px; }
.hsa-404-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.hsa-scope .hsa-btn--outline { background: #fff; border-color: var(--hp-border); color: var(--hp-navy); }
.hsa-btn--outline:hover { border-color: var(--hp-teal); color: var(--hp-navy); }

.screen-reader-text { position: absolute; clip: rect(0,0,0,0); width: 1px; height: 1px; overflow: hidden; }

/* ── Free printables library (/library/, page-library.php) ──────────── */
/* Locked: two-column hero like the homepage (copy + perks left, form card right); on phones the form comes before the perks. */
.hsa-lib-hero { background: var(--hp-ivory); border-bottom: 1px solid var(--hp-border); }
.hsa-lib-hero-inner { display: grid; gap: 28px; padding-block: 40px 48px; grid-template-areas: "copy" "join" "perks"; }
@media (min-width: 1024px) {
	.hsa-lib-hero-inner {
		grid-template-columns: minmax(0, 1fr) 440px; grid-template-areas: "copy join" "perks join";
		column-gap: 72px; row-gap: 32px; padding-block: 72px;
	}
	.hsa-lib-hero-copy { align-self: end; }
	.hsa-lib-perks { align-self: start; }
}
.hsa-lib-hero-copy { grid-area: copy; max-width: 600px; }
.hsa-lib-join { grid-area: join; }
.hsa-lib-hero h1 { font-family: var(--font-display); font-size: 40px; font-weight: 600; line-height: 1.08; color: var(--hp-navy); margin: 0 0 20px; }
@media (min-width: 768px) { .hsa-lib-hero h1 { font-size: 56px; } }
.hsa-lib-lede { font-size: 19px; line-height: 1.6; max-width: 520px; margin: 0; color: var(--hp-body); text-wrap: pretty; }
.hsa-lib-hero--open .hsa-lib-lede { max-width: 640px; }
.hsa-lib-perks { grid-area: perks; list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; max-width: 520px; }
.hsa-lib-perks li { text-wrap: pretty; display: flex; gap: 12px; align-items: flex-start; font-size: 17px; line-height: 1.5; color: var(--hp-body); }
.hsa-lib-perks svg { flex-shrink: 0; margin-top: 2px; color: var(--hp-green-dark); }

.hsa-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.hsa-library-form {
	display: grid; gap: 8px; padding: 24px; border: 1px solid var(--hp-border); border-radius: 20px; background: #fff;
	box-shadow: 0 28px 56px -36px var(--hp-navy-50);
}
@media (min-width: 640px) { .hsa-library-form { padding: 32px; } }
.hsa-library-form h2 { font-family: var(--font-display); font-size: 28px; font-weight: 600; line-height: 1.2; color: var(--hp-navy); margin: 0; }
.hsa-lib-join-sub { margin: 0 0 12px; font-size: 16px; line-height: 1.5; color: var(--hp-body); }
.hsa-library-form label { font-size: 15px; font-weight: 700; color: var(--hp-navy); }
.hsa-library-form label span { font-weight: 500; color: var(--hp-body-70); }
.hsa-library-form input[type=text], .hsa-library-form input[type=email] {
	height: 50px; padding: 0 14px; margin-bottom: 8px; border: 1px solid var(--hp-border); border-radius: 10px;
	background: #fff; font: inherit; font-size: 17px; color: var(--hp-body); transition: border-color .15s, box-shadow .15s;
}
.hsa-library-form input::placeholder { color: var(--hp-body-70); }
.hsa-library-form input:focus { outline: none; border-color: var(--hp-teal); box-shadow: 0 0 0 4px var(--hp-teal-12); }
.hsa-library-form .hsa-btn { height: 54px; margin-top: 4px; font-size: 17px; font-weight: 700; }
.hsa-library-fine { margin: 6px 0 0; font-size: 13px; line-height: 1.5; color: var(--hp-body-70); }
.hsa-scope .hsa-library-fine a { color: var(--hp-teal-dark); text-decoration: underline; }
.hsa-library-error { margin: 0 0 8px; padding: 10px 14px; border-radius: 8px; background: var(--hp-terracotta-12); color: var(--hp-terracotta-dark); font-size: 15px; font-weight: 600; }

/* Locked: a look inside (every set's cover, the scheduled ones dated). */
.hsa-lib-peek { padding-block: 56px 80px; }
.hsa-lib-peek h2 { font-family: var(--font-display); font-size: 32px; font-weight: 600; color: var(--hp-navy); margin: 0 0 24px; }
.hsa-lib-peek h2:has(+ .hsa-lib-peek-sub) { margin-bottom: 6px; }
.hsa-lib-peek-sub { margin: 0 0 24px; font-size: 16px; color: var(--hp-body); }
.hsa-lib-peek-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 767px) { .hsa-lib-peek-grid li:nth-child(n+5) { display: none; } }
@media (min-width: 768px) { .hsa-lib-peek-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; } }
.hsa-lib-peek-grid p { margin: 10px 0 0; font-size: 15px; font-weight: 700; line-height: 1.35; color: var(--hp-navy); }
.hsa-lib-peek-cta { margin: 24px 0 0; text-align: center; }
.hsa-lib-peek-cta .hsa-btn { height: 52px; padding: 0 28px; font-size: 17px; font-weight: 700; }

.hsa-lib-cover { position: relative; display: block; aspect-ratio: 1; border: 1px solid var(--hp-border); border-radius: 14px; overflow: hidden; background: var(--hp-surface); }
.hsa-lib-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hsa-lib-date {
	position: absolute; left: 10px; bottom: 10px; display: inline-flex; align-items: center; height: 28px; padding: 0 10px;
	border-radius: 999px; background: var(--hp-navy); color: #fff; font-size: 13px; font-weight: 700; box-shadow: 0 4px 12px -4px rgba(18, 63, 85, .5);
}

/* Unlocked: compact header, then tools and the grid. */
.hsa-lib-hero--open .hsa-shell { padding-block: 36px 32px; }
@media (min-width: 1024px) { .hsa-lib-hero--open .hsa-shell { padding-block: 48px 40px; } }
.hsa-lib-hero--open h1 { font-size: 36px; margin-bottom: 12px; }
@media (min-width: 768px) { .hsa-lib-hero--open h1 { font-size: 46px; } }
.hsa-library { padding-block: 32px 88px; }

.hsa-lib-tools { display: grid; gap: 14px; padding: 16px; margin-bottom: 32px; border: 1px solid var(--hp-border); border-radius: 20px; background: var(--hp-ivory); }
@media (min-width: 640px) { .hsa-lib-tools { padding: 20px 24px; } }
.hsa-lib-search { position: relative; max-width: 460px; }
.hsa-lib-search svg { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--hp-body-70); pointer-events: none; }
.hsa-lib-search input {
	width: 100%; height: 48px; padding: 0 16px 0 44px; border: 1px solid var(--hp-border); border-radius: 999px;
	background: #fff; font: inherit; font-size: 16px; color: var(--hp-body); transition: border-color .15s, box-shadow .15s;
}
.hsa-lib-search input::placeholder { color: var(--hp-body-70); }
.hsa-lib-search input:focus { outline: none; border-color: var(--hp-teal); box-shadow: 0 0 0 4px var(--hp-teal-12); }
.hsa-lib-filter { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.hsa-lib-filter-label { min-width: 64px; font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--hp-body); }
.hsa-library-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.hsa-library-chips button {
	min-height: 44px; padding: 0 16px; border: 1px solid var(--hp-border); border-radius: 999px; background: #fff;
	font: inherit; font-size: 15px; font-weight: 600; color: var(--hp-navy); cursor: pointer; transition: background-color .15s, border-color .15s, color .15s;
}
@media (min-width: 768px) { .hsa-library-chips button { min-height: 38px; padding: 0 14px; } }
.hsa-library-chips button:hover { border-color: var(--hp-teal); }
.hsa-library-chips button[aria-pressed=true] { background: var(--hp-navy); border-color: var(--hp-navy); color: #fff; }
.hsa-library-chips button:focus-visible, .hsa-lib-more:focus-visible, .hsa-library-card h2 a:focus-visible,
.hsa-library-card-actions .hsa-btn:focus-visible, .hsa-lib-peek-cta .hsa-btn:focus-visible, .hsa-library-form .hsa-btn:focus-visible {
	outline: 3px solid var(--hp-teal); outline-offset: 3px;
}

.hsa-library-count { margin: 0 0 16px; font-size: 15px; color: var(--hp-body); }
.hsa-lib-section[hidden] { display: none; }
.hsa-lib-section:not([hidden]) + .hsa-lib-section { margin-top: 64px; }
.hsa-lib-section-title { font-family: var(--font-display); font-size: 30px; font-weight: 600; color: var(--hp-navy); margin: 0 0 6px; }
.hsa-lib-section-sub { margin: 0 0 20px; font-size: 16px; color: var(--hp-body); }

.hsa-library-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 24px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.hsa-lib-section[data-section=soon] .hsa-library-grid { gap: 16px; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
@media (min-width: 768px) { .hsa-lib-section[data-section=soon] .hsa-library-grid { gap: 20px; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); } }
.hsa-library-card {
	display: flex; flex-direction: column; border: 1px solid var(--hp-border); border-radius: 16px; overflow: hidden; background: #fff;
	transition: border-color .2s, box-shadow .2s, transform .2s;
}
.hsa-library-card:not(.is-soon):hover { border-color: var(--hp-teal); box-shadow: 0 22px 44px -30px var(--hp-navy-50); transform: translateY(-2px); }
.hsa-library-card[hidden] { display: none; }
.hsa-library-card .hsa-lib-cover { border: 0; border-bottom: 1px solid var(--hp-border); border-radius: 0; }
.hsa-library-card-body { display: flex; flex-direction: column; gap: 10px; padding: 18px 20px 20px; flex: 1; }
.is-soon .hsa-library-card-body { padding: 14px 16px 16px; gap: 8px; }
.hsa-library-card h2 { font-family: var(--font-display); font-size: 22px; font-weight: 600; line-height: 1.2; color: var(--hp-navy); margin: 0; }
.is-soon h2 { font-size: 18px; }
.hsa-scope .hsa-library-card h2 a { color: var(--hp-navy); }
.hsa-scope .hsa-library-card h2 a:hover { color: var(--hp-teal-dark); }
.hsa-lib-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; }
.hsa-lib-tag { display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: 999px; background: var(--hp-sage-12); color: var(--hp-green-ink); font-size: 13px; font-weight: 700; }
.hsa-lib-tag--season { background: var(--hp-terracotta-12); color: var(--hp-terracotta-dark); }
.hsa-library-card-meta { margin: 0; font-size: 14px; color: var(--hp-body); }
.hsa-library-card-actions { margin-top: auto; padding-top: 6px; display: grid; gap: 2px; }
.hsa-library-card-actions .hsa-btn { gap: 8px; height: 46px; font-size: 16px; font-weight: 700; }
.hsa-scope .hsa-lib-more {
	display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px;
	font-size: 15px; font-weight: 700; color: var(--hp-teal-dark);
}
.hsa-scope .hsa-lib-more:hover { text-decoration: underline; text-underline-offset: 4px; }
.hsa-library-none { text-align: center; padding: 40px 0; font-size: 17px; }
.hsa-library-none button { border: 0; background: none; padding: 0; font: inherit; font-weight: 700; color: var(--hp-teal-dark); text-decoration: underline; cursor: pointer; }
.hsa-lib-when { display: none; margin: 0; font-size: 14px; font-weight: 700; color: var(--hp-teal-dark); }
.hsa-lib-excerpt { margin: 0; font-size: 16px; line-height: 1.6; color: var(--hp-body); max-width: 560px; text-wrap: pretty; }

/* "You're in" note, shown once after signing up. */
.hsa-lib-welcome {
	display: flex; align-items: flex-start; gap: 12px; margin-bottom: 24px; padding: 16px 12px 16px 20px;
	border: 1px solid #cfe0cd; border-radius: 16px; background: var(--hp-sage-wash); color: var(--hp-body);
}
.hsa-lib-welcome > svg { flex-shrink: 0; margin-top: 2px; color: var(--hp-green-dark); }
.hsa-lib-welcome p { flex: 1; margin: 0; font-size: 16px; line-height: 1.55; }
.hsa-lib-welcome strong { color: var(--hp-navy); }

/* Library buttons: pin every state, because Kadence restyles all <button>s on hover/focus. */
.hsa-scope .hsa-lib-welcome-close, .hsa-scope .hsa-look-close, .hsa-scope .hsa-look-nav {
	display: grid; place-items: center; flex-shrink: 0; width: 44px; height: 44px; padding: 0; border-radius: 999px;
	color: var(--hp-navy); cursor: pointer; box-shadow: none; transition: background-color .15s, border-color .15s;
}
.hsa-scope .hsa-lib-welcome-close { margin: -10px 0 -10px 0; border: 0; background: transparent; }
.hsa-scope .hsa-lib-welcome-close:is(:hover, :focus, :active) { background: rgba(18, 63, 85, .08); color: var(--hp-navy); box-shadow: none; }
.hsa-scope .hsa-library-chips button:is(:hover, :focus, :active) { background: #fff; color: var(--hp-navy); box-shadow: none; }
.hsa-scope .hsa-library-chips button[aria-pressed=true]:is(:hover, :focus, :active) { background: var(--hp-navy); color: #fff; }

/* Quick look: the cover is a button that opens the set's pages. */
.hsa-scope .hsa-lib-look, .hsa-scope .hsa-lib-look:is(:hover, :focus, :active) {
	width: 100%; margin: 0; padding: 0; font: inherit; color: inherit; background: var(--hp-surface); box-shadow: none; cursor: zoom-in;
}
.hsa-lib-look img { transition: transform .3s ease; }
.hsa-lib-look:hover img { transform: scale(1.03); }
.hsa-lib-look:focus-visible { outline: 3px solid var(--hp-teal); outline-offset: -3px; }
.hsa-lib-look-label {
	position: absolute; left: 50%; bottom: 14px; display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 16px;
	border-radius: 999px; background: rgba(18, 63, 85, .92); color: #fff; font-size: 15px; font-weight: 700; white-space: nowrap;
	opacity: 0; transform: translate(-50%, 6px); transition: opacity .2s, transform .2s; pointer-events: none;
}
.hsa-lib-look:hover .hsa-lib-look-label, .hsa-lib-look:focus-visible .hsa-lib-look-label { opacity: 1; transform: translate(-50%, 0); }
@media (hover: none) { /* touch: no hover, so keep a small eye badge on every cover */
	.hsa-lib-look-label { left: auto; right: 8px; bottom: 8px; width: 32px; height: 32px; padding: 0; justify-content: center; opacity: 1; transform: none; }
	.hsa-lib-look-label > span { display: none; }
}

.hsa-look {
	width: min(760px, calc(100vw - 32px)); max-width: none; max-height: calc(100dvh - 32px); margin: auto; padding: 0; border: 0;
	border-radius: 20px; background: #fff; color: var(--hp-body); box-shadow: 0 32px 80px -24px rgba(18, 63, 85, .45); overflow: hidden;
}
.hsa-look[open] { display: flex; flex-direction: column; }
.hsa-look::backdrop { background: rgba(18, 63, 85, .6); }
html:has(.hsa-look[open]) { overflow: hidden; }
.hsa-look-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 18px 16px 14px 24px; }
.hsa-look h2 { margin: 0; font-family: var(--font-display); font-size: 24px; font-weight: 600; line-height: 1.2; color: var(--hp-navy); }
.hsa-look-count { margin: 4px 0 0; font-size: 14px; font-weight: 600; color: var(--hp-body); }
.hsa-scope .hsa-look-close { border: 0; background: var(--hp-surface); }
.hsa-scope .hsa-look-close:is(:hover, :focus, :active) { background: var(--hp-border); color: var(--hp-navy); box-shadow: none; }
.hsa-look-stage { position: relative; flex: 1; min-height: 0; border-block: 1px solid var(--hp-border); background: var(--hp-surface); }
.hsa-look-track { display: flex; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: none; }
.hsa-look-track::-webkit-scrollbar { display: none; }
.hsa-look-track:focus-visible { outline: 3px solid var(--hp-teal); outline-offset: -3px; }
.hsa-look-track figure { flex: 0 0 100%; display: grid; place-items: center; margin: 0; padding: 20px 72px; scroll-snap-align: center; }
.hsa-look-track img {
	display: block; width: auto; height: auto; max-width: 100%; max-height: min(62dvh, 640px);
	border-radius: 6px; background: #fff; box-shadow: 0 12px 32px -14px rgba(18, 63, 85, .4);
}
.hsa-scope .hsa-look-nav { position: absolute; top: 50%; z-index: 1; margin-top: -22px; border: 1px solid var(--hp-border); background: #fff; box-shadow: 0 6px 16px -8px rgba(18, 63, 85, .4); }
.hsa-scope .hsa-look-nav:is(:hover, :focus, :active) { background: #fff; color: var(--hp-navy); border-color: var(--hp-teal); box-shadow: 0 6px 16px -8px rgba(18, 63, 85, .4); }
.hsa-scope .hsa-look-nav:disabled { opacity: .35; cursor: default; border-color: var(--hp-border); }
.hsa-look-prev { left: 14px; }
.hsa-look-next { right: 14px; }
.hsa-look-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; padding: 16px 24px 20px; }
.hsa-look-foot .hsa-btn { gap: 8px; height: 48px; padding: 0 24px; font-size: 16px; font-weight: 700; }
.hsa-scope :is(.hsa-lib-welcome-close, .hsa-look-close, .hsa-look-nav, .hsa-look-foot a):focus-visible { outline: 3px solid var(--hp-teal); outline-offset: 2px; }
@media (max-width: 639px) {
	.hsa-look { width: calc(100vw - 16px); max-height: calc(100dvh - 16px); border-radius: 16px; }
	.hsa-look-head { padding: 14px 10px 10px 16px; }
	.hsa-look h2 { font-size: 21px; }
	.hsa-look-track figure { padding: 14px 12px 70px; }
	.hsa-scope .hsa-look-nav { top: auto; bottom: 12px; margin-top: 0; }
	.hsa-look-prev { left: calc(50% - 52px); }
	.hsa-look-next { right: calc(50% - 52px); }
	.hsa-look-foot { padding: 12px 16px 16px; }
	.hsa-look-foot .hsa-btn { flex: 1; }
}
@media (prefers-reduced-motion: reduce) {
	.hsa-lib-look img, .hsa-lib-look-label { transition: none; }
	.hsa-lib-look:hover img { transform: none; }
}

/* While only one or two sets are live, show them as wide feature cards instead of one lonely tile in an empty row. */
@media (min-width: 768px) {
	.hsa-library-grid--feature { grid-template-columns: repeat(auto-fit, minmax(460px, 1fr)); }
	.hsa-library-grid--feature .hsa-library-card { flex-direction: row; }
	.hsa-library-grid--feature .hsa-lib-cover { flex: 0 0 min(40%, 340px); border-bottom: 0; border-right: 1px solid var(--hp-border); }
	.hsa-library-grid--feature .hsa-library-card-body { justify-content: center; gap: 14px; padding: 32px 36px; }
	.hsa-library-grid--feature h2 { font-size: 30px; }
	.hsa-library-grid--feature .hsa-library-card-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-top: 4px; }
	.hsa-library-grid--feature .hsa-library-card-actions .hsa-btn { width: auto; padding: 0 28px; height: 50px; }
}

/* Phones: one swipeable row of chips, and "Coming soon" as compact list rows. */
@media (max-width: 639px) {
	.hsa-lib-filter { display: grid; gap: 8px; }
	.hsa-library-chips { flex-wrap: nowrap; overflow-x: auto; margin: 0 -16px; padding: 6px 16px; scroll-padding-inline: 16px; scrollbar-width: none; }
	.hsa-library-chips::-webkit-scrollbar { display: none; }
	.hsa-library-chips button { flex-shrink: 0; }
	.hsa-lib-section[data-section=soon] .hsa-library-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
	/* Every card becomes a row: inset square thumbnail left, details right (13 stacked full cards ran ~7,500px). */
	.hsa-library-grid { gap: 12px; }
	.hsa-library-card { flex-direction: row; align-items: flex-start; gap: 14px; padding: 12px; }
	.hsa-library-card .hsa-lib-cover { flex: 0 0 104px; border: 1px solid var(--hp-border); border-radius: 10px; }
	.hsa-library-card .hsa-library-card-body { min-width: 0; padding: 2px 0 0; gap: 8px; }
	.hsa-library-card h2 { font-size: 19px; }
	.hsa-library-card-actions { padding-top: 2px; }
	.hsa-library-card-actions .hsa-btn { height: 44px; font-size: 15px; }
	.hsa-scope .hsa-lib-more { justify-content: flex-start; min-height: 36px; font-size: 14px; }
	.is-soon .hsa-lib-date { display: none; }
	.is-soon .hsa-lib-when { display: block; }
}
@media (prefers-reduced-motion: reduce) {
	.hsa-library-card { transition: none; }
	.hsa-library-card:not(.is-soon):hover { transform: none; }
}

/* Promo box near the end of every printables post (added by ~/.claude/bin/worksheet-blog). */
.hsa-prose .hsa-library-promo { margin: 40px 0; padding: 28px 24px; border-radius: 20px; background: var(--hp-sage-wash); text-align: center; }
.hsa-prose .hsa-library-promo p { margin: 0 0 16px; }
.hsa-prose .hsa-library-promo .hsa-library-promo-title { margin-bottom: 6px; font-family: var(--font-display); font-size: 26px; font-weight: 600; line-height: 1.25; color: var(--hp-navy); }
.hsa-prose .hsa-library-promo .wp-block-buttons { margin: 0; }
