/*
Theme Name: Bio Sante Store
Theme URI: https://biosantestore.com
Author: Optum Force LLC
Author URI: https://optforce.com
Description: A clean, white-first WooCommerce storefront for Bio Sante Store, a medical supply retailer. Light purple brand system, HSA/FSA eligibility badges, category merchandising and a fully Customizer-driven homepage.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: biosante
Tags: e-commerce, woocommerce, custom-logo, custom-menu, featured-images, translation-ready, block-styles, wide-blocks
WC requires at least: 7.0
WC tested up to: 9.1
*/

/* ==========================================================================
   1. Tokens
   ========================================================================== */

:root {
	/* Brand purple — the logo mark, accents, borders, washes. */
	--bss-primary: #8B6FD6;
	--bss-primary-rgb: 139, 111, 214;

	/* Action purple — anything carrying white text or small type (AA on white). */
	--bss-primary-deep: #6D4FC2;
	--bss-primary-dark: #5B429F;

	/* Light lavender — text and accents on the deep plum backgrounds. */
	--bss-primary-soft: #C9B6F5;

	--bss-wash: #F1ECFD;
	--bss-plum: #2A2540;
	--bss-eligible: #128C7A;
	--bss-signal: #E4574A;
	--bss-amber: #E9A13B;

	--ink: #2A2540;
	--ink-2: #4A4560;
	--muted: #6B6580;
	--muted-soft: #9A94AE;
	--line: #EAE4F7;
	--line-soft: #F4F1FB;
	--white: #FFFFFF;
	--paper: #FBFAFE;

	--font-display: "Outfit", "Segoe UI", system-ui, -apple-system, sans-serif;
	--font-body: "Public Sans", "Segoe UI", system-ui, -apple-system, sans-serif;

	--r-sm: 10px;
	--r: 14px;
	--r-lg: 22px;
	--r-pill: 999px;

	--shadow-sm: 0 1px 2px rgba(42, 37, 64, .06);
	--shadow: 0 10px 30px -18px rgba(42, 37, 64, .35);
	--shadow-lg: 0 24px 60px -28px rgba(var(--bss-primary-rgb), .55);

	--container: 1280px;
	--gutter: clamp(16px, 4vw, 32px);
	--header-h: 76px;
}

/* ==========================================================================
   2. Reset and base
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after {
		animation-duration: .01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: .01ms !important;
	}
}

body {
	margin: 0;
	background: var(--white);
	color: var(--ink);
	font-family: var(--font-body);
	font-size: 16px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}

img, svg, video { max-width: 100%; height: auto; display: block; }
img { border-radius: inherit; }

a { color: var(--bss-primary-deep); text-decoration: none; }
a:hover { color: var(--bss-primary-dark); }

h1, h2, h3, h4, h5 {
	font-family: var(--font-display);
	color: var(--ink);
	line-height: 1.15;
	letter-spacing: -.02em;
	margin: 0 0 .5em;
	font-weight: 600;
}

h1 { font-size: clamp(2rem, 1.4rem + 2.4vw, 3.1rem); }
h2 { font-size: clamp(1.5rem, 1.15rem + 1.5vw, 2.15rem); }
h3 { font-size: clamp(1.1rem, 1rem + .5vw, 1.35rem); }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.1em; }

.eyebrow {
	font-family: var(--font-body);
	font-size: .75rem;
	font-weight: 700;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--bss-primary-deep);
	margin: 0 0 .8em;
}

.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px; width: 1px;
	overflow: hidden;
	position: absolute !important;
	word-wrap: normal !important;
}

.skip-link:focus {
	clip: auto; clip-path: none;
	height: auto; width: auto;
	left: 16px; top: 16px;
	z-index: 999;
	background: var(--white);
	padding: 12px 18px;
	border-radius: var(--r-sm);
	box-shadow: var(--shadow);
}

:focus-visible {
	outline: 3px solid var(--bss-primary-soft);
	outline-offset: 2px;
	border-radius: 4px;
}

.bss-icon { width: 20px; height: 20px; flex: none; }

/* ==========================================================================
   3. Layout primitives
   ========================================================================== */

.container {
	width: 100%;
	max-width: var(--container);
	margin-inline: auto;
	padding-inline: var(--gutter);
}

.container--narrow { max-width: 780px; margin-inline: auto; }

.section { padding-block: clamp(44px, 5vw, 76px); }
.section--tight { padding-block: clamp(28px, 3vw, 40px); }

.section-head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: clamp(20px, 2.5vw, 32px);
	flex-wrap: wrap;
}

.section-head__title { margin: 0; }

.section-head__link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-weight: 600;
	font-size: .95rem;
	white-space: nowrap;
}

.section-head__link .bss-icon { width: 18px; height: 18px; transition: transform .2s ease; }
.section-head__link:hover .bss-icon { transform: translateX(3px); }

.content-layout { padding-block: clamp(28px, 4vw, 48px); }

.content-layout--sidebar {
	display: grid;
	gap: clamp(28px, 4vw, 56px);
}

@media (min-width: 992px) {
	.content-layout--sidebar { grid-template-columns: minmax(0, 1fr) 300px; }
}

/* ==========================================================================
   4. Buttons and chips
   ========================================================================== */

.btn,
button.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	font-family: var(--font-body);
	font-size: .95rem;
	font-weight: 600;
	line-height: 1;
	padding: 14px 22px;
	border-radius: var(--r-pill);
	border: 1.5px solid transparent;
	cursor: pointer;
	transition: background-color .18s ease, color .18s ease, border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}

.btn:active { transform: translateY(1px); }

.btn--primary {
	background: var(--bss-primary-deep);
	color: var(--white);
	box-shadow: var(--shadow-lg);
}
.btn--primary:hover { background: var(--bss-primary-dark); color: var(--white); }

.btn--outline {
	background: transparent;
	color: var(--bss-primary-deep);
	border-color: var(--bss-primary-deep);
}
.btn--outline:hover { background: var(--bss-primary-deep); color: var(--white); }

.btn--ghost {
	background: var(--white);
	color: var(--ink);
	border-color: var(--line);
}
.btn--ghost:hover { border-color: var(--bss-primary-deep); color: var(--bss-primary-deep); }

.btn--link {
	background: none;
	padding-inline: 4px;
	color: var(--bss-primary-deep);
}
.btn--link .bss-icon { width: 18px; height: 18px; transition: transform .2s ease; }
.btn--link:hover .bss-icon { transform: translateX(3px); }

.btn--block { width: 100%; }

.icon-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px; height: 44px;
	border: 0;
	background: transparent;
	color: var(--ink);
	border-radius: var(--r-sm);
	cursor: pointer;
}
.icon-button:hover { background: var(--bss-wash); color: var(--bss-primary-deep); }

.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; }

.chip {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	font-size: .72rem;
	font-weight: 700;
	letter-spacing: .02em;
	padding: 5px 10px;
	border-radius: var(--r-pill);
	background: var(--line-soft);
	color: var(--ink-2);
	line-height: 1.2;
}

.chip .bss-icon { width: 14px; height: 14px; stroke-width: 2; }

.chip--eligible { background: rgba(18, 140, 122, .1); color: var(--bss-eligible); }
.chip--rx { background: rgba(233, 161, 59, .16); color: #8A5B08; }
.chip--muted { background: var(--line-soft); color: var(--muted); }

.chip--lg { font-size: .8rem; padding: 8px 14px; }
.chip--lg .bss-icon { width: 16px; height: 16px; }

.badge {
	display: inline-flex;
	align-items: center;
	font-size: .72rem;
	font-weight: 700;
	padding: 5px 10px;
	border-radius: var(--r-pill);
	background: var(--bss-signal);
	color: var(--white);
	line-height: 1.2;
}
.badge--muted { background: var(--ink); color: var(--white); }

/* ==========================================================================
   5. Announcement bar
   ========================================================================== */

.topbar {
	background: var(--bss-plum);
	color: rgba(255, 255, 255, .92);
	font-size: .8rem;
}

.topbar__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	min-height: 38px;
}

.topbar__messages {
	display: flex;
	align-items: center;
	gap: 24px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.topbar__messages li { display: inline-flex; align-items: center; gap: 7px; }
.topbar__messages .bss-icon { width: 16px; height: 16px; color: var(--bss-primary-soft); }

.topbar__aside { display: flex; align-items: center; gap: 20px; }

.topbar a { color: inherit; font-weight: 600; }
.topbar a:hover { color: var(--white); text-decoration: underline; }

.topbar__phone { display: inline-flex; align-items: center; gap: 6px; }
.topbar__phone .bss-icon { width: 15px; height: 15px; }

.topbar__menu {
	display: flex;
	gap: 18px;
	list-style: none;
	margin: 0;
	padding: 0;
}

@media (max-width: 860px) {
	.topbar__messages li:nth-child(2), .topbar__menu { display: none; }
	.topbar__inner { justify-content: center; }
}

/* ==========================================================================
   6. Header
   ========================================================================== */

.site-header {
	position: sticky;
	top: 0;
	z-index: 60;
	background: var(--white);
	border-bottom: 1px solid var(--line);
}

.site-header.is-stuck { box-shadow: var(--shadow); }

.site-header__inner {
	display: grid;
	grid-template-columns: auto 1fr auto;
	align-items: center;
	gap: 20px;
	min-height: var(--header-h);
}

.site-header__burger { display: none; }

.site-branding { display: flex; align-items: center; min-width: 0; }
.site-branding img, .footer-brand img { max-height: 48px; width: auto; }

/* --------------------------------------------------------------- Logo lockup
   Wordmark is live text in Outfit, so it stays crisp at any size, recolours
   with the brand tokens and remains readable to screen readers. */

.logo {
	display: inline-flex;
	align-items: center;
	gap: .38em;
	color: var(--ink);
	font-family: var(--font-display);
	font-size: var(--logo-fs, 24px);
	line-height: 1;
	min-width: 0;
}
.logo:hover { color: var(--ink); }

.logo--sm { --logo-fs: 18px; --logo-mark: 28px; }
.logo--md { --logo-fs: 23px; --logo-mark: 38px; }
.logo--lg { --logo-fs: 34px; --logo-mark: 50px; }

.logo__mark { flex: none; width: var(--logo-mark); height: var(--logo-mark); }
.logo__glyph { width: 100%; height: 100%; display: block; }

.logo__text { display: flex; flex-direction: column; gap: .16em; min-width: 0; }

.logo__word {
	display: flex;
	align-items: baseline;
	font-size: 1em;
	letter-spacing: -.035em;
	white-space: nowrap;
}

.logo__bio { font-weight: 700; color: var(--bss-primary); }
.logo__sante { font-weight: 400; color: var(--ink); }
.logo__store { font-weight: 300; color: var(--ink); margin-left: .2em; }

.logo__tagline {
	font-family: var(--font-body);
	font-size: .43em;
	font-weight: 500;
	letter-spacing: .3em;
	text-transform: uppercase;
	color: var(--muted-soft);
	white-space: nowrap;
}

.logo--reverse .logo__sante,
.logo--reverse .logo__bio { color: var(--white); }
.logo--reverse .logo__store { color: var(--bss-primary-soft); }
.logo--reverse .logo__tagline { color: var(--bss-primary-soft); opacity: .7; }
.logo--reverse { color: var(--white); }
.logo--reverse .logo__glyph { color: var(--white); }

@media (max-width: 1199px) {
	.site-header .logo__tagline { display: none; }
}

@media (max-width: 600px) {
	.site-header .logo { --logo-fs: 19px; --logo-mark: 32px; }
	.site-header .logo__store { display: none; }
}

.site-search { min-width: 0; }

.search-form {
	position: relative;
	display: flex;
	align-items: center;
	background: var(--paper);
	border: 1.5px solid var(--line);
	border-radius: var(--r-pill);
	transition: border-color .18s ease, background-color .18s ease;
}

.search-form:focus-within {
	border-color: var(--bss-primary-deep);
	background: var(--white);
}

.search-form__icon {
	position: absolute;
	left: 16px;
	color: var(--muted);
	pointer-events: none;
}

.search-form__field {
	flex: 1;
	min-width: 0;
	border: 0;
	background: none;
	padding: 13px 16px 13px 46px;
	font: inherit;
	font-size: .95rem;
	color: var(--ink);
	border-radius: var(--r-pill);
}
.search-form__field:focus { outline: none; }
.search-form__field::placeholder { color: var(--muted); }

.search-form__submit {
	border: 0;
	background: var(--bss-primary-deep);
	color: var(--white);
	font: inherit;
	font-weight: 600;
	font-size: .9rem;
	padding: 11px 22px;
	margin: 3px;
	border-radius: var(--r-pill);
	cursor: pointer;
	transition: background-color .18s ease;
}
.search-form__submit:hover { background: var(--bss-primary-dark); }

.header-actions { display: flex; align-items: center; gap: 6px; }
.header-actions__search { display: none; }

.header-action {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 2px;
	padding: 8px 12px;
	border-radius: var(--r-sm);
	color: var(--ink);
	font-size: .72rem;
	font-weight: 600;
}
.header-action:hover { background: var(--bss-wash); color: var(--bss-primary-deep); }

.header-action__count {
	position: absolute;
	top: 2px; right: 4px;
	min-width: 19px;
	height: 19px;
	display: grid;
	place-items: center;
	padding: 0 5px;
	border-radius: var(--r-pill);
	background: var(--bss-signal);
	color: var(--white);
	font-size: .68rem;
	font-weight: 700;
	opacity: 0;
	transform: scale(.6);
	transition: opacity .18s ease, transform .18s ease;
}
.header-action__count.is-active { opacity: 1; transform: scale(1); }

/* Primary nav */

.site-nav { border-top: 1px solid var(--line-soft); }

.nav-menu {
	display: flex;
	align-items: center;
	gap: 4px;
	list-style: none;
	margin: 0;
	padding: 0;
	overflow-x: auto;
	scrollbar-width: none;
}
.nav-menu::-webkit-scrollbar { display: none; }

.nav-menu > li { position: relative; }

.nav-menu > li > a {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 14px 14px;
	font-size: .82rem;
	font-weight: 700;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: var(--ink-2);
	white-space: nowrap;
	border-bottom: 2px solid transparent;
}

.nav-menu > li > a:hover,
.nav-menu > li.current-menu-item > a,
.nav-menu > li.current-menu-parent > a {
	color: var(--bss-primary-deep);
	border-bottom-color: var(--bss-primary-deep);
}

.nav-menu .sub-menu {
	position: absolute;
	top: 100%;
	left: 0;
	min-width: 240px;
	background: var(--white);
	border: 1px solid var(--line);
	border-radius: var(--r);
	box-shadow: var(--shadow);
	padding: 8px;
	list-style: none;
	margin: 0;
	opacity: 0;
	visibility: hidden;
	transform: translateY(6px);
	transition: opacity .16s ease, transform .16s ease, visibility .16s;
	z-index: 20;
}

.nav-menu li:hover > .sub-menu,
.nav-menu li:focus-within > .sub-menu,
.nav-menu li.is-open > .sub-menu {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.nav-menu .sub-menu a {
	display: block;
	padding: 9px 12px;
	border-radius: var(--r-sm);
	color: var(--ink-2);
	font-size: .92rem;
	font-weight: 500;
}
.nav-menu .sub-menu a:hover { background: var(--bss-wash); color: var(--bss-primary-deep); }

.nav-menu .sub-menu .sub-menu { top: 4px; left: 100%; }

@media (max-width: 991px) {
	.site-header__inner { grid-template-columns: auto 1fr auto; gap: 8px; }
	.site-header__burger { display: inline-flex; }
	.site-branding { justify-content: flex-start; }
	.site-search {
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		background: var(--white);
		padding: 12px var(--gutter);
		border-bottom: 1px solid var(--line);
		display: none;
	}
	.site-search.is-open { display: block; }
	.header-actions__search { display: inline-flex; }
	.header-action__label { display: none; }
	.header-action { padding: 8px; }
	.site-nav { display: none; }
	.search-form__submit { padding: 11px 16px; }
}

/* Drawer */

.drawer { position: fixed; inset: 0; z-index: 200; }
.drawer[hidden] { display: none; }

.drawer__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(22, 24, 42, .45);
	backdrop-filter: blur(2px);
	animation: bss-fade .2s ease;
}

.drawer__panel {
	position: absolute;
	inset-block: 0;
	left: 0;
	width: min(360px, 88vw);
	background: var(--white);
	display: flex;
	flex-direction: column;
	z-index: 2;
	animation: bss-slide .24s ease;
}

@keyframes bss-fade { from { opacity: 0; } }
@keyframes bss-slide { from { transform: translateX(-100%); } }

.drawer__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 16px 20px;
	border-bottom: 1px solid var(--line);
}

.drawer__title { font-family: var(--font-display); font-weight: 600; font-size: 1.1rem; }
.drawer__head .logo__glyph { color: var(--white); }
.drawer__body { overflow-y: auto; padding: 8px 12px 28px; flex: 1; }

.drawer-menu, .drawer-menu .sub-menu { list-style: none; margin: 0; padding: 0; }

.drawer-menu a {
	display: block;
	padding: 13px 12px;
	color: var(--ink);
	font-weight: 600;
	font-size: .98rem;
	border-radius: var(--r-sm);
}
.drawer-menu a:hover { background: var(--bss-wash); color: var(--bss-primary-deep); }

.drawer-menu .sub-menu { padding-left: 12px; border-left: 2px solid var(--line); margin: 2px 0 8px 12px; }
.drawer-menu .sub-menu a { font-weight: 500; font-size: .92rem; padding: 9px 12px; color: var(--ink-2); }

.drawer__foot { margin-top: 20px; padding: 16px 12px 0; border-top: 1px solid var(--line); display: grid; gap: 14px; }
.drawer__phone { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }

.submenu-toggle {
	position: absolute;
	right: 4px; top: 4px;
	width: 40px; height: 40px;
	border: 0; background: none;
	color: var(--ink-2);
	cursor: pointer;
	display: grid;
	place-items: center;
	border-radius: var(--r-sm);
}
.submenu-toggle[aria-expanded="true"] .bss-icon { transform: rotate(180deg); }
.drawer-menu li { position: relative; }
.drawer-menu li.has-children > a { padding-right: 48px; }
.drawer-menu .sub-menu[hidden] { display: none; }

/* ==========================================================================
   7. Hero
   ========================================================================== */

.hero { padding-block: clamp(28px, 4vw, 52px); }

.hero__inner { display: grid; gap: 20px; }

.hero__main {
	display: grid;
	gap: clamp(24px, 4vw, 48px);
	align-items: center;
	background: var(--bss-wash);
	border-radius: var(--r-lg);
	padding: clamp(28px, 4vw, 56px);
	position: relative;
	overflow: hidden;
}

.hero__main::after {
	content: "";
	position: absolute;
	width: 420px; height: 420px;
	right: -140px; top: -180px;
	border-radius: 50%;
	background: radial-gradient(circle at 30% 30%, rgba(var(--bss-primary-rgb), .16), transparent 70%);
	pointer-events: none;
}

@media (min-width: 860px) {
	.hero__main { grid-template-columns: 1.05fr .95fr; }
}

.hero__copy { position: relative; z-index: 1; max-width: 34ch; }
.hero__title { margin-bottom: .35em; }
.hero__text { color: var(--ink-2); font-size: 1.05rem; max-width: 46ch; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 8px; }

.hero__media { position: relative; z-index: 1; }
.hero__media img { border-radius: var(--r); box-shadow: var(--shadow); width: 100%; object-fit: cover; }

.hero__placeholder {
	display: grid;
	place-items: center;
	gap: 12px;
	min-height: 260px;
	border: 2px dashed rgba(var(--bss-primary-rgb), .35);
	border-radius: var(--r);
	color: var(--bss-primary-deep);
	text-align: center;
	padding: 24px;
	font-size: .9rem;
}
.hero__placeholder-mark { width: 56px; height: 56px; }
.hero__placeholder-mark .logo__glyph { width: 100%; height: 100%; }
.hero__placeholder p { margin: 0; max-width: 24ch; }

.hero__promos { display: grid; gap: 20px; }
@media (min-width: 700px) { .hero__promos { grid-template-columns: 1fr 1fr; } }

.promo-tile {
	display: block;
	padding: clamp(20px, 2.4vw, 28px);
	border: 1px solid var(--line);
	border-radius: var(--r);
	background: var(--white);
	color: var(--ink);
	transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.promo-tile:hover { border-color: var(--bss-primary-soft); box-shadow: var(--shadow); transform: translateY(-2px); color: var(--ink); }

.promo-tile__title { display: block; font-family: var(--font-display); font-size: 1.15rem; font-weight: 600; }
.promo-tile__text { display: block; color: var(--muted); font-size: .95rem; margin-top: 4px; }
.promo-tile__cta { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; color: var(--bss-primary-deep); font-weight: 600; font-size: .9rem; }
.promo-tile__cta .bss-icon { width: 17px; height: 17px; transition: transform .2s ease; }
.promo-tile:hover .promo-tile__cta .bss-icon { transform: translateX(3px); }

/* ==========================================================================
   8. Promises
   ========================================================================== */

.promises__list {
	display: grid;
	gap: 4px 28px;
	list-style: none;
	margin: 0;
	padding: 20px 0;
	border-block: 1px solid var(--line);
	grid-template-columns: 1fr;
}

@media (min-width: 640px) { .promises__list { grid-template-columns: 1fr 1fr; gap: 20px 28px; } }
@media (min-width: 1000px) { .promises__list { grid-template-columns: repeat(4, 1fr); } }

.promise { display: flex; align-items: flex-start; gap: 12px; padding: 8px 0; }

.promise__icon {
	display: grid;
	place-items: center;
	width: 40px; height: 40px;
	flex: none;
	border-radius: 12px;
	background: var(--bss-wash);
	color: var(--bss-primary);
}

.promise__body { display: flex; flex-direction: column; }
.promise__body strong { font-size: .95rem; font-weight: 700; }
.promise__body em { font-style: normal; font-size: .85rem; color: var(--muted); line-height: 1.45; }

/* ==========================================================================
   9. Category tiles
   ========================================================================== */

.category-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: clamp(16px, 2vw, 28px);
	list-style: none;
	margin: 0;
	padding: 0;
}

@media (min-width: 640px) { .category-grid { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1100px) { .category-grid { grid-template-columns: repeat(8, 1fr); } }

.category-card a {
	display: grid;
	justify-items: center;
	text-align: center;
	gap: 10px;
	color: var(--ink);
}

.category-card__disc {
	display: grid;
	place-items: center;
	width: 100%;
	aspect-ratio: 1;
	border-radius: 50%;
	background: var(--bss-wash);
	color: var(--bss-primary);
	overflow: hidden;
	transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease;
}

.category-card__disc img { width: 100%; height: 100%; object-fit: cover; }
.category-card__disc .bss-icon { width: 34%; height: 34%; }

.category-card a:hover .category-card__disc { transform: translateY(-4px); box-shadow: var(--shadow); }
.category-card__name { font-weight: 600; font-size: .95rem; line-height: 1.3; }
.category-card__count { font-size: .78rem; color: var(--muted); }

/* Shop by need */

.need-list { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; margin: 0; padding: 0; }

.need-chip {
	display: inline-flex;
	padding: 10px 18px;
	border-radius: var(--r-pill);
	border: 1.5px solid var(--line);
	color: var(--ink-2);
	font-weight: 600;
	font-size: .9rem;
	background: var(--white);
	transition: border-color .18s ease, color .18s ease, background-color .18s ease;
}
.need-chip:hover { border-color: var(--bss-primary-deep); color: var(--bss-primary-deep); background: var(--bss-wash); }

/* ==========================================================================
   10. Eligibility band
   ========================================================================== */

.eligibility { background: var(--bss-wash); }

.eligibility__inner { display: grid; gap: clamp(28px, 4vw, 56px); align-items: start; }
@media (min-width: 900px) { .eligibility__inner { grid-template-columns: .9fr 1.1fr; } }

.eligibility__lead h2 { margin: 14px 0 .5em; }
.eligibility__lead p { color: var(--ink-2); max-width: 42ch; }
.eligibility__lead .btn { margin-top: 8px; }

.eligibility__steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; counter-reset: step; }

.step {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 20px;
	align-items: start;
	padding: 22px 4px;
	border-top: 1px solid rgba(var(--bss-primary-rgb), .18);
}
.step:last-child { border-bottom: 1px solid rgba(var(--bss-primary-rgb), .18); }

.step__num {
	font-family: var(--font-display);
	font-size: 1.75rem;
	font-weight: 600;
	color: var(--bss-primary);
	opacity: .85;
	line-height: 1;
	letter-spacing: -.04em;
}

.step__body h3 { margin: 0 0 .35em; font-size: 1.05rem; }
.step__body p { margin: 0; color: var(--ink-2); font-size: .95rem; }

/* ==========================================================================
   11. Newsletter
   ========================================================================== */

.newsletter__inner {
	display: grid;
	gap: clamp(24px, 3vw, 40px);
	align-items: center;
	padding: clamp(28px, 4vw, 48px);
	border-radius: var(--r-lg);
	background: var(--ink);
	color: var(--white);
}

@media (min-width: 860px) { .newsletter__inner { grid-template-columns: 1fr 1fr; } }

.newsletter__copy h2 { color: var(--white); margin-bottom: .4em; }
.newsletter__copy p { color: var(--bss-primary-soft); margin: 0; max-width: 46ch; opacity: .9; }

.signup { display: flex; gap: 10px; flex-wrap: wrap; }

.signup input[type="email"] {
	flex: 1 1 220px;
	min-width: 0;
	border: 1.5px solid rgba(255, 255, 255, .22);
	background: rgba(255, 255, 255, .08);
	color: var(--white);
	border-radius: var(--r-pill);
	padding: 14px 20px;
	font: inherit;
	font-size: .95rem;
}
.signup input[type="email"]::placeholder { color: rgba(255, 255, 255, .55); }
.signup input[type="email"]:focus { outline: none; border-color: var(--bss-primary-soft); background: rgba(255, 255, 255, .14); }

.signup__note { font-size: .78rem; color: rgba(201, 182, 245, .65); margin: 12px 0 0; }

/* ==========================================================================
   12. Posts
   ========================================================================== */

.page-header { padding-block: clamp(20px, 3vw, 36px) clamp(16px, 2vw, 24px); }
.page-header__title { margin: 10px 0 0; }
.page-header__desc { color: var(--muted); margin-top: 10px; max-width: 62ch; }
.page-header--post .entry-meta { margin-top: 14px; }

.breadcrumb {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	font-size: .82rem;
	color: var(--muted);
}
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--bss-primary-deep); }

.entry-meta { display: flex; align-items: center; gap: 8px; font-size: .8rem; color: var(--muted); margin-bottom: 8px; }
.entry-meta__sep { opacity: .5; }

.post-grid {
	display: grid;
	gap: clamp(20px, 2.6vw, 32px);
	grid-template-columns: 1fr;
	margin-bottom: 40px;
}
@media (min-width: 640px) { .post-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .post-grid { grid-template-columns: repeat(3, 1fr); } }

.post-card, .journal-card {
	display: flex;
	flex-direction: column;
	background: var(--white);
	border: 1px solid var(--line);
	border-radius: var(--r);
	overflow: hidden;
	transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.post-card:hover, .journal-card:hover { border-color: var(--bss-primary-soft); box-shadow: var(--shadow); transform: translateY(-2px); }

.post-card__media, .journal-card__media { display: block; aspect-ratio: 16 / 10; background: var(--bss-wash); overflow: hidden; }
.post-card__media img, .journal-card__media img { width: 100%; height: 100%; object-fit: cover; border-radius: 0; }

.post-card__fallback, .journal-card__fallback { display: grid; place-items: center; height: 100%; }
.post-card__fallback .logo__glyph, .journal-card__fallback .logo__glyph { width: 54px; height: 54px; opacity: .8; }

.post-card__body, .journal-card__body { padding: 20px; display: flex; flex-direction: column; flex: 1; }
.post-card__title, .journal-card__title { font-size: 1.15rem; margin: 0 0 8px; }
.post-card__title a, .journal-card__title a { color: var(--ink); }
.post-card__title a:hover, .journal-card__title a:hover { color: var(--bss-primary-deep); }
.post-card__excerpt, .journal-card__excerpt { color: var(--muted); font-size: .93rem; margin: 0 0 16px; }
.post-card__more { margin-top: auto; display: inline-flex; align-items: center; gap: 6px; color: var(--bss-primary-deep); font-weight: 600; font-size: .9rem; }

.journal-grid { display: grid; gap: clamp(20px, 2.6vw, 32px); grid-template-columns: 1fr; }
@media (min-width: 760px) { .journal-grid { grid-template-columns: repeat(3, 1fr); } }

.entry-content { font-size: 1.05rem; color: var(--ink-2); }
.entry-content h2, .entry-content h3, .entry-content h4 { color: var(--ink); margin-top: 1.6em; }
.entry-content a { text-decoration: underline; text-underline-offset: 3px; }
.entry-content img, .entry-content figure { border-radius: var(--r); }
.entry-content blockquote {
	margin: 1.6em 0;
	padding: 4px 0 4px 24px;
	border-left: 3px solid var(--bss-primary-soft);
	color: var(--ink);
	font-size: 1.1rem;
}
.entry-content ul, .entry-content ol { padding-left: 1.3em; }
.entry-content li { margin-bottom: .4em; }
.entry-content table { width: 100%; border-collapse: collapse; }
.entry-content th, .entry-content td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; }

.page-article__media, .post-article__media { margin: 0 0 clamp(24px, 3vw, 40px); border-radius: var(--r-lg); overflow: hidden; }
.page-article__media img, .post-article__media img { width: 100%; max-height: 460px; object-fit: cover; }

.tag-list { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 32px 0 0; }
.tag-list a {
	display: inline-flex;
	padding: 7px 14px;
	border-radius: var(--r-pill);
	background: var(--bss-wash);
	color: var(--bss-primary-deep);
	font-size: .82rem;
	font-weight: 600;
}

.post-nav { display: grid; gap: 16px; margin: 40px auto; padding-top: 24px; border-top: 1px solid var(--line); }
@media (min-width: 700px) { .post-nav { grid-template-columns: 1fr 1fr; } }
.post-nav a { display: grid; gap: 4px; font-weight: 600; color: var(--ink); }
.post-nav a:hover { color: var(--bss-primary-deep); }
.post-nav span { font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 700; }
.post-nav__next { text-align: right; }

.empty-state { text-align: center; padding: clamp(40px, 6vw, 80px) 20px; max-width: 520px; margin-inline: auto; }
.empty-state .search-form { margin-top: 20px; }

.error-404 { text-align: center; padding: clamp(48px, 8vw, 110px) 0; max-width: 560px; margin-inline: auto; }
.error-404__text { color: var(--muted); }
.error-404 .search-form { margin: 24px 0; }

/* Pagination */

.navigation.pagination { margin: 40px 0; }
.pagination .nav-links { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; }
.pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-width: 42px;
	height: 42px;
	padding: 0 14px;
	justify-content: center;
	border: 1px solid var(--line);
	border-radius: var(--r-pill);
	color: var(--ink-2);
	font-weight: 600;
	font-size: .9rem;
}
.pagination .page-numbers:hover { border-color: var(--bss-primary-deep); color: var(--bss-primary-deep); }
.pagination .page-numbers.current { background: var(--bss-primary-deep); border-color: var(--bss-primary-deep); color: var(--white); }
.pagination .dots { border: 0; }

/* Widgets */

.widget { margin-bottom: 32px; }
.widget__title { font-size: 1rem; margin-bottom: 14px; }
.widget ul { list-style: none; padding: 0; margin: 0; }
.widget ul li { padding: 7px 0; border-bottom: 1px solid var(--line-soft); font-size: .93rem; }
.widget ul li a { color: var(--ink-2); }
.widget ul li a:hover { color: var(--bss-primary-deep); }

/* Comments */

.comments-area { margin: 48px 0; padding-top: 32px; border-top: 1px solid var(--line); }
.comment-list { list-style: none; padding: 0; }
.comment-list .children { list-style: none; padding-left: 24px; }
.comment-body { padding: 16px 0; border-bottom: 1px solid var(--line-soft); }
.comment-form { display: grid; gap: 14px; }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea {
	width: 100%;
	border: 1.5px solid var(--line);
	border-radius: var(--r-sm);
	padding: 12px 14px;
	font: inherit;
	background: var(--paper);
}
.comment-form textarea { min-height: 140px; resize: vertical; }
.comment-form .submit {
	justify-self: start;
	background: var(--bss-primary-deep);
	color: var(--white);
	border: 0;
	border-radius: var(--r-pill);
	padding: 14px 24px;
	font: inherit;
	font-weight: 600;
	cursor: pointer;
}

/* ==========================================================================
   13. Footer
   ========================================================================== */

.site-footer { margin-top: clamp(48px, 6vw, 88px); background: var(--paper); border-top: 1px solid var(--line); }

.footer-help__inner {
	display: grid;
	gap: 24px;
	align-items: center;
	padding-block: clamp(28px, 3.5vw, 44px);
	border-bottom: 1px solid var(--line);
}
@media (min-width: 880px) { .footer-help__inner { grid-template-columns: 1fr auto; } }

.footer-help__title { margin: 0 0 6px; font-size: clamp(1.25rem, 1rem + 1vw, 1.6rem); }
.footer-help__lead p { color: var(--muted); margin: 0; max-width: 52ch; }

.footer-help__contacts { display: flex; flex-wrap: wrap; gap: 12px; }

.footer-help__item {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	padding: 14px 20px;
	background: var(--white);
	border: 1px solid var(--line);
	border-radius: var(--r);
	color: var(--ink);
	transition: border-color .18s ease, box-shadow .18s ease;
}
.footer-help__item:hover { border-color: var(--bss-primary-deep); box-shadow: var(--shadow); color: var(--ink); }
.footer-help__item .bss-icon { color: var(--bss-primary); }
.footer-help__item span { display: flex; flex-direction: column; }
.footer-help__item strong { font-size: .98rem; }
.footer-help__item em { font-style: normal; font-size: .8rem; color: var(--muted); }

.footer-main__inner { display: grid; gap: clamp(28px, 4vw, 56px); padding-block: clamp(36px, 4vw, 60px); }
@media (min-width: 980px) { .footer-main__inner { grid-template-columns: 320px 1fr; } }

.footer-brand__text { color: var(--muted); font-size: .92rem; margin: 18px 0 12px; max-width: 42ch; }
.footer-brand__address { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: .88rem; }
.footer-brand__address .bss-icon { width: 17px; height: 17px; color: var(--bss-primary); }

.social-links { display: flex; gap: 10px; list-style: none; padding: 0; margin: 18px 0 0; }
.social-links a {
	display: grid;
	place-items: center;
	width: 38px; height: 38px;
	border-radius: 50%;
	border: 1px solid var(--line);
	background: var(--white);
	color: var(--ink-2);
}
.social-links a:hover { border-color: var(--bss-primary-deep); color: var(--bss-primary-deep); }

.footer-menus { display: grid; gap: 28px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 760px) { .footer-menus { grid-template-columns: repeat(4, 1fr); } }

.footer-col__title { font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: var(--ink); margin-bottom: 14px; font-family: var(--font-body); font-weight: 700; }
.footer-col__menu { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.footer-col__menu a { color: var(--muted); font-size: .92rem; }
.footer-col__menu a:hover { color: var(--bss-primary-deep); }

.footer-trust { border-top: 1px solid var(--line); }
.footer-trust__list {
	display: flex;
	flex-wrap: wrap;
	gap: 12px 32px;
	list-style: none;
	padding: 20px 0;
	margin: 0;
	justify-content: center;
	color: var(--muted);
	font-size: .85rem;
}
.footer-trust__list li { display: inline-flex; align-items: center; gap: 8px; }
.footer-trust__list .bss-icon { width: 17px; height: 17px; color: var(--bss-eligible); }

.footer-legal { border-top: 1px solid var(--line); background: var(--white); }
.footer-legal__inner { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; justify-content: space-between; padding-top: 22px; }
.footer-legal__copy { margin: 0; font-size: .82rem; color: var(--muted); }
.footer-legal__menu { display: flex; flex-wrap: wrap; gap: 18px; list-style: none; margin: 0; padding: 0; }
.footer-legal__menu a { font-size: .82rem; color: var(--muted); }
.footer-legal__menu a:hover { color: var(--bss-primary-deep); }
.footer-legal__disclaimer { font-size: .75rem; color: var(--muted); opacity: .8; padding-bottom: 24px; margin: 12px 0 0; max-width: 90ch; }

.to-top {
	position: fixed;
	right: 20px; bottom: 20px;
	width: 46px; height: 46px;
	border-radius: 50%;
	border: 1px solid var(--line);
	background: var(--white);
	color: var(--bss-primary-deep);
	box-shadow: var(--shadow);
	cursor: pointer;
	display: grid;
	place-items: center;
	z-index: 50;
}
.to-top .bss-icon { transform: rotate(-90deg); }
.to-top[hidden] { display: none; }

/* Utility */

.no-scroll { overflow: hidden; }
