/*!
 * Hello Blog Styler – frontend
 * All selectors are scoped under .hbs so they never leak into the theme.
 * Colours / fonts / radius come from CSS variables printed from the dashboard.
 */

/* ---------- Tokens (derived) ---------- */
.hbs,
.hbs-progress {
	--hbs-accent-soft: #fdf2f8;
	--hbs-accent-soft: color-mix(in srgb, var(--hbs-accent) 10%, var(--hbs-surface));
	--hbs-shadow: 0 4px 16px -2px rgba(13, 21, 54, .06);
	--hbs-shadow: 0 4px 16px -2px color-mix(in srgb, var(--hbs-primary) 9%, transparent);
	--hbs-shadow-lg: 0 14px 30px -6px rgba(13, 21, 54, .14);
	--hbs-shadow-lg: 0 14px 30px -6px color-mix(in srgb, var(--hbs-primary) 16%, transparent);
	--hbs-tint: rgba(11, 28, 48, .06);
	--hbs-tint: color-mix(in srgb, var(--hbs-text) 7%, transparent);
	--hbs-gradient: linear-gradient(135deg, var(--hbs-accent) 0%, var(--hbs-accent-2) 100%);
}

/* ---------- Base ---------- */
.hbs {
	box-sizing: border-box;
	display: block;
	width: 100%;
	margin: 0;
	padding: 0;
	background: var(--hbs-bg);
	color: var(--hbs-text);
	font-family: var(--hbs-font);
	font-size: var(--hbs-fs);
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}
.hbs *,
.hbs *::before,
.hbs *::after { box-sizing: border-box; }
.hbs :where(h1, h2, h3, h4, h5, h6, p, ul, ol, dl, dd, figure, blockquote) { margin: 0; }
.hbs :where(ul, ol) { padding: 0; list-style: none; }
.hbs img { max-width: 100%; height: auto; border: 0; }
.hbs a { color: inherit; text-decoration: none; background: none; }
.hbs a:hover { text-decoration: none; }
.hbs a:focus-visible,
.hbs button:focus-visible,
.hbs summary:focus-visible,
.hbs select:focus-visible {
	outline: 2px solid var(--hbs-accent);
	outline-offset: 2px;
}
.hbs-sr {
	position: absolute !important;
	width: 1px; height: 1px;
	margin: -1px; padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}
.hbs .hbs-i { flex: none; vertical-align: middle; }
.hbs .hbs-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.hbs .hbs-container {
	width: 100%;
	max-width: var(--hbs-container);
	margin-inline: auto;
	padding-inline: clamp(16px, 4vw, 40px);
}
.hbs-single:not(.hbs-single--centered) .hbs-container--narrow { max-width: var(--hbs-container); }
.hbs-single--centered .hbs-container--narrow { max-width: 856px; }

.hbs .hbs-section { padding-block: clamp(28px, 4vw, 44px); }
.hbs .hbs-section__head {
	display: flex; align-items: center; justify-content: space-between;
	flex-wrap: wrap; gap: 8px 16px; margin-bottom: 20px;
}
.hbs .hbs-h2 {
	margin: 0;
	font-family: var(--hbs-font);
	font-size: clamp(20px, 2.2vw, 24px);
	font-weight: 700; line-height: 1.3; letter-spacing: -.01em;
	color: var(--hbs-text);
}
.hbs .hbs-h2--bar { display: flex; align-items: center; gap: 12px; }
.hbs .hbs-h2--bar::before {
	content: ""; width: 6px; height: 24px; border-radius: 999px; background: var(--hbs-accent); flex: none;
}
.hbs .hbs-h3 { margin: 0; font-size: 20px; font-weight: 700; color: var(--hbs-text); }
.hbs .hbs-count { margin: 0; font-size: 13px; font-weight: 600; color: var(--hbs-muted); }
.hbs .hbs-meta {
	display: inline-flex; align-items: center; gap: 6px;
	font-size: 13px; line-height: 1.4; color: var(--hbs-muted);
}
.hbs a.hbs-meta--link:hover { color: var(--hbs-accent-text); }

/* ---------- Buttons ---------- */
.hbs .hbs-btn.hbs-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: 48px; padding: 0 22px;
	border: 1.5px solid transparent; border-radius: var(--hbs-r);
	font-family: inherit; font-size: 14px; font-weight: 700; line-height: 1.2;
	text-decoration: none; text-transform: none; letter-spacing: 0;
	cursor: pointer; white-space: nowrap;
	box-shadow: none;
	transition: filter .15s ease, box-shadow .15s ease, background-color .15s ease;
}
.hbs .hbs-btn--primary.hbs-btn { background: var(--hbs-primary); color: var(--hbs-on-primary); border-color: var(--hbs-primary); }
.hbs .hbs-btn--primary.hbs-btn:hover,
.hbs .hbs-btn--primary.hbs-btn:focus { background: var(--hbs-primary); color: var(--hbs-on-primary); filter: brightness(1.25); }
.hbs .hbs-btn--accent.hbs-btn { background: var(--hbs-gradient); color: var(--hbs-on-accent); }
.hbs .hbs-btn--accent.hbs-btn:hover,
.hbs .hbs-btn--accent.hbs-btn:focus {
	background: var(--hbs-gradient); color: var(--hbs-on-accent);
	filter: brightness(1.05);
	box-shadow: 0 6px 20px rgba(230, 0, 103, .35);
	box-shadow: 0 6px 20px color-mix(in srgb, var(--hbs-accent) 38%, transparent);
}
.hbs .hbs-btn--outline.hbs-btn { background: transparent; color: var(--hbs-text); border-color: var(--hbs-text); }
.hbs .hbs-btn--soft.hbs-btn { background: var(--hbs-surface-alt); color: var(--hbs-text); border-color: transparent; }
.hbs .hbs-btn--soft.hbs-btn:hover,
.hbs .hbs-btn--soft.hbs-btn:focus { background: var(--hbs-accent-soft); color: var(--hbs-accent-text); }
.hbs .hbs-btn--wa.hbs-btn { background: #128C4A; color: #fff; border-color: #128C4A; }
.hbs .hbs-btn--wa.hbs-btn:hover,
.hbs .hbs-btn--wa.hbs-btn:focus { background: #0f7a40; color: #fff; }
.hbs .hbs-btn--sm.hbs-btn { min-height: 38px; padding: 0 14px; font-size: 13px; }
.hbs .hbs-btn--block.hbs-btn { display: flex; width: 100%; }
.hbs .hbs-btn--outline.hbs-btn:hover,
.hbs .hbs-btn--outline.hbs-btn:focus { background: var(--hbs-tint); color: var(--hbs-text); }

.hbs .hbs-link-arrow {
	display: inline-flex; align-items: center; gap: 6px;
	font-size: 14px; font-weight: 700; color: var(--hbs-accent-text);
}
.hbs .hbs-link-arrow:hover { color: var(--hbs-accent-text); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Chips, badges, pills ---------- */
.hbs .hbs-chip {
	position: relative; z-index: 2;
	display: inline-flex; align-items: center; height: 26px; padding: 0 12px;
	border-radius: 999px; background: var(--hbs-tint); color: var(--hbs-text);
	font-size: 12px; font-weight: 600; line-height: 1; text-decoration: none; white-space: nowrap;
	transition: background-color .15s ease, color .15s ease;
}
.hbs a.hbs-chip:hover { background: var(--hbs-accent-soft); color: var(--hbs-accent-text); }
.hbs .hbs-chip--accent { background: var(--hbs-accent-soft); color: var(--hbs-accent-text); }
.hbs .hbs-chip--tag { height: 30px; padding: 0 14px; gap: 8px; border: 1px solid rgba(230, 0, 103, .28); border: 1px solid color-mix(in srgb, var(--hbs-accent) 30%, transparent); background: var(--hbs-accent-soft); color: var(--hbs-accent-text); font-size: 11px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.hbs .hbs-chip--outline { height: 30px; gap: 6px; padding: 0 14px; border: 1px solid var(--hbs-border); background: var(--hbs-surface); font-size: 12px; }
.hbs .hbs-chip--ghost { background: rgba(255, 255, 255, .16); color: #fff; border: 1px solid rgba(255, 255, 255, .35); }
.hbs .hbs-chip--glass { background: rgba(255, 255, 255, .92); color: #0b1c30; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.hbs a.hbs-chip--glass:hover { background: #fff; color: #0b1c30; }

.hbs .hbs-badge {
	display: inline-flex; align-items: center; gap: 8px;
	padding: 6px 12px; border-radius: 999px;
	background: var(--hbs-surface-alt); color: var(--hbs-text);
	font-size: 12px; font-weight: 600; line-height: 1.2;
}
.hbs .hbs-badge--solid { background: var(--hbs-accent); color: var(--hbs-on-accent); font-weight: 700; }
.hbs .hbs-badge--glass { background: rgba(255, 255, 255, .12); color: var(--hbs-on-band); border: 1px solid rgba(255, 255, 255, .22); }
.hbs .hbs-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--hbs-accent); animation: hbs-pulse 2s ease-in-out infinite; }
@keyframes hbs-pulse { 50% { opacity: .35; } }

.hbs .hbs-pill {
	display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 16px;
	border-radius: 999px; border: 1px solid var(--hbs-border);
	background: var(--hbs-surface); color: var(--hbs-text);
	font-size: 14px; font-weight: 600; white-space: nowrap;
	transition: border-color .15s ease, background-color .15s ease;
}
.hbs .hbs-pill:hover { border-color: var(--hbs-accent); color: var(--hbs-text); }
.hbs .hbs-pill.is-active { background: var(--hbs-primary); border-color: var(--hbs-primary); color: var(--hbs-on-primary); }
.hbs .hbs-pill__n { font-size: 12px; font-weight: 600; opacity: .65; }

/* ---------- Form controls ---------- */
.hbs .hbs-field { position: relative; display: flex; align-items: center; }
.hbs .hbs-field__icon { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--hbs-muted); pointer-events: none; }
.hbs .hbs-field input.hbs-input[type] {
	display: block; width: 100%; height: 48px; margin: 0;
	padding: 0 16px; border: 1px solid transparent; border-radius: var(--hbs-r);
	background: var(--hbs-surface); color: var(--hbs-text);
	font-family: inherit; font-size: 15px; line-height: 1.4;
	box-shadow: inset 0 1px 2px rgba(0, 0, 0, .05);
	outline: none; -webkit-appearance: none; appearance: none;
	transition: border-color .15s ease, box-shadow .15s ease;
}
.hbs .hbs-console__search input.hbs-input[type] { padding-left: 46px; padding-right: 54px; }
.hbs .hbs-field input.hbs-input[type]::placeholder { color: var(--hbs-muted); opacity: .85; }
.hbs .hbs-field input.hbs-input[type]:focus {
	background: var(--hbs-surface); color: var(--hbs-text);
	border-color: var(--hbs-accent);
	box-shadow: 0 0 0 3px rgba(230, 0, 103, .18);
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--hbs-accent) 24%, transparent);
}
.hbs input[type="search"]::-webkit-search-cancel-button { -webkit-appearance: none; }
.hbs .hbs-kbd {
	position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
	display: inline-grid; place-items: center; min-width: 24px; height: 24px; padding: 0 6px;
	border-radius: 6px; background: var(--hbs-surface-alt); border: 1px solid var(--hbs-border);
	color: var(--hbs-muted); font-family: inherit; font-size: 12px; font-weight: 700;
	pointer-events: none;
}
.hbs .hbs-field input:focus ~ .hbs-kbd { opacity: 0; }

.hbs .hbs-select {
	position: relative; display: inline-flex; align-items: center; gap: 8px;
	height: 48px; padding: 0 14px;
	background: var(--hbs-surface); border-radius: var(--hbs-r);
	color: var(--hbs-muted);
}
.hbs .hbs-select:focus-within { outline: 2px solid var(--hbs-accent); outline-offset: 2px; }
.hbs .hbs-select select[name] {
	-webkit-appearance: none; appearance: none;
	width: auto; min-width: 0; height: 100%; margin: 0; padding: 0 22px 0 0;
	border: 0; border-radius: 0; background: transparent; box-shadow: none; outline: none;
	color: var(--hbs-text); font-family: inherit; font-size: 14px; font-weight: 600; cursor: pointer;
	max-width: 190px; text-overflow: ellipsis;
}
.hbs .hbs-select select[name] option { color: #0b1c30; background: #fff; }
.hbs .hbs-select__chev { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); pointer-events: none; }


/* ---------- Eyebrow ---------- */
.hbs .hbs-eyebrow { margin: 0 0 10px; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--hbs-accent-text); }
.hbs .hbs-select--sm { height: 38px; padding: 0 30px 0 12px; border: 1px solid var(--hbs-border); font-size: 13px; }
.hbs .hbs-select--sm select[name] { font-size: 13px; max-width: 150px; }
.hbs .hbs-select--sm .hbs-select__chev { right: 10px; }
.hbs .hbs-select__lbl { font-size: 12px; font-weight: 700; color: var(--hbs-muted); }
.hbs .hbs-listhead { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; margin: 28px 0 16px; }
.hbs .hbs-listhead:first-child { margin-top: 0; }
.hbs .hbs-listhead__tools { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }

/* ---------- Hero ---------- */
.hbs .hbs-hero { background: var(--hbs-surface); border-bottom: 1px solid var(--hbs-border); padding-block: clamp(24px, 3.5vw, 40px); }
.hbs .hbs-hero__top { margin-bottom: 16px; }
.hbs .hbs-hero__top:empty { display: none; }
.hbs .hbs-hero__grid { display: grid; gap: 24px; grid-template-columns: minmax(0, 1fr); align-items: end; }
.hbs .hbs-hero__title {
	max-width: 900px; margin: 0 0 12px;
	font-family: var(--hbs-font); font-size: clamp(28px, 4.2vw, 42px);
	font-weight: var(--hbs-hw); line-height: 1.15; letter-spacing: -.02em; color: var(--hbs-text);
}
.hbs .hbs-hero__title--post { max-width: 980px; font-size: clamp(26px, 3.2vw, 38px); line-height: 1.18; }
.hbs .hbs-hero__desc { max-width: 780px; margin: 0 0 18px; font-size: clamp(15px, 1.5vw, 17px); line-height: 1.65; color: var(--hbs-muted); }
.hbs .hbs-hero__copy .hbs-hero__desc { margin-bottom: 0; }
.hbs .hbs-hero__chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }

/* Archive hero: slim, title and description clamp to 2 lines */
.hbs .hbs-hero--archive { padding-block: clamp(18px, 3vw, 30px); }
.hbs .hbs-hero--archive .hbs-hero__top { margin-bottom: 12px; }
.hbs .hbs-hero--archive .hbs-hero__grid { gap: 16px 32px; align-items: center; }
.hbs .hbs-hero--archive .hbs-hero__copy { min-width: 0; }
.hbs .hbs-hero--archive .hbs-eyebrow { margin-bottom: 8px; }
.hbs .hbs-hero--archive .hbs-hero__title {
	max-width: 780px; margin: 0 0 8px; padding-bottom: .06em;
	font-size: clamp(26px, 4vw, 38px); line-height: 1.2;
	display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere;
}
.hbs .hbs-hero--archive .hbs-hero__desc {
	max-width: 640px; margin: 0; font-size: clamp(14.5px, 1.5vw, 16px); line-height: 1.6;
	display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

.hbs .hbs-crumbs { min-width: 0; max-width: 100%; }
.hbs .hbs-crumbs ol { display: flex; flex-wrap: nowrap; align-items: center; gap: 0 8px; min-width: 0; margin: 0; padding: 0; list-style: none; overflow: hidden; }
.hbs .hbs-crumbs li { display: inline-flex; align-items: center; flex: none; gap: 8px; margin: 0; font-size: 12.5px; font-weight: 600; line-height: 1.4; color: var(--hbs-muted); white-space: nowrap; }
.hbs .hbs-crumbs li + li::before { content: "/"; color: var(--hbs-border); font-weight: 400; }
.hbs .hbs-crumbs li:last-child { flex: 0 1 auto; min-width: 0; }
.hbs .hbs-crumbs a:hover { color: var(--hbs-text); }
.hbs .hbs-crumbs [aria-current] { display: block; min-width: 0; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--hbs-accent-text); font-weight: 700; }
@media (max-width: 639px) {
	/* Phones: show the trail up to the parent, the page title is already the H1 below. */
	.hbs .hbs-crumbs li:last-child { display: none; }
	.hbs .hbs-crumbs ol { flex-wrap: wrap; row-gap: 2px; }
}

.hbs .hbs-statbar { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.hbs .hbs-statbox { display: inline-flex; align-items: baseline; gap: 6px; margin: 0; padding: 7px 14px; border: 1px solid var(--hbs-border); border-radius: 999px; background: var(--hbs-bg); }
.hbs .hbs-statbox__v { font-size: 16px; font-weight: 800; line-height: 1.2; letter-spacing: -.01em; color: var(--hbs-text); }
.hbs .hbs-statbox__l { font-size: 12.5px; font-weight: 600; color: var(--hbs-muted); }

/* ---------- Archive layout ---------- */
html.hbs-lock { overflow: hidden; }
.hbs .hbs-archive-layout { display: block; padding-block: 20px clamp(32px, 5vw, 56px); }
.hbs .hbs-results { min-width: 0; }
.hbs .hbs-extras { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; margin-top: 32px; }
.hbs .hbs-extras .hbs-fcard { margin: 0; }

/* ---------- Sticky toolbar (search · filters · view · sort · count) ---------- */
/* Change the offset from Custom CSS if your header is taller:  .hbs { --hbs-bar-top: 72px; } */
.hbs .hbs-toolbar {
	position: sticky; z-index: 40;
	top: calc(var(--wp-admin--admin-bar--height, 0px) + var(--hbs-bar-top, 96px));
	margin: 0 0 18px; padding: 10px 0;
	background: var(--hbs-bg);
	transition: box-shadow .2s ease;
}
.hbs .hbs-toolbar.is-stuck { box-shadow: 0 12px 18px -14px rgba(13, 21, 54, .4); }
/* Cover the strip between the theme header and the stuck bar so posts never show through above it. */
.hbs .hbs-toolbar::before { content: ""; position: absolute; left: 0; right: 0; bottom: 100%; height: 0; background: var(--hbs-bg); pointer-events: none; }
.hbs .hbs-toolbar.is-stuck::before { height: 16px; }
.hbs .hbs-bar { display: grid; gap: 10px; min-width: 0; }
.hbs .hbs-bar__search { min-width: 0; }
.hbs .hbs-bar .hbs-bar__search input.hbs-input[type] {
	height: 48px; padding: 0 44px 0 46px;
	border: 1px solid var(--hbs-border); border-radius: 14px;
	background: var(--hbs-surface); box-shadow: none; font-size: 15px;
}
.hbs .hbs-bar__search .hbs-field__icon { left: 16px; color: var(--hbs-text); }
.hbs .hbs-bar__row { display: flex; align-items: center; gap: 10px; min-width: 0; }

.hbs .hbs-bar__filters.hbs-bar__filters {
	display: inline-flex; align-items: center; gap: 8px; flex: none;
	height: 48px; margin: 0; padding: 0 20px;
	border: 0; border-radius: 14px;
	background: var(--hbs-primary); color: var(--hbs-on-primary);
	font: inherit; font-size: 14px; font-weight: 700; line-height: 1; text-transform: none; letter-spacing: 0;
	box-shadow: none; cursor: pointer; transition: filter .15s ease;
}
.hbs .hbs-bar__filters.hbs-bar__filters:hover,
.hbs .hbs-bar__filters.hbs-bar__filters:focus { background: var(--hbs-primary); color: var(--hbs-on-primary); filter: brightness(1.25); }
.hbs .hbs-bar__n { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--hbs-accent); color: var(--hbs-on-accent); font-size: 11px; font-weight: 800; }

.hbs .hbs-viewtoggle { display: inline-flex; flex: none; gap: 2px; height: 48px; padding: 4px; border: 1px solid var(--hbs-border); border-radius: 14px; background: var(--hbs-surface); }
.hbs .hbs-viewtoggle button[data-hbs-view] {
	display: inline-grid; place-items: center; width: 38px; height: 38px; margin: 0; padding: 0;
	border: 0; border-radius: 10px; background: transparent; color: var(--hbs-text);
	box-shadow: none; cursor: pointer; transition: background-color .15s ease, color .15s ease;
}
.hbs .hbs-viewtoggle button[data-hbs-view]:hover { background: var(--hbs-surface-alt); color: var(--hbs-text); }
.hbs .hbs-viewtoggle button[data-hbs-view][aria-pressed="true"],
.hbs .hbs-viewtoggle button[data-hbs-view][aria-pressed="true"]:hover { background: var(--hbs-primary); color: var(--hbs-on-primary); }

.hbs .hbs-bar__select { position: relative; display: inline-flex; align-items: center; height: 48px; min-width: 0; border: 1px solid var(--hbs-border); border-radius: 14px; background: var(--hbs-surface); }
.hbs .hbs-bar__select:focus-within { outline: 2px solid var(--hbs-accent); outline-offset: 2px; }
.hbs .hbs-bar__select select[name] {
	-webkit-appearance: none; appearance: none; display: block; width: 100%; height: 100%; margin: 0; padding: 0 38px 0 16px;
	border: 0; border-radius: 0; background: transparent; box-shadow: none; outline: none;
	color: var(--hbs-text); font-family: inherit; font-size: 14px; font-weight: 700; text-overflow: ellipsis; cursor: pointer;
}
.hbs .hbs-bar__select select[name] option { color: #0b1c30; background: #fff; }
.hbs .hbs-bar__chev { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); pointer-events: none; color: var(--hbs-text); }
.hbs .hbs-bar__select--sort { flex: 1 1 auto; }
.hbs .hbs-bar__select--sm { height: 38px; border-radius: 12px; }
.hbs .hbs-bar__select--sm select[name] { padding: 0 30px 0 12px; font-size: 13px; }
.hbs .hbs-bar__select--sm .hbs-bar__chev { right: 10px; }

.hbs .hbs-bar__meta { display: flex; align-items: center; justify-content: space-between; gap: 10px 16px; min-width: 0; }
.hbs .hbs-bar__meta .hbs-count { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; }
.hbs .hbs-bar__show { display: inline-flex; align-items: center; gap: 8px; margin: 0; flex: none; }
.hbs .hbs-bar__showlbl { font-size: 13px; font-weight: 600; color: var(--hbs-muted); }

@media (min-width: 768px) {
	.hbs .hbs-bar.has-search { grid-template-columns: minmax(200px, 1fr) auto; align-items: center; }
	.hbs .hbs-bar__meta { grid-column: 1 / -1; }
	.hbs .hbs-bar__select--sort { flex: 0 0 190px; }
}
/* Once stuck, keep only what is needed so the bar stays slim. */
.hbs .hbs-toolbar.is-stuck .hbs-bar__meta { display: none; }
/* Mobile: keep the search box visible while stuck, just tighter. */
@media (max-width: 767px) {
	.hbs .hbs-toolbar.is-stuck { padding: 6px 0; }
	.hbs .hbs-toolbar.is-stuck .hbs-bar { gap: 6px; }
}

/* ---------- Filters drawer ---------- */
.hbs .hbs-drawer[hidden] { display: none; }
.hbs .hbs-drawer { position: fixed; inset: 0; z-index: 100000; display: flex; justify-content: flex-end; }
.hbs .hbs-drawer__scrim { position: absolute; inset: 0; background: rgba(13, 21, 54, .5); }
.hbs .hbs-drawer__panel { position: relative; display: flex; flex-direction: column; width: min(400px, 100%); height: 100%; background: var(--hbs-surface); color: var(--hbs-text); box-shadow: -18px 0 40px -12px rgba(13, 21, 54, .35); animation: hbs-slide .22s ease; }
@keyframes hbs-slide { from { transform: translateX(28px); opacity: 0; } }
@keyframes hbs-rise { from { transform: translateY(28px); opacity: 0; } }
.hbs .hbs-drawer__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--hbs-border); }
.hbs .hbs-drawer__title { margin: 0; font-size: 18px; font-weight: 800; color: var(--hbs-text); }
.hbs .hbs-drawer__body { flex: 1; min-height: 0; padding: 18px 20px; overflow-y: auto; overscroll-behavior: contain; display: grid; gap: 22px; align-content: start; }
.hbs .hbs-dgroup { margin: 0; padding: 0; border: 0; min-width: 0; }
.hbs .hbs-dgroup__title { display: block; width: 100%; margin: 0 0 10px; padding: 0; font-size: 14px; font-weight: 800; color: var(--hbs-text); }
.hbs .hbs-tagchecks { display: flex; flex-wrap: wrap; gap: 8px; }
.hbs .hbs-tagcheck { display: inline-flex; align-items: center; gap: 8px; margin: 0; padding: 8px 14px; border: 1px solid var(--hbs-border); border-radius: 999px; background: var(--hbs-surface); font-size: 13.5px; font-weight: 600; line-height: 1.2; cursor: pointer; transition: border-color .15s ease, background-color .15s ease; }
.hbs .hbs-tagcheck input[type="checkbox"] { flex: none; width: 16px; height: 16px; margin: 0; accent-color: var(--hbs-accent); cursor: pointer; }
.hbs .hbs-tagcheck:hover { border-color: var(--hbs-accent); }
.hbs .hbs-tagcheck:has(input:checked) { border-color: var(--hbs-accent); background: var(--hbs-accent-soft); color: var(--hbs-accent-text); }
.hbs .hbs-drawer__foot { display: flex; gap: 10px; padding: 14px 20px calc(14px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--hbs-border); }
.hbs .hbs-drawer__foot .hbs-btn.hbs-btn { flex: 1; min-height: 46px; }
@media (max-width: 639px) {
	.hbs .hbs-drawer { align-items: flex-end; }
	.hbs .hbs-drawer__panel { width: 100%; height: auto; max-height: 86vh; border-radius: 20px 20px 0 0; box-shadow: 0 -18px 40px -12px rgba(13, 21, 54, .35); animation-name: hbs-rise; }
}

/* ---------- Filter sidebar cards ---------- */
.hbs .hbs-fcard { display: block; min-width: 0; margin: 0 0 16px; padding: 18px; background: var(--hbs-surface); border: 1px solid var(--hbs-border); border-radius: var(--hbs-r-lg); box-shadow: var(--hbs-shadow); }
.hbs .hbs-fcard__title { margin: 0 0 12px; font-family: var(--hbs-font); font-size: 15px; font-weight: 700; line-height: 1.3; color: var(--hbs-text); }
.hbs .hbs-fcard__title--icon { display: flex; align-items: center; gap: 8px; }
.hbs .hbs-fcard__label { padding: 0; margin: 0 0 10px; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--hbs-muted); }
.hbs .hbs-fcard p { margin: 0 0 12px; font-size: 13.5px; color: var(--hbs-muted); }
.hbs .hbs-fcard--collapse summary { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; cursor: pointer; list-style: none; }
.hbs .hbs-fcard--collapse summary::-webkit-details-marker { display: none; }
.hbs .hbs-fcard--collapse summary .hbs-fcard__title { margin: 0; }
.hbs .hbs-fcard__chev { margin-left: auto; color: var(--hbs-muted); transition: transform .2s ease; }
.hbs .hbs-fcard--collapse:not([open]) .hbs-fcard__chev { transform: rotate(-90deg); }
.hbs .hbs-fcard--collapse:not([open]) summary { margin-bottom: 0; }
.hbs .hbs-reset { margin-left: auto; font-size: 12px; font-weight: 700; color: var(--hbs-accent-text); }
.hbs .hbs-reset + .hbs-fcard__chev { margin-left: 0; }
.hbs .hbs-reset:hover { text-decoration: underline; }

.hbs .hbs-searchbox input.hbs-input[type] { height: 44px; padding: 0 40px 0 40px; background: var(--hbs-surface-alt); border-color: transparent; box-shadow: none; font-size: 14px; }
.hbs .hbs-searchbox .hbs-field__icon { left: 13px; }
.hbs .hbs-searchbox .hbs-kbd { right: 10px; }

.hbs .hbs-catlist { margin: 0; padding: 0; list-style: none; display: grid; gap: 2px; }
.hbs .hbs-catlist li { margin: 0; }
.hbs .hbs-catlist a { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: var(--hbs-r); font-size: 13.5px; font-weight: 600; color: var(--hbs-text); transition: background-color .15s ease; }
.hbs .hbs-catlist a .hbs-i { color: var(--hbs-muted); }
.hbs .hbs-catlist a:hover { background: var(--hbs-surface-alt); color: var(--hbs-text); }
.hbs .hbs-catlist__name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hbs .hbs-catlist__n { padding: 1px 8px; border-radius: 999px; background: var(--hbs-surface-alt); font-size: 11px; font-weight: 700; color: var(--hbs-muted); }
.hbs .hbs-catlist a.is-active { background: var(--hbs-primary); color: var(--hbs-on-primary); }
.hbs .hbs-catlist a.is-active .hbs-i { color: inherit; }
.hbs .hbs-catlist a.is-active .hbs-catlist__n { background: rgba(255, 255, 255, .18); color: inherit; }

.hbs fieldset.hbs-fcard { min-width: 0; }
.hbs .hbs-check { display: flex; align-items: center; gap: 10px; padding: 6px 0; margin: 0; font-size: 13.5px; font-weight: 500; line-height: 1.3; cursor: pointer; }
.hbs .hbs-check input[type="checkbox"] { flex: none; width: 18px; height: 18px; margin: 0; accent-color: var(--hbs-accent); cursor: pointer; }
.hbs .hbs-apply.hbs-btn { width: 100%; min-height: 40px; margin-top: 10px; }
.hbs.hbs-js .hbs-apply.hbs-btn { display: none; }

.hbs .hbs-fcard--dark { background: var(--hbs-band); background: linear-gradient(160deg, var(--hbs-band), color-mix(in srgb, var(--hbs-band) 78%, var(--hbs-accent))); border-color: transparent; color: var(--hbs-on-band); }
.hbs .hbs-fcard--dark .hbs-fcard__title { color: var(--hbs-on-band); }
.hbs .hbs-fcard--dark p { color: var(--hbs-on-band); opacity: .8; }
.hbs .hbs-fcard--dark .hbs-field input.hbs-input[type] { height: 44px; margin-bottom: 10px; background: rgba(255, 255, 255, .1); color: #fff; border: 1px solid rgba(255, 255, 255, .22); box-shadow: none; font-size: 14px; }
.hbs .hbs-fcard--dark .hbs-field input.hbs-input[type]::placeholder { color: rgba(255, 255, 255, .6); }
.hbs .hbs-fcard--promo { background: var(--hbs-accent-soft); border-color: rgba(230, 0, 103, .22); border-color: color-mix(in srgb, var(--hbs-accent) 25%, transparent); box-shadow: none; }

.hbs .hbs-contrib__who { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-bottom: 10px; }
.hbs .hbs-contrib__name { margin: 0 !important; font-size: 15px !important; font-weight: 700; color: var(--hbs-text) !important; }
.hbs .hbs-contrib__role { margin: 0 !important; font-size: 12px !important; font-weight: 600; color: var(--hbs-accent-text) !important; }
.hbs .hbs-contrib__bio { font-size: 13px !important; line-height: 1.55; }
.hbs .hbs-avatar--md { width: 52px; height: 52px; }
.hbs .hbs-avatar--sm { width: 26px; height: 26px; }

.hbs .hbs-tagpill { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; height: 26px; padding: 0 10px; border: 1px solid rgba(230, 0, 103, .22); border: 1px solid color-mix(in srgb, var(--hbs-accent) 25%, transparent); border-radius: 999px; background: var(--hbs-accent-soft); color: var(--hbs-accent-text); font-size: 11.5px; font-weight: 700; white-space: nowrap; }

/* ---------- Feature card (compact, image beside text) ---------- */
.hbs .hbs-fc { position: relative; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); margin-bottom: 20px; overflow: hidden; background: var(--hbs-surface); border: 1px solid var(--hbs-border); border-radius: var(--hbs-r-lg); transition: box-shadow .2s ease, border-color .2s ease; }
.hbs.hbs-card-elevated .hbs-fc { box-shadow: var(--hbs-shadow); }
.hbs.hbs-card-flat .hbs-fc { background: var(--hbs-surface-alt); border-color: transparent; }
.hbs .hbs-fc:hover { box-shadow: var(--hbs-shadow-lg); }
.hbs .hbs-fc__media { position: relative; min-height: 220px; overflow: hidden; background: var(--hbs-surface-alt); }
.hbs .hbs-fc__img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.hbs .hbs-fc:hover .hbs-fc__img { transform: scale(1.03); }
.hbs .hbs-fc__flag { position: absolute; top: 12px; left: 12px; z-index: 2; }
.hbs .hbs-fc__body { display: flex; flex-direction: column; justify-content: center; gap: 10px; min-width: 0; padding: clamp(16px, 2.4vw, 26px); }
.hbs .hbs-fc__chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.hbs .hbs-fc__chips:empty { display: none; }
.hbs .hbs-fc__title { margin: 0; font-family: var(--hbs-font); font-size: clamp(19px, 2.2vw, 24px); font-weight: 800; line-height: 1.25; letter-spacing: -.015em; color: var(--hbs-text); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.hbs .hbs-fc__title a { color: inherit; text-decoration: none; }
.hbs .hbs-fc__title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.hbs .hbs-fc:hover .hbs-fc__title a,
.hbs .hbs-fc__title a:focus-visible { color: var(--hbs-accent-text); }
.hbs .hbs-fc__title a:focus-visible { outline: none; }
.hbs .hbs-fc__title a:focus-visible::after { outline: 2px solid var(--hbs-accent); outline-offset: -3px; border-radius: var(--hbs-r-lg); }
.hbs .hbs-fc__excerpt { margin: 0; font-size: 14.5px; line-height: 1.6; color: var(--hbs-muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hbs .hbs-fc__meta { display: flex; flex-wrap: wrap; margin: 0; padding: 0; list-style: none; font-size: 12.5px; color: var(--hbs-muted); }
.hbs .hbs-fc__meta li { margin: 0; }
.hbs .hbs-fc__meta li + li::before { content: "•"; margin: 0 8px; opacity: .5; }
.hbs .hbs-fc__actions { position: relative; z-index: 2; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }

/* ---------- Grid / list cards (the toggle swaps the class on .hbs-posts) ---------- */
.hbs .hbs-posts { display: grid; gap: 16px; }
.hbs .hbs-posts--grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.hbs .hbs-posts--list { grid-template-columns: minmax(0, 1fr); gap: 12px; }

.hbs .hbs-gc { position: relative; display: flex; flex-direction: column; min-width: 0; overflow: hidden; background: var(--hbs-surface); border: 1px solid var(--hbs-border); border-radius: var(--hbs-r-lg); transition: box-shadow .2s ease, border-color .2s ease; }
.hbs.hbs-card-elevated .hbs-gc { box-shadow: var(--hbs-shadow); }
.hbs.hbs-card-flat .hbs-gc { background: var(--hbs-surface-alt); border-color: transparent; }
.hbs .hbs-gc:hover { box-shadow: var(--hbs-shadow-lg); border-color: rgba(230, 0, 103, .3); border-color: color-mix(in srgb, var(--hbs-accent) 30%, var(--hbs-border)); }
.hbs .hbs-gc__media { position: relative; flex: none; overflow: hidden; aspect-ratio: 16 / 9; background: var(--hbs-surface-alt); }
.hbs .hbs-gc--noimg .hbs-gc__media { aspect-ratio: 16 / 5; }
.hbs .hbs-gc__img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.hbs .hbs-gc:hover .hbs-gc__img { transform: scale(1.04); }
.hbs .hbs-ph { display: grid; place-items: center; width: 100%; height: 100%; min-height: 60px; background: linear-gradient(135deg, var(--hbs-accent-soft), var(--hbs-surface-alt)); color: var(--hbs-accent-text); }
.hbs .hbs-gc__body { display: flex; flex-direction: column; flex: 1; gap: 8px; min-width: 0; padding: 14px 16px; }
.hbs .hbs-gc__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; min-width: 0; }
.hbs .hbs-gc__meta .hbs-chip { height: 22px; padding: 0 10px; font-size: 11.5px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.hbs .hbs-gc__title { margin: 0; font-family: var(--hbs-font); font-size: 16px; font-weight: 700; line-height: 1.35; letter-spacing: -.005em; color: var(--hbs-text); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.hbs .hbs-gc__title a { color: inherit; text-decoration: none; }
.hbs .hbs-gc__title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.hbs .hbs-gc:hover .hbs-gc__title a,
.hbs .hbs-gc__title a:focus-visible { color: var(--hbs-accent-text); }
.hbs .hbs-gc__title a:focus-visible { outline: none; }
.hbs .hbs-gc__title a:focus-visible::after { outline: 2px solid var(--hbs-accent); outline-offset: -3px; border-radius: var(--hbs-r-lg); }
.hbs .hbs-gc__excerpt { margin: 0; font-size: 13.5px; line-height: 1.55; color: var(--hbs-muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hbs .hbs-gc__foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 10px; border-top: 1px solid var(--hbs-border); }
.hbs .hbs-more { display: inline-flex; align-items: center; gap: 4px; margin-left: auto; font-size: 13px; font-weight: 700; color: var(--hbs-accent-text); white-space: nowrap; }
.hbs .hbs-avatar { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; flex: none; background: var(--hbs-surface-alt); }
.hbs .hbs-avatar--lg { width: 80px; height: 80px; }

/* List view: slim row, image on the left */
.hbs .hbs-posts--list .hbs-gc { flex-direction: row; align-items: stretch; }
.hbs .hbs-posts--list .hbs-gc__media { width: 200px; aspect-ratio: auto; min-height: 128px; }
.hbs .hbs-posts--list .hbs-gc--noimg .hbs-gc__media { width: 72px; aspect-ratio: auto; }
.hbs .hbs-posts--list .hbs-gc__body { justify-content: center; padding: 12px 18px; gap: 6px; }
.hbs .hbs-posts--list .hbs-gc__title { font-size: 17px; }
.hbs .hbs-posts--list .hbs-gc__foot { margin-top: 2px; padding-top: 0; border-top: 0; justify-content: flex-start; gap: 14px; }

.hbs .hbs-empty { display: grid; justify-items: center; gap: 12px; padding: 56px 24px; text-align: center; border: 1px dashed var(--hbs-border); border-radius: var(--hbs-r-lg); background: var(--hbs-surface); color: var(--hbs-muted); }

/* ---------- Pagination ---------- */
.hbs .hbs-pagination { margin-top: 32px; }
.hbs .hbs-pagination ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 0; padding: 0; list-style: none; }
.hbs .hbs-pagination .page-numbers {
	display: inline-grid; place-items: center; min-width: 42px; height: 42px; padding: 0 12px;
	border: 1px solid var(--hbs-border); border-radius: var(--hbs-r);
	background: var(--hbs-surface); color: var(--hbs-text);
	font-size: 14px; font-weight: 700; line-height: 1; text-decoration: none;
	transition: border-color .15s ease, background-color .15s ease;
}
.hbs .hbs-pagination a.page-numbers:hover { border-color: var(--hbs-accent); color: var(--hbs-accent-text); }
.hbs .hbs-pagination .page-numbers.current { background: var(--hbs-primary); border-color: var(--hbs-primary); color: var(--hbs-on-primary); }
.hbs .hbs-pagination .page-numbers.dots { border-color: transparent; background: transparent; }

/* ---------- Newsletter band & CTA ---------- */
.hbs .hbs-band { padding-block: clamp(24px, 4vw, 48px); }
.hbs .hbs-band__inner {
	display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); align-items: center; gap: 32px;
	padding: clamp(28px, 4vw, 56px); border-radius: var(--hbs-r-lg);
	background: var(--hbs-band);
	background: linear-gradient(135deg, var(--hbs-band) 0%, var(--hbs-band) 55%, color-mix(in srgb, var(--hbs-band) 70%, var(--hbs-accent)) 100%);
	color: var(--hbs-on-band);
	position: relative; overflow: hidden;
}
.hbs .hbs-band__copy { display: grid; gap: 14px; justify-items: start; }
.hbs .hbs-band__title { margin: 0; font-family: var(--hbs-font); font-size: clamp(24px, 3vw, 34px); font-weight: 800; line-height: 1.2; letter-spacing: -.02em; color: var(--hbs-on-band); }
.hbs .hbs-band__copy p { margin: 0; max-width: 52ch; font-size: 16px; line-height: 1.6; color: var(--hbs-on-band); opacity: .85; }
.hbs .hbs-nl__row { display: flex; gap: 8px; padding: 8px; border-radius: var(--hbs-r-lg); background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .2); }
.hbs .hbs-nl__row input.hbs-input[type] { flex: 1; min-width: 0; height: 48px; background: #fff; color: #0b1c30; border-radius: var(--hbs-r); }
.hbs .hbs-nl__row input.hbs-input[type]::placeholder { color: #64748b; }
.hbs .hbs-band__note { margin: 10px 0 0; font-size: 12px; opacity: .75; color: var(--hbs-on-band); }
.hbs .hbs-nl__msg { margin: 12px 0 0; padding: 10px 14px; border-radius: var(--hbs-r); font-size: 14px; font-weight: 600; background: rgba(255, 255, 255, .14); color: var(--hbs-on-band); }
.hbs .hbs-nl__msg--ok { background: rgba(16, 185, 129, .22); }
.hbs .hbs-nl__msg--invalid,
.hbs .hbs-nl__msg--limit { background: rgba(244, 63, 94, .28); }
.hbs .hbs-band__shortcode input[type="email"],
.hbs .hbs-band__shortcode input[type="text"] { max-width: 100%; }

.hbs .hbs-cta { padding-block: 0 clamp(32px, 5vw, 56px); }
.hbs .hbs-cta__inner {
	display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 32px;
	padding: 24px 28px; background: var(--hbs-surface); border: 1px solid var(--hbs-border); border-radius: var(--hbs-r-lg); box-shadow: var(--hbs-shadow);
}
.hbs .hbs-cta__title { margin: 0 0 4px; font-family: var(--hbs-font); font-size: 20px; font-weight: 700; line-height: 1.3; color: var(--hbs-text); }
.hbs .hbs-cta__copy p { margin: 0; color: var(--hbs-muted); font-size: 15px; }
.hbs .hbs-cta__actions { display: flex; flex-wrap: wrap; gap: 12px; }


/* ---------- Single post ---------- */
.hbs-progress { position: fixed; top: var(--wp-admin--admin-bar--height, 0px); left: 0; right: 0; height: 3px; z-index: 99999; pointer-events: none; }
.hbs-progress span { display: block; height: 100%; width: 100%; transform: scaleX(0); transform-origin: 0 50%; background: linear-gradient(90deg, var(--hbs-accent), var(--hbs-accent-2)); }

.hbs .hbs-hero--single { padding-block: clamp(22px, 3vw, 34px) clamp(18px, 2.5vw, 26px); border-bottom: 0; background: var(--hbs-bg); }
.hbs .hbs-hero--single .hbs-hero__desc { max-width: 900px; margin-bottom: 18px; font-size: 16px; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

.hbs .hbs-authorbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 20px; padding: 12px 16px; background: var(--hbs-surface); border: 1px solid var(--hbs-border); border-radius: var(--hbs-r-lg); box-shadow: none; }
.hbs .hbs-authorbar__who { display: flex; align-items: center; gap: 14px; min-width: 0; }
.hbs .hbs-authorbar__text { min-width: 0; }
.hbs .hbs-authorbar__text p { margin: 0; }
.hbs .hbs-authorbar__name { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-size: 15px; font-weight: 800; color: var(--hbs-text); }
.hbs .hbs-authorbar__name a:hover { color: var(--hbs-accent-text); }
.hbs .hbs-verified { display: inline-flex; align-items: center; gap: 4px; padding: 2px 9px; border-radius: 999px; background: var(--hbs-accent-soft); color: var(--hbs-accent-text); font-size: 11px; font-weight: 700; }
.hbs .hbs-authorbar__role { font-size: 12.5px; color: var(--hbs-muted); }
.hbs .hbs-dotlist { display: flex; flex-wrap: wrap; margin: 2px 0 0; padding: 0; list-style: none; font-size: 12.5px; color: var(--hbs-muted); }
.hbs .hbs-dotlist li { margin: 0; }
.hbs .hbs-dotlist li + li::before { content: "•"; margin: 0 8px; opacity: .5; }
.hbs .hbs-dotlist__hl { font-weight: 700; color: var(--hbs-accent-text); }
.hbs .hbs-dotlist a:hover { color: var(--hbs-accent-text); }
.hbs .hbs-authorbar__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.hbs .hbs-iconbtn.hbs-iconbtn { display: inline-grid; place-items: center; width: 38px; height: 38px; padding: 0; border: 1px solid var(--hbs-border); border-radius: var(--hbs-r); background: var(--hbs-surface); color: var(--hbs-text); cursor: pointer; box-shadow: none; transition: background-color .15s ease, color .15s ease, border-color .15s ease; }
.hbs .hbs-iconbtn.hbs-iconbtn:hover,
.hbs .hbs-iconbtn.hbs-iconbtn:focus { background: var(--hbs-primary); border-color: var(--hbs-primary); color: var(--hbs-on-primary); }

.hbs .hbs-heroimg { position: relative; margin: 0; overflow: hidden; border-radius: var(--hbs-r-lg); background: var(--hbs-band); box-shadow: var(--hbs-shadow-lg); }
.hbs .hbs-heroimg__img { display: block; width: 100%; height: clamp(200px, 32vw, 380px); object-fit: cover; }
.hbs .hbs-heroimg figcaption { position: absolute; left: 0; right: 0; bottom: 0; display: grid; gap: 2px; padding: 56px clamp(16px, 3vw, 28px) clamp(14px, 2vw, 22px); background: linear-gradient(to top, rgba(13, 21, 54, .88), rgba(13, 21, 54, 0)); color: #fff; font-size: 14px; line-height: 1.45; }
.hbs .hbs-heroimg figcaption strong { font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }

.hbs .hbs-post-layout { display: grid; align-items: start; gap: 28px 40px; padding-block: clamp(24px, 3vw, 36px) clamp(32px, 5vw, 56px); }
.hbs .hbs-post-layout.is-rail-left { grid-template-columns: 320px minmax(0, 1fr); grid-template-areas: "rail article"; }
.hbs .hbs-post-layout.is-rail-right { grid-template-columns: minmax(0, 1fr) 320px; grid-template-areas: "article rail"; }
.hbs .hbs-post-layout.is-centered { display: block; }
.hbs .hbs-post-layout.is-centered .hbs-article { max-width: 760px; margin-inline: auto; }
.hbs .hbs-article { grid-area: article; min-width: 0; }
.hbs .hbs-rail { grid-area: rail; min-width: 0; }
.hbs-single--centered .hbs-hero .hbs-container { max-width: 856px; }

/* Rail */
/* The rail stretches to the full height of the article so the inner wrapper has room to stick. */
.hbs .hbs-rail { align-self: stretch; }
.hbs .hbs-rail__sticky { --hbs-sticky-top: 100px; position: sticky; top: calc(var(--wp-admin--admin-bar--height, 0px) + var(--hbs-sticky-top)); display: grid; gap: 16px; max-height: calc(100vh - var(--wp-admin--admin-bar--height, 0px) - var(--hbs-sticky-top) - 20px); overflow-y: auto; overscroll-behavior: contain; padding: 2px 4px 4px 2px; margin: -2px -4px -4px -2px; scrollbar-width: thin; }

.hbs .hbs-toc { background: var(--hbs-surface); border: 1px solid var(--hbs-border); border-radius: var(--hbs-r-lg); box-shadow: var(--hbs-shadow); }
.hbs .hbs-toc summary { display: flex; align-items: center; gap: 10px; padding: 16px 18px; font-size: 15px; font-weight: 800; color: var(--hbs-text); cursor: pointer; list-style: none; }
.hbs .hbs-toc summary::-webkit-details-marker { display: none; }
.hbs .hbs-toc summary::marker { content: ""; }
.hbs .hbs-toc ol { display: grid; gap: 4px; margin: 0; padding: 0 12px 14px; list-style: none; }
.hbs .hbs-toc li { margin: 0; }
.hbs .hbs-toc a { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border: 1px solid transparent; border-radius: var(--hbs-r); font-size: 13.5px; font-weight: 600; line-height: 1.35; color: var(--hbs-text); transition: background-color .15s ease, border-color .15s ease; }
.hbs .hbs-toc a:hover { background: var(--hbs-surface-alt); }
.hbs .hbs-toc__n { display: inline-grid; place-items: center; flex: none; width: 28px; height: 28px; border-radius: var(--hbs-r-sm); background: var(--hbs-surface-alt); font-size: 11px; font-weight: 800; color: var(--hbs-muted); }
.hbs .hbs-toc__t { flex: 1; min-width: 0; }
.hbs .hbs-toc__go { color: var(--hbs-muted); opacity: .6; }
.hbs .hbs-toc li.is-active a { background: var(--hbs-accent-soft); border-color: rgba(230, 0, 103, .3); border-color: color-mix(in srgb, var(--hbs-accent) 32%, transparent); }
.hbs .hbs-toc li.is-active .hbs-toc__n { background: var(--hbs-accent); color: var(--hbs-on-accent); }
.hbs .hbs-toc li.is-active .hbs-toc__go { color: var(--hbs-accent-text); opacity: 1; }
.hbs .hbs-toc-inline { margin-bottom: 28px; }
.hbs .hbs-pillcount { margin-left: auto; padding: 3px 10px; border-radius: 999px; background: var(--hbs-surface-alt); font-size: 11px; font-weight: 700; color: var(--hbs-muted); white-space: nowrap; }
.hbs .hbs-pillcount--accent { background: var(--hbs-accent-soft); color: var(--hbs-accent-text); }

.hbs .hbs-takeaways { background: var(--hbs-surface); border: 1px solid var(--hbs-border); border-radius: var(--hbs-r-lg); box-shadow: var(--hbs-shadow); padding: 16px 18px 6px; }
.hbs .hbs-takeaways__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.hbs .hbs-takeaways h2 { display: flex; align-items: center; gap: 8px; margin: 0; font-family: var(--hbs-font); font-size: 15px; font-weight: 800; color: var(--hbs-text); }
.hbs .hbs-takeaways h2 .hbs-i { color: var(--hbs-accent-text); }
.hbs .hbs-takeaways ul { margin: 0; padding: 0; list-style: none; }
.hbs .hbs-takeaways li { display: flex; gap: 10px; margin: 0 0 12px; font-size: 13px; line-height: 1.55; color: var(--hbs-text); }
.hbs .hbs-takeaways__tick { flex: none; width: 20px; height: 20px; padding: 3px; margin-top: 1px; border-radius: 50%; background: var(--hbs-accent-soft); color: var(--hbs-accent-text); }
.hbs .hbs-takeaways strong { font-weight: 800; }

.hbs .hbs-railcta { display: grid; gap: 12px; padding: 22px; border-radius: var(--hbs-r-lg); background: var(--hbs-band); background: linear-gradient(160deg, var(--hbs-band), color-mix(in srgb, var(--hbs-band) 76%, var(--hbs-accent))); color: var(--hbs-on-band); box-shadow: var(--hbs-shadow-lg); }
.hbs .hbs-railcta__badge { justify-self: start; padding: 4px 10px; border: 1px solid rgba(255, 255, 255, .3); border-radius: 999px; font-size: 10.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--hbs-on-band); }
.hbs .hbs-railcta h2 { margin: 0; font-family: var(--hbs-font); font-size: 22px; font-weight: 800; line-height: 1.2; letter-spacing: -.01em; color: var(--hbs-on-band); }
.hbs .hbs-railcta p { margin: 0 0 4px; font-size: 13.5px; line-height: 1.6; color: var(--hbs-on-band); opacity: .8; }

/* Content typography */
.hbs .hbs-content { font-size: calc(var(--hbs-fs) * 1.0625); line-height: 1.78; color: var(--hbs-text); overflow-wrap: break-word; word-wrap: break-word; }
.hbs .hbs-content > * { max-width: 100%; }
.hbs .hbs-content > * + * { margin-top: 1.15em; }
.hbs .hbs-content h2,
.hbs .hbs-content h3,
.hbs .hbs-content h4 { font-family: var(--hbs-font); color: var(--hbs-text); line-height: 1.3; letter-spacing: -.015em; scroll-margin-top: calc(var(--wp-admin--admin-bar--height, 0px) + 90px); }
.hbs .hbs-content h2 { margin-top: 2em; font-size: 1.65em; font-weight: 800; }
.hbs .hbs-content h3 { margin-top: 1.7em; font-size: 1.3em; font-weight: 700; }
.hbs .hbs-content h4 { margin-top: 1.5em; font-size: 1.1em; font-weight: 700; }
.hbs .hbs-content .hbs-chapter { display: block; margin-top: 2.4em; font-size: 11.5px; font-weight: 800; line-height: 1; letter-spacing: .1em; text-transform: uppercase; color: var(--hbs-accent-text); }
.hbs .hbs-content .hbs-chapter + h2 { margin-top: .45em; }
.hbs .hbs-content > .hbs-chapter:first-child { margin-top: 0; }
.hbs .hbs-content h2 + *, .hbs .hbs-content h3 + *, .hbs .hbs-content h4 + * { margin-top: .6em; }
.hbs .hbs-content p { margin-bottom: 0; }
.hbs .hbs-content a { color: var(--hbs-accent-text); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.hbs .hbs-content a:hover { text-decoration-thickness: 2px; }
.hbs .hbs-content ul,
.hbs .hbs-content ol { padding-left: 1.5em; }
.hbs .hbs-content ul { list-style: disc; }
.hbs .hbs-content ol { list-style: decimal; }
.hbs .hbs-content li + li { margin-top: .4em; }
.hbs .hbs-content li::marker { color: var(--hbs-accent); }

.hbs .hbs-content blockquote {
	position: relative; margin-inline: 0; padding: 24px 26px 24px 70px;
	border: 1px solid rgba(230, 0, 103, .2); border: 1px solid color-mix(in srgb, var(--hbs-accent) 20%, transparent);
	border-left: 4px solid var(--hbs-accent); border-radius: var(--hbs-r);
	background: var(--hbs-accent-soft); color: var(--hbs-text);
	font-size: 1.05em; font-style: italic; font-weight: 500; line-height: 1.7;
}
.hbs .hbs-content blockquote::before { content: "\201C"; position: absolute; left: 22px; top: 12px; font-family: Georgia, serif; font-size: 64px; font-style: normal; line-height: 1; color: var(--hbs-accent); opacity: .45; }
.hbs .hbs-content blockquote p { margin: 0; }
.hbs .hbs-content blockquote cite { display: block; margin-top: 14px; font-size: 11.5px; font-style: normal; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--hbs-accent-text); }

.hbs .hbs-content img,
.hbs .hbs-content video,
.hbs .hbs-content iframe { max-width: 100%; border-radius: var(--hbs-r); }
.hbs .hbs-content figure { margin-inline: 0; }
.hbs .hbs-content figcaption { margin-top: 8px; font-size: 13px; color: var(--hbs-muted); }
.hbs .hbs-content hr { border: 0; border-top: 1px solid var(--hbs-border); margin-block: 2em; }

.hbs .hbs-content .hbs-table { overflow-x: auto; background: var(--hbs-surface); border: 1px solid var(--hbs-border); border-radius: var(--hbs-r-lg); box-shadow: var(--hbs-shadow); }
.hbs .hbs-content .wp-block-table { margin: 0; }
.hbs .hbs-content table { width: 100%; min-width: 520px; margin: 0; border-collapse: collapse; font-size: 14px; line-height: 1.5; }
.hbs .hbs-content th { padding: 12px 16px; border: 0; border-bottom: 1px solid var(--hbs-border); background: var(--hbs-surface-alt); font-size: 11px; font-weight: 800; letter-spacing: .07em; text-align: left; text-transform: uppercase; color: var(--hbs-muted); }
.hbs .hbs-content td { padding: 12px 16px; border: 0; border-bottom: 1px solid var(--hbs-border); text-align: left; vertical-align: top; }
.hbs .hbs-content tbody tr:last-child td { border-bottom: 0; }
.hbs .hbs-content tbody td:first-child { font-weight: 700; }
.hbs .hbs-content tbody tr:hover td { background: var(--hbs-bg); }

.hbs .hbs-content code { padding: 2px 6px; border-radius: var(--hbs-r-sm); background: var(--hbs-surface-alt); font-size: .88em; }
.hbs .hbs-content pre { padding: 18px 20px; overflow-x: auto; border-radius: var(--hbs-r); background: var(--hbs-band); color: var(--hbs-on-band); font-size: .88em; line-height: 1.6; }
.hbs .hbs-content pre code { padding: 0; background: none; color: inherit; }
.hbs .hbs-pagelinks { display: flex; gap: 8px; margin-top: 24px; font-weight: 700; }

.hbs .hbs-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 32px; color: var(--hbs-muted); }

.hbs .hbs-share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--hbs-border); }
.hbs .hbs-share__label { margin-right: 6px; font-size: 13px; font-weight: 700; color: var(--hbs-muted); }
.hbs .hbs-share .hbs-share__btn { display: inline-grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 1px solid var(--hbs-border); border-radius: 50%; background: var(--hbs-surface); color: var(--hbs-text); cursor: pointer; transition: background-color .15s ease, color .15s ease, border-color .15s ease; }
.hbs .hbs-share .hbs-share__btn:hover,
.hbs .hbs-share .hbs-share__btn:focus { background: var(--hbs-primary); border-color: var(--hbs-primary); color: var(--hbs-on-primary); }
.hbs .hbs-share__status { font-size: 13px; font-weight: 600; color: var(--hbs-accent-text); }

.hbs .hbs-authorbox { display: flex; gap: 20px; align-items: flex-start; margin-top: 32px; padding: 24px; border-radius: var(--hbs-r-lg); background: var(--hbs-surface-alt); }
.hbs .hbs-authorbox__label { margin: 0 0 2px; font-size: 12px; font-weight: 600; color: var(--hbs-muted); }
.hbs .hbs-authorbox__name { margin: 0 0 2px; font-size: 18px; font-weight: 800; }
.hbs .hbs-authorbox__name a:hover { color: var(--hbs-accent-text); }
.hbs .hbs-authorbox__role { margin: 0 0 6px; font-size: 13px; font-weight: 600; color: var(--hbs-accent-text); }
.hbs .hbs-authorbox__bio { margin: 0; font-size: 15px; color: var(--hbs-muted); }

.hbs .hbs-prevnext { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 32px; }
.hbs .hbs-prevnext__item { display: grid; gap: 6px; padding: 16px 18px; border: 1px solid var(--hbs-border); border-radius: var(--hbs-r-lg); background: var(--hbs-surface); transition: border-color .15s ease; }
.hbs .hbs-prevnext__item:hover { border-color: var(--hbs-accent); }
.hbs .hbs-prevnext__item--next { text-align: right; grid-column: 2; }
.hbs .hbs-prevnext__item--next .hbs-prevnext__dir { justify-content: flex-end; }
.hbs .hbs-prevnext__dir { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: var(--hbs-accent-text); }
.hbs .hbs-prevnext__title { font-size: 15px; font-weight: 700; line-height: 1.4; color: var(--hbs-text); }

.hbs .hbs-related { background: var(--hbs-surface-alt); }

/* ---------- Comments ---------- */
.hbs .hbs-comments { max-width: 760px; }
.hbs-single--centered .hbs-comments { margin-inline: auto; }
.hbs .hbs-comment-list { margin: 20px 0 0; padding: 0; list-style: none; }
.hbs .hbs-comment-list .comment { padding: 18px 0; border-bottom: 1px solid var(--hbs-border); }
.hbs .hbs-comment-list .children { margin: 0; padding-left: clamp(16px, 4vw, 40px); list-style: none; }
.hbs .hbs-comment-list .avatar { border-radius: 50%; float: left; margin-right: 14px; }
.hbs .hbs-comment-list .comment-author { display: flex; align-items: center; gap: 12px; font-weight: 700; }
.hbs .hbs-comment-list .comment-metadata { font-size: 12px; color: var(--hbs-muted); }
.hbs .hbs-comment-list .comment-content { margin-top: 8px; font-size: 15px; }
.hbs .hbs-comment-list .reply a { font-size: 13px; font-weight: 700; color: var(--hbs-accent-text); }
.hbs .hbs-comments .comment-respond { margin-top: 32px; }
.hbs .hbs-comments .comment-form { display: grid; gap: 14px; margin-top: 16px; }
.hbs .hbs-comments .comment-form p { margin: 0; }
.hbs .hbs-comments label { display: block; margin-bottom: 6px; font-size: 13px; font-weight: 700; }
.hbs .hbs-comments .comment-form input[type="text"],
.hbs .hbs-comments .comment-form input[type="email"],
.hbs .hbs-comments .comment-form input[type="url"],
.hbs .hbs-comments .comment-form textarea {
	display: block; width: 100%; padding: 12px 14px;
	border: 1px solid var(--hbs-border); border-radius: var(--hbs-r);
	background: var(--hbs-surface); color: var(--hbs-text); font: inherit; font-size: 15px;
}
.hbs .hbs-comments .comment-form input:focus,
.hbs .hbs-comments .comment-form textarea:focus { border-color: var(--hbs-accent); outline: 2px solid transparent; box-shadow: 0 0 0 3px rgba(230, 0, 103, .18); }
.hbs .hbs-comments .comment-form-cookies-consent { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; }
.hbs .hbs-comments .comment-form-cookies-consent label { margin: 0; font-weight: 500; }

/* ---------- Responsive ---------- */
@media (min-width: 1024px) {
	.hbs .hbs-hero__grid.has-stats { grid-template-columns: minmax(0, 1fr) auto; }
}
@media (max-width: 1023px) {
	.hbs .hbs-posts--grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.hbs .hbs-band__inner { grid-template-columns: minmax(0, 1fr); }
	.hbs .hbs-post-layout.is-rail-left,
	.hbs .hbs-post-layout.is-rail-right { grid-template-columns: minmax(0, 1fr); grid-template-areas: "rail" "article"; }
	.hbs .hbs-rail__sticky { position: static; max-height: none; overflow: visible; }
}
@media (max-width: 767px) {
	.hbs .hbs-fc { grid-template-columns: minmax(0, 1fr); }
	.hbs .hbs-fc__media { min-height: 0; aspect-ratio: 16 / 9; }
	.hbs .hbs-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.hbs .hbs-facts > div:nth-child(odd) { border-left: 0; }
	.hbs .hbs-facts > div:nth-child(n+3) { border-top: 1px solid var(--hbs-border); }
	.hbs .hbs-kbd { display: none; }
}
@media (max-width: 639px) {
	.hbs .hbs-posts--grid { grid-template-columns: minmax(0, 1fr); }
	.hbs .hbs-posts--list .hbs-gc__media { width: 112px; min-height: 0; }
	.hbs .hbs-posts--list .hbs-gc__body { padding: 10px 12px; }
	.hbs .hbs-posts--list .hbs-gc__title { font-size: 15px; }
	.hbs .hbs-posts--list .hbs-gc__excerpt,
	.hbs .hbs-posts--list .hbs-more { display: none; }
	.hbs .hbs-nl__row { flex-direction: column; }
	.hbs .hbs-nl__row .hbs-btn { width: 100%; }
	.hbs .hbs-authorbox { flex-direction: column; }
	.hbs .hbs-prevnext { grid-template-columns: 1fr; }
	.hbs .hbs-prevnext__item--next { grid-column: 1; }
	.hbs .hbs-cta__actions { width: 100%; }
	.hbs .hbs-cta__actions .hbs-btn { flex: 1 1 100%; }
	.hbs .hbs-content blockquote { padding: 20px 20px 20px 54px; }
	.hbs .hbs-content blockquote::before { left: 14px; font-size: 52px; }
	.hbs .hbs-authorbar__actions { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
	.hbs *, .hbs *::before, .hbs *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
	.hbs .hbs-gc:hover .hbs-gc__img, .hbs .hbs-fc:hover .hbs-fc__img { transform: none; }
}

@media print {
	.hbs .hbs-filters, .hbs .hbs-extras, .hbs .hbs-band, .hbs .hbs-cta, .hbs .hbs-authorbar__actions,
	.hbs .hbs-share, .hbs .hbs-rail, .hbs .hbs-comments, .hbs .hbs-related, .hbs-progress { display: none !important; }
	.hbs .hbs-post-layout { display: block; }
}

/* =====================================================================
   Single post header (v1.3): one clear stack, image beside it on desktop
   ===================================================================== */
.hbs .hbs-phead { padding-block: clamp(16px, 2.6vw, 28px); border-bottom: 1px solid var(--hbs-border); background: var(--hbs-bg); overflow-x: clip; }
.hbs .hbs-phead .hbs-hero__top { margin-bottom: 14px; }
.hbs .hbs-postgrid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; align-items: center; }
.hbs .hbs-postgrid__copy { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; min-width: 0; }
.hbs .hbs-phead .hbs-hero__chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; max-width: 100%; margin: 0; }
.hbs .hbs-phead .hbs-chip--tag { height: 26px; max-width: 100%; padding: 0 12px; font-size: 11px; overflow: hidden; text-overflow: ellipsis; }
.hbs .hbs-phead .hbs-hero__title { max-width: none; margin: 0; font-size: clamp(24px, 3.6vw, 36px); line-height: 1.2; letter-spacing: -.02em; overflow-wrap: anywhere; text-wrap: balance; }
.hbs .hbs-phead .hbs-hero__desc { max-width: 62ch; margin: 0; font-size: 15.5px; line-height: 1.6; -webkit-line-clamp: 3; }

/* Author + facts + share, as one tidy card */
.hbs .hbs-phead .hbs-authorbar {
	display: grid; width: 100%; max-width: 640px; gap: 10px 16px; align-items: center;
	grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "who actions" "dots dots";
	padding: 12px 14px; border: 1px solid var(--hbs-border); border-radius: var(--hbs-r-lg); background: var(--hbs-surface);
}
.hbs .hbs-phead .hbs-authorbar__who { grid-area: who; display: flex; align-items: center; gap: 10px; min-width: 0; }
.hbs .hbs-phead .hbs-authorbar__text { min-width: 0; }
.hbs .hbs-phead .hbs-avatar--md { width: 36px; height: 36px; }
.hbs .hbs-phead .hbs-authorbar__name { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 8px; font-size: 14px; line-height: 1.3; }
.hbs .hbs-phead .hbs-authorbar__role { display: block; font-size: 12px; line-height: 1.3; }
.hbs .hbs-phead .hbs-authorbar__actions { grid-area: actions; display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 8px; width: auto; }
.hbs .hbs-phead .hbs-iconbtn.hbs-iconbtn { width: 34px; height: 34px; }
.hbs .hbs-phead .hbs-share__status:empty { display: none; }
.hbs .hbs-phead .hbs-dotlist { grid-area: dots; display: flex; flex-wrap: wrap; gap: 2px 0; margin: 0; padding-top: 10px; border-top: 1px solid var(--hbs-border); font-size: 12.5px; }

.hbs .hbs-phead .hbs-heroimg { width: 100%; min-width: 0; border-radius: var(--hbs-r-lg); box-shadow: var(--hbs-shadow); }
.hbs .hbs-phead .hbs-heroimg__img { width: 100%; height: auto; aspect-ratio: 16 / 9; max-height: none; object-fit: cover; }
.hbs .hbs-phead .hbs-heroimg figcaption { display: none; }

@media (min-width: 960px) {
	.hbs .hbs-phead.has-media .hbs-postgrid { grid-template-columns: minmax(0, 1fr) minmax(0, 420px); gap: clamp(28px, 4vw, 56px); }
	.hbs .hbs-phead.has-media .hbs-heroimg__img { aspect-ratio: 4 / 3; }
}
@media (max-width: 479px) {
	.hbs .hbs-phead .hbs-authorbar { grid-template-columns: minmax(0, 1fr); grid-template-areas: "who" "dots" "actions"; }
	.hbs .hbs-phead .hbs-dotlist { padding-top: 0; border-top: 0; }
	.hbs .hbs-phead .hbs-authorbar__actions { justify-content: flex-start; padding-top: 10px; border-top: 1px solid var(--hbs-border); }
}
.hbs-single--centered .hbs-hero .hbs-postgrid { grid-template-columns: minmax(0, 1fr) !important; }

/* ---------- Sticky rail: stays 100px below the top of the viewport ---------- */
@media (min-width: 1024px) {
	.hbs .hbs-rail__sticky .hbs-toc ol { max-height: max(150px, calc(100vh - 700px)); overflow-y: auto; scrollbar-width: thin; }
	.hbs-single:not(.hbs-single--centered) .hbs-lead-inline { display: none; }
}
@media (max-width: 1023px) {
	.hbs .hbs-lead--rail:not(.hbs-lead--el) { display: none; }
}

/* ---------- Lead generation card ---------- */
.hbs .hbs-lead { gap: 10px; }
.hbs .hbs-lead > p { margin-bottom: 2px; }
.hbs .hbs-lead-inline { margin-top: 32px; }
.hbs .hbs-lead--inline { max-width: 560px; }
.hbs-single--centered .hbs-lead--inline { margin-inline: auto; }
.hbs .hbs-lead__form { display: grid; gap: 8px; margin: 0; }
.hbs .hbs-lead__form[hidden] { display: none; }

.hbs .hbs-lead__tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border: 1px solid rgba(255, 255, 255, .18); border-radius: var(--hbs-r); background: rgba(255, 255, 255, .08); }
.hbs .hbs-lead__tab { position: relative; display: block; margin: 0; cursor: pointer; }
.hbs .hbs-lead__tab input[type="radio"] { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.hbs .hbs-lead__tab span { display: grid; place-items: center; min-height: 38px; padding: 4px 6px; border-radius: max(var(--hbs-r) - 3px, 4px); font-size: 12px; font-weight: 700; line-height: 1.2; text-align: center; color: var(--hbs-on-band); opacity: .8; transition: background-color .15s ease, opacity .15s ease; }
.hbs .hbs-lead__tab:hover span { opacity: 1; }
.hbs .hbs-lead__tab input:checked + span { background: var(--hbs-gradient); color: var(--hbs-on-accent); opacity: 1; box-shadow: 0 4px 12px rgba(0, 0, 0, .25); }
.hbs .hbs-lead__tab input:focus-visible + span { outline: 2px solid #fff; outline-offset: 2px; }

.hbs .hbs-lead__f { display: block; margin: 0; }
.hbs .hbs-lead__f[hidden] { display: none; }
.hbs .hbs-lead__f input[name],
.hbs .hbs-lead__f textarea[name] {
	display: block; width: 100%; height: 42px; margin: 0; padding: 0 12px;
	border: 1px solid rgba(255, 255, 255, .24); border-radius: var(--hbs-r);
	background: rgba(255, 255, 255, .1); color: #fff;
	font-family: inherit; font-size: 14px; line-height: 1.4; box-shadow: none; outline: none;
	-webkit-appearance: none; appearance: none;
	transition: border-color .15s ease, background-color .15s ease, box-shadow .15s ease;
}
.hbs .hbs-lead__f textarea[name] { height: auto; min-height: 62px; padding: 10px 12px; resize: vertical; }
.hbs .hbs-lead__f input[name]::placeholder,
.hbs .hbs-lead__f textarea[name]::placeholder { color: rgba(255, 255, 255, .62); opacity: 1; }
.hbs .hbs-lead__f input[name]:focus,
.hbs .hbs-lead__f textarea[name]:focus { border-color: #fff; background: rgba(255, 255, 255, .16); color: #fff; box-shadow: 0 0 0 3px rgba(255, 255, 255, .18); }
.hbs .hbs-lead__f input[name].is-invalid { border-color: #fb7185; box-shadow: 0 0 0 3px rgba(251, 113, 133, .25); }
.hbs .hbs-lead__f input:-webkit-autofill { -webkit-text-fill-color: #fff; transition: background-color 9999s ease 0s; }

.hbs .hbs-lead__submit.hbs-btn { margin-top: 2px; min-height: 46px; }
.hbs .hbs-lead__submit.hbs-btn[disabled] { opacity: .65; cursor: progress; }
.hbs .hbs-lead__msg { margin: 0 !important; padding: 0; font-size: 13px !important; line-height: 1.45; font-weight: 600; opacity: 1 !important; color: var(--hbs-on-band) !important; }
.hbs .hbs-lead__msg:empty { display: none; }
.hbs .hbs-lead__msg.is-ok,
.hbs .hbs-lead__msg.is-err { padding: 10px 12px; border-radius: var(--hbs-r); }
.hbs .hbs-lead__msg.is-ok { background: rgba(16, 185, 129, .24); }
.hbs .hbs-lead__msg.is-err { background: rgba(244, 63, 94, .3); }
.hbs .hbs-lead.is-done .hbs-lead__msg.is-ok { padding: 16px; font-size: 15px !important; text-align: center; }

.hbs .hbs-lead__alt { display: flex; gap: 8px; padding-top: 4px; }
.hbs .hbs-lead__altbtn { flex: 1 1 0; display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 38px; padding: 0 8px; border: 1px solid rgba(255, 255, 255, .28); border-radius: var(--hbs-r); font-size: 12.5px; font-weight: 700; color: #fff; white-space: nowrap; transition: background-color .15s ease; }
.hbs .hbs-lead__altbtn:hover { background: rgba(255, 255, 255, .14); color: #fff; }
.hbs .hbs-lead__altbtn--wa .hbs-i { color: #4ade80; }


/* Elementor-form card: light surface so any Elementor form style fits */
.hbs .hbs-lead--el { display: block; padding: 18px; border: 1px solid var(--hbs-border); background: var(--hbs-surface); color: var(--hbs-text); box-shadow: var(--hbs-shadow); }
.hbs .hbs-lead--el h2 { margin: 0 0 12px; font-size: 17px; color: var(--hbs-text); }
.hbs .hbs-lead--el .hbs-lead__tabs { display: flex; gap: 4px; margin-bottom: 12px; padding: 4px; border: 0; background: var(--hbs-surface-alt); }
.hbs .hbs-lead__tabbtn.hbs-lead__tabbtn { flex: 1; min-height: 34px; padding: 4px 8px; border: 0; border-radius: max(var(--hbs-r) - 3px, 4px); background: transparent; color: var(--hbs-muted); font: inherit; font-size: 12px; font-weight: 700; line-height: 1.2; cursor: pointer; box-shadow: none; }
.hbs .hbs-lead__tabbtn.hbs-lead__tabbtn.is-active { background: var(--hbs-primary); color: var(--hbs-on-primary); }
.hbs .hbs-lead__panel[hidden] { display: none; }
.hbs .hbs-lead--el .elementor-widget-container { margin: 0; }
.hbs .hbs-lead--el .elementor-section, .hbs .hbs-lead--el .e-con { padding: 0; }

@media print { .hbs .hbs-lead-inline { display: none !important; } }
