/*!
 * Quanhox Theme Main Styles
 * All visual values driven by --qh-* CSS Variables (set via Customizer)
 */

/* ═══════════════════════════════════════════════════════════════════
   Spacing & Transition tokens (internal, not exposed to Customizer)
   ═══════════════════════════════════════════════════════════════════ */
:root {
	--spacing-xs: 0.5rem;
	--spacing-sm: 1rem;
	--spacing-md: 1.5rem;
	--spacing-lg: 2rem;
	--spacing-xl: 3rem;
	--transition: 0.25s ease;
}

/* ═══════════════════════════════════════════════════════════════════
   Reset & Base
   ═══════════════════════════════════════════════════════════════════ */
*, *::before, *::after {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

body {
	font-family: var(--qh-text-font);
	font-size: var(--qh-text-font-size);
	font-weight: var(--qh-text-font-weight);
	line-height: var(--qh-text-line-height);
	color: var(--qh-text-color);
	background-color: var(--qh-body-bg);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

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

/* ═══════════════════════════════════════════════════════════════════
   Typography
   ═══════════════════════════════════════════════════════════════════ */
h1, h2, h3, h4, h5, h6 {
	font-family: var(--qh-title-font);
	font-weight: var(--qh-title-font-weight);
	color: var(--qh-title-color);
	text-transform: var(--qh-title-transform);
	line-height: 1.3;
	margin-bottom: var(--spacing-sm);
}

h1 { font-size: 2.25rem; }
h2 { font-size: 1.875rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }

a {
	color: var(--qh-link-color);
	text-decoration: none;
	transition: color var(--transition);
}

a:hover,
a:focus {
	color: var(--qh-link-color-hover);
}

p {
	margin-bottom: 1em;
}

blockquote {
	border-left: 4px solid var(--qh-primary-color);
	padding: var(--spacing-sm) var(--spacing-md);
	margin: var(--spacing-md) 0;
	font-style: italic;
	color: var(--qh-secondary-color);
}

/* ═══════════════════════════════════════════════════════════════════
   Layout
   ═══════════════════════════════════════════════════════════════════ */
.container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 var(--spacing-md);
}

.site {
	min-height: 100vh;
	display: flex;
	flex-direction: column;
}

.site-content {
	flex: 1;
	padding: var(--spacing-lg) var(--spacing-md);
	background-color: var(--qh-pages-bg);
}

.site-content > * {
	max-width: 1200px;
	margin-left: auto;
	margin-right: auto;
}

/* Layout body classes */
body.qh-layout-boxed .site {
	max-width: 1200px;
	margin: 0 auto;
	box-shadow: 0 0 20px rgba(0,0,0,0.05);
}

body.qh-layout-wide .site {
	max-width: 1600px;
	margin: 0 auto;
}

/* Sidebar body classes */
body.qh-sidebar-left .site-content {
	display: flex;
	flex-direction: row-reverse;
}

body.qh-sidebar-right .site-content {
	display: flex;
	flex-direction: row;
}

body.qh-sidebar-none .sidebar {
	display: none;
}

body.qh-sidebar-left .sidebar,
body.qh-sidebar-right .sidebar {
	width: 300px;
	flex-shrink: 0;
	padding: 0 var(--spacing-md);
}

body.qh-sidebar-left .content-area,
body.qh-sidebar-right .content-area {
	flex: 1;
	min-width: 0;
}

/* ═══════════════════════════════════════════════════════════════════
   Header
   ═══════════════════════════════════════════════════════════════════ */
.site-header {
	background-color: #ffffff;
	padding: var(--spacing-md) var(--spacing-md);
	border-bottom: 1px solid rgba(0,0,0,0.08);
}

.site-header > * {
	max-width: 1200px;
	margin-left: auto;
	margin-right: auto;
}

.site-branding {
	display: flex;
	align-items: center;
	gap: var(--spacing-sm);
}

.site-title {
	font-size: 1.5rem;
	margin: 0;
}

.site-title a {
	color: var(--qh-primary-color);
}

.site-title a:hover {
	color: var(--qh-link-color-hover);
}

.site-description {
	color: var(--qh-secondary-color);
	font-size: 0.875rem;
	margin: 0;
}

/* Header inner layout: branding left, nav right */
.header-standard,
.header-transparent {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--spacing-lg);
}

.header-centered {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: var(--spacing-sm);
}

/* Header navigation */
.header-nav ul {
	list-style: none;
	display: flex;
	gap: var(--spacing-md);
	flex-wrap: wrap;
	margin: 0;
	padding: 0;
}

.header-nav a {
	font-family: var(--qh-header-font);
	font-size: var(--qh-header-font-size);
	font-weight: var(--qh-header-font-weight);
	text-transform: var(--qh-header-transform);
	color: var(--qh-text-color);
	padding: 0.25em 0;
	transition: color var(--transition);
	white-space: nowrap;
}

.header-nav a:hover {
	color: var(--qh-link-color-hover);
}

/* Sub-menus */
.header-nav li {
	position: relative;
}

.header-nav ul ul {
	display: none;
	position: absolute;
	top: 100%;
	left: 0;
	background: var(--qh-pages-bg, #ffffff);
	min-width: 180px;
	box-shadow: 0 4px 12px rgba(0,0,0,0.1);
	border-radius: var(--qh-brd-radius);
	padding: 0.5rem 0;
	flex-direction: column;
	gap: 0;
	z-index: 100;
}

.header-nav li:hover > ul {
	display: flex;
}

.header-nav ul ul a {
	padding: 0.5rem 1rem;
	font-size: 0.875rem;
}

/* Mobile menu toggle */
.menu-toggle {
	display: none;
	background: none;
	border: none;
	cursor: pointer;
	padding: var(--spacing-xs);
}

.hamburger {
	display: block;
	width: 24px;
	height: 2px;
	background: var(--qh-text-color);
	position: relative;
}

.hamburger::before,
.hamburger::after {
	content: '';
	display: block;
	width: 24px;
	height: 2px;
	background: var(--qh-text-color);
	position: absolute;
	left: 0;
}

.hamburger::before { top: -7px; }
.hamburger::after { top: 7px; }

/* ═══════════════════════════════════════════════════════════════════
   Footer
   ═══════════════════════════════════════════════════════════════════ */
.site-footer {
	background-color: var(--qh-primary-color);
	color: #ffffff;
	padding: var(--spacing-xl) var(--spacing-md) var(--spacing-lg);
}

.site-footer > * {
	max-width: 1200px;
	margin-left: auto;
	margin-right: auto;
}

.site-footer a {
	color: rgba(255,255,255,0.8);
}

.site-footer a:hover {
	color: #ffffff;
}

.footer-1col { text-align: center; }

.footer-2col {
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.footer-3col {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: var(--spacing-lg);
}

.footer-bottom {
	grid-column: 1 / -1;
	text-align: center;
	margin-top: var(--spacing-lg);
	padding-top: var(--spacing-md);
	border-top: 1px solid rgba(255,255,255,0.15);
	font-size: 0.875rem;
}

/* ═══════════════════════════════════════════════════════════════════
   Articles & Cards
   ═══════════════════════════════════════════════════════════════════ */
.posts-list {
	display: grid;
	gap: var(--spacing-lg);
}

article {
	background: #ffffff;
	padding: var(--spacing-lg);
	border-radius: var(--qh-brd-radius);
	box-shadow: 0 1px 3px rgba(0,0,0,0.06);
	transition: box-shadow var(--transition);
}

article:hover {
	box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.entry-title {
	margin-bottom: var(--spacing-xs);
}

.entry-title a {
	color: var(--qh-title-color);
}

.entry-title a:hover {
	color: var(--qh-link-color-hover);
}

.entry-meta {
	color: var(--qh-secondary-color);
	font-size: 0.875rem;
	margin-bottom: var(--spacing-sm);
}

.entry-content {
	margin-top: var(--spacing-md);
}

.entry-content > *:last-child {
	margin-bottom: 0;
}

.entry-thumbnail {
	margin-bottom: var(--spacing-md);
}

.entry-thumbnail img {
	border-radius: var(--qh-brd-radius);
}

/* ═══════════════════════════════════════════════════════════════════
   Single Post: Entry Footer (Categories / Tags / Edit)
   ═══════════════════════════════════════════════════════════════════ */
.entry-footer {
	margin-top: var(--spacing-lg);
	padding-top: var(--spacing-md);
	border-top: 1px solid rgba(0,0,0,0.08);
	font-size: 0.875rem;
	color: var(--qh-secondary-color);
}

.entry-footer .cat-links,
.entry-footer .tags-links,
.entry-footer .edit-link {
	display: inline-block;
	margin-right: var(--spacing-md);
}

.entry-footer a {
	color: var(--qh-link-color);
}

/* ═══════════════════════════════════════════════════════════════════
   Single Post: Post Navigation
   ═══════════════════════════════════════════════════════════════════ */
.post-navigation {
	margin-top: var(--spacing-lg);
	padding: var(--spacing-md);
	background: #ffffff;
	border-radius: var(--qh-brd-radius);
	box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

.post-navigation .nav-links {
	display: flex;
	justify-content: space-between;
	gap: var(--spacing-md);
}

.post-navigation .nav-previous,
.post-navigation .nav-next {
	flex: 1;
}

.post-navigation .nav-next {
	text-align: right;
}

.post-navigation .nav-subtitle {
	display: block;
	font-size: 0.75rem;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: var(--qh-secondary-color);
	margin-bottom: 0.25rem;
}

.post-navigation .nav-title {
	font-weight: 600;
	color: var(--qh-title-color);
}

.post-navigation a:hover .nav-title {
	color: var(--qh-link-color-hover);
}

/* ═══════════════════════════════════════════════════════════════════
   Single Post: Comments
   ═══════════════════════════════════════════════════════════════════ */
#comments {
	margin-top: var(--spacing-lg);
	padding: var(--spacing-lg);
	background: #ffffff;
	border-radius: var(--qh-brd-radius);
	box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

.comments-title {
	font-size: 1.25rem;
	margin-bottom: var(--spacing-md);
	padding-bottom: var(--spacing-sm);
	border-bottom: 2px solid var(--qh-primary-color);
}

.commentlist {
	list-style: none;
	padding: 0;
	margin: 0;
}

.commentlist > li {
	padding: var(--spacing-md) 0;
	border-bottom: 1px solid rgba(0,0,0,0.06);
}

.commentlist > li:last-child {
	border-bottom: none;
}

.commentlist .children {
	list-style: none;
	padding-left: var(--spacing-lg);
	margin: 0;
}

.comment-author {
	display: flex;
	align-items: center;
	gap: var(--spacing-sm);
	margin-bottom: var(--spacing-xs);
}

.comment-author .avatar {
	border-radius: 50%;
	width: 40px;
	height: 40px;
}

.comment-author .fn {
	font-weight: 600;
	color: var(--qh-title-color);
}

.comment-metadata {
	font-size: 0.8125rem;
	color: var(--qh-secondary-color);
	margin-bottom: var(--spacing-sm);
}

.comment-metadata a {
	color: var(--qh-secondary-color);
}

.comment-content p {
	margin-bottom: 0.5em;
}

.reply a {
	font-size: 0.8125rem;
	font-weight: 500;
	color: var(--qh-link-color);
}

/* Comment Reply Form — can be inside #comments or standalone under #primary */
#respond:not(#comments #respond) {
	margin-top: var(--spacing-lg);
	padding: var(--spacing-lg);
	background: #ffffff;
	border-radius: var(--qh-brd-radius);
	box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

#comments .comment-respond {
	margin-top: var(--spacing-lg);
	padding-top: var(--spacing-md);
	border-top: 1px solid rgba(0,0,0,0.08);
}

.comment-reply-title {
	font-size: 1.25rem;
	margin-bottom: var(--spacing-md);
}

.comment-form label {
	display: block;
	font-weight: 500;
	margin-bottom: 0.25rem;
	font-size: 0.875rem;
}

.comment-form .comment-form-comment,
.comment-form .comment-form-author,
.comment-form .comment-form-email,
.comment-form .comment-form-url {
	margin-bottom: var(--spacing-sm);
}

.comment-form textarea {
	min-height: 150px;
	resize: vertical;
}

/* ═══════════════════════════════════════════════════════════════════
   Buttons
   ═══════════════════════════════════════════════════════════════════ */
.btn,
.wp-block-button__link,
button,
input[type="submit"] {
	display: inline-block;
	padding: 0.625rem 1.25rem;
	border: none;
	border-radius: var(--qh-brd-radius);
	cursor: pointer;
	transition: background-color var(--transition), transform var(--transition);
	font-family: var(--qh-text-font);
	font-size: 0.9375rem;
	font-weight: 500;
	line-height: 1.5;
	text-align: center;
	text-decoration: none;
}

.btn-default {
	background-color: var(--qh-btn-default-bg);
	color: var(--qh-text-color);
}

.btn-default:hover {
	background-color: var(--qh-btn-default-bg-hover);
}

.btn-accent,
.wp-block-button__link,
button,
input[type="submit"] {
	background-color: var(--qh-btn-accent-bg);
	color: #ffffff;
}

.btn-accent:hover,
.wp-block-button__link:hover,
button:hover,
input[type="submit"]:hover {
	background-color: var(--qh-btn-accent-bg-hover);
	text-decoration: none;
}

/* Button style body classes */
body.qh-btn-default-rounded .btn-default { border-radius: 50px; }
body.qh-btn-default-semi-rounded .btn-default { border-radius: 8px; }

body.qh-btn-accent-rounded .btn-accent,
body.qh-btn-accent-rounded .wp-block-button__link,
body.qh-btn-accent-rounded button,
body.qh-btn-accent-rounded input[type="submit"] { border-radius: 50px; }

body.qh-btn-accent-semi-rounded .btn-accent,
body.qh-btn-accent-semi-rounded .wp-block-button__link,
body.qh-btn-accent-semi-rounded button,
body.qh-btn-accent-semi-rounded input[type="submit"] { border-radius: 8px; }

/* ═══════════════════════════════════════════════════════════════════
   Forms
   ═══════════════════════════════════════════════════════════════════ */
input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="search"],
input[type="number"],
input[type="tel"],
textarea,
select {
	width: 100%;
	padding: 0.5rem 0.75rem;
	border: 1px solid rgba(0,0,0,0.15);
	border-radius: var(--qh-brd-radius);
	font-family: var(--qh-text-font);
	font-size: var(--qh-text-font-size);
	color: var(--qh-text-color);
	background-color: #ffffff;
	transition: border-color var(--transition);
}

input:focus,
textarea:focus,
select:focus {
	outline: none;
	border-color: var(--qh-primary-color);
	box-shadow: 0 0 0 2px rgba(15, 23, 42, 0.1);
}

/* Form style body classes */
body.qh-form-rounded input[type="text"],
body.qh-form-rounded input[type="email"],
body.qh-form-rounded textarea,
body.qh-form-rounded select {
	border-radius: 50px;
}

body.qh-form-underlined input[type="text"],
body.qh-form-underlined input[type="email"],
body.qh-form-underlined textarea,
body.qh-form-underlined select {
	border: none;
	border-bottom: 2px solid rgba(0,0,0,0.15);
	border-radius: 0;
	padding-left: 0;
}

/* ═══════════════════════════════════════════════════════════════════
   Widgets
   ═══════════════════════════════════════════════════════════════════ */
.widget {
	margin-bottom: var(--spacing-lg);
	border-radius: var(--qh-brd-radius);
}

.widget-title {
	font-size: 1.125rem;
	margin-bottom: var(--spacing-sm);
	padding-bottom: var(--spacing-xs);
	border-bottom: 2px solid var(--qh-primary-color);
}

/* ═══════════════════════════════════════════════════════════════════
   Accessibility
   ═══════════════════════════════════════════════════════════════════ */
.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.skip-link {
	position: absolute;
	top: -40px;
	left: 0;
	background: var(--qh-primary-color);
	color: #ffffff;
	padding: var(--spacing-sm);
	z-index: 100;
	transition: top 0.3s;
}

.skip-link:focus {
	top: 0;
}

/* ═══════════════════════════════════════════════════════════════════
   Responsive
   ═══════════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
	h1 { font-size: 1.75rem; }
	h2 { font-size: 1.5rem; }
	h3 { font-size: 1.25rem; }

	.footer-3col {
		grid-template-columns: 1fr;
	}

	.header-standard,
	.header-transparent {
		flex-direction: column;
		align-items: flex-start;
		gap: var(--spacing-xs);
	}

	.header-nav ul {
		flex-direction: column;
		gap: var(--spacing-xs);
	}

	.header-nav ul ul {
		position: static;
		box-shadow: none;
		padding-left: var(--spacing-md);
		display: flex;
	}

	body.qh-sidebar-left .site-content,
	body.qh-sidebar-right .site-content {
		flex-direction: column;
	}

	body.qh-sidebar-left .sidebar,
	body.qh-sidebar-right .sidebar {
		width: 100%;
		padding: var(--spacing-md) 0;
	}
}

/* ═══════════════════════════════════════════════════════════════════
   Post List Layouts
   ═══════════════════════════════════════════════════════════════════ */

/* ── Shared: posts-list reset ───────────────────────────────────── */
.posts-list {
	display: grid;
	gap: 1.75rem;
}

/* ═══════════════════════════════════════════════════════════════════
   Card Grid
   ═══════════════════════════════════════════════════════════════════ */
body.qh-list-card-grid .posts-list {
	grid-template-columns: repeat(3, 1fr);
}
body.qh-list-card-grid.qh-cols-2 .posts-list {
	grid-template-columns: repeat(2, 1fr);
}

.qh-card {
	background: var(--qh-pages-bg, #ffffff);
	border-radius: var(--qh-brd-radius);
	overflow: hidden;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
	transition: box-shadow 250ms ease, transform 250ms ease;
	display: flex;
	flex-direction: column;
}
.qh-card:hover {
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.10);
	transform: translateY(-2px);
}

.qh-card__link {
	display: block;
	overflow: hidden;
	text-decoration: none;
}
.qh-card__thumb {
	aspect-ratio: 16 / 9;
	overflow: hidden;
	background: var(--qh-primary-color, #0F172A);
}
.qh-card__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 320ms ease;
}
.qh-card:hover .qh-card__thumb img {
	transform: scale(1.04);
}
.qh-card__thumb-placeholder {
	width: 100%;
	height: 100%;
	background: linear-gradient(135deg, var(--qh-primary-color, #0F172A) 0%, var(--qh-secondary-color, #334155) 100%);
	opacity: 0.15;
}

.qh-card__body {
	padding: 1.25rem;
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}
.qh-card__meta {
	font-size: 0.8rem;
	color: var(--qh-secondary-color, #334155);
	letter-spacing: 0.03em;
}
.qh-card__title {
	margin: 0;
	font-size: 1.05rem;
	line-height: 1.4;
}
.qh-card__title a {
	color: var(--qh-title-color, #0F172A);
	text-decoration: none;
	transition: color 150ms;
}
.qh-card__title a:hover {
	color: var(--qh-link-color-hover, #CA8A04);
}
.qh-card__excerpt {
	font-size: 0.875rem;
	color: var(--qh-secondary-color, #334155);
	line-height: 1.6;
	flex: 1;
}
.qh-card__excerpt p { margin: 0; }

/* ═══════════════════════════════════════════════════════════════════
   List with Thumbnail
   ═══════════════════════════════════════════════════════════════════ */
body.qh-list-thumbnail .posts-list {
	grid-template-columns: 1fr;
	gap: 0;
}

.qh-list-item {
	display: flex;
	align-items: flex-start;
	gap: 1.5rem;
	padding: 1.5rem 0;
	border-bottom: 1px solid rgba(0, 0, 0, 0.07);
}
.qh-list-item:first-child {
	border-top: 1px solid rgba(0, 0, 0, 0.07);
}

.qh-list-item__thumb {
	flex: 0 0 220px;
	width: 220px;
	display: block;
	overflow: hidden;
	border-radius: var(--qh-brd-radius);
	aspect-ratio: 4 / 3;
}
.qh-list-item__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 320ms ease;
}
.qh-list-item:hover .qh-list-item__thumb img {
	transform: scale(1.04);
}

.qh-list-item__body {
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 0.4rem;
}
.qh-list-item__meta {
	font-size: 0.8rem;
	color: var(--qh-secondary-color, #334155);
}
.qh-list-item__title {
	margin: 0;
	font-size: 1.15rem;
	line-height: 1.4;
}
.qh-list-item__title a {
	color: var(--qh-title-color, #0F172A);
	text-decoration: none;
	transition: color 150ms;
}
.qh-list-item__title a:hover {
	color: var(--qh-link-color-hover, #CA8A04);
}
.qh-list-item__excerpt {
	font-size: 0.9rem;
	color: var(--qh-secondary-color, #334155);
	line-height: 1.65;
}
.qh-list-item__excerpt p { margin: 0; }

/* ═══════════════════════════════════════════════════════════════════
   Magazine Style
   ═══════════════════════════════════════════════════════════════════ */
body.qh-list-magazine .posts-list {
	grid-template-columns: repeat(3, 1fr);
}
body.qh-list-magazine.qh-cols-2 .posts-list {
	grid-template-columns: repeat(2, 1fr);
}

/* Featured post spans full width */
.qh-mag-featured {
	grid-column: 1 / -1;
}

.qh-mag-featured__link {
	display: block;
	text-decoration: none;
	overflow: hidden;
	border-radius: var(--qh-brd-radius);
}
.qh-mag-featured__thumb {
	position: relative;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	background: var(--qh-primary-color, #0F172A);
}
.qh-mag-featured__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 420ms ease;
}
.qh-mag-featured:hover .qh-mag-featured__thumb img {
	transform: scale(1.03);
}
.qh-mag-featured__overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, rgba(0,0,0,0.78) 0%, rgba(0,0,0,0.28) 50%, transparent 100%);
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	padding: 2rem 2.5rem;
	gap: 0.6rem;
}
.qh-mag-featured__meta {
	font-size: 0.8rem;
	color: rgba(255, 255, 255, 0.75);
	letter-spacing: 0.05em;
}
.qh-mag-featured__title {
	margin: 0;
	font-size: clamp(1.4rem, 3vw, 2rem);
	font-weight: 700;
	color: #ffffff;
	line-height: 1.25;
}
.qh-mag-featured__excerpt {
	font-size: 0.9rem;
	color: rgba(255, 255, 255, 0.80);
	line-height: 1.6;
	max-width: 60ch;
}
.qh-mag-featured__excerpt p { margin: 0; }

/* Magazine small cards — same as card-grid */
.qh-mag-card {
	background: var(--qh-pages-bg, #ffffff);
	border-radius: var(--qh-brd-radius);
	overflow: hidden;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
	transition: box-shadow 250ms ease, transform 250ms ease;
	display: flex;
	flex-direction: column;
}
.qh-mag-card:hover {
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.10);
	transform: translateY(-2px);
}
.qh-mag-card__link {
	display: block;
	overflow: hidden;
	text-decoration: none;
}
.qh-mag-card__thumb {
	aspect-ratio: 16 / 9;
	overflow: hidden;
	background: var(--qh-primary-color, #0F172A);
}
.qh-mag-card__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 320ms ease;
}
.qh-mag-card:hover .qh-mag-card__thumb img {
	transform: scale(1.04);
}
.qh-mag-card__body {
	padding: 1.25rem;
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}
.qh-mag-card__meta {
	font-size: 0.8rem;
	color: var(--qh-secondary-color, #334155);
}
.qh-mag-card__title {
	margin: 0;
	font-size: 1rem;
	line-height: 1.4;
}
.qh-mag-card__title a {
	color: var(--qh-title-color, #0F172A);
	text-decoration: none;
	transition: color 150ms;
}
.qh-mag-card__title a:hover {
	color: var(--qh-link-color-hover, #CA8A04);
}
.qh-mag-card__excerpt {
	font-size: 0.875rem;
	color: var(--qh-secondary-color, #334155);
	line-height: 1.6;
}
.qh-mag-card__excerpt p { margin: 0; }

/* ═══════════════════════════════════════════════════════════════════
   Minimal List
   ═══════════════════════════════════════════════════════════════════ */
body.qh-list-minimal .posts-list {
	grid-template-columns: 1fr;
	gap: 0;
}

.qh-minimal-item {
	display: flex;
	align-items: flex-start;
	gap: 1.75rem;
	padding: 1.5rem 0;
	border-bottom: 1px solid rgba(0, 0, 0, 0.07);
}
.qh-minimal-item:first-child {
	border-top: 1px solid rgba(0, 0, 0, 0.07);
}

.qh-minimal-item__date {
	flex: 0 0 3rem;
	text-align: center;
	display: flex;
	flex-direction: column;
	align-items: center;
	padding-top: 0.2rem;
}
.qh-minimal-item__day {
	display: block;
	font-size: 1.6rem;
	font-weight: 700;
	line-height: 1;
	color: var(--qh-title-color, #0F172A);
	font-variant-numeric: tabular-nums;
}
.qh-minimal-item__month {
	display: block;
	font-size: 0.7rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--qh-secondary-color, #334155);
	margin-top: 0.15rem;
}

.qh-minimal-item__body {
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 0.4rem;
}
.qh-minimal-item__title {
	margin: 0;
	font-size: 1.1rem;
	line-height: 1.4;
}
.qh-minimal-item__title a {
	color: var(--qh-title-color, #0F172A);
	text-decoration: none;
	transition: color 150ms;
}
.qh-minimal-item__title a:hover {
	color: var(--qh-link-color-hover, #CA8A04);
}
.qh-minimal-item__excerpt {
	font-size: 0.9rem;
	color: var(--qh-secondary-color, #334155);
	line-height: 1.65;
}
.qh-minimal-item__excerpt p { margin: 0; }

/* ═══════════════════════════════════════════════════════════════════
   Post List RWD
   ═══════════════════════════════════════════════════════════════════ */
@media (min-width: 769px) and (max-width: 1024px) {
	body.qh-list-card-grid .posts-list,
	body.qh-list-magazine .posts-list {
		grid-template-columns: repeat(2, 1fr);
	}
	/* featured still spans all cols */
	body.qh-list-magazine .qh-mag-featured {
		grid-column: 1 / -1;
	}
}

@media (max-width: 768px) {
	body.qh-list-card-grid .posts-list,
	body.qh-list-magazine .posts-list {
		grid-template-columns: 1fr;
	}
	body.qh-list-magazine .qh-mag-featured {
		grid-column: 1 / -1;
	}
	.qh-mag-featured__overlay {
		padding: 1.25rem;
	}
	.qh-list-item {
		flex-direction: column;
		gap: 0.75rem;
	}
	.qh-list-item__thumb {
		flex: none;
		width: 100%;
		aspect-ratio: 16 / 9;
	}
}
