/**
 * Ahex — single blog post layout (2026).
 * Everything is namespaced under .ahexbs-* so parent-theme CSS stays untouched.
 */

:root {
	--ahexbs-grad: linear-gradient(120deg, #4f46e5 0%, #7c3aed 55%, #8b5cf6 100%);
	--ahexbs-indigo: #4f46e5;
	--ahexbs-violet: #7c3aed;
	--ahexbs-ink: #151827;
	--ahexbs-body: #475569;
	--ahexbs-muted: #94a3b8;
	--ahexbs-line: #e2e8f0;
	--ahexbs-soft: #f8fafc;
	--ahexbs-sans: 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
	--ahexbs-display: 'Sora', 'DM Sans', system-ui, sans-serif;
	--ahexbs-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
	--ahexbs-sticky: 96px;
}

/* The HFE "Blog Header" banner (title + breadcrumbs) is replaced by our hero on
   single posts only — it still renders on the blog index, category archives,
   search and careers, which share that template. */
body.single-post .elementor-element-2a92eae {
	display: none !important;
}

/* The parent theme sets `overflow-x: hidden` on html+body, which turns them into
   scroll containers and so disables `position: sticky` for every descendant —
   that is what kept the contents rail and the lead form from sticking.
   `clip` still prevents sideways scrolling but leaves sticky working.
   Scoped to blog posts through the class functions.php puts on <html>. */
html.ahexbs-page,
html.ahexbs-page body {
	overflow-x: clip;
}

/* ---------------------------------------------------------------- shell -- */

.ahexbs {
	font-family: var(--ahexbs-sans);
	color: var(--ahexbs-body);
	font-size: 15px;
	line-height: 1.7;
	background: #fff;
}

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

.ahexbs a {
	color: var(--ahexbs-indigo);
	text-decoration: none;
	transition: color .18s ease;
}

.ahexbs a:hover {
	color: var(--ahexbs-violet);
}

.ahexbs-progress {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	height: 3px;
	z-index: 200;
	pointer-events: none;
	background: transparent;
}

.ahexbs-progress__bar {
	display: block;
	height: 100%;
	width: 0;
	background: var(--ahexbs-grad);
	transition: width .08s linear;
}

/* ----------------------------------------------------------------- hero -- */

.ahexbs-hero {
	background: linear-gradient(179.42deg, rgba(28, 96, 255, 0) 5%, rgba(128, 166, 255, .14) 60%, rgba(255, 255, 255, .9) 100%);
	padding: 38px 40px 30px;
}

.ahexbs-hero__inner {
	max-width: 1280px;
	margin: 0 auto;
}

.ahexbs-crumbs {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
	margin-bottom: 16px;
}

.ahexbs-crumbs a {
	font-size: 14px;
	font-weight: 500;
	color: var(--ahexbs-indigo);
}

.ahexbs-crumbs__sep {
	font-size: 12px;
	color: var(--ahexbs-muted);
}

.ahexbs-crumbs__current {
	font-size: 14px;
	font-weight: 500;
	color: var(--ahexbs-muted);
}

.ahexbs-chip {
	display: inline-block;
	background: #ede9fe;
	color: var(--ahexbs-indigo) !important;
	font-family: var(--ahexbs-display);
	font-size: 13px;
	font-weight: 700;
	line-height: 1.2;
	padding: 7px 18px;
	border-radius: 999px;
	margin-bottom: 16px;
}

.ahexbs-chip:hover {
	background: #ddd6fe;
}

.ahexbs-title {
	font-family: var(--ahexbs-display);
	font-size: clamp(27px, 3.1vw, 40px);
	/* Design pairs a light title with bold key words. Drop this to 400 for the
	   full mockup look; editors can wrap words in <strong> for the accent. */
	font-weight: 600;
	letter-spacing: -.02em;
	line-height: 1.2;
	color: var(--ahexbs-ink);
	margin: 0 0 24px;
	max-width: 960px;
	text-wrap: pretty;
}

.ahexbs-title strong,
.ahexbs-title b {
	font-weight: 800;
}

.ahexbs-meta {
	display: flex;
	align-items: center;
	gap: 14px 28px;
	flex-wrap: wrap;
	padding-bottom: 18px;
}

.ahexbs-author {
	display: flex;
	align-items: center;
	gap: 11px;
}

.ahexbs-author__avatar {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: var(--ahexbs-grad);
	display: flex;
	align-items: center;
	justify-content: center;
	font-family: var(--ahexbs-display);
	font-size: 14px;
	font-weight: 700;
	color: #fff;
	flex-shrink: 0;
}

.ahexbs-author__text {
	display: flex;
	flex-direction: column;
}

.ahexbs-author__name {
	font-size: 13.5px;
	font-weight: 700;
	color: var(--ahexbs-ink);
	line-height: 1.35;
}

.ahexbs-author__role {
	font-size: 12px;
	color: var(--ahexbs-muted);
	line-height: 1.35;
}

.ahexbs-meta__divider {
	width: 1px;
	height: 28px;
	background: var(--ahexbs-line);
}

.ahexbs-meta__item {
	display: flex;
	align-items: center;
	gap: 8px;
}

.ahexbs-meta__item svg {
	width: 16px;
	height: 16px;
	stroke: var(--ahexbs-muted);
	fill: none;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
	flex-shrink: 0;
}

.ahexbs-meta__label {
	font-size: 13.5px;
	color: var(--ahexbs-muted);
}

.ahexbs-meta__value {
	font-size: 13.5px;
	font-weight: 600;
	color: var(--ahexbs-ink);
}

.ahexbs-tagrow {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
	padding-bottom: 20px;
	border-bottom: 1px solid var(--ahexbs-line);
}

.ahexbs-tagrow__label {
	font-size: 9.5px;
	font-weight: 600;
	color: var(--ahexbs-muted);
	margin-right: 2px;
	text-transform: uppercase;
	letter-spacing: .06em;
}

.ahexbs-tag {
	font-size: 9.5px;
	font-weight: 600;
	color: var(--ahexbs-indigo);
	background: rgba(79, 70, 229, .06);
	border: 1px solid rgba(79, 70, 229, .14);
	border-radius: 999px;
	padding: 5px 11px;
	line-height: 1.4;
}

.ahexbs-tag:hover {
	background: #ede9fe;
}

.ahexbs-share {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-left: auto;
}

.ahexbs-share__label {
	font-size: 13px;
	font-weight: 600;
	color: var(--ahexbs-muted);
}

.ahexbs-share__btn {
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background: #fff;
	border: 1px solid var(--ahexbs-line);
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background .18s ease, border-color .18s ease;
}

.ahexbs-share__btn svg {
	width: 14px;
	height: 14px;
	stroke: var(--ahexbs-body);
	fill: none;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
	transition: stroke .18s ease;
}

.ahexbs-share__btn:hover {
	background: var(--ahexbs-violet);
	border-color: var(--ahexbs-violet);
}

.ahexbs-share__btn:hover svg {
	stroke: #fff;
}

/* --------------------------------------------------------------- layout -- */

.ahexbs-layout {
	max-width: 1400px;
	margin: 0 auto;
	padding: 30px 40px 72px;
	display: flex;
	align-items: flex-start;
	gap: 38px;
	flex-wrap: wrap;
}

.ahexbs-main {
	flex: 1 1 520px;
	min-width: 0;
}

/* ------------------------------------------------------------------ toc -- */

.ahexbs-toc {
	flex: 1 1 230px;
	max-width: 262px;
	min-width: 0;
	position: sticky;
	top: var(--ahexbs-sticky);
	align-self: flex-start;
	max-height: calc(100vh - 118px);
	overflow-y: auto;
	overscroll-behavior: contain;
	padding-right: 8px;
}

.ahexbs-toc__title {
	font-family: var(--ahexbs-display);
	font-size: 15px;
	font-weight: 800;
	color: var(--ahexbs-ink);
	margin: 0 0 14px;
}

.ahexbs-toc__nav {
	display: flex;
	flex-direction: column;
	border-left: 2px solid var(--ahexbs-line);
}

/* Scoped under .ahexbs-toc__nav so these beat the generic `.ahexbs a` colour —
   contents links read as plain text, and only the current section is coloured. */
.ahexbs-toc__nav .ahexbs-toc__link {
	font-size: 13.5px;
	font-weight: 500;
	color: var(--ahexbs-body);
	padding: 9px 0 9px 16px;
	line-height: 1.45;
	border-left: 2px solid transparent;
	margin-left: -2px;
}

.ahexbs-toc__nav .ahexbs-toc__link:hover {
	color: var(--ahexbs-ink);
}

.ahexbs-toc__nav .ahexbs-toc__link.is-sub {
	padding-left: 28px;
	font-size: 13px;
}

/* Current section: brand gradient, with a solid colour underneath as the
   fallback for browsers without background-clip:text. */
.ahexbs-toc__nav .ahexbs-toc__link.is-active {
	color: var(--ahexbs-indigo);
	font-weight: 600;
	border-left-color: var(--ahexbs-violet);
}

@supports ((-webkit-background-clip: text) or (background-clip: text)) {
	.ahexbs-toc__nav .ahexbs-toc__link.is-active {
		background: var(--ahexbs-grad);
		-webkit-background-clip: text;
		background-clip: text;
		-webkit-text-fill-color: transparent;
	}
}

/* Google "Add to Preferred Sources" button, injected by news.google.com's
   publisher.js into the [google-add-preferred-source-btn] div. Only the wrapper
   is ours - never style Google's own button internals, they can change. */
/* No border/background on the wrapper on purpose: if publisher.js is blocked
   the div stays empty and the sidebar must show nothing, not an empty box.
   display:flex kills the inline line-box descender under Google's button - a
   few stray pixels there are enough to overflow the rail and show a scrollbar. */
.ahexbs-prefsrc {
	display: flex;
	margin-top: 22px;
}

.ahexbs-prefsrc > div {
	max-width: 100%;
}

/* Scrollbar for the two sticky rails: 5px, pill-shaped violet thumb on a pale
   track, arrow buttons removed. scrollbar-width stays out of Chrome/Safari's
   way (it overrides ::-webkit-scrollbar there and flattens this back to the
   system bar); Firefox picks it up in the @supports block below. */
.ahexbs-toc::-webkit-scrollbar,
.ahexbs-side::-webkit-scrollbar {
	width: 5px;
}

.ahexbs-toc::-webkit-scrollbar-track,
.ahexbs-side::-webkit-scrollbar-track {
	background: #f1f0f7;
	border-radius: 999px;
}

.ahexbs-toc::-webkit-scrollbar-thumb,
.ahexbs-side::-webkit-scrollbar-thumb {
	background: var(--ahexbs-violet);
	border-radius: 999px;
}

.ahexbs-toc::-webkit-scrollbar-thumb:hover,
.ahexbs-side::-webkit-scrollbar-thumb:hover {
	background: #6d28d9;
}

.ahexbs-toc::-webkit-scrollbar-button,
.ahexbs-side::-webkit-scrollbar-button {
	display: none;
	height: 0;
}

@supports not selector(::-webkit-scrollbar) {
	.ahexbs-toc,
	.ahexbs-side {
		scrollbar-width: thin;
		scrollbar-color: var(--ahexbs-violet) #f1f0f7;
	}
}

/* -------------------------------------------------------------- article -- */

.ahexbs-feat {
	margin: 0 0 26px;
	border-radius: 18px;
	overflow: hidden;
	border: 1px solid var(--ahexbs-line);
	background: linear-gradient(135deg, #f4f4ff, #ede9fe);
}

.ahexbs-feat img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 16 / 7.4;
	object-fit: cover;
}

.ahexbs-body {
	font-size: 16px;
	line-height: 1.8;
	color: var(--ahexbs-body);
}

.ahexbs-body > *:first-child {
	margin-top: 0;
}

.ahexbs-body > p:first-of-type {
	font-size: 17px;
	line-height: 1.75;
	color: var(--ahexbs-ink);
	font-style: italic;
	margin: 0 0 26px;
	text-wrap: pretty;
}

.ahexbs-body h2 {
	font-family: var(--ahexbs-display);
	font-size: 25px;
	font-weight: 800;
	color: var(--ahexbs-ink);
	line-height: 1.26;
	margin: 34px 0 14px;
	scroll-margin-top: calc(var(--ahexbs-sticky) + 12px);
}

.ahexbs-body h3 {
	font-family: var(--ahexbs-display);
	font-size: 18px;
	font-weight: 700;
	color: var(--ahexbs-ink);
	line-height: 1.35;
	margin: 26px 0 10px;
	scroll-margin-top: calc(var(--ahexbs-sticky) + 12px);
}

.ahexbs-body h4,
.ahexbs-body h5,
.ahexbs-body h6 {
	font-family: var(--ahexbs-display);
	font-size: 16px;
	font-weight: 700;
	color: var(--ahexbs-ink);
	margin: 22px 0 8px;
}

.ahexbs-body p {
	margin: 0 0 16px;
}

.ahexbs-body strong {
	color: var(--ahexbs-ink);
	font-weight: 700;
}

.ahexbs-body ul,
.ahexbs-body ol {
	margin: 0 0 20px;
	padding-left: 22px;
}

.ahexbs-body li {
	font-size: 15.5px;
	line-height: 1.75;
	margin-bottom: 9px;
}

.ahexbs-body blockquote {
	border-left: 3px solid var(--ahexbs-violet);
	padding: 16px 22px;
	margin: 24px 0;
	background: rgba(79, 70, 229, .05);
	border-radius: 0 12px 12px 0;
	font-size: 16px;
	line-height: 1.7;
	color: var(--ahexbs-ink);
	font-style: italic;
}

.ahexbs-body blockquote p:last-child {
	margin-bottom: 0;
}

.ahexbs-body img,
.ahexbs-body figure img {
	max-width: 100%;
	height: auto;
	border-radius: 14px;
	border: 1px solid var(--ahexbs-line);
}

.ahexbs-body figure {
	margin: 24px 0;
}

.ahexbs-body figcaption {
	font-size: 12.5px;
	color: var(--ahexbs-muted);
	margin-top: 8px;
	text-align: left;
}

.ahexbs-body pre {
	background: var(--ahexbs-ink);
	border-radius: 14px;
	padding: 18px;
	overflow-x: auto;
	margin: 0 0 22px;
}

.ahexbs-body pre code {
	font-family: var(--ahexbs-mono);
	font-size: 12.5px;
	line-height: 1.75;
	color: #e2e8f0;
	background: none;
	padding: 0;
	white-space: pre;
}

.ahexbs-body code {
	font-family: var(--ahexbs-mono);
	font-size: 13px;
	background: rgba(79, 70, 229, .07);
	color: var(--ahexbs-indigo);
	padding: 2px 6px;
	border-radius: 5px;
}

.ahexbs-tablewrap {
	overflow-x: auto;
	border: 1px solid var(--ahexbs-line);
	border-radius: 14px;
	margin: 0 0 22px;
}

.ahexbs-body table {
	width: 100%;
	border-collapse: collapse;
	margin: 0;
}

.ahexbs-body thead tr {
	background: var(--ahexbs-ink);
}

.ahexbs-body th {
	text-align: left;
	padding: 13px 18px;
	font-family: var(--ahexbs-display);
	font-size: 11.5px;
	font-weight: 700;
	color: #fff;
	letter-spacing: .05em;
	text-transform: uppercase;
}

.ahexbs-body td {
	padding: 12px 18px;
	font-size: 13.5px;
	border-top: 1px solid var(--ahexbs-line);
}

.ahexbs-body tbody tr:nth-child(even) {
	background: var(--ahexbs-soft);
}

.ahexbs-body hr {
	border: 0;
	border-top: 1px solid var(--ahexbs-line);
	margin: 30px 0;
}

/* -------------------------------------------------------- in-article cta -- */

.ahexbs-cta {
	background: var(--ahexbs-grad);
	border-radius: 18px;
	padding: 28px 32px;
	margin: 30px 0;
	display: flex;
	align-items: center;
	gap: 22px;
	flex-wrap: wrap;
}

.ahexbs-cta__icon {
	width: 56px;
	height: 56px;
	border-radius: 14px;
	background: rgba(255, 255, 255, .16);
	border: 1px solid rgba(255, 255, 255, .26);
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.ahexbs-cta__icon svg {
	width: 26px;
	height: 26px;
	stroke: #fff;
	fill: none;
	stroke-width: 1.8;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.ahexbs-cta__text {
	flex: 1 1 280px;
	min-width: 0;
	font-family: var(--ahexbs-display);
	font-size: 18px;
	font-weight: 700;
	color: #fff;
	line-height: 1.4;
	margin: 0;
}

.ahexbs-cta__btn {
	background: #fff;
	color: var(--ahexbs-indigo) !important;
	font-size: 14px;
	font-weight: 700;
	padding: 13px 24px;
	border-radius: 11px;
	white-space: nowrap;
}

.ahexbs-cta__btn:hover {
	background: #ede9fe;
}

/* ------------------------------------------------------------------ faq -- */

.ahexbs-faq {
	margin-top: 36px;
}

.ahexbs-faq__title {
	font-family: var(--ahexbs-display);
	font-size: 25px;
	font-weight: 800;
	color: var(--ahexbs-ink);
	margin: 0 0 18px;
	scroll-margin-top: calc(var(--ahexbs-sticky) + 12px);
}

.ahexbs-faq__list {
	border-top: 1px solid var(--ahexbs-line);
}

.ahexbs-faq__item {
	border-bottom: 1px solid var(--ahexbs-line);
}

.ahexbs-faq__q {
	padding: 16px 0;
	font-size: 15.5px;
	font-weight: 700;
	color: var(--ahexbs-ink);
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	cursor: pointer;
	list-style: none;
}

.ahexbs-faq__q::-webkit-details-marker {
	display: none;
}

.ahexbs-faq__plus {
	position: relative;
	width: 20px;
	height: 20px;
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
}

.ahexbs-faq__plus svg {
	position: absolute;
	width: 18px;
	height: 18px;
	stroke: var(--ahexbs-violet);
	stroke-width: 2.4;
	stroke-linecap: round;
	fill: none;
	transition: opacity .2s ease;
}

.ahexbs-faq__item[open] .ahexbs-faq__plus-v {
	opacity: 0;
}

.ahexbs-faq__a {
	padding: 0 0 18px;
	font-size: 14.5px;
	line-height: 1.75;
}

.ahexbs-faq__a > *:last-child {
	margin-bottom: 0;
}

.ahexbs-faq__a p {
	margin: 0 0 12px;
}

/* ------------------------------------------------------------ author bio -- */

.ahexbs-bio {
	display: flex;
	gap: 16px;
	align-items: flex-start;
	margin-top: 34px;
	padding: 22px;
	border: 1.5px solid var(--ahexbs-line);
	border-radius: 16px;
	background: var(--ahexbs-soft);
}

.ahexbs-bio__avatar {
	width: 48px;
	height: 48px;
	border-radius: 50%;
	background: var(--ahexbs-grad);
	display: flex;
	align-items: center;
	justify-content: center;
	font-family: var(--ahexbs-display);
	font-size: 16px;
	font-weight: 700;
	color: #fff;
	flex-shrink: 0;
}

.ahexbs-bio__name {
	font-family: var(--ahexbs-display);
	font-size: 15px;
	font-weight: 700;
	color: var(--ahexbs-ink);
	margin: 0;
}

.ahexbs-bio__role {
	font-size: 12.5px;
	color: var(--ahexbs-muted);
	margin: 0 0 8px;
}

.ahexbs-bio__desc {
	font-size: 14px;
	line-height: 1.7;
	margin: 0;
}

/* ----------------------------------------------------------- side form -- */

.ahexbs-side {
	flex: 1 1 272px;
	max-width: 296px;
	min-width: 0;
	position: sticky;
	top: var(--ahexbs-sticky);
	align-self: flex-start;
	max-height: calc(100vh - 118px);
	overflow-y: auto;
	overscroll-behavior: contain;
	padding-right: 8px;
}

.ahexbs-form {
	background: var(--ahexbs-ink);
	border-radius: 16px;
	padding: 22px;
}

.ahexbs-form__title {
	font-family: var(--ahexbs-display);
	font-size: 15px;
	font-weight: 700;
	color: #fff;
	margin: 0 0 4px;
}

.ahexbs-form__sub {
	font-size: 12px;
	color: rgba(255, 255, 255, .55);
	margin: 0 0 14px;
	line-height: 1.55;
}

.ahexbs-form .wpcf7-form > p,
.ahexbs-form .wpcf7 form > p {
	margin: 0;
}

.ahexbs-form .wpcf7-form-control-wrap {
	display: block;
	margin-bottom: 10px;
}

.ahexbs-form input[type="text"],
.ahexbs-form input[type="email"],
.ahexbs-form input[type="tel"],
.ahexbs-form textarea {
	width: 100%;
	background: rgba(255, 255, 255, .08);
	border: 1.5px solid rgba(255, 255, 255, .14);
	border-radius: 9px;
	padding: 10px 12px;
	font-family: var(--ahexbs-sans);
	font-size: 13px;
	color: #fff;
	outline: none;
	transition: border-color .18s ease;
	box-shadow: none;
	/* braintech/assets/css/default.css:57 puts margin-bottom:30px on every text
	   input site-wide - the field spacing here is the wrap's margin only. */
	margin: 0;
}

.ahexbs-form input::placeholder,
.ahexbs-form textarea::placeholder {
	color: rgba(255, 255, 255, .42);
}

.ahexbs-form input:focus,
.ahexbs-form textarea:focus {
	border-color: #8b5cf6;
}

.ahexbs-form textarea {
	height: 64px;
	resize: vertical;
}

.ahexbs-form input[type="submit"],
.ahexbs-form .wpcf7-submit {
	width: 100%;
	background: var(--ahexbs-grad);
	color: #fff;
	font-family: var(--ahexbs-sans);
	font-size: 13.5px;
	font-weight: 700;
	padding: 12px;
	border: none;
	border-radius: 10px;
	cursor: pointer;
	transition: opacity .18s ease;
	margin-top: 2px;
}

.ahexbs-form input[type="submit"]:hover,
.ahexbs-form .wpcf7-submit:hover {
	opacity: .9;
}

.ahexbs-form .wpcf7-not-valid-tip {
	font-size: 11px;
	color: #fca5a5;
	margin-top: 3px;
}

.ahexbs-form .wpcf7-response-output {
	font-size: 12px;
	color: rgba(255, 255, 255, .75);
	border-color: rgba(255, 255, 255, .25) !important;
	margin: 12px 0 0 !important;
	padding: 8px 10px !important;
	border-radius: 8px;
}

.ahexbs-form .wpcf7-spinner {
	margin: 8px auto 0;
	display: block;
}

.ahexbs-form__nda {
	display: flex;
	align-items: center;
	gap: 6px;
	justify-content: center;
	margin: 10px 0 0;
	font-size: 11px;
	color: rgba(255, 255, 255, .45);
}

.ahexbs-form__nda svg {
	width: 11px;
	height: 11px;
	stroke: rgba(255, 255, 255, .45);
	fill: none;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
}

/* -------------------------------------------------------- related posts -- */

.ahexbs-related {
	background: var(--ahexbs-soft);
	border-top: 1px solid var(--ahexbs-line);
	padding: 56px 40px;
	font-family: var(--ahexbs-sans);
}

.ahexbs-related__inner {
	max-width: 1280px;
	margin: 0 auto;
}

.ahexbs-related__head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 24px;
	flex-wrap: wrap;
	margin-bottom: 28px;
}

.ahexbs-related__title {
	font-family: var(--ahexbs-display);
	font-size: 26px;
	font-weight: 800;
	color: var(--ahexbs-ink);
	margin: 0 0 8px;
}

.ahexbs-related__sub {
	font-size: 14.5px;
	color: var(--ahexbs-muted);
	margin: 0;
	max-width: 620px;
}

.ahexbs-related__all {
	background: var(--ahexbs-grad);
	color: #fff !important;
	font-size: 13.5px;
	font-weight: 700;
	padding: 12px 22px;
	border-radius: 11px;
	white-space: nowrap;
}

.ahexbs-related__all:hover {
	opacity: .9;
}

.ahexbs-related__grid {
	display: flex;
	flex-wrap: wrap;
	gap: 20px;
}

.ahexbs-card {
	flex: 1 1 320px;
	min-width: 0;
	background: #fff;
	border: 1.5px solid var(--ahexbs-line);
	border-radius: 18px;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	transition: border-color .18s ease, transform .18s ease;
}

.ahexbs-card:hover {
	border-color: rgba(79, 70, 229, .32);
	transform: translateY(-2px);
}

/* 16:9, not a fixed height: the blog banners are authored at 16:9 (2394x1348),
   so a fixed 170px box cropped the top and bottom off every one of them. With
   the ratio matched, cover has nothing left to cut. */
.ahexbs-card__media {
	display: block;
	aspect-ratio: 16 / 9;
	background: linear-gradient(135deg, #f4f4ff, #ede9fe);
	overflow: hidden;
}

@supports not (aspect-ratio: 16 / 9) {
	.ahexbs-card__media {
		height: 200px;
	}
}

.ahexbs-card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.ahexbs-card__body {
	padding: 20px;
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;
}

.ahexbs-card__title {
	font-family: var(--ahexbs-display);
	font-size: 16.5px;
	font-weight: 700;
	color: var(--ahexbs-ink);
	line-height: 1.35;
	margin-bottom: 10px;
}

.ahexbs-card__excerpt {
	font-size: 13.5px;
	color: var(--ahexbs-muted);
	line-height: 1.6;
	margin-bottom: 16px;
}

.ahexbs-card__foot {
	margin-top: auto;
	display: flex;
	align-items: center;
	gap: 10px;
}

.ahexbs-card__avatar {
	width: 34px;
	height: 34px;
	border-radius: 50%;
	background: var(--ahexbs-grad);
	display: flex;
	align-items: center;
	justify-content: center;
	font-family: var(--ahexbs-display);
	font-size: 12px;
	font-weight: 700;
	color: #fff;
	flex-shrink: 0;
}

.ahexbs-card__meta {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.ahexbs-card__author {
	font-size: 12.5px;
	font-weight: 700;
	color: var(--ahexbs-ink);
}

.ahexbs-card__date {
	font-size: 11.5px;
	color: var(--ahexbs-muted);
}

/* ----------------------------------------------------------- footer cta -- */

.ahexbs-footcta {
	background: var(--ahexbs-ink);
	padding: 44px 40px;
	font-family: var(--ahexbs-sans);
}

.ahexbs-footcta__inner {
	max-width: 1280px;
	margin: 0 auto;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	flex-wrap: wrap;
}

.ahexbs-footcta__title {
	font-family: var(--ahexbs-display);
	font-size: 19px;
	font-weight: 800;
	color: #fff;
	margin: 0 0 6px;
}

.ahexbs-footcta__sub {
	font-size: 13.5px;
	color: rgba(255, 255, 255, .55);
	margin: 0;
}

.ahexbs-footcta__btn {
	background: var(--ahexbs-grad);
	color: #fff !important;
	font-size: 14px;
	font-weight: 700;
	padding: 13px 26px;
	border-radius: 11px;
	white-space: nowrap;
}

.ahexbs-footcta__btn:hover {
	opacity: .9;
}

/* ----------------------------------------------------------- responsive -- */

@media (max-width: 1100px) {
	.ahexbs-side {
		position: static;
		max-height: none;
		padding-right: 0;
		max-width: 100%;
		flex-basis: 100%;
		order: 3;
	}

	.ahexbs-form {
		max-width: 420px;
	}
}

@media (max-width: 1024px) {
	.ahexbs-hero {
		padding: 28px 24px 24px;
	}

	.ahexbs-layout {
		padding: 24px 24px 56px;
		gap: 28px;
	}

	.ahexbs-toc {
		position: static;
		max-height: none;
		max-width: 100%;
		flex-basis: 100%;
		order: 1;
		border: 1px solid var(--ahexbs-line);
		border-radius: 14px;
		padding: 16px 18px;
		background: var(--ahexbs-soft);
	}

	.ahexbs-main {
		order: 2;
		flex-basis: 100%;
	}

	.ahexbs-related,
	.ahexbs-footcta {
		padding-left: 24px;
		padding-right: 24px;
	}
}

@media (max-width: 680px) {
	.ahexbs-hero {
		padding: 22px 16px 20px;
	}

	.ahexbs-layout {
		padding: 20px 16px 44px;
	}

	.ahexbs-crumbs a,
	.ahexbs-crumbs__current {
		font-size: 12.5px;
	}

	.ahexbs-crumbs__current {
		display: none;
	}

	.ahexbs-meta {
		gap: 12px 18px;
	}

	.ahexbs-meta__divider {
		display: none;
	}

	.ahexbs-share {
		margin-left: 0;
		width: 100%;
		padding-top: 6px;
	}

	.ahexbs-body {
		font-size: 15.5px;
	}

	.ahexbs-body h2 {
		font-size: 22px;
	}

	.ahexbs-body h3 {
		font-size: 17px;
	}

	.ahexbs-cta {
		padding: 22px;
	}

	.ahexbs-cta__text {
		font-size: 16px;
	}

	.ahexbs-related,
	.ahexbs-footcta {
		padding-left: 16px;
		padding-right: 16px;
	}

	.ahexbs-related__title {
		font-size: 22px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.ahexbs-progress__bar,
	.ahexbs-card {
		transition: none;
	}
}
