/*
Theme Name: ReadHiveHQ
Theme URI: https://readhivehq.com/
Author: Muhammad Aqib
Author URI: https://www.fiverr.com/aqibarif74
Description: A community-driven blog theme for publications built by a collective. ReadHiveHQ turns the front page into a real honeycomb — a seven-cell hexagon hero with the lead story at its centre — and pairs Familjen Grotesk, Inter and Fraunces on a honey-glow canvas. Ships gamified contributor ranks (Worker, Forager, Guide, Queen) derived from published post counts, a Buzz meter derived from comment counts, honeycomb category navigation, a Worker Bees contributor spotlight, reader-submitted Collective Insights, a community poll, live hive stats and a flash-free dark mode across eleven purpose-built templates. Every hexagon is pure CSS clip-path — no images, no CDN.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 7.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: readhivehq
Tags: blog, news, community, custom-menu, custom-logo, featured-images, right-sidebar, two-columns, translation-ready, block-styles, wide-blocks, threaded-comments, footer-widgets
*/

/* ==========================================================================
   1. Design tokens
   ========================================================================== */

:root {
	--rhh-bg:          #fffbeb;
	--rhh-surface:     #ffffff;
	--rhh-surface-alt: #fef6dd;
	--rhh-primary:     #451a03;
	--rhh-accent:      #eab308;
	--rhh-accent-soft: #facc15;
	--rhh-secondary:   #78350f;
	--rhh-text:        #1c1917;
	--rhh-muted:       #78716c;
	--rhh-border:      #f0e0b4;
	--rhh-rule:        #ead9ae;
	--rhh-comb:        #fde68a;
	--rhh-comb-soft:   #fef3c7;

	/* Slab colours: the deep honey used for the footer and inverted strips.
	   Kept separate from --rhh-primary because primary flips light in dark
	   mode while these slabs must stay dark in both schemes. */
	--rhh-deep:        #451a03;
	--rhh-on-deep:     rgba(255, 251, 235, .78);
	--rhh-on-accent:   #451a03;

	--rhh-font-head:    "Familjen Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
	--rhh-font-body:    "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
	--rhh-font-display: "Fraunces", Georgia, "Times New Roman", serif;

	--rhh-radius:    10px;
	--rhh-radius-lg: 16px;
	--rhh-gutter:    32px;
	--rhh-max:       1220px;
	--rhh-content:   720px;

	--rhh-shadow:    0 2px 4px rgba(69, 26, 3, .05), 0 14px 34px rgba(69, 26, 3, .09);
	--rhh-shadow-sm: 0 1px 3px rgba(69, 26, 3, .1);

	/* The single hexagon path used everywhere: a flat-top regular hexagon. */
	--rhh-hexpath: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
}

[data-theme="dark"] {
	--rhh-bg:          #1c1917;
	--rhh-surface:     #292524;
	--rhh-surface-alt: #322b25;
	--rhh-primary:     #fef3c7;
	--rhh-accent:      #fbbf24;
	--rhh-accent-soft: #fcd34d;
	--rhh-secondary:   #f59e0b;
	--rhh-text:        #e7e5e4;
	--rhh-muted:       #a8a29e;
	--rhh-border:      #44403c;
	--rhh-rule:        #3b3532;
	--rhh-comb:        #453a28;
	--rhh-comb-soft:   #332d24;

	--rhh-deep:        #12100e;
	--rhh-on-deep:     rgba(254, 243, 199, .74);
	--rhh-on-accent:   #1c1917;

	--rhh-shadow:      0 2px 4px rgba(0, 0, 0, .4), 0 14px 34px rgba(0, 0, 0, .5);
	--rhh-shadow-sm:   0 1px 3px rgba(0, 0, 0, .5);
}

/* ==========================================================================
   2. Reset & base
   ========================================================================== */

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

body {
	margin: 0;
	background: var(--rhh-bg);
	color: var(--rhh-text);
	font-family: var(--rhh-font-body);
	font-size: 17px;
	line-height: 1.7;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
	transition: background .25s ease, color .25s ease;
}

h1, h2, h3, h4, h5, h6 {
	font-family: var(--rhh-font-head);
	color: var(--rhh-primary);
	line-height: 1.14;
	margin: 0 0 .5em;
	font-weight: 700;
	letter-spacing: -.02em;
}

h1 { font-size: clamp(2.1rem, 4.6vw, 3.3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); }
h3 { font-size: 1.35rem; }

a { color: var(--rhh-secondary); text-decoration: none; }
a:hover, a:focus { text-decoration: underline; text-underline-offset: 3px; }

img { max-width: 100%; height: auto; display: block; }

figure { margin: 0; }

:focus-visible {
	outline: 2px solid var(--rhh-accent);
	outline-offset: 3px;
	border-radius: 4px;
}

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

.skip-link {
	position: absolute;
	left: -9999px;
	top: 0;
	z-index: 999;
	background: var(--rhh-accent);
	color: var(--rhh-on-accent);
	font-weight: 700;
	padding: 12px 22px;
	border-radius: 0 0 var(--rhh-radius) 0;
}
.skip-link:focus { left: 0; }

/* ==========================================================================
   3. Layout & shared utilities
   ========================================================================== */

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

.rhh-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 320px;
	gap: 56px;
	align-items: start;
	padding-block: 56px;
}
.rhh-layout--full { grid-template-columns: minmax(0, 1fr); }

@media (max-width: 980px) {
	.rhh-layout { grid-template-columns: minmax(0, 1fr); gap: 40px; }
}

/* The hexagonal category chip — the hive's section tag. */
.rhh-hexbadge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 7px 22px;
	clip-path: polygon(11px 0, calc(100% - 11px) 0, 100% 50%, calc(100% - 11px) 100%, 11px 100%, 0 50%);
	background: var(--rhh-accent);
	color: var(--rhh-on-accent);
	font-family: var(--rhh-font-body);
	font-size: .68rem;
	font-weight: 700;
	letter-spacing: .14em;
	text-transform: uppercase;
	line-height: 1.4;
	transition: background .2s ease;
}
.rhh-hexbadge:hover { background: var(--rhh-accent-soft); text-decoration: none; color: var(--rhh-on-accent); }

.rhh-hexbadge--quiet {
	background: var(--rhh-comb);
	color: var(--rhh-secondary);
}

.rhh-eyebrow {
	font-family: var(--rhh-font-body);
	font-size: .7rem;
	font-weight: 700;
	letter-spacing: .2em;
	text-transform: uppercase;
	color: var(--rhh-secondary);
	margin: 0 0 12px;
}

/* Section heading with a comb rule underneath. */
.rhh-sectionhead {
	display: flex;
	align-items: baseline;
	gap: 16px;
	margin: 0 0 30px;
	padding-bottom: 14px;
	border-bottom: 2px solid var(--rhh-comb);
}
.rhh-sectionhead__title {
	margin: 0;
	font-size: clamp(1.3rem, 2.6vw, 1.85rem);
}
.rhh-sectionhead__more {
	margin-left: auto;
	font-size: .76rem;
	font-weight: 700;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--rhh-muted);
	white-space: nowrap;
}
.rhh-sectionhead__more:hover { color: var(--rhh-secondary); text-decoration: none; }

/* Divider: a hairline with a small solid hexagon at its centre. */
.rhh-divider {
	display: flex;
	align-items: center;
	gap: 16px;
	margin: 56px 0;
}
.rhh-divider::before,
.rhh-divider::after {
	content: "";
	flex: 1;
	height: 2px;
	background: linear-gradient(90deg, transparent, var(--rhh-comb) 50%, transparent);
}
.rhh-divider__mark {
	width: 18px;
	height: 16px;
	clip-path: var(--rhh-hexpath);
	background: var(--rhh-accent);
	flex: 0 0 auto;
}

.rhh-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 13px 28px;
	border-radius: 999px;
	border: 2px solid var(--rhh-accent);
	background: var(--rhh-accent);
	color: var(--rhh-on-accent);
	font-family: var(--rhh-font-body);
	font-weight: 700;
	font-size: .84rem;
	letter-spacing: .03em;
	cursor: pointer;
	transition: background .2s, color .2s, transform .2s;
}
.rhh-btn:hover { background: transparent; color: var(--rhh-secondary); text-decoration: none; transform: translateY(-1px); }

.rhh-btn--ghost {
	background: transparent;
	border-color: var(--rhh-border);
	color: var(--rhh-primary);
}
.rhh-btn--ghost:hover { border-color: var(--rhh-accent); color: var(--rhh-secondary); }

.rhh-textlink {
	font-weight: 700;
	font-size: .84rem;
	letter-spacing: .04em;
	text-transform: uppercase;
	color: var(--rhh-secondary);
	border-bottom: 2px solid var(--rhh-comb);
	transition: border-color .2s;
}
.rhh-textlink:hover { text-decoration: none; border-color: var(--rhh-accent); }
.rhh-textlink::after { content: " \2192"; }

.rhh-clamp-2,
.rhh-clamp-3 {
	display: -webkit-box;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.rhh-clamp-2 { -webkit-line-clamp: 2; }
.rhh-clamp-3 { -webkit-line-clamp: 3; }

/* Byline / meta row */
.rhh-meta {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 10px;
	font-size: .82rem;
	color: var(--rhh-muted);
}
.rhh-meta__by { color: var(--rhh-text); }
.rhh-meta__by a { color: var(--rhh-text); font-weight: 600; }
.rhh-meta__by a:hover { color: var(--rhh-secondary); }
.rhh-meta__sep {
	width: 8px; height: 7px;
	clip-path: var(--rhh-hexpath);
	background: var(--rhh-accent);
	flex: 0 0 auto;
}

/* Hexagonal avatar wrapper — works with any get_avatar() output. */
.rhh-hexavatar {
	display: inline-block;
	flex: 0 0 auto;
	width: 48px;
	height: 42px;
	clip-path: var(--rhh-hexpath);
	background: var(--rhh-comb);
	overflow: hidden;
}
.rhh-hexavatar img {
	width: 100%; height: 100%;
	object-fit: cover;
	border-radius: 0;
}
.rhh-hexavatar--lg { width: 96px; height: 83px; }
.rhh-hexavatar--xl { width: 128px; height: 111px; }

/* ==========================================================================
   4. Hexagon primitives — every hexagon in the theme is one of these
   ========================================================================== */

.rhh-cell {
	position: relative;
	padding: 3px;
	min-width: 0;
}

.rhh-hex {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	width: 100%;
	height: 100%;
	clip-path: var(--rhh-hexpath);
	background: var(--rhh-comb-soft);
	color: var(--rhh-primary);
	overflow: hidden;
	transition: background .25s ease, filter .25s ease;
}
.rhh-hex:hover { text-decoration: none; background: var(--rhh-comb); }

.rhh-hex__media { position: absolute; inset: 0; display: block; }
.rhh-hex__media img {
	width: 100%; height: 100%;
	object-fit: cover;
	transition: transform .5s ease;
}
.rhh-hex:hover .rhh-hex__media img { transform: scale(1.06); }

.rhh-hex.has-media::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(28, 25, 23, .2) 0%, rgba(28, 25, 23, .84) 100%);
}

.rhh-hex__body {
	position: relative;
	z-index: 2;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 7px;
	padding: 14% 19%;
	width: 100%;
}
.rhh-hex.has-media .rhh-hex__body { color: #fffbeb; }

.rhh-hex__cat {
	font-size: .58rem;
	font-weight: 700;
	letter-spacing: .16em;
	text-transform: uppercase;
	color: var(--rhh-secondary);
	line-height: 1.3;
}
.rhh-hex.has-media .rhh-hex__cat { color: var(--rhh-accent-soft); }

/* A real h2/h3 inside the tile anchor — reset the global heading styles. */
.rhh-hex__title {
	margin: 0;
	font-family: var(--rhh-font-head);
	font-weight: 700;
	font-size: .95rem;
	line-height: 1.22;
	letter-spacing: -.01em;
	color: inherit;
	-webkit-line-clamp: 3;
	display: -webkit-box;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.rhh-hex__meta {
	font-size: .62rem;
	letter-spacing: .06em;
	text-transform: uppercase;
	opacity: .82;
	line-height: 1.4;
}

/* The lead cell of the honeycomb gets display type and more room. */
.rhh-cell.is-lead .rhh-hex__body { padding: 12% 21%; gap: 10px; }
.rhh-cell.is-lead .rhh-hex__title {
	font-family: var(--rhh-font-display);
	font-size: clamp(1.15rem, 2.1vw, 1.7rem);
	line-height: 1.16;
	-webkit-line-clamp: 4;
}
.rhh-cell.is-lead .rhh-hex__cat { font-size: .66rem; }
.rhh-cell.is-lead .rhh-hex__meta { font-size: .68rem; }

/* --- The 7-cell honeycomb: one big centre cell ringed by six supporters --- */

.rhh-comb {
	--rhh-hexw: clamp(150px, 16.5vw, 214px);
	--rhh-hexh: calc(var(--rhh-hexw) * .866);
	--rhh-hexu: calc(var(--rhh-hexh) / 2);

	display: grid;
	grid-template-columns: var(--rhh-hexw) calc(var(--rhh-hexw) * 1.5) var(--rhh-hexw);
	grid-template-rows: repeat(7, var(--rhh-hexu));
	justify-content: center;
	margin-inline: auto;
}

/* Centre: the lead story. Rows 3-5 keep it 1.5x the supporting cells. */
.rhh-comb > .rhh-cell:nth-child(1) { grid-area: 3 / 2 / 6 / 3; }
/* Top of the centre column. */
.rhh-comb > .rhh-cell:nth-child(2) { grid-area: 1 / 2 / 3 / 3; }
/* Upper flanks, pulled inward so the combs interlock. */
.rhh-comb > .rhh-cell:nth-child(3) { grid-area: 2 / 1 / 4 / 2; transform: translateX(22%); }
.rhh-comb > .rhh-cell:nth-child(4) { grid-area: 2 / 3 / 4 / 4; transform: translateX(-22%); }
/* Lower flanks. */
.rhh-comb > .rhh-cell:nth-child(5) { grid-area: 5 / 1 / 7 / 2; transform: translateX(22%); }
.rhh-comb > .rhh-cell:nth-child(6) { grid-area: 5 / 3 / 7 / 4; transform: translateX(-22%); }
/* Foot of the centre column. */
.rhh-comb > .rhh-cell:nth-child(7) { grid-area: 6 / 2 / 8 / 3; }

@media (max-width: 900px) {
	.rhh-comb {
		display: flex;
		flex-wrap: wrap;
		justify-content: center;
		align-items: center;
		gap: 6px;
	}
	.rhh-comb > .rhh-cell {
		transform: none;
		width: clamp(168px, 30vw, 234px);
		height: calc(clamp(168px, 30vw, 234px) * .866);
	}
	.rhh-comb > .rhh-cell:nth-child(1) {
		width: clamp(268px, 62vw, 390px);
		height: calc(clamp(268px, 62vw, 390px) * .866);
	}
}

@media (max-width: 560px) {
	.rhh-comb > .rhh-cell {
		width: min(80vw, 300px);
		height: calc(min(80vw, 300px) * .866);
	}
	.rhh-comb > .rhh-cell:nth-child(1) {
		width: min(94vw, 360px);
		height: calc(min(94vw, 360px) * .866);
	}
}

/* --- A free-flowing honeycomb grid: category nav, author posts, related --- */

.rhh-combgrid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 6px;
	max-width: 760px;
	margin-inline: auto;
	padding-bottom: 56px;
}
.rhh-combgrid > * { aspect-ratio: 1 / .866; }
/* Alternating columns drop half a cell: the classic comb offset. */
.rhh-combgrid > *:nth-child(even) { transform: translateY(50%); }

@media (max-width: 760px) {
	.rhh-combgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 560px; }
}
@media (max-width: 480px) {
	.rhh-combgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 360px; padding-bottom: 76px; }
}

/* ==========================================================================
   5. Top strip & header
   ========================================================================== */

.rhh-topstrip {
	background: var(--rhh-deep);
	color: var(--rhh-on-deep);
	font-size: .74rem;
	letter-spacing: .04em;
}

.rhh-topstrip__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	min-height: 38px;
	padding-block: 6px;
}
.rhh-topstrip__motto { text-transform: uppercase; letter-spacing: .12em; }
.rhh-topstrip__stats { display: flex; align-items: center; gap: 12px; }
.rhh-topstrip__stats span { white-space: nowrap; }
.rhh-topstrip__dot {
	width: 8px; height: 7px;
	clip-path: var(--rhh-hexpath);
	background: var(--rhh-accent);
	display: inline-block;
}

@media (max-width: 620px) {
	.rhh-topstrip__motto { display: none; }
}

.rhh-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: color-mix(in srgb, var(--rhh-bg) 90%, transparent);
	backdrop-filter: saturate(160%) blur(10px);
	border-bottom: 1px solid var(--rhh-border);
}

.rhh-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	min-height: 82px;
}

.rhh-brand {
	display: inline-flex;
	align-items: center;
	gap: 13px;
	font-family: var(--rhh-font-head);
	font-weight: 700;
	font-size: 1.55rem;
	color: var(--rhh-primary);
	letter-spacing: -.03em;
}
.rhh-brand:hover { text-decoration: none; }

.rhh-brand__mark {
	width: 38px; height: 38px;
	flex: 0 0 auto;
	color: var(--rhh-accent);
	transition: transform .35s ease;
}
.rhh-brand:hover .rhh-brand__mark { transform: rotate(30deg); }
.rhh-brand__mark svg { width: 100%; height: 100%; display: block; fill: currentColor; }

.rhh-brand__tagline {
	display: block;
	font-family: var(--rhh-font-body);
	font-size: .66rem;
	font-weight: 600;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--rhh-muted);
	margin-top: 3px;
}

.rhh-nav ul {
	list-style: none;
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0;
	padding: 0;
}

.rhh-nav a {
	position: relative;
	z-index: 0;
	display: inline-block;
	color: var(--rhh-primary);
	font-size: .8rem;
	font-weight: 600;
	letter-spacing: .07em;
	text-transform: uppercase;
	padding: 9px 18px;
}
.rhh-nav a:hover { text-decoration: none; color: var(--rhh-secondary); }

/* The hex-shaped hover cell behind each nav item. */
.rhh-nav a::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	clip-path: polygon(12px 0, calc(100% - 12px) 0, 100% 50%, calc(100% - 12px) 100%, 12px 100%, 0 50%);
	background: var(--rhh-comb);
	opacity: 0;
	transform: scale(.85);
	transition: opacity .2s ease, transform .2s ease;
}
.rhh-nav a:hover::before,
.rhh-nav a:focus-visible::before { opacity: 1; transform: scale(1); }

.rhh-nav .current-menu-item > a,
.rhh-nav .current_page_item > a { color: var(--rhh-secondary); }
.rhh-nav .current-menu-item > a::before,
.rhh-nav .current_page_item > a::before { opacity: 1; transform: scale(1); }

.rhh-nav li { position: relative; }
.rhh-nav ul ul {
	position: absolute;
	top: 100%;
	left: 0;
	min-width: 214px;
	flex-direction: column;
	align-items: stretch;
	gap: 0;
	background: var(--rhh-surface);
	border: 1px solid var(--rhh-border);
	border-radius: var(--rhh-radius);
	box-shadow: var(--rhh-shadow);
	padding: 8px;
	display: none;
	z-index: 20;
}
.rhh-nav li:hover > ul,
.rhh-nav li:focus-within > ul { display: flex; }
.rhh-nav ul ul a { display: block; padding: 9px 14px; border-radius: 6px; }
.rhh-nav ul ul a::before { display: none; }
.rhh-nav ul ul a:hover { background: var(--rhh-comb-soft); }

.rhh-header__actions { display: flex; align-items: center; gap: 8px; }

/* Icon buttons are hexagons too. */
.rhh-iconbtn {
	width: 44px; height: 39px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: 0;
	clip-path: var(--rhh-hexpath);
	background: var(--rhh-comb-soft);
	color: var(--rhh-primary);
	cursor: pointer;
	padding: 0;
	transition: background .2s, color .2s;
}
.rhh-iconbtn:hover { background: var(--rhh-accent); color: var(--rhh-on-accent); text-decoration: none; }
.rhh-iconbtn svg { width: 18px; height: 18px; fill: currentColor; }

[data-theme="dark"] .rhh-iconbtn__sun  { display: block; }
[data-theme="dark"] .rhh-iconbtn__moon { display: none; }
.rhh-iconbtn__sun  { display: none; }
.rhh-iconbtn__moon { display: block; }

.rhh-menu-toggle { display: none; }

.rhh-searchdrawer {
	display: none;
	padding: 0 0 22px;
	border-top: 1px solid var(--rhh-border);
	margin-top: -1px;
}
.rhh-searchdrawer.is-open { display: block; }
.rhh-searchdrawer .rhh-container { padding-top: 22px; }

@media (max-width: 900px) {
	.rhh-menu-toggle { display: inline-flex; }
	.rhh-nav {
		display: none;
		position: absolute;
		top: 100%; left: 0; right: 0;
		background: var(--rhh-surface);
		border-bottom: 1px solid var(--rhh-border);
		padding: 16px var(--rhh-gutter) 24px;
	}
	.rhh-nav.is-open { display: block; }
	.rhh-nav ul { flex-direction: column; align-items: stretch; gap: 2px; }
	.rhh-nav ul ul { position: static; display: flex; border: 0; box-shadow: none; padding-left: 16px; }
	.rhh-nav a { display: block; padding: 11px 16px; }
	.rhh-brand { font-size: 1.3rem; }
}

/* ==========================================================================
   6. Homepage — the hive
   ========================================================================== */

.rhh-hive-hero { padding-block: 44px 12px; }

.rhh-hive-hero__intro {
	text-align: center;
	max-width: 620px;
	margin: 0 auto 34px;
}
.rhh-hive-hero__title {
	font-family: var(--rhh-font-display);
	font-size: clamp(2rem, 4.4vw, 3rem);
	margin: 0 0 12px;
}
.rhh-hive-hero__lede {
	color: var(--rhh-muted);
	font-size: 1.05rem;
	margin: 0;
}

/* Today's Buzz — most-discussed, with real engagement metrics. */
.rhh-buzzlist { display: flex; flex-direction: column; gap: 4px; }

.rhh-buzzitem {
	display: grid;
	grid-template-columns: 56px minmax(0, 1fr) auto;
	gap: 22px;
	align-items: center;
	padding: 22px 24px;
	border: 1px solid var(--rhh-border);
	border-radius: var(--rhh-radius-lg);
	background: var(--rhh-surface);
	transition: border-color .2s ease, transform .2s ease;
}
.rhh-buzzitem:hover { border-color: var(--rhh-accent); transform: translateX(4px); }

.rhh-buzzitem__rank {
	width: 50px; height: 44px;
	clip-path: var(--rhh-hexpath);
	background: var(--rhh-comb);
	color: var(--rhh-secondary);
	display: flex;
	align-items: center;
	justify-content: center;
	font-family: var(--rhh-font-head);
	font-weight: 700;
	font-size: 1.1rem;
}
.rhh-buzzitem__title { font-size: 1.22rem; line-height: 1.24; margin: 0 0 8px; }
.rhh-buzzitem__title a { color: var(--rhh-primary); }
.rhh-buzzitem__title a:hover { color: var(--rhh-secondary); text-decoration: none; }
.rhh-buzzitem__metrics { display: flex; flex-wrap: wrap; gap: 8px 18px; }

@media (max-width: 720px) {
	.rhh-buzzitem { grid-template-columns: 44px minmax(0, 1fr); gap: 14px; padding: 18px; }
	.rhh-buzzitem__rank { width: 40px; height: 35px; font-size: .95rem; }
	.rhh-buzzitem > .rhh-buzz { grid-column: 2; }
}

.rhh-metric {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	font-size: .78rem;
	color: var(--rhh-muted);
	letter-spacing: .03em;
}
.rhh-metric strong { color: var(--rhh-text); font-weight: 700; }

/* The Buzz meter: five hex pips filled from the comment count. */
.rhh-buzz { display: inline-flex; align-items: center; gap: 10px; }
.rhh-buzz__pips { display: inline-flex; gap: 4px; }
.rhh-buzz__pip {
	width: 15px; height: 13px;
	clip-path: var(--rhh-hexpath);
	background: var(--rhh-comb);
	display: block;
}
.rhh-buzz__pip.is-on { background: var(--rhh-accent); }
.rhh-buzz__label {
	font-size: .7rem;
	font-weight: 700;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--rhh-secondary);
}
.rhh-buzz--lg .rhh-buzz__pip { width: 20px; height: 17px; }

/* Worker Bees — contributor spotlight. */
.rhh-bees {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(178px, 1fr));
	gap: 20px;
}

.rhh-bee {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: 10px;
	padding: 28px 20px;
	border: 1px solid var(--rhh-border);
	border-radius: var(--rhh-radius-lg);
	background: var(--rhh-surface);
	transition: border-color .2s ease, transform .2s ease;
}
.rhh-bee:hover { border-color: var(--rhh-accent); transform: translateY(-3px); text-decoration: none; }
.rhh-bee__name {
	font-family: var(--rhh-font-head);
	font-weight: 700;
	font-size: 1.05rem;
	color: var(--rhh-primary);
	line-height: 1.25;
}
.rhh-bee__count { font-size: .78rem; color: var(--rhh-muted); }

/* Contributor rank badge — Worker / Forager / Guide / Queen. */
.rhh-level {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 5px 16px;
	clip-path: polygon(9px 0, calc(100% - 9px) 0, 100% 50%, calc(100% - 9px) 100%, 9px 100%, 0 50%);
	background: var(--rhh-comb);
	color: var(--rhh-secondary);
	font-size: .65rem;
	font-weight: 700;
	letter-spacing: .14em;
	text-transform: uppercase;
	line-height: 1.5;
}
.rhh-level--queen   { background: var(--rhh-accent);      color: var(--rhh-on-accent); }
.rhh-level--guide   { background: var(--rhh-accent-soft); color: var(--rhh-on-accent); }
.rhh-level--forager { background: var(--rhh-comb);        color: var(--rhh-secondary); }
.rhh-level--worker  { background: var(--rhh-comb-soft);   color: var(--rhh-muted); }

/* The rank ladder explained on the About page. */
.rhh-ladder {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(212px, 1fr));
	gap: 18px;
}
.rhh-ladder__step {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 10px;
	padding: 26px 24px;
	border: 1px solid var(--rhh-border);
	border-radius: var(--rhh-radius-lg);
	background: var(--rhh-surface);
}
.rhh-ladder__req { margin: 0; font-size: .76rem; color: var(--rhh-muted); letter-spacing: .04em; }
.rhh-ladder__blurb { margin: 0; font-size: .93rem; }

/* Category honeycomb navigation. */
.rhh-cathex {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 5px;
	text-align: center;
	padding: 0 18%;
	clip-path: var(--rhh-hexpath);
	background: var(--rhh-comb-soft);
	color: var(--rhh-primary);
	transition: background .25s ease, color .25s ease;
}
.rhh-cathex:hover { background: var(--rhh-accent); color: var(--rhh-on-accent); text-decoration: none; }
.rhh-cathex__name {
	font-family: var(--rhh-font-head);
	font-weight: 700;
	font-size: .92rem;
	line-height: 1.2;
	-webkit-line-clamp: 2;
	display: -webkit-box;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.rhh-cathex__count {
	font-size: .64rem;
	letter-spacing: .1em;
	text-transform: uppercase;
	opacity: .8;
}
.rhh-cathex--centre {
	background: var(--rhh-accent);
	color: var(--rhh-on-accent);
}
.rhh-cathex--centre .rhh-cathex__name { font-family: var(--rhh-font-display); font-size: 1.15rem; }

/* Community poll / discussion prompt. */
.rhh-poll {
	border: 2px solid var(--rhh-comb);
	border-radius: var(--rhh-radius-lg);
	background: var(--rhh-surface-alt);
	padding: 40px 38px;
}
.rhh-poll__q {
	font-family: var(--rhh-font-display);
	font-size: clamp(1.35rem, 2.6vw, 1.85rem);
	margin: 0 0 24px;
	color: var(--rhh-primary);
}
.rhh-poll__options { display: flex; flex-wrap: wrap; gap: 12px; margin: 0 0 20px; }
.rhh-poll__option {
	flex: 1 1 200px;
	padding: 15px 22px;
	border: 2px solid var(--rhh-border);
	border-radius: 999px;
	background: var(--rhh-surface);
	color: var(--rhh-text);
	font-family: var(--rhh-font-body);
	font-size: .92rem;
	font-weight: 600;
	text-align: left;
	cursor: pointer;
	transition: border-color .2s, background .2s, color .2s;
}
.rhh-poll__option:hover { border-color: var(--rhh-accent); }
.rhh-poll__option[aria-pressed="true"] {
	background: var(--rhh-accent);
	border-color: var(--rhh-accent);
	color: var(--rhh-on-accent);
}
.rhh-poll__note { margin: 0; font-size: .88rem; color: var(--rhh-muted); }

/* Popular this hour — a compact ranked river from the main query. */
.rhh-popular { display: flex; flex-direction: column; }
.rhh-popitem {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	gap: 20px;
	align-items: baseline;
	padding: 18px 0;
	border-top: 1px solid var(--rhh-rule);
}
.rhh-popitem:first-child { padding-top: 0; border-top: 0; }
.rhh-popitem__num {
	font-family: var(--rhh-font-display);
	font-size: 1.5rem;
	font-weight: 700;
	color: var(--rhh-accent);
	line-height: 1;
}
.rhh-popitem__title { font-size: 1.16rem; margin: 0 0 7px; line-height: 1.26; }
.rhh-popitem__title a { color: var(--rhh-primary); }
.rhh-popitem__title a:hover { color: var(--rhh-secondary); text-decoration: none; }

/* Collective Insights — real reader comments from across the hive. */
.rhh-insights {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(268px, 1fr));
	gap: 22px;
}
.rhh-insight {
	display: flex;
	flex-direction: column;
	gap: 16px;
	padding: 28px 26px;
	border: 1px solid var(--rhh-border);
	border-radius: var(--rhh-radius-lg);
	background: var(--rhh-surface);
}
.rhh-insight__quote {
	font-family: var(--rhh-font-display);
	font-size: 1.06rem;
	line-height: 1.5;
	color: var(--rhh-primary);
	margin: 0;
	flex: 1;
}
.rhh-insight__quote::before { content: "\201C"; color: var(--rhh-accent); }
.rhh-insight__quote::after  { content: "\201D"; color: var(--rhh-accent); }
.rhh-insight__who { display: flex; align-items: center; gap: 12px; }
.rhh-insight__name { font-weight: 700; font-size: .9rem; color: var(--rhh-text); }
.rhh-insight__where { display: block; font-size: .76rem; color: var(--rhh-muted); }

/* Newsletter — Join the hive. */
.rhh-newsletter {
	position: relative;
	padding: 56px 44px;
	border-radius: var(--rhh-radius-lg);
	background: var(--rhh-deep);
	color: var(--rhh-on-deep);
	text-align: center;
	overflow: hidden;
}
.rhh-newsletter h2 { margin: 0 0 12px; font-family: var(--rhh-font-display); color: #fffbeb; font-size: clamp(1.7rem, 3.2vw, 2.4rem); }
.rhh-newsletter p { margin: 0 auto 28px; max-width: 52ch; }
.rhh-newsletter .rhh-eyebrow { color: var(--rhh-accent); }

.rhh-newsletter__form {
	display: flex;
	gap: 12px;
	max-width: 490px;
	margin: 0 auto;
	flex-wrap: wrap;
	justify-content: center;
}
.rhh-newsletter input[type="email"] {
	flex: 1;
	min-width: 240px;
	padding: 14px 20px;
	border-radius: 999px;
	border: 2px solid rgba(254, 243, 199, .24);
	background: rgba(255, 251, 235, .06);
	color: #fffbeb;
	font-family: var(--rhh-font-body);
	font-size: 1rem;
}
.rhh-newsletter input[type="email"]::placeholder { color: rgba(254, 243, 199, .5); }
.rhh-newsletter input[type="email"]:focus { outline: none; border-color: var(--rhh-accent); }

/* Decorative comb texture in the newsletter corner. */
.rhh-newsletter__comb {
	position: absolute;
	top: -30px;
	right: -30px;
	display: grid;
	grid-template-columns: repeat(3, 46px);
	gap: 4px;
	opacity: .16;
	pointer-events: none;
}
.rhh-newsletter__comb span {
	width: 46px; height: 40px;
	clip-path: var(--rhh-hexpath);
	background: var(--rhh-accent);
	display: block;
}
.rhh-newsletter__comb span:nth-child(even) { transform: translateY(50%); }

@media (max-width: 640px) {
	.rhh-newsletter { padding: 42px 24px; }
	.rhh-newsletter__comb { display: none; }
	.rhh-poll { padding: 30px 22px; }
}

/* ==========================================================================
   7. Cards, grids and lists
   ========================================================================== */

.rhh-card {
	display: flex;
	flex-direction: column;
	background: var(--rhh-surface);
	border: 1px solid var(--rhh-border);
	border-radius: var(--rhh-radius-lg);
	padding: 20px 22px 24px;
	transition: box-shadow .25s ease, transform .25s ease, border-color .25s ease;
}
.rhh-card:hover {
	box-shadow: var(--rhh-shadow);
	transform: translateY(-3px);
	border-color: var(--rhh-accent);
}

/* Hex-shaped card thumbnail. */
.rhh-card__thumb {
	display: block;
	width: 100%;
	aspect-ratio: 1 / .62;
	clip-path: var(--rhh-hexpath);
	overflow: hidden;
	background: var(--rhh-comb-soft);
	margin-bottom: 18px;
}
.rhh-card__thumb img {
	width: 100%; height: 100%;
	object-fit: cover;
	transition: transform .5s ease;
}
.rhh-card:hover .rhh-card__thumb img { transform: scale(1.05); }

.rhh-card__body { display: flex; flex-direction: column; gap: 11px; flex: 1; align-items: flex-start; }
.rhh-card__title { font-size: 1.22rem; line-height: 1.24; margin: 0; }
.rhh-card__title a { color: var(--rhh-primary); }
.rhh-card__title a:hover { color: var(--rhh-secondary); text-decoration: none; }
.rhh-card__excerpt { color: var(--rhh-muted); font-size: .93rem; margin: 0; }
.rhh-card .rhh-meta { margin-top: auto; padding-top: 4px; }

.rhh-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(288px, 1fr));
	gap: 28px;
}

.rhh-list { display: flex; flex-direction: column; }
.rhh-listitem {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 8px 26px;
	padding: 26px 0;
	border-top: 1px solid var(--rhh-rule);
}
.rhh-listitem:first-child { border-top: 0; padding-top: 4px; }
.rhh-listitem__thumb {
	grid-row: span 4;
	width: 156px;
	aspect-ratio: 1 / .866;
	clip-path: var(--rhh-hexpath);
	overflow: hidden;
	background: var(--rhh-comb-soft);
}
.rhh-listitem__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.rhh-listitem:hover .rhh-listitem__thumb img { transform: scale(1.05); }
.rhh-listitem > .rhh-hexbadge { grid-column: 1; justify-self: start; }
.rhh-listitem__title { grid-column: 1; font-size: 1.44rem; line-height: 1.22; margin: 4px 0; }
.rhh-listitem__title a { color: var(--rhh-primary); }
.rhh-listitem__title a:hover { color: var(--rhh-secondary); text-decoration: none; }
.rhh-listitem__excerpt { grid-column: 1; color: var(--rhh-muted); font-size: .98rem; margin: 0; }
.rhh-listitem .rhh-meta { grid-column: 1; margin-top: 6px; }

@media (max-width: 560px) {
	.rhh-listitem { grid-template-columns: minmax(0, 1fr); }
	.rhh-listitem__thumb { grid-row: auto; width: 100%; margin-bottom: 8px; }
}

/* ==========================================================================
   8. Single post
   ========================================================================== */

.rhh-progress {
	position: fixed;
	top: 0; left: 0;
	height: 3px;
	width: 0;
	background: var(--rhh-accent);
	z-index: 200;
	transition: width .1s linear;
}

.rhh-breadcrumb {
	font-size: .78rem;
	letter-spacing: .03em;
	color: var(--rhh-muted);
	padding: 22px 0 0;
}
.rhh-breadcrumb a { color: var(--rhh-muted); }
.rhh-breadcrumb a:hover { color: var(--rhh-secondary); }
.rhh-breadcrumb span { margin: 0 8px; color: var(--rhh-accent); }

.rhh-postheader { max-width: 840px; margin: 0 auto; text-align: center; padding: 26px 0 0; }
.rhh-postheader h1 { font-size: clamp(2.1rem, 5vw, 3.3rem); margin: 18px 0 18px; }
.rhh-postheader .rhh-dek {
	font-family: var(--rhh-font-display);
	font-size: 1.25rem;
	line-height: 1.5;
	color: var(--rhh-muted);
	margin: 0 auto 22px;
	max-width: 48ch;
}
.rhh-postheader .rhh-meta { justify-content: center; }

/* Hex-treated hero image on singles. */
.rhh-hero-figure {
	margin: 40px auto 0;
	max-width: 1000px;
}
.rhh-hero-figure__shape {
	clip-path: var(--rhh-hexpath);
	overflow: hidden;
	background: var(--rhh-comb-soft);
	aspect-ratio: 1 / .5;
}
.rhh-hero-figure__shape img { width: 100%; height: 100%; object-fit: cover; }
.rhh-hero-figure figcaption {
	font-size: .88rem;
	color: var(--rhh-muted);
	text-align: center;
	margin-top: 14px;
}

.rhh-article { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 32px; }
@media (max-width: 820px) { .rhh-article { grid-template-columns: minmax(0, 1fr); } }

.rhh-share {
	position: sticky;
	top: 108px;
	display: flex;
	flex-direction: column;
	gap: 8px;
	align-self: start;
}
@media (max-width: 820px) {
	.rhh-share { position: static; flex-direction: row; margin-bottom: 20px; }
}
.rhh-share .rhh-iconbtn { font-weight: 700; font-size: .82rem; }

.rhh-entry {
	max-width: var(--rhh-content);
	font-size: 1.09rem;
	line-height: 1.8;
}
.rhh-entry > * + * { margin-top: 1.5em; }
.rhh-entry h2 { margin-top: 1.9em; }
.rhh-entry h3 { margin-top: 1.6em; }
.rhh-entry img, .rhh-entry figure { border-radius: var(--rhh-radius); overflow: hidden; }
.rhh-entry figcaption { font-size: .88rem; color: var(--rhh-muted); text-align: center; margin-top: 10px; }

.rhh-entry blockquote,
.rhh-entry .wp-block-quote {
	margin: 1.8em 0;
	padding: 6px 0 6px 28px;
	border-left: 4px solid var(--rhh-accent);
	font-family: var(--rhh-font-display);
	font-size: 1.35rem;
	line-height: 1.45;
	color: var(--rhh-primary);
}
.rhh-entry .wp-block-pullquote {
	border-left: 4px solid var(--rhh-accent);
	border-top: 0; border-bottom: 0;
	padding: 6px 0 6px 28px;
	text-align: left;
}

.rhh-entry pre {
	background: var(--rhh-deep);
	color: #fef3c7;
	padding: 20px;
	border-radius: var(--rhh-radius);
	overflow-x: auto;
	font-size: .88rem;
	font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
}
.rhh-entry code { font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; font-size: .9em; }
.rhh-entry :not(pre) > code {
	background: var(--rhh-comb-soft);
	padding: 2px 7px;
	border-radius: 5px;
}

.rhh-entry table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.rhh-entry th, .rhh-entry td { border: 1px solid var(--rhh-border); padding: 11px 14px; text-align: left; }
.rhh-entry th { background: var(--rhh-comb-soft); font-weight: 700; }

/* Buzz strip above the article body. */
.rhh-buzzbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 16px;
	max-width: var(--rhh-content);
	margin: 34px auto 0;
	padding: 18px 24px;
	border: 1px solid var(--rhh-border);
	border-radius: var(--rhh-radius-lg);
	background: var(--rhh-surface-alt);
}
.rhh-buzzbar__label {
	font-size: .7rem;
	font-weight: 700;
	letter-spacing: .16em;
	text-transform: uppercase;
	color: var(--rhh-muted);
	margin: 0 0 8px;
}

/* Hex-shaped reaction chips. */
.rhh-reactions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	max-width: var(--rhh-content);
	margin: 30px auto 0;
}
.rhh-react {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	padding: 11px 26px;
	border: 0;
	clip-path: polygon(14px 0, calc(100% - 14px) 0, 100% 50%, calc(100% - 14px) 100%, 14px 100%, 0 50%);
	background: var(--rhh-comb-soft);
	color: var(--rhh-secondary);
	font-family: var(--rhh-font-body);
	font-size: .82rem;
	font-weight: 700;
	letter-spacing: .03em;
	cursor: pointer;
	transition: background .2s, color .2s;
}
.rhh-react:hover { background: var(--rhh-comb); }
.rhh-react[aria-pressed="true"] { background: var(--rhh-accent); color: var(--rhh-on-accent); }
.rhh-react__n { font-variant-numeric: tabular-nums; opacity: .75; }

/* Author card with contributor rank. */
.rhh-authorcard {
	display: flex;
	gap: 22px;
	align-items: flex-start;
	background: var(--rhh-surface);
	border: 1px solid var(--rhh-border);
	border-radius: var(--rhh-radius-lg);
	padding: 28px;
	margin: 44px auto 0;
	max-width: var(--rhh-content);
}
.rhh-authorcard__head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.rhh-authorcard h3 { margin: 0; font-size: 1.2rem; }
.rhh-authorcard h3 a { color: var(--rhh-primary); }
.rhh-authorcard p { margin: 0; color: var(--rhh-muted); font-size: .96rem; }
.rhh-authorcard__blurb { margin-top: 10px !important; font-size: .86rem !important; }

@media (max-width: 560px) {
	.rhh-authorcard { flex-direction: column; }
}

.rhh-toc {
	background: var(--rhh-surface);
	border: 1px solid var(--rhh-border);
	border-radius: var(--rhh-radius-lg);
	padding: 22px 24px;
}
.rhh-toc h4 {
	margin: 0 0 12px;
	font-family: var(--rhh-font-body);
	font-size: .68rem;
	letter-spacing: .16em;
	text-transform: uppercase;
	color: var(--rhh-secondary);
	font-weight: 700;
}
.rhh-toc ol { margin: 0; padding-left: 20px; font-size: .92rem; }
.rhh-toc li { margin-bottom: 8px; }
.rhh-toc a { color: var(--rhh-text); }
.rhh-toc a:hover { color: var(--rhh-secondary); }

.rhh-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 32px auto 0; max-width: var(--rhh-content); }
.rhh-tag {
	font-size: .76rem;
	padding: 6px 15px;
	border-radius: 999px;
	border: 1px solid var(--rhh-border);
	color: var(--rhh-muted);
}
.rhh-tag:hover { border-color: var(--rhh-accent); color: var(--rhh-secondary); text-decoration: none; }

.rhh-postnav {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 18px;
	margin: 44px auto 0;
	max-width: var(--rhh-content);
}
@media (max-width: 600px) { .rhh-postnav { grid-template-columns: 1fr; } }
.rhh-postnav a {
	display: block;
	padding: 20px 22px;
	border: 1px solid var(--rhh-border);
	border-radius: var(--rhh-radius-lg);
	background: var(--rhh-surface);
	color: var(--rhh-primary);
	font-family: var(--rhh-font-head);
	font-size: 1.02rem;
	font-weight: 700;
	line-height: 1.3;
	transition: border-color .2s;
}
.rhh-postnav a:hover { border-color: var(--rhh-accent); text-decoration: none; }
.rhh-postnav span {
	display: block;
	font-family: var(--rhh-font-body);
	font-size: .66rem;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--rhh-secondary);
	margin-bottom: 8px;
	font-weight: 700;
}
.rhh-postnav .is-next { text-align: right; }

/* ==========================================================================
   9. Page heads — archive, search, author, 404
   ========================================================================== */

.rhh-pagehead {
	padding: 54px 0 30px;
	text-align: center;
	border-bottom: 2px solid var(--rhh-comb);
}
.rhh-pagehead h1 { font-family: var(--rhh-font-display); font-size: clamp(2.1rem, 5vw, 3.2rem); margin: 0 0 12px; }
.rhh-pagehead p {
	margin: 0 auto;
	color: var(--rhh-muted);
	font-size: 1.08rem;
	max-width: 62ch;
}

/* The category hive head: a central hex ringed by sibling sections. */
.rhh-hivehead { padding: 48px 0 8px; }
.rhh-hivehead__ring {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 6px;
}
.rhh-hivehead__ring > * {
	width: clamp(112px, 13vw, 148px);
	aspect-ratio: 1 / .866;
}
.rhh-hivehead__ring > .rhh-cathex--centre {
	width: clamp(190px, 22vw, 268px);
}
.rhh-hivehead__desc {
	margin: 26px auto 0;
	max-width: 62ch;
	text-align: center;
	color: var(--rhh-muted);
}

.rhh-filterbar {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
	justify-content: center;
	margin: 26px 0 0;
}
.rhh-filter {
	padding: 9px 22px;
	clip-path: polygon(11px 0, calc(100% - 11px) 0, 100% 50%, calc(100% - 11px) 100%, 11px 100%, 0 50%);
	background: var(--rhh-comb-soft);
	font-size: .78rem;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--rhh-muted);
}
.rhh-filter:hover { background: var(--rhh-comb); color: var(--rhh-secondary); text-decoration: none; }
.rhh-filter.is-active { background: var(--rhh-accent); color: var(--rhh-on-accent); }

.rhh-authorhero .rhh-hexavatar { display: block; margin: 0 auto 20px; }
.rhh-authorhero .rhh-social { justify-content: center; margin-top: 18px; }
.rhh-authorhero__badges {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	flex-wrap: wrap;
	margin: 16px 0 0;
}

.rhh-social { display: flex; gap: 8px; }
.rhh-social a {
	width: 42px; height: 37px;
	clip-path: var(--rhh-hexpath);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: var(--rhh-comb-soft);
	color: var(--rhh-secondary);
	font-size: .82rem;
	font-weight: 700;
}
.rhh-social a:hover { background: var(--rhh-accent); color: var(--rhh-on-accent); text-decoration: none; }

/* 404 — an empty cell in the comb. */
.rhh-404 { text-align: center; padding: 80px 0 96px; }
.rhh-404__comb {
	display: grid;
	grid-template-columns: repeat(3, 96px);
	gap: 6px;
	justify-content: center;
	margin: 0 auto 44px;
	padding-bottom: 46px;
}
.rhh-404__comb span {
	width: 96px; height: 83px;
	clip-path: var(--rhh-hexpath);
	background: var(--rhh-comb);
	display: block;
}
.rhh-404__comb span:nth-child(even) { transform: translateY(50%); }
/* The empty cell: outlined, not filled. */
.rhh-404__comb span.is-empty {
	background:
		linear-gradient(var(--rhh-bg), var(--rhh-bg)) padding-box,
		var(--rhh-comb);
	border: 3px solid transparent;
	opacity: .9;
}
.rhh-404 h1 { font-family: var(--rhh-font-display); font-size: clamp(1.8rem, 4.4vw, 2.7rem); margin: 8px 0 16px; }
.rhh-404 p { color: var(--rhh-muted); max-width: 50ch; margin: 0 auto 28px; }

@media (max-width: 480px) {
	.rhh-404__comb { grid-template-columns: repeat(3, 68px); }
	.rhh-404__comb span { width: 68px; height: 59px; }
}

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

/* ==========================================================================
   10. Sidebar & widgets
   ========================================================================== */

.rhh-sidebar { display: flex; flex-direction: column; gap: 28px; position: sticky; top: 108px; }
@media (max-width: 980px) { .rhh-sidebar { position: static; } }

.rhh-widget {
	background: var(--rhh-surface);
	border: 1px solid var(--rhh-border);
	border-radius: var(--rhh-radius-lg);
	padding: 24px 26px;
}
.rhh-widget__title,
.rhh-widget .widget-title,
.rhh-widget > h2,
.rhh-widget > h3,
.rhh-widget .wp-block-heading {
	font-family: var(--rhh-font-body);
	font-size: .7rem;
	letter-spacing: .16em;
	text-transform: uppercase;
	color: var(--rhh-secondary);
	margin: 0 0 16px;
	font-weight: 700;
	padding-bottom: 12px;
	border-bottom: 2px solid var(--rhh-comb);
	line-height: 1.4;
}
.rhh-widget .wp-block-search__label {
	display: block;
	font-size: .7rem;
	letter-spacing: .16em;
	text-transform: uppercase;
	color: var(--rhh-secondary);
	font-weight: 700;
	margin-bottom: 12px;
}

.rhh-widget ul { list-style: none; margin: 0; padding: 0; }
.rhh-widget li + li { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--rhh-rule); }
.rhh-widget a { color: var(--rhh-text); font-size: .98rem; }
.rhh-widget a:hover { color: var(--rhh-secondary); text-decoration: none; }
.rhh-widget select,
.rhh-widget input[type="text"],
.rhh-widget input[type="search"] { width: 100%; }
.rhh-widget li .rhh-buzz { display: flex; margin-top: 7px; }

.rhh-searchform { display: flex; gap: 10px; }
.rhh-searchform input[type="search"] {
	flex: 1;
	min-width: 0;
	padding: 12px 18px;
	border-radius: 999px;
	border: 1px solid var(--rhh-border);
	background: var(--rhh-surface);
	color: var(--rhh-text);
	font-family: var(--rhh-font-body);
	font-size: .98rem;
}
.rhh-searchform input[type="search"]:focus { outline: none; border-color: var(--rhh-accent); }

.rhh-widget .tagcloud { display: flex; flex-wrap: wrap; gap: 8px; }
.rhh-widget .tagcloud a {
	font-size: .76rem !important;
	padding: 5px 14px;
	border-radius: 999px;
	border: 1px solid var(--rhh-border);
	color: var(--rhh-muted);
}
.rhh-widget .tagcloud a:hover { border-color: var(--rhh-accent); color: var(--rhh-secondary); }

/* ==========================================================================
   11. Comments — the collective conversation
   ========================================================================== */

.rhh-comments { max-width: var(--rhh-content); margin: 56px auto 0; }
.rhh-comments__intro { color: var(--rhh-muted); font-size: .95rem; margin: -14px 0 26px; }
.rhh-comments ol { list-style: none; margin: 0; padding: 0; }
.rhh-comments .children {
	list-style: none;
	padding-left: 26px;
	margin-top: 18px;
	border-left: 2px solid var(--rhh-comb);
}
.rhh-comments .comment-body {
	background: var(--rhh-surface);
	border: 1px solid var(--rhh-border);
	border-radius: var(--rhh-radius-lg);
	padding: 22px 24px;
	margin-bottom: 18px;
}
.rhh-comments .comment-author { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.rhh-comments .comment-author .fn { font-weight: 700; font-style: normal; }
.rhh-comments .comment-author .fn a { color: var(--rhh-primary); }
.rhh-comments .comment-metadata { font-size: .78rem; color: var(--rhh-muted); margin-top: 6px; }
.rhh-comments .comment-metadata a { color: var(--rhh-muted); }
.rhh-comments .comment-content { margin-top: 12px; }
.rhh-comments .reply { font-size: .8rem; font-weight: 600; margin-top: 10px; }
.rhh-comments .reply a { color: var(--rhh-secondary); }

.comment-form label { display: block; font-size: .84rem; font-weight: 600; margin-bottom: 6px; }
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
	width: 100%;
	padding: 12px 16px;
	border: 1px solid var(--rhh-border);
	border-radius: var(--rhh-radius);
	background: var(--rhh-surface);
	color: var(--rhh-text);
	font-family: var(--rhh-font-body);
	font-size: 1rem;
}
.comment-form textarea { min-height: 160px; }
.comment-form input[type="submit"] {
	background: var(--rhh-accent);
	color: var(--rhh-on-accent);
	border: 2px solid var(--rhh-accent);
	padding: 13px 32px;
	border-radius: 999px;
	font-family: var(--rhh-font-body);
	font-weight: 700;
	letter-spacing: .03em;
	width: auto;
	cursor: pointer;
	transition: background .2s, color .2s;
}
.comment-form input[type="submit"]:hover { background: transparent; color: var(--rhh-secondary); }

/* ==========================================================================
   12. Pagination
   ========================================================================== */

.rhh-pagination { display: flex; justify-content: center; gap: 8px; margin: 52px 0 0; flex-wrap: wrap; }
.rhh-pagination .page-numbers {
	min-width: 46px;
	height: 40px;
	padding: 0 16px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	clip-path: var(--rhh-hexpath);
	background: var(--rhh-comb-soft);
	color: var(--rhh-text);
	font-size: .9rem;
	font-weight: 700;
}
.rhh-pagination .page-numbers:hover { background: var(--rhh-comb); color: var(--rhh-secondary); text-decoration: none; }
.rhh-pagination .page-numbers.current { background: var(--rhh-accent); color: var(--rhh-on-accent); }

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

.rhh-footer {
	margin-top: 88px;
	background: var(--rhh-deep);
	color: var(--rhh-on-deep);
	padding: 60px 0 0;
}

.rhh-footer__stats {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 16px;
	padding-bottom: 48px;
	border-bottom: 1px solid rgba(254, 243, 199, .14);
}
@media (max-width: 620px) { .rhh-footer__stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.rhh-stat { text-align: center; }
.rhh-stat__n {
	display: block;
	font-family: var(--rhh-font-display);
	font-size: clamp(1.8rem, 4vw, 2.6rem);
	font-weight: 700;
	color: var(--rhh-accent);
	line-height: 1.1;
}
.rhh-stat__l {
	display: block;
	font-size: .7rem;
	font-weight: 700;
	letter-spacing: .16em;
	text-transform: uppercase;
	margin-top: 6px;
}

.rhh-footer__cols {
	display: grid;
	grid-template-columns: 1.7fr repeat(3, 1fr);
	gap: 44px;
	padding: 48px 0;
	border-bottom: 1px solid rgba(254, 243, 199, .14);
}
@media (max-width: 860px) { .rhh-footer__cols { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .rhh-footer__cols { grid-template-columns: 1fr; } }

.rhh-footer h2, .rhh-footer h3, .rhh-footer .rhh-widget__title {
	color: #fffbeb;
	border-color: rgba(254, 243, 199, .18);
}
.rhh-footer .rhh-brand { color: #fffbeb; }
.rhh-footer .rhh-brand__mark { color: var(--rhh-accent); }
.rhh-footer a { color: var(--rhh-on-deep); }
.rhh-footer a:hover { color: #fffbeb; }
.rhh-footer ul { list-style: none; margin: 0; padding: 0; }
.rhh-footer li + li { margin-top: 12px; border: 0; padding: 0; }
.rhh-footer .rhh-widget { background: transparent; border: 0; padding: 0; }
.rhh-footer__about { margin: 16px 0 20px; max-width: 40ch; }

.rhh-footer__social { display: flex; gap: 8px; }
.rhh-footer__social a {
	width: 42px; height: 37px;
	clip-path: var(--rhh-hexpath);
	background: rgba(254, 243, 199, .1);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: #fffbeb;
	font-size: .8rem;
	font-weight: 700;
}
.rhh-footer__social a:hover { background: var(--rhh-accent); color: var(--rhh-on-accent); }

.rhh-footer__bottom {
	padding: 24px 0;
	font-size: .82rem;
	display: flex;
	justify-content: space-between;
	gap: 16px;
	flex-wrap: wrap;
}
.rhh-footer__bottom ul { display: flex; gap: 20px; flex-wrap: wrap; }

/* ==========================================================================
   14. WordPress core classes
   ========================================================================== */

.alignleft  { float: left;  margin: .4em 1.6em 1em 0; }
.alignright { float: right; margin: .4em 0 1em 1.6em; }
.aligncenter { display: block; margin-inline: auto; }
.alignwide  { max-width: 1060px; margin-inline: auto; }
.alignfull  { max-width: 100vw; margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); }

.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: .88rem; color: var(--rhh-muted); text-align: center; }
.sticky .rhh-card { border-color: var(--rhh-accent); }
.bypostauthor > .comment-body { border-color: var(--rhh-accent); }
.gallery-caption { font-size: .88rem; }

.rhh-entry .wp-block-image { margin-block: 2em; }
.rhh-entry .wp-block-button__link { background: var(--rhh-accent); color: var(--rhh-on-accent); border-radius: 999px; }

.admin-bar .rhh-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .rhh-header { top: 46px; } }
