/*
 * HireInfluence blog design system
 * --------------------------------------------------------------------------
 * Loaded only on blog screens (see inc/blog.php). Every selector is scoped to .hib (the blog
 * <main>) or to blog-only classes, so nothing here can affect the homepage or landing pages.
 *
 * Tokens mirror the homepage: ink #0A0A0A, paper #F4F2EE, grey #6E6C68, the purple-pink-red
 * signature gradient, Space Grotesk Bold for display type, Inter for reading text, white cards
 * with a hairline border and 12px radius, pill buttons, "(Label) · description" eyebrows.
 *
 * Sections:  1 Tokens  2 Base  3 Shared components  4 Archive  5 Article  6 Prose
 *            7 Plugin/snippet integration  8 Responsive  9 Motion & print
 */

/* 1. Tokens ------------------------------------------------------------- */
.hib {
	--hib-ink: #0a0a0a;
	--hib-ink-2: #2a2927;
	--hib-paper: #f4f2ee;
	--hib-paper-2: #ebe8e2;
	--hib-white: #fff;
	--hib-grey: #6e6c68;
	--hib-grey-2: #8a8782;
	--hib-rule: rgba(10, 10, 10, .12);
	--hib-rule-2: rgba(10, 10, 10, .2);
	--hib-sig: linear-gradient(90deg, #7000ff, #f13dbb 60%, #f83a3a);
	--hib-sig-v: linear-gradient(180deg, #7000ff, #f13dbb 60%, #f83a3a);
	--hib-accent: #f13dbb;
	--hib-accent-text: #a1166f; /* magenta for small text on white (7:1). */

	--hib-font-display: 'Conv_SpaceGrotesk-Bold', 'Space Grotesk', Inter, system-ui, sans-serif;
	--hib-font: Inter, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

	--hib-container: 1318px; /* Matches the header's content edge. */
	--hib-gutter: clamp(20px, 4vw, 40px);
	--hib-measure: 720px; /* Article reading column. */

	--hib-space-1: 8px;
	--hib-space-2: 16px;
	--hib-space-3: 24px;
	--hib-space-4: 32px;
	--hib-space-5: 48px;
	--hib-space-6: 72px;
	--hib-space-7: 104px;
	--hib-section: clamp(56px, 7vw, 104px);

	--hib-radius-sm: 8px;
	--hib-radius: 12px;
	--hib-radius-lg: 18px;
	--hib-pill: 999px;

	--hib-shadow: 0 1px 2px rgba(10, 10, 10, .04), 0 12px 32px -12px rgba(10, 10, 10, .16);
	--hib-ease: cubic-bezier(.2, .7, .2, 1);

	background: var(--hib-paper);
	color: var(--hib-ink);
	font-family: var(--hib-font);
	font-size: 16px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
	overflow-x: clip;
}

/* 2. Base ---------------------------------------------------------------- */
.hib *,
.hib *::before,
.hib *::after { box-sizing: border-box; }
/* :where() keeps these resets at zero specificity so component rules always win. */
:where(.hib) img { max-width: 100%; height: auto; }
:where(.hib) a { color: inherit; }
.hib :focus-visible { outline: 2px solid var(--hib-accent); outline-offset: 3px; border-radius: 4px; }
.hib .screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.hib-container {
	width: 100%;
	max-width: calc(var(--hib-container) + var(--hib-gutter) * 2);
	margin-inline: auto;
	padding-inline: var(--hib-gutter);
}
.hib ul,
.hib ol { margin: 0; padding: 0; }
.hib p { margin: 0; }

/* 3. Shared components -------------------------------------------------- */
.hib-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	margin: 0;
	font-family: var(--hib-font);
	font-size: 11px;
	font-weight: 600;
	line-height: 1.5;
	letter-spacing: .18em;
	text-transform: uppercase;
	color: var(--hib-grey);
}
.hib-eyebrow a { color: var(--hib-ink); text-decoration: none; border-bottom: 1px solid var(--hib-rule-2); transition: border-color .2s; }
.hib-eyebrow a:hover { border-color: var(--hib-ink); }
.hib-eyebrow--light { color: rgba(244, 242, 238, .7); }
.hib-dot {
	flex: none;
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--hib-sig);
}

.hib-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 48px;
	padding: 0 24px;
	border: 1px solid transparent;
	border-radius: var(--hib-pill);
	font-family: var(--hib-font);
	font-size: 15px;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
	white-space: nowrap;
	cursor: pointer;
	transition: background-color .2s, color .2s, border-color .2s, filter .2s, transform .2s var(--hib-ease);
}
.hib-btn svg { transition: transform .25s var(--hib-ease); }
.hib-btn:hover svg { transform: translateX(3px); }
.hib-btn--ink { background: var(--hib-ink); color: var(--hib-paper); }
.hib-btn--ink:hover { background: #2a2a2a; color: #fff; }
.hib-btn--sig { background: var(--hib-sig); color: #fff; }
.hib-btn--sig:hover { filter: brightness(1.1); color: #fff; }
.hib-btn--ghost { border-color: rgba(244, 242, 238, .55); color: var(--hib-paper); background: transparent; }
.hib-btn--ghost:hover { background: var(--hib-paper); color: var(--hib-ink); }

.hib-chip {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 40px;
	padding: 0 16px;
	border: 1px solid var(--hib-rule-2);
	border-radius: var(--hib-pill);
	background: transparent;
	color: var(--hib-ink);
	font-size: 14px;
	font-weight: 600;
	line-height: 1;
	text-decoration: none;
	white-space: nowrap;
	transition: background-color .2s, color .2s, border-color .2s;
}
.hib-chip:hover { border-color: var(--hib-ink); }
.hib-chip.is-active { background: var(--hib-ink); border-color: var(--hib-ink); color: var(--hib-paper); }
.hib-chip__count { font-size: 12px; font-weight: 500; color: var(--hib-grey); }
.hib-chip.is-active .hib-chip__count { color: rgba(244, 242, 238, .6); }
.hib-chip--sm { min-height: 32px; padding: 0 12px; font-size: 12px; letter-spacing: .04em; background: var(--hib-white); border-color: var(--hib-rule); }
.hib-chip--icon svg { color: var(--hib-ink); }

.hib-textlink {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 15px;
	font-weight: 600;
	color: var(--hib-ink);
	text-decoration: none;
	border-bottom: 1px solid var(--hib-rule-2);
	padding-bottom: 2px;
	transition: border-color .2s;
}
.hib-textlink:hover { border-color: var(--hib-ink); }
.hib-textlink svg { transition: transform .25s var(--hib-ease); }
.hib-textlink:hover svg { transform: translateX(3px); }

.hib-sep { color: var(--hib-grey-2); margin: 0 2px; }

.hib-avatar {
	display: block;
	flex: none;
	border-radius: 50%;
	object-fit: cover;
	background: var(--hib-paper-2);
}

.hib-byline { display: flex; align-items: center; gap: 12px; }
.hib-byline .hib-avatar { width: 40px; height: 40px; }
.hib-byline__text { display: flex; flex-direction: column; gap: 2px; margin: 0; }
.hib-byline__name { font-size: 14px; font-weight: 600; color: var(--hib-ink); }
.hib-byline__name a { text-decoration: none; border-bottom: 1px solid var(--hib-rule-2); }
.hib-byline__name a:hover { border-color: var(--hib-ink); }
.hib-byline__role { font-weight: 400; color: var(--hib-grey); }
.hib-byline__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; font-size: 13px; color: var(--hib-grey); }
.hib-byline--lg .hib-avatar { width: 48px; height: 48px; }
.hib-byline--lg .hib-byline__name { font-size: 15px; }
.hib-byline--lg .hib-byline__meta { font-size: 14px; }

.hib-search {
	position: relative;
	display: flex;
	align-items: center;
	width: 100%;
	max-width: 440px;
}
.hib .hib-search__input {
	width: 100%;
	height: 52px;
	margin: 0;
	padding: 0 56px 0 20px;
	border: 1px solid var(--hib-rule-2);
	border-radius: var(--hib-pill);
	background: var(--hib-white);
	color: var(--hib-ink);
	font: 500 15px/1 var(--hib-font);
	box-shadow: none;
	-webkit-appearance: none;
	appearance: none;
	transition: border-color .2s, box-shadow .2s;
}
.hib .hib-search__input::placeholder { color: var(--hib-grey); opacity: 1; }
.hib .hib-search__input:focus { outline: none; border-color: var(--hib-ink); box-shadow: 0 0 0 3px rgba(241, 61, 187, .25); }
.hib .hib-search__input::-webkit-search-cancel-button { -webkit-appearance: none; }
.hib-search__btn {
	position: absolute;
	right: 6px;
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: var(--hib-ink);
	color: var(--hib-paper);
	cursor: pointer;
	transition: background-color .2s;
}
.hib-search__btn:hover { background: #2a2a2a; }

/* 4. Archive -------------------------------------------------------------- */
.hib-hero {
	padding: clamp(48px, 6vw, 88px) 0 clamp(32px, 4vw, 48px);
	background: var(--hib-paper);
}
.hib-hero__grid {
	display: grid;
	grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
	gap: var(--hib-space-5) clamp(40px, 6vw, 96px);
	align-items: end;
}
.hib-hero__main { display: flex; flex-direction: column; gap: var(--hib-space-3); min-width: 0; }
.hib-hero__title {
	margin: 0;
	font-family: var(--hib-font-display);
	font-weight: 400;
	font-size: clamp(44px, 7.2vw, 108px);
	line-height: .92;
	letter-spacing: -.025em;
	text-transform: uppercase;
	color: var(--hib-ink);
	overflow-wrap: anywhere;
}
.hib-hero__title > span { display: block; }
.hib-hero__title--md { font-size: clamp(40px, 5.6vw, 84px); }
.hib-outline {
	color: transparent;
	-webkit-text-stroke: 1.5px var(--hib-ink);
}
@supports not (-webkit-text-stroke: 1px black) {
	.hib-outline { color: var(--hib-ink); }
}
.hib-hero--author .hib-hero__grid { align-items: start; }
.hib-hero__aside { display: flex; flex-direction: column; gap: var(--hib-space-3); padding-bottom: 6px; }
.hib-hero__lead,
.hib-hero__lead p { font-size: 18px; line-height: 1.6; color: var(--hib-ink-2); max-width: 46ch; }
.hib-hero__lead a { color: var(--hib-ink); }
.hib-hero__stats { font-size: 13px; font-weight: 600; letter-spacing: .04em; color: var(--hib-grey); }
.hib-hero__author { display: flex; align-items: center; gap: var(--hib-space-3); }
.hib-hero__author .hib-avatar { width: 88px; height: 88px; }
.hib-hero__author > div { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.hib-hero__role { font-size: 16px; color: var(--hib-grey); }

.hib-topics {
	position: relative;
	padding: 0 0 var(--hib-space-4);
	background: var(--hib-paper);
}
.hib-topics .hib-container {
	padding-top: var(--hib-space-3);
	/* Hairline across the content width only (not the gutters). */
	background: linear-gradient(var(--hib-rule), var(--hib-rule)) var(--hib-gutter) 0 / calc(100% - var(--hib-gutter) * 2) 1px no-repeat;
}
.hib-topics__list {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	list-style: none;
}
.hib-topics__list li { margin: 0; padding: 0; list-style: none; }
.hib-topics__list li::before { content: none; }

.hib-listing { padding: var(--hib-space-2) 0 var(--hib-section); background: var(--hib-paper); }
.hib-listing__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--hib-space-2);
	margin: var(--hib-space-6) 0 var(--hib-space-3);
	padding-top: var(--hib-space-3);
	border-top: 1px solid var(--hib-rule);
}
.hib-listing__title { font-size: 11px; }

/* Featured story */
.hib-featured {
	display: grid;
	grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
	overflow: hidden;
	border: 1px solid var(--hib-rule);
	border-radius: var(--hib-radius-lg);
	background: var(--hib-white);
	margin-top: var(--hib-space-2);
}
.hib-featured__media {
	position: relative;
	display: block;
	min-width: 0;
	min-height: 440px;
	overflow: hidden;
	background: var(--hib-paper-2);
}
.hib-featured__img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .8s var(--hib-ease);
}
.hib-featured:hover .hib-featured__img { transform: scale(1.03); }
.hib-featured__body {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 20px;
	padding: clamp(28px, 4vw, 56px);
}
.hib-featured__title {
	margin: 0;
	font-family: var(--hib-font-display);
	font-weight: 400;
	font-size: clamp(28px, 2.8vw, 42px);
	line-height: 1.08;
	letter-spacing: -.02em;
	color: var(--hib-ink);
}
.hib-featured__title a { text-decoration: none; background: linear-gradient(var(--hib-ink), var(--hib-ink)) 0 100% / 0 2px no-repeat; transition: background-size .35s var(--hib-ease); }
.hib-featured__title a:hover { background-size: 100% 2px; }
.hib-featured__excerpt { font-size: 17px; line-height: 1.6; color: var(--hib-ink-2); }
.hib-featured .hib-btn { margin-top: 8px; }

/* Grid + cards */
.hib-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: clamp(20px, 2.2vw, 32px);
}
.hib-card {
	position: relative;
	display: flex;
	flex-direction: column;
	min-width: 0;
	overflow: hidden;
	border: 1px solid var(--hib-rule);
	border-radius: var(--hib-radius);
	background: var(--hib-white);
	transition: transform .35s var(--hib-ease), box-shadow .35s var(--hib-ease), border-color .35s;
}
.hib-card:hover { transform: translateY(-4px); box-shadow: var(--hib-shadow); border-color: var(--hib-rule-2); }
.hib-card:focus-within { box-shadow: var(--hib-shadow); }
.hib-card__media {
	position: relative;
	aspect-ratio: 16 / 10;
	overflow: hidden;
	background: var(--hib-paper-2);
}
.hib-card__img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .7s var(--hib-ease);
}
.hib-card:hover .hib-card__img { transform: scale(1.04); }
.hib-card__placeholder {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: flex-end;
	padding: 20px;
	background: var(--hib-ink);
	overflow: hidden;
}
.hib-card__placeholder::before {
	content: "";
	position: absolute;
	left: 0; right: 0; top: 0;
	height: 3px;
	background: var(--hib-sig);
}
.hib-card__placeholder span {
	font-family: var(--hib-font-display);
	font-size: clamp(26px, 3vw, 40px);
	line-height: .95;
	text-transform: uppercase;
	color: transparent;
	-webkit-text-stroke: 1px rgba(244, 242, 238, .55);
}
.hib-card__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: 12px;
	padding: 22px 24px 24px;
}
.hib-card__label { font-size: 10.5px; }
.hib-card__title {
	margin: 0;
	font-family: var(--hib-font-display);
	font-weight: 400;
	font-size: 21px;
	line-height: 1.22;
	letter-spacing: -.01em;
	color: var(--hib-ink);
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.hib-card__link { text-decoration: none; color: inherit; }
.hib-card__link::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.hib-card__link:focus-visible { outline: none; }
.hib-card__link:focus-visible::after { outline: 2px solid var(--hib-accent); outline-offset: -2px; }
.hib-card__excerpt {
	font-size: 15px;
	line-height: 1.55;
	color: var(--hib-grey);
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.hib-card__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px 6px;
	margin-top: auto;
	padding-top: 14px;
	border-top: 1px solid var(--hib-rule);
	font-size: 13px;
	color: var(--hib-grey);
}

/* Lead card (first post on page 2+, categories, authors) */
.hib-card--lead {
	display: grid;
	grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
	border-radius: var(--hib-radius-lg);
	margin-top: var(--hib-space-2);
}
.hib-card--lead .hib-card__media { aspect-ratio: auto; min-height: 340px; }
.hib-card--lead .hib-card__body { justify-content: center; gap: 16px; padding: clamp(28px, 4vw, 52px); }
.hib-card--lead .hib-card__title { font-size: clamp(26px, 2.6vw, 38px); line-height: 1.1; -webkit-line-clamp: 4; }
.hib-card--lead .hib-card__excerpt { font-size: 16px; -webkit-line-clamp: 3; color: var(--hib-ink-2); }
.hib-card--lead .hib-card__meta { margin-top: 8px; }
.hib-card--lead:hover { transform: none; }

/* CTA band inside the grid */
.hib-band {
	position: relative;
	grid-column: 1 / -1;
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	align-items: center;
	gap: var(--hib-space-4) var(--hib-space-5);
	margin: var(--hib-space-2) 0;
	padding: clamp(32px, 4vw, 56px);
	overflow: hidden;
	border-radius: var(--hib-radius-lg);
	background: radial-gradient(ellipse at 100% 120%, rgba(112, 0, 255, .45), transparent 55%), var(--hib-ink);
	color: var(--hib-paper);
}
.hib-listing .hib-container > .hib-band { margin-top: var(--hib-space-5); }
.hib-band::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--hib-sig); }
.hib-band__text { display: flex; flex-direction: column; gap: 12px; max-width: 640px; }
.hib-band__title {
	font-family: var(--hib-font-display);
	font-size: clamp(26px, 2.6vw, 38px);
	line-height: 1.08;
	letter-spacing: -.02em;
	color: #fff;
}
.hib-band__desc { font-size: 16px; line-height: 1.6; color: #cfcdc8; }
.hib-band__actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Pagination */
.hib-pagination { margin-top: var(--hib-space-6); }
.hib-pagination ul {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 8px;
	list-style: none;
}
.hib-pagination li { margin: 0; padding: 0; list-style: none; }
.hib-pagination li::before { content: none; }
.hib-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-width: 44px;
	height: 44px;
	padding: 0 14px;
	border: 1px solid var(--hib-rule-2);
	border-radius: var(--hib-pill);
	font-size: 14px;
	font-weight: 600;
	color: var(--hib-ink);
	text-decoration: none;
	background: transparent;
	transition: background-color .2s, color .2s, border-color .2s;
}
.hib-pagination a.page-numbers:hover { border-color: var(--hib-ink); background: var(--hib-white); }
.hib-pagination .page-numbers.current { background: var(--hib-ink); border-color: var(--hib-ink); color: var(--hib-paper); }
.hib-pagination .page-numbers.dots { border-color: transparent; min-width: 24px; padding: 0; }
.hib-pagination .prev,
.hib-pagination .next { padding: 0 18px; }

.hib-empty {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: var(--hib-space-3);
	max-width: 640px;
	padding: var(--hib-space-6) 0;
}
.hib-empty__title { margin: 0; font-family: var(--hib-font-display); font-weight: 400; font-size: 34px; line-height: 1.1; }

/* 5. Article -------------------------------------------------------------- */
.hib-single { background: var(--hib-white); }
.hib-progress {
	position: fixed;
	left: 0;
	top: 0;
	z-index: 100000;
	width: 100%;
	height: 3px;
	pointer-events: none;
}
.hib-progress span {
	display: block;
	width: 100%;
	height: 100%;
	background: var(--hib-sig);
	transform: scaleX(var(--hib-p, 0));
	transform-origin: 0 50%;
}
.admin-bar .hib-progress { top: 32px; }

.hib-ahero {
	position: relative;
	padding-top: clamp(32px, 4.5vw, 64px);
	background: linear-gradient(var(--hib-paper), var(--hib-paper)) 0 0 / 100% calc(100% - clamp(80px, 12vw, 200px)) no-repeat, var(--hib-white);
}
.hib-ahero:not(:has(.hib-ahero__media)) { background: var(--hib-paper); padding-bottom: clamp(40px, 5vw, 64px); border-bottom: 1px solid var(--hib-rule); }
.hib-ahero__inner {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 22px;
	max-width: calc(1160px + var(--hib-gutter) * 2);
}
.hib-ahero__cats { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; }
.hib-ahero__cats li { margin: 0; padding: 0; list-style: none; }
.hib-ahero__cats li::before { content: none; }
.hib-ahero__title {
	margin: 0;
	font-family: var(--hib-font-display);
	font-weight: 400;
	font-size: clamp(34px, 4.6vw, 64px);
	line-height: 1.04;
	letter-spacing: -.025em;
	color: var(--hib-ink);
	text-wrap: balance;
	overflow-wrap: break-word;
	max-width: 980px;
}
.hib-ahero__dek { font-size: clamp(18px, 1.6vw, 21px); line-height: 1.55; color: var(--hib-ink-2); max-width: 62ch; }
.hib-ahero .hib-byline { margin-top: 4px; padding-top: 22px; border-top: 1px solid var(--hib-rule); width: 100%; max-width: 980px; }
.hib-ahero__media {
	margin: clamp(32px, 4vw, 52px) auto 0;
	max-width: calc(1160px + var(--hib-gutter) * 2);
}
.hib-ahero__img {
	display: block;
	width: 100%;
	height: auto;
	max-height: 660px;
	object-fit: cover;
	border-radius: var(--hib-radius-lg);
	background: var(--hib-paper-2);
}

.hib-crumbs { font-size: 13px; color: var(--hib-grey); }
.hib-crumbs .rank-math-breadcrumb p { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.hib-crumbs a { color: var(--hib-ink); text-decoration: none; border-bottom: 1px solid var(--hib-rule-2); }
.hib-crumbs a:hover { border-color: var(--hib-ink); }
.hib-crumbs .separator { color: var(--hib-grey-2); }
.hib-crumbs .last { color: var(--hib-grey); }

.hib-article { padding: clamp(40px, 5vw, 72px) 0 var(--hib-section); background: var(--hib-white); }
.hib-article__layout {
	display: grid;
	grid-template-columns: 248px minmax(0, var(--hib-measure));
	justify-content: center;
	gap: clamp(48px, 6vw, 96px);
	max-width: calc(1160px + var(--hib-gutter) * 2);
}
.hib-article__main { min-width: 0; }

.hib-rail { position: relative; }
.hib-rail__inner {
	position: sticky;
	top: 96px; /* Clears the fixed site header (72px) that appears on scroll. */
	display: flex;
	flex-direction: column;
	gap: var(--hib-space-4);
	max-height: calc(100vh - 120px);
	overflow: auto;
	padding-bottom: 8px;
	scrollbar-width: thin;
}
.admin-bar .hib-rail__inner { top: 128px; max-height: calc(100vh - 152px); }
.hib-toc { display: flex; flex-direction: column; gap: 14px; }
.hib-toc[hidden] { display: none; }
.hib-toc__list { list-style: none; counter-reset: hibtoc; border-left: 1px solid var(--hib-rule); }
.hib-toc__list li { margin: 0; padding: 0; list-style: none; }
.hib-toc__list li::before { content: none; }
.hib-toc__list a {
	position: relative;
	display: block;
	margin-left: -1px;
	padding: 7px 0 7px 16px;
	border-left: 2px solid transparent;
	font-size: 14px;
	line-height: 1.4;
	color: var(--hib-grey);
	text-decoration: none;
	transition: color .2s, border-color .2s;
}
.hib-toc__list a:hover { color: var(--hib-ink); }
.hib-toc__list a.is-active { color: var(--hib-ink); font-weight: 600; border-left-color: var(--hib-accent); border-image: var(--hib-sig-v) 1; }
.hib-toc__list .hib-toc__sub a { padding-left: 30px; font-size: 13px; }

.hib-share { display: flex; flex-direction: column; gap: 12px; }
.hib-share__list { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; }
.hib-share__list li { margin: 0; padding: 0; list-style: none; }
.hib-share__list li::before { content: none; }
.hib-share__btn {
	display: inline-grid;
	place-items: center;
	width: 40px;
	height: 40px;
	margin: 0;
	padding: 0;
	border: 1px solid var(--hib-rule-2);
	border-radius: 50%;
	background: var(--hib-white);
	color: var(--hib-ink);
	cursor: pointer;
	transition: background-color .2s, color .2s, border-color .2s;
}
.hib-share__btn:hover { background: var(--hib-ink); border-color: var(--hib-ink); color: var(--hib-paper); }
.hib-share__btn.is-copied { background: var(--hib-ink); color: var(--hib-paper); }
.hib-share--inline { display: none; margin-top: var(--hib-space-5); padding-top: var(--hib-space-3); border-top: 1px solid var(--hib-rule); flex-direction: row; align-items: center; justify-content: space-between; flex-wrap: wrap; }

.hib-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: var(--hib-space-5); list-style: none; }
.hib-tags li { margin: 0; padding: 0; list-style: none; }
.hib-tags li::before { content: none; }

.hib-author {
	display: grid;
	grid-template-columns: 80px minmax(0, 1fr);
	gap: var(--hib-space-3);
	margin-top: var(--hib-space-5);
	padding: clamp(24px, 3vw, 36px);
	border-radius: var(--hib-radius-lg);
	background: var(--hib-paper);
}
.hib-author .hib-avatar { width: 80px; height: 80px; }
.hib-author__body { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; min-width: 0; }
.hib-author__name { margin: 0; font-family: var(--hib-font-display); font-weight: 400; font-size: 26px; line-height: 1.15; }
.hib-author__name a { text-decoration: none; }
.hib-author__name a:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.hib-author__role { font-size: 14px; color: var(--hib-grey); }
.hib-author__bio { margin-top: 4px; font-size: 16px; line-height: 1.65; color: var(--hib-ink-2); }
.hib-author__links { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 8px; }

.hib-brands { padding: clamp(40px, 5vw, 64px) 0; background: var(--hib-paper); border-top: 1px solid var(--hib-rule); }
.hib-brands__title { margin: 0 0 var(--hib-space-4); }
.hib-brands__list {
	display: grid;
	grid-template-columns: repeat(12, minmax(0, 1fr));
	align-items: center;
	gap: 28px 40px;
	list-style: none;
}
.hib-brands__list li { margin: 0; padding: 0; list-style: none; display: flex; justify-content: center; }
.hib-brands__list li::before { content: none; }
.hib-brands__list img { width: auto; max-width: 96px; height: 34px; object-fit: contain; filter: grayscale(1); opacity: .72; transition: opacity .2s; }
.hib-brands__list img:hover { opacity: 1; }

.hib-related { padding: 0 0 var(--hib-section); background: var(--hib-paper); }
.hib-related__head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: var(--hib-space-2);
	margin-bottom: var(--hib-space-4);
	padding-top: clamp(40px, 5vw, 64px);
	border-top: 1px solid var(--hib-rule);
}
.hib-related__title {
	margin: 0;
	font-family: var(--hib-font-display);
	font-weight: 400;
	font-size: clamp(32px, 4vw, 56px);
	line-height: 1;
	letter-spacing: -.025em;
	text-transform: uppercase;
}
.hib-grid--related .hib-card__title { font-size: 20px; }

.hib-page-links { margin-top: var(--hib-space-4); display: flex; gap: 8px; flex-wrap: wrap; font-weight: 600; }

/* 6. Prose (article body) ------------------------------------------------- */
.hib-prose {
	font-family: var(--hib-font);
	font-size: 18px;
	line-height: 1.75;
	color: var(--hib-ink-2);
	overflow-wrap: break-word;
}
.hib-prose > * { margin-top: 0; margin-bottom: 0; }
.hib-prose > * + * { margin-top: 1.25em; }
.hib-prose p { margin: 0; font-size: inherit; line-height: inherit; color: inherit; }
.hib-prose p + p { margin-top: 1.25em; }
.hib-prose strong,
.hib-prose b { font-weight: 700; color: var(--hib-ink); }
.hib-prose em { font-style: italic; }
.hib-prose [id] { scroll-margin-top: 96px; } /* Fixed header on scroll is 72px. */
.admin-bar .hib-prose [id] { scroll-margin-top: 128px; }

.hib-prose h2,
.hib-prose h3,
.hib-prose h4,
.hib-prose h5,
.hib-prose h6 {
	color: var(--hib-ink);
	font-family: var(--hib-font-display);
	font-weight: 400;
	text-transform: none;
	text-wrap: balance;
	background: none;
	padding: 0;
	border: 0;
}
.hib-prose h2 { margin: 2.2em 0 .6em; font-size: clamp(27px, 2.6vw, 34px); line-height: 1.15; letter-spacing: -.02em; }
.hib-prose h3 { margin: 1.8em 0 .5em; font-size: clamp(21px, 2vw, 24px); line-height: 1.25; letter-spacing: -.01em; }
.hib-prose h4 { margin: 1.6em 0 .4em; font-family: var(--hib-font); font-weight: 700; font-size: 19px; line-height: 1.35; }
.hib-prose h5,
.hib-prose h6 { margin: 1.5em 0 .4em; font-family: var(--hib-font); font-weight: 700; font-size: 16px; letter-spacing: .04em; text-transform: uppercase; }
.hib-prose > h2:first-child,
.hib-prose > h3:first-child { margin-top: 0; }
.hib-prose h2 + *,
.hib-prose h3 + *,
.hib-prose h4 + * { margin-top: 0; }

.hib-prose a {
	color: var(--hib-ink);
	font-weight: 500;
	text-decoration: underline;
	text-decoration-color: var(--hib-accent);
	text-decoration-thickness: 1.5px;
	text-underline-offset: 3px;
	transition: text-decoration-color .2s, color .2s;
}
.hib-prose a:hover { color: var(--hib-accent-text); text-decoration-color: currentColor; }

.hib-prose ul,
.hib-prose ol { margin: 1.25em 0; padding-left: 1.4em; }
.hib-prose ul { list-style: none; padding-left: 1.4em; }
.hib-prose ul > li { position: relative; list-style: none; }
.hib-prose ul > li::before {
	content: "";
	position: absolute;
	left: -1.1em;
	top: .72em;
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--hib-sig);
}
.hib-prose ol { list-style: decimal; }
.hib-prose ol > li { list-style: decimal; padding-left: .25em; }
.hib-prose ol > li::marker { color: var(--hib-ink); font-weight: 700; font-family: var(--hib-font); }
.hib-prose li { margin: 0; color: inherit; font-size: inherit; line-height: 1.7; }
.hib-prose li + li { margin-top: .5em; }
.hib-prose li > ul,
.hib-prose li > ol { margin: .5em 0 0; }

.hib-prose blockquote {
	position: relative;
	margin: 2em 0;
	padding: 4px 0 4px 28px;
	border: 0;
	background: none;
	font-size: 21px;
	line-height: 1.55;
	color: var(--hib-ink);
}
.hib-prose blockquote::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; border-radius: 3px; background: var(--hib-sig-v); }
.hib-prose blockquote p { color: inherit; }
.hib-prose blockquote cite { display: block; margin-top: 12px; font-size: 14px; font-style: normal; font-weight: 600; color: var(--hib-grey); }

.hib-prose img { display: block; height: auto; border-radius: var(--hib-radius); }
.hib-prose figure { margin: 2em 0; max-width: 100%; }
.hib-prose figure img { margin: 0 auto; }
.hib-prose figcaption,
.hib-prose .wp-caption-text,
.hib-prose .wp-element-caption { margin-top: 10px; font-size: 14px; line-height: 1.5; color: var(--hib-grey); text-align: center; }
.hib-prose .wp-caption { max-width: 100%; }
.hib-prose .aligncenter { margin-left: auto; margin-right: auto; }
.hib-prose .alignleft { float: left; margin: .4em 1.5em 1em 0; max-width: 50%; }
.hib-prose .alignright { float: right; margin: .4em 0 1em 1.5em; max-width: 50%; }

.hib-prose hr { margin: 2.5em 0; border: 0; height: 1px; background: var(--hib-rule); }

.hib-prose iframe,
.hib-prose video,
.hib-prose embed,
.hib-prose object { display: block; max-width: 100%; border: 0; border-radius: var(--hib-radius); }
.hib-prose iframe[src*="youtube"],
.hib-prose iframe[src*="youtu.be"],
.hib-prose iframe[src*="vimeo"],
.hib-prose video { width: 100%; height: auto; aspect-ratio: 16 / 9; }
.hib-prose .wp-block-embed__wrapper { position: relative; }

.hib-table-wrap {
	margin: 2em 0;
	overflow-x: auto;
	border: 1px solid var(--hib-rule);
	border-radius: var(--hib-radius);
	-webkit-overflow-scrolling: touch;
	background: var(--hib-white);
}
/* Styles apply to standard WordPress tables only. Tables with their own class (custom-designed
   article components, e.g. the comparison tables in hand-built posts) keep their own design. */
.hib-prose figure.wp-block-table { overflow-x: auto; }
.hib-prose :is(.wp-block-table table, table:not([class])) {
	width: 100%;
	min-width: 560px;
	margin: 0;
	border-collapse: collapse;
	border: 0;
	font-size: 15px;
	line-height: 1.5;
	color: var(--hib-ink-2);
	background: transparent;
}
.hib-prose :is(.wp-block-table table, table:not([class])) th,
.hib-prose :is(.wp-block-table table, table:not([class])) td { padding: 14px 16px; border: 0; border-bottom: 1px solid var(--hib-rule); text-align: left; vertical-align: top; }
.hib-prose :is(.wp-block-table table, table:not([class])) thead,
.hib-prose :is(.wp-block-table table, table:not([class])) tfoot { border: 0; }
.hib-prose :is(.wp-block-table table, table:not([class])) thead th,
.hib-prose :is(.wp-block-table table, table:not([class])) tr:first-child th { background: var(--hib-paper); color: var(--hib-ink); font-weight: 700; font-size: 13px; letter-spacing: .04em; text-transform: uppercase; }
.hib-prose :is(.wp-block-table table, table:not([class])) tbody tr:last-child td { border-bottom: 0; }
.hib-prose :is(.wp-block-table table, table:not([class])) tbody tr:nth-child(even) td { background: #faf9f7; }

.hib-prose pre,
.hib-prose code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .88em; }
.hib-prose code { padding: 2px 6px; border-radius: 6px; background: var(--hib-paper); }
.hib-prose pre { padding: 20px; border-radius: var(--hib-radius); background: var(--hib-ink); color: var(--hib-paper); overflow-x: auto; }
.hib-prose pre code { padding: 0; background: none; }

.hib-prose::after { content: ""; display: table; clear: both; }

/* 7. Plugin / snippet integration ---------------------------------------- */
/* Theme table of contents (parent functions.php create_toc) */
.hib-prose .toc-content {
	margin: 2em 0;
	padding: 0;
	border: 1px solid var(--hib-rule);
	border-radius: var(--hib-radius);
	background: var(--hib-paper);
	overflow: hidden;
}
.hib-prose .toc-label {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin: 0;
	padding: 16px 20px;
	font-family: var(--hib-font);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--hib-ink);
	cursor: pointer;
	user-select: none;
}
.hib-prose .toc-label::after {
	content: "";
	width: 10px;
	height: 10px;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: rotate(45deg) translate(-2px, -2px);
	transition: transform .25s var(--hib-ease);
}
.hib-prose .toc-label.active::after,
.hib-prose .toc-label[aria-expanded="true"]::after { transform: rotate(-135deg) translate(-2px, -2px); }
.hib-prose .toc-list { height: 0; margin: 0; padding: 0 20px; overflow: hidden; transition: height .3s var(--hib-ease); list-style: none; }
.hib-prose .toc-list.active { padding-bottom: 12px; }
.hib-prose .toc-list li { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--hib-rule); }
.hib-prose .toc-list li::before { content: none; }
.hib-prose .toc-list a { display: block; padding: 8px 0; font-size: 15px; font-weight: 500; text-decoration: none; }
/* Easy Table of Contents plugin, if it renders on a post */
.hib-prose #ez-toc-container { width: 100%; margin: 2em 0; padding: 16px 20px; border: 1px solid var(--hib-rule); border-radius: var(--hib-radius); background: var(--hib-paper); box-shadow: none; }
.hib-prose #ez-toc-container a { font-weight: 500; text-decoration: none; }
/* With the sticky "On this page" rail visible, the in-article copy is redundant on wide screens. */
@media (min-width: 1101px) {
	.hib-has-rail-toc .hib-prose .toc-content,
	.hib-has-rail-toc .hib-prose #ez-toc-container { display: none; }
}

/* Blog CTA snippet ("HI blog CTAs (mid + end)") keeps its own styles; align spacing only. */
.hib-prose .hi-bcta,
.hib-prose .hi-bcta-top { margin-top: 2.2em; margin-bottom: 2.2em; }
.hib-prose .hi-bcta p,
.hib-prose .hi-bcta-top p { margin-top: 0; }
.hib-prose .hi-bcta a,
.hib-prose .hi-bcta-top a { text-decoration: none; }
.hib-prose .hi-bcta-end { margin-bottom: 0; }

/* Flexible-content sections rendered after a post (parent layouts keep their own styles). */
.hib-flex { background: var(--hib-white); }

/* 8. Responsive ----------------------------------------------------------- */
@media (max-width: 1280px) {
	.hib-brands__list { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}
@media (max-width: 1100px) {
	.hib-article__layout { grid-template-columns: minmax(0, var(--hib-measure)); }
	.hib-rail { display: none; }
	.hib-share--inline { display: flex; }
}
@media (max-width: 1024px) {
	.hib-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.hib-hero__grid { grid-template-columns: minmax(0, 1fr); align-items: start; gap: var(--hib-space-4); }
	.hib-hero__lead,
	.hib-hero__lead p { max-width: 60ch; }
	.hib-featured { grid-template-columns: minmax(0, 1fr); }
	.hib-featured__media { aspect-ratio: 16 / 9; min-height: 0; }
	.hib-topics .hib-container { background: none; }
	.hib-card--lead { grid-template-columns: minmax(0, 1fr); }
	.hib-card--lead .hib-card__media { min-height: 0; aspect-ratio: 16 / 9; }
	.hib-band { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 782px) {
	.admin-bar .hib-progress { top: 46px; }
}
@media (max-width: 760px) {
	.hib-topics { padding-bottom: var(--hib-space-3); }
	.hib-topics .hib-container { padding-inline: 0; }
	.hib-topics__list {
		flex-wrap: nowrap;
		overflow-x: auto;
		padding: 0 var(--hib-gutter) 4px;
		scroll-padding-inline: var(--hib-gutter);
		scrollbar-width: none;
		-webkit-mask-image: linear-gradient(90deg, #000 85%, transparent);
		mask-image: linear-gradient(90deg, #000 85%, transparent);
	}
	.hib-topics__list::-webkit-scrollbar { display: none; }
	.hib-hero { padding-top: 40px; }
	.hib-hero__lead,
	.hib-hero__lead p { font-size: 17px; }
	.hib-search { max-width: none; }
	.hib-listing__head { margin-top: var(--hib-space-5); }
	.hib-brands__list { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
	.hib-ahero__media { padding-inline: 0; }
	.hib-ahero__img { border-radius: 0; }
	.hib-prose { font-size: 17px; line-height: 1.72; }
	.hib-prose blockquote { font-size: 19px; padding-left: 22px; }
	.hib-prose .alignleft,
	.hib-prose .alignright { float: none; max-width: 100%; margin: 1.5em 0; }
	.hib-table-wrap { margin-inline: calc(var(--hib-gutter) * -1); border-radius: 0; border-left: 0; border-right: 0; }
	.hib-author { grid-template-columns: minmax(0, 1fr); }
	.hib-pagination .prev span,
	.hib-pagination .next span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
	.hib-pagination .prev,
	.hib-pagination .next { padding: 0 12px; }
}
@media (max-width: 640px) {
	.hib-grid { grid-template-columns: minmax(0, 1fr); }
	.hib-card__body { padding: 20px 20px 22px; }
	.hib-card__title { font-size: 20px; }
	.hib-featured__body { gap: 16px; }
	.hib-featured .hib-btn { width: 100%; }
	.hib-band__actions { flex-direction: column; align-items: stretch; width: 100%; }
	.hib-band__actions .hib-btn { white-space: normal; text-align: center; }
	.hib-hero__author { align-items: flex-start; flex-direction: column; }
	.hib-related__title { font-size: 34px; }
}
@media (max-width: 380px) {
	.hib-hero__title { font-size: 40px; }
	.hib-chip { padding: 0 14px; }
}

/* 9. Motion & print ------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
	.hib *,
	.hib *::before,
	.hib *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
	.hib-card:hover { transform: none; }
	.hib-card:hover .hib-card__img,
	.hib-featured:hover .hib-featured__img { transform: none; }
}
@media print {
	.hib-progress,
	.hib-rail,
	.hib-share,
	.hib-related,
	.hib-brands,
	.hib-band,
	.hib-search { display: none !important; }
	.hib-article__layout { display: block; }
	.hib-prose { font-size: 12pt; color: #000; }
}
