/**
 * Single guide (redesign step 4).
 *
 *   < 64em  one column: header, "In this guide" box, media, content,
 *           author box + tags, Keep reading, then the sidebar content
 *   ≥ 64em  ~720px reading column, 64px gap, sidebar (rest, ≥ 20rem): "In this guide" sticks
 *           below the header through the article; "Bhahuk on YouTube" and
 *           "More <game> guides" sit at the sidebar's end, level with the end
 *           of the article. Keep reading full width.
 */

.bhg-article-page {
	padding-top: var(--bhg-space-5);
}

.bhg-article__grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	grid-template-areas:
		"main"
		"more"
		"side";
	gap: var(--bhg-space-12);
}

.bhg-article__main {
	grid-area: main;
	min-width: 0;
}

.bhg-article__side {
	grid-area: side;
	min-width: 0;
}

.bhg-keep-reading {
	grid-area: more;
	min-width: 0;
}

@media (min-width: 64em) {
	.bhg-article__grid {
		/* ~720px reading column, 64px gap, the sidebar takes the rest (at least 320px). */
		grid-template-columns: minmax(0, 45rem) minmax(20rem, 1fr);
		grid-template-areas:
			"main side"
			"more more";
		column-gap: var(--bhg-space-16);
	}

	/*
	 * The sidebar is as tall as the article. The TOC takes the free space and
	 * its inner block sticks; the cards after it end level with the article,
	 * so nothing ever slides under the sticky TOC.
	 */
	.bhg-article__side-inner {
		height: 100%;
	}

	.bhg-toc--side {
		flex: 1 0 auto;
	}

	.bhg-toc__sticky {
		position: sticky;
		top: calc(var(--bhg-sticky-top) + var(--bhg-space-6));
		max-height: calc(100vh - var(--bhg-sticky-top) - var(--bhg-space-12));
		overflow-y: auto;
		overscroll-behavior: contain;
		scrollbar-width: thin;
		scrollbar-color: var(--bhg-color-border-strong) transparent;
	}
}

/* ---------------------------------------------------------------------
 * Header: category, title, mono subtitle, byline, stripe, actions
 * ------------------------------------------------------------------ */
.bhg-article__header {
	display: grid;
	justify-items: start;
	gap: var(--bhg-space-4);
	margin-top: var(--bhg-space-4);
}

.bhg-article__cat {
	color: var(--bhg-color-accent);
	font-size: var(--bhg-text-sm);
	font-weight: var(--bhg-weight-bold);
	letter-spacing: var(--bhg-tracking-wide);
	text-decoration: none;
	text-transform: uppercase;
}

.bhg-article__cat:hover {
	color: var(--bhg-color-heading);
}

.bhg-article__title {
	font-size: var(--bhg-text-3xl);
	line-height: 1.1;
	text-wrap: pretty;
}

@media (min-width: 64em) {
	.bhg-article__title {
		font-size: 2.75rem; /* 44px */
	}
}

.bhg-article__subtitle {
	margin: 0;
	color: var(--bhg-color-text);
	font-family: var(--bhg-font-meta);
	font-size: var(--bhg-text-sm);
	line-height: var(--bhg-leading-body);
}

@media (min-width: 48em) {
	.bhg-article__subtitle {
		font-size: var(--bhg-text-base);
	}
}

.bhg-byline {
	display: flex;
	align-items: center;
	gap: var(--bhg-space-3);
	margin-top: var(--bhg-space-1);
}

.bhg-author-avatar {
	flex-shrink: 0;
	border-radius: var(--bhg-radius-round);
}

.bhg-byline__text {
	display: grid;
	gap: 0.15rem;
}

.bhg-byline__name {
	margin: 0;
	color: var(--bhg-color-text);
	font-size: var(--bhg-text-sm);
	font-weight: var(--bhg-weight-semibold);
}

.bhg-byline__name a {
	color: var(--bhg-color-heading);
	text-decoration: none;
}

.bhg-byline__name a:hover {
	color: var(--bhg-color-link);
}

.bhg-byline__meta {
	font-size: var(--bhg-text-xs);
	gap: var(--bhg-space-1) var(--bhg-space-2);
}

/* Phones: the parts wrap, so spacing instead of "|" (no dangling separator). */
@media (max-width: 47.99em) {
	.bhg-byline__meta .bhg-meta-line__sep {
		display: none;
	}

	.bhg-byline__meta {
		column-gap: var(--bhg-space-3);
	}
}

.bhg-article__stripe {
	display: block;
	width: 4.5rem;
	height: 4px;
	margin-block: var(--bhg-space-1);
	border-radius: 2px;
	background: var(--bhg-brand-stripe);
}

/* Share + Watch on YouTube */
.bhg-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: var(--bhg-space-3) var(--bhg-space-4);
	width: 100%;
}

.bhg-share {
	display: flex;
	align-items: center;
	gap: var(--bhg-space-3);
}

.bhg-share__title {
	color: var(--bhg-color-text-muted);
	font-size: var(--bhg-text-xs);
}

.bhg-share__list {
	display: flex;
	flex-wrap: wrap;
	gap: var(--bhg-space-2);
	margin: 0;
	padding: 0;
	list-style: none;
}

.bhg-share__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: var(--bhg-space-2);
	min-width: var(--bhg-tap-target);
	min-height: var(--bhg-tap-target);
	padding: 0 var(--bhg-space-3);
	border: var(--bhg-border-width) solid var(--bhg-color-border);
	border-radius: var(--bhg-radius-pill);
	background: var(--bhg-color-surface);
	color: var(--bhg-color-text);
	font: inherit;
	font-size: var(--bhg-text-sm);
	font-weight: var(--bhg-weight-semibold);
	text-decoration: none;
	cursor: pointer;
	transition: border-color var(--bhg-duration-base) var(--bhg-ease-out), color var(--bhg-duration-base) var(--bhg-ease-out);
}

.bhg-share__link .bhg-icon {
	width: 1.15rem;
	height: 1.15rem;
}

.bhg-share__link--whatsapp .bhg-icon { color: #25d366; }
.bhg-share__link--facebook .bhg-icon { color: #4f8dff; }
.bhg-share__link--x .bhg-icon,
.bhg-share__link--copy .bhg-icon { color: var(--bhg-color-accent); }

.bhg-share__link:hover {
	border-color: var(--bhg-color-accent);
	color: var(--bhg-color-heading);
}

.bhg-share__link:focus-visible,
.bhg-watch:focus-visible {
	outline: 2px solid var(--bhg-color-focus);
	outline-offset: 2px;
}

/* Phones: round icon buttons; the names stay for screen readers. */
@media (max-width: 47.99em) {
	.bhg-share__link {
		padding: 0;
	}

	.bhg-share__label {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip: rect(0 0 0 0);
		white-space: nowrap;
	}
}

.bhg-watch {
	display: inline-flex;
	align-items: center;
	gap: var(--bhg-space-2);
	min-height: var(--bhg-tap-target);
	padding: 0 var(--bhg-space-4);
	border-radius: var(--bhg-radius-pill);
	background: var(--bhg-color-accent);
	color: var(--bhg-color-on-accent);
	font-size: var(--bhg-text-sm);
	font-weight: var(--bhg-weight-bold);
	text-decoration: none;
	transition: background-color var(--bhg-duration-base) var(--bhg-ease-out);
}

.bhg-watch .bhg-icon {
	width: 1.35rem;
	height: 1.35rem;
}

.bhg-watch:hover {
	background: var(--bhg-color-accent-hover);
	color: var(--bhg-color-on-accent);
}

/* ---------------------------------------------------------------------
 * "In this guide" (box on phones / tablets, sidebar list on desktop)
 * ------------------------------------------------------------------ */
.bhg-toc--box {
	margin-top: var(--bhg-space-6);
	border: var(--bhg-border-width) solid var(--bhg-color-border);
	border-left: 3px solid var(--bhg-color-accent);
	border-radius: var(--bhg-radius-md);
	background: var(--bhg-color-surface);
}

@media (min-width: 64em) {
	.bhg-toc--box {
		display: none;
	}
}

@media (max-width: 63.99em) {
	.bhg-toc--side {
		display: none;
	}
}

.bhg-toc__summary {
	display: flex;
	align-items: center;
	gap: var(--bhg-space-3);
	min-height: var(--bhg-tap-target);
	padding: var(--bhg-space-3) var(--bhg-space-4);
	color: var(--bhg-color-heading);
	font-family: var(--bhg-font-heading);
	font-size: var(--bhg-text-lg);
	font-weight: var(--bhg-weight-extrabold);
	list-style: none;
	cursor: pointer;
}

.bhg-toc__summary::-webkit-details-marker {
	display: none;
}

.bhg-toc__count {
	margin-left: auto;
	color: var(--bhg-color-text-muted);
	font-size: var(--bhg-text-xs);
}

.bhg-toc__summary::after {
	content: "";
	flex-shrink: 0;
	width: 0.6rem;
	height: 0.6rem;
	border-right: 2px solid var(--bhg-color-accent);
	border-bottom: 2px solid var(--bhg-color-accent);
	transform: translateY(-25%) rotate(45deg);
	transition: transform var(--bhg-duration-base) var(--bhg-ease-out);
}

.bhg-toc__details[open] .bhg-toc__summary::after {
	transform: translateY(25%) rotate(-135deg);
}

.bhg-toc__summary:focus-visible {
	outline: 2px solid var(--bhg-color-focus);
	outline-offset: -2px;
	border-radius: var(--bhg-radius-md);
}

.bhg-toc__list {
	margin: 0;
	padding: 0 var(--bhg-space-2) var(--bhg-space-3);
	list-style: none;
	counter-reset: bhg-toc;
}

.bhg-toc--side .bhg-toc__list {
	padding: 0;
}

.bhg-toc__link {
	display: block;
	padding: var(--bhg-space-2) var(--bhg-space-3);
	border-left: 2px solid var(--bhg-color-border);
	color: var(--bhg-color-text);
	font-size: var(--bhg-text-sm);
	line-height: var(--bhg-leading-snug);
	text-decoration: none;
}

.bhg-toc__item--h3 .bhg-toc__link {
	padding-left: var(--bhg-space-6);
	color: var(--bhg-color-text-muted);
	font-size: var(--bhg-text-xs);
}

.bhg-toc__link:hover {
	color: var(--bhg-color-heading);
}

.bhg-toc__link[aria-current="true"] {
	border-left-color: var(--bhg-color-accent);
	color: var(--bhg-color-heading);
	font-weight: var(--bhg-weight-semibold);
}

/* ---------------------------------------------------------------------
 * Media + body
 * ------------------------------------------------------------------ */
.bhg-article__media {
	margin-top: var(--bhg-space-6);
}

.bhg-article__image img {
	width: 100%;
	border-radius: var(--bhg-radius-lg);
}

.bhg-article__image figcaption {
	margin-top: var(--bhg-space-2);
	color: var(--bhg-color-text-muted);
	font-size: var(--bhg-text-sm);
}

.bhg-article__body {
	max-width: none;
	margin-top: var(--bhg-space-8);
}

/* YouTube facade */
.bhg-video__play-link,
.bhg-video__frame {
	position: relative;
	display: block;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	border-radius: var(--bhg-radius-lg);
	background: #000;
}

.bhg-video__poster {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform var(--bhg-duration-slow) var(--bhg-ease-out), opacity var(--bhg-duration-base);
}

.bhg-video__play-link:hover .bhg-video__poster {
	transform: scale(1.02);
	opacity: 0.9;
}

/* YouTube-style red play button. */
.bhg-video__button {
	position: absolute;
	top: 50%;
	left: 50%;
	display: grid;
	place-items: center;
	width: 4.5rem;
	height: 3.25rem;
	border-radius: var(--bhg-radius-lg);
	background: #e00;
	color: #fff;
	box-shadow: var(--bhg-shadow-lg);
	transform: translate(-50%, -50%);
	transition: transform var(--bhg-duration-base) var(--bhg-ease-out), background-color var(--bhg-duration-base);
}

.bhg-video__button .bhg-icon {
	width: 1.9rem;
	height: 1.9rem;
}

.bhg-video__play-link:hover .bhg-video__button,
.bhg-video__play-link:focus-visible .bhg-video__button {
	background: #c00;
	transform: translate(-50%, -50%) scale(1.06);
}

.bhg-video__play-link:focus-visible {
	outline: 2px solid var(--bhg-color-focus);
	outline-offset: 3px;
}

.bhg-video__frame iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

.bhg-video__note {
	margin-top: var(--bhg-space-2);
	color: var(--bhg-color-text-muted);
	font-family: var(--bhg-font-meta);
	font-size: var(--bhg-text-xs);
}

/* In-content ad slots: hidden ones take no space (the owl margin skips them). */
.bhg-prose > .bhg-ad-slot[hidden] + * {
	margin-top: 0;
}

.bhg-prose > .bhg-ad-slot[hidden] + h2 {
	margin-top: var(--bhg-space-12);
}

/* ---------------------------------------------------------------------
 * Footer: author box, tags
 * ------------------------------------------------------------------ */
.bhg-article__footer {
	display: grid;
	gap: var(--bhg-space-8);
	margin-top: var(--bhg-space-12);
	padding-top: var(--bhg-space-8);
	border-top: var(--bhg-border-width) solid var(--bhg-color-border);
}

.bhg-article__tags {
	display: grid;
	gap: var(--bhg-space-3);
}

.bhg-tags {
	display: flex;
	flex-wrap: wrap;
	gap: var(--bhg-space-2);
	margin: 0;
	padding: 0;
	list-style: none;
}

.bhg-author-box {
	position: relative;
	display: grid;
	grid-template-columns: auto 1fr;
	gap: var(--bhg-space-4);
	padding: var(--bhg-space-5);
	overflow: hidden;
	border: var(--bhg-border-width) solid var(--bhg-color-border);
	border-radius: var(--bhg-radius-lg);
	background:
		radial-gradient(24rem 12rem at 0% 0%, rgb(0 240 240 / 0.1), transparent 70%),
		var(--bhg-color-surface);
}

/* Same short cyan → teal stripe as under the byline. */
.bhg-author-box::before {
	content: "";
	position: absolute;
	inset: 0 auto auto 0;
	width: 4.5rem;
	height: 4px;
	background: var(--bhg-brand-stripe);
}

.bhg-author-box__label {
	color: var(--bhg-color-text-muted);
	font-family: var(--bhg-font-meta);
	font-size: var(--bhg-text-xs);
	letter-spacing: var(--bhg-tracking-meta);
	text-transform: var(--bhg-meta-case);
}

.bhg-author-box__name {
	font-size: var(--bhg-text-xl);
}

.bhg-author-box__name a {
	color: var(--bhg-color-heading);
	text-decoration: none;
}

.bhg-author-box__bio {
	margin-block: var(--bhg-space-2) var(--bhg-space-4);
	color: var(--bhg-color-text);
	font-size: var(--bhg-text-sm);
}

/* ---------------------------------------------------------------------
 * Sidebar cards
 * ------------------------------------------------------------------ */
.bhg-article__side-inner {
	display: flex;
	flex-direction: column;
	gap: var(--bhg-space-6);
}

.bhg-side__title {
	display: flex;
	align-items: center;
	gap: var(--bhg-space-2);
	margin-bottom: var(--bhg-space-3);
	color: var(--bhg-color-text-muted);
	font-family: var(--bhg-font-meta);
	font-size: var(--bhg-text-xs);
	font-weight: var(--bhg-weight-semibold);
	letter-spacing: var(--bhg-tracking-meta);
	text-transform: var(--bhg-meta-case);
}

.bhg-side__title .bhg-icon {
	width: 1.25rem;
	height: 1.25rem;
	color: #ff3b3b;
}

.bhg-side-card {
	padding: var(--bhg-space-4);
	border: var(--bhg-border-width) solid var(--bhg-color-border);
	border-radius: var(--bhg-radius-lg);
	background: var(--bhg-color-surface);
}

.bhg-yt-mini__link {
	display: grid;
	gap: var(--bhg-space-2);
	color: var(--bhg-color-heading);
	text-decoration: none;
}

.bhg-yt-mini__link:hover img {
	transform: scale(1.03);
}

.bhg-yt-mini__link:hover .bhg-yt-mini__title {
	color: var(--bhg-color-link);
}

.bhg-yt-mini__link:focus-visible {
	outline: 2px solid var(--bhg-color-focus);
	outline-offset: 4px;
	border-radius: var(--bhg-radius-sm);
}

.bhg-yt-mini__title {
	display: -webkit-box;
	overflow: hidden;
	font-family: var(--bhg-font-heading);
	font-size: var(--bhg-text-base);
	font-weight: var(--bhg-weight-extrabold);
	line-height: var(--bhg-leading-snug);
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	line-clamp: 2;
}

.bhg-yt-mini .bhg-meta-line {
	font-size: var(--bhg-text-xs);
}

.bhg-yt-mini__channel {
	margin-top: var(--bhg-space-3);
	font-size: var(--bhg-text-sm);
}

.bhg-side-list {
	display: grid;
	margin: 0;
	padding: 0;
	list-style: none;
}

.bhg-side-list__item {
	position: relative;
	display: grid;
	grid-template-columns: 6rem minmax(0, 1fr);
	align-items: start;
	gap: var(--bhg-space-3);
	padding-block: var(--bhg-space-3);
	border-top: var(--bhg-border-width) solid var(--bhg-color-border);
}

.bhg-side-list__item:first-child {
	padding-top: 0;
	border-top: 0;
}

.bhg-side-list__media {
	display: block;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	border-radius: var(--bhg-radius-sm);
	background: var(--bhg-color-surface-raised);
}

.bhg-side-list__image,
.bhg-side-list__media .bhg-top__placeholder {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.bhg-side-list__text {
	display: grid;
	gap: var(--bhg-space-1);
}

.bhg-side-list__title {
	display: -webkit-box;
	overflow: hidden;
	font-size: var(--bhg-text-sm);
	line-height: var(--bhg-leading-snug);
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
	line-clamp: 3;
}

.bhg-side-list__title a {
	color: var(--bhg-color-heading);
	text-decoration: none;
}

.bhg-side-list__title a::after {
	content: "";
	position: absolute;
	inset: 0;
}

.bhg-side-list__title a:hover {
	color: var(--bhg-color-link);
}

.bhg-side-list__title a:focus-visible {
	outline: none;
}

.bhg-side-list__item:has(a:focus-visible) {
	outline: 2px solid var(--bhg-color-focus);
	outline-offset: 2px;
	border-radius: var(--bhg-radius-sm);
}

.bhg-side-list .bhg-meta-line {
	font-size: var(--bhg-text-xs);
}

/* ---------------------------------------------------------------------
 * Keep reading: 4 cards (2 per row on tablets, 1 on phones)
 * ------------------------------------------------------------------ */
.bhg-keep-reading {
	padding-top: var(--bhg-space-10);
	border-top: var(--bhg-border-width) solid var(--bhg-color-border);
}

.bhg-keep-reading__grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: var(--bhg-space-5);
}

@media (min-width: 40em) {
	.bhg-keep-reading__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 64em) {
	.bhg-keep-reading__grid {
		grid-template-columns: repeat(4, minmax(0, 1fr));
		gap: var(--bhg-space-6);
	}
}

/* Phones: breadcrumbs stop at the game ("Home › GTA 6"); the title follows right below. */
@media (max-width: 47.99em) {
	.bhg-article .bhg-breadcrumbs__item:last-child:not(:first-child) {
		display: none;
	}
}

/* ---------------------------------------------------------------------
 * Comments (verified members): list, gate for guests, form
 * ------------------------------------------------------------------ */
.bhg-comments {
	display: grid;
	gap: var(--bhg-space-6);
	margin-top: var(--bhg-space-12);
	padding-top: var(--bhg-space-8);
	border-top: var(--bhg-border-width) solid var(--bhg-color-border);
	scroll-margin-top: calc(var(--bhg-sticky-top) + var(--bhg-space-4));
}

.bhg-comments__title {
	position: relative;
	padding-top: var(--bhg-space-3);
	font-size: var(--bhg-text-2xl);
}

/* Short cyan → teal stripe, as under the byline. */
.bhg-comments__title::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	width: 3rem;
	height: 3px;
	border-radius: 2px;
	background: var(--bhg-brand-stripe);
}

.bhg-comments__list,
.bhg-comments__list .children {
	display: grid;
	gap: var(--bhg-space-4);
	margin: 0;
	padding: 0;
	list-style: none;
}

.bhg-comments__list .children {
	margin-top: var(--bhg-space-4);
	padding-left: var(--bhg-space-4);
	border-left: 2px solid var(--bhg-color-border-strong);
}

@media (min-width: 48em) {
	.bhg-comments__list .children {
		padding-left: var(--bhg-space-6);
	}
}

.bhg-comment__body {
	display: grid;
	gap: var(--bhg-space-3);
	padding: var(--bhg-space-4);
	border: var(--bhg-border-width) solid var(--bhg-color-border);
	border-radius: var(--bhg-radius-lg);
	background: var(--bhg-color-surface);
}

.bhg-comment:target > .bhg-comment__body {
	border-color: var(--bhg-color-accent);
}

.bhg-comment__head {
	display: flex;
	align-items: center;
	gap: var(--bhg-space-3);
}

.bhg-comment__avatar {
	width: 2.25rem;
	height: 2.25rem;
	background: var(--bhg-color-surface-raised);
	color: var(--bhg-color-heading);
	font-weight: var(--bhg-weight-bold);
}

.bhg-comment__avatar--team {
	background: var(--bhg-brand-gradient);
	color: var(--bhg-color-on-accent);
}

.bhg-comment__who {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: var(--bhg-space-1) var(--bhg-space-3);
	min-width: 0;
}

.bhg-comment__name {
	overflow-wrap: anywhere;
	color: var(--bhg-color-heading);
	font-weight: var(--bhg-weight-bold);
}

.bhg-comment__badge {
	padding: 0.05rem 0.5rem;
	border-radius: var(--bhg-radius-pill);
	background: var(--bhg-brand-accent-soft);
	color: var(--bhg-color-accent);
	font-size: var(--bhg-text-xs);
	font-weight: var(--bhg-weight-bold);
}

.bhg-comment__time {
	color: var(--bhg-color-text-muted);
	font-size: var(--bhg-text-xs);
	text-decoration: none;
}

.bhg-comment__time:hover {
	color: var(--bhg-color-link);
}

.bhg-comment__pending {
	margin: 0;
	padding: var(--bhg-space-2) var(--bhg-space-3);
	border-left: 3px solid var(--bhg-color-warning);
	border-radius: var(--bhg-radius-sm);
	background: var(--bhg-color-surface-raised);
	color: var(--bhg-color-heading);
	font-size: var(--bhg-text-sm);
}

.bhg-comment__text {
	overflow-wrap: anywhere;
	color: var(--bhg-color-text);
	line-height: var(--bhg-leading-body);
}

.bhg-comment__text > * + * {
	margin-top: var(--bhg-space-3);
}

.bhg-comment__text a {
	color: var(--bhg-color-link);
}

.bhg-comment__reply {
	margin: 0;
}

.bhg-comment__reply a {
	display: inline-flex;
	align-items: center;
	min-height: var(--bhg-tap-target);
	color: var(--bhg-color-accent);
	font-size: var(--bhg-text-sm);
	font-weight: var(--bhg-weight-semibold);
	text-decoration: none;
}

.bhg-comment__reply a:hover {
	color: var(--bhg-color-heading);
}

/* Guests and unverified members */
.bhg-comments__gate {
	display: grid;
	gap: var(--bhg-space-4);
	padding: var(--bhg-space-5);
	border: var(--bhg-border-width) solid var(--bhg-color-border);
	border-left: 3px solid var(--bhg-color-accent);
	border-radius: var(--bhg-radius-lg);
	background: var(--bhg-color-surface);
}

@media (min-width: 48em) {
	.bhg-comments__gate {
		grid-template-columns: minmax(0, 1fr) auto;
		align-items: center;
	}
}

.bhg-comments__gate-text {
	margin: 0;
	color: var(--bhg-color-heading);
	font-size: var(--bhg-text-lg);
	font-weight: var(--bhg-weight-semibold);
}

.bhg-comments__gate-actions {
	display: flex;
	flex-wrap: wrap;
	gap: var(--bhg-space-3);
}

.bhg-comments__closed {
	color: var(--bhg-color-text-muted);
}

/* Form */
.bhg-comments__respond {
	display: grid;
	gap: var(--bhg-space-3);
	padding: var(--bhg-space-5);
	border: var(--bhg-border-width) solid var(--bhg-color-border);
	border-radius: var(--bhg-radius-lg);
	background: var(--bhg-color-surface);
}

/* Replying: the form moves under the comment (comment-reply.js). */
.bhg-comment .bhg-comments__respond {
	margin-top: var(--bhg-space-4);
}

.bhg-comments__form-title {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: var(--bhg-space-2);
	font-size: var(--bhg-text-xl);
}

.bhg-comments__form-title small a {
	color: var(--bhg-color-text-muted);
	font-family: var(--bhg-font-body);
	font-size: var(--bhg-text-sm);
	font-weight: var(--bhg-weight-semibold);
}

.bhg-comments__form {
	display: grid;
	gap: var(--bhg-space-3);
}

.bhg-comments__form > p {
	margin: 0;
}

.bhg-comments__as {
	color: var(--bhg-color-text-muted);
	font-size: var(--bhg-text-xs);
}

.bhg-comments__field textarea {
	display: block;
	width: 100%;
	min-height: 8rem;
	padding: var(--bhg-space-3) var(--bhg-space-4);
	border: var(--bhg-border-width) solid var(--bhg-color-border-strong);
	border-radius: var(--bhg-radius-md);
	background: var(--bhg-color-bg);
	color: var(--bhg-color-heading);
	font: inherit;
	line-height: var(--bhg-leading-body);
	resize: vertical;
}

.bhg-comments__field textarea::placeholder {
	color: var(--bhg-color-text-muted);
}

.bhg-comments__field textarea:focus-visible {
	outline: 2px solid var(--bhg-color-focus);
	outline-offset: 1px;
	border-color: var(--bhg-color-accent);
}

.bhg-comments__rules {
	color: var(--bhg-color-text-muted);
	font-size: var(--bhg-text-sm);
}

.bhg-hindi-pending { margin: 1rem 0; color: var(--bhg-color-text-muted); font-size: var(--bhg-text-sm); }
