/* ============================================================================
   Editorial ("What's Happening") + blog list ("Off the press").
   Also reused on the Blog/News index. Uses core Query Loop blocks.
   ========================================================================== */

/* Image placeholder wrapper — shows a light block when a post has no featured
   image, and lets a real featured image fill the frame once set. */
.hmd-imgph {
	background: var(--paper-low);
	border-radius: 12px;
	overflow: hidden;
	aspect-ratio: 3 / 2;
}
.hmd-imgph .wp-block-post-featured-image,
.hmd-imgph .wp-block-post-featured-image a,
.hmd-imgph img {
	width: 100%;
	height: 100%;
	margin: 0;
	display: block;
}
.hmd-imgph img { object-fit: cover; }

/* Shared card meta line (date · category) */
.hmd-card__meta {
	gap: 0.625rem;
	align-items: center;
	font-size: 0.75rem;
	color: var(--ink-soft);
}
.hmd-card__meta .wp-block-post-date,
.hmd-card__meta .wp-block-post-terms { color: var(--ink-soft); }
.hmd-card__meta .wp-block-post-terms a { color: var(--ink-soft); text-decoration: none; font-weight: 700; }
.hmd-card__meta .wp-block-post-terms::before {
	content: "";
	width: 3px; height: 3px; border-radius: 999px;
	background: var(--ink-soft); display: inline-block; margin-right: 0.625rem;
	vertical-align: middle;
}

/* ── Editorial heading ────────────────────────────────────────────────────*/
.hmd-editorial__head { max-width: 640px; margin-bottom: 1.75rem; }
.hmd-editorial__title {
	font-size: clamp(2.5rem, 5vw, 3.5rem);
	letter-spacing: -0.03em;
	line-height: 0.95;
	margin: 0 0 1rem;
}
.hmd-editorial__lede { font-size: 1.0625rem; color: var(--ink-soft); max-width: 540px; margin: 0; }

/* ── Featured row (inside white panel) ────────────────────────────────────*/
.hmd-feature__row {
	display: grid;
	grid-template-columns: 1fr 1.15fr;
	gap: 3.5rem;
	align-items: center;
	margin-bottom: 3rem;
}
.hmd-feature__pill {
	display: inline-flex;
	align-items: center;
	background: var(--magenta);
	color: #fff;
	font-family: var(--font-display);
	font-weight: 800;
	font-size: 0.6875rem;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	padding: 0.5rem 0.875rem;
	border-radius: 6px;
	margin: 0 0 1.25rem;
}
.hmd-feature__ttl { margin: 0 0 1.25rem; }
.hmd-feature__ttl a { color: var(--ink); text-decoration: none; }
.hmd-feature__ttl a:hover { color: var(--magenta); }
.hmd-feature__text .hmd-card__meta { margin-bottom: 1.5rem; }
a.hmd-feature__btn,
.hmd-feature__btn {
	display: inline-flex;
	align-items: center;
	background: var(--ink);
	color: var(--yellow) !important;
	font-family: var(--font-display);
	font-weight: 800;
	font-size: 0.8125rem;
	letter-spacing: 0.04em;
	padding: 0.875rem 1.75rem;
	border-radius: 6px;
	text-decoration: none;
}
a.hmd-feature__btn:hover { background: var(--magenta); color: #fff !important; }
.hmd-feature__photo { aspect-ratio: 1.5 / 1; box-shadow: 0 24px 50px rgba(26,26,46,0.18); }

/* ── 4-card grid ──────────────────────────────────────────────────────────*/
.hmd-wh-grid { gap: 1.25rem !important; }
.hmd-wh-card {
	background: #fff;
	border-radius: 14px;
	border: 1px solid rgba(26,26,46,0.06);
	overflow: hidden;
	transition: transform 0.18s, box-shadow 0.18s;
	height: 100%;
}
.hmd-wh-card:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(26,26,46,0.1); }
.hmd-wh-card__img { border-radius: 0; aspect-ratio: 1.5 / 1; }
.hmd-wh-card__body { padding: 1.25rem 1.375rem 1.375rem; display: flex; flex-direction: column; gap: 0.625rem; }
.hmd-wh-card__body .wp-block-post-title { margin: 0; line-height: 1.25; letter-spacing: -0.01em; }
.hmd-wh-card__body .wp-block-post-title a { color: var(--ink); text-decoration: none; }
.hmd-wh-card__body .wp-block-post-title a:hover { color: var(--magenta); }
.hmd-editorial__cta { margin-top: 2.5rem; }

/* ── Off the press (blog list) ────────────────────────────────────────────*/
.hmd-blog-list__grid { display: grid; grid-template-columns: 1fr 2fr; gap: 4rem; align-items: start; }
/* Prevent long titles from expanding the grid track (min-width:auto default). */
.hmd-blog-list__grid > * { min-width: 0; }
.hmd-latest,
.hmd-latest .wp-block-post-template { min-width: 0; width: 100%; }
.hmd-blog-list__title { font-size: clamp(2.5rem, 5vw, 3.5rem); letter-spacing: -0.03em; line-height: 0.95; margin: 0 0 1rem; }
.hmd-latest__row {
	padding: 1.75rem 0;
	border-top: 1px solid var(--line);
	gap: 1.5rem;
}
.hmd-latest .wp-block-post-template { margin: 0; padding: 0; list-style: none; }
.hmd-latest .wp-block-post-template > li:last-child .hmd-latest__row { border-bottom: 1px solid var(--line); }
.hmd-latest__date {
	font-family: var(--font-display);
	font-weight: 900;
	font-size: 0.8125rem;
	color: var(--magenta);
	text-transform: uppercase;
	letter-spacing: 0.06em;
	flex: 0 0 auto;
	min-width: 64px;
}
.hmd-latest__ttl { margin: 0; flex: 1 1 auto; min-width: 0; }
.hmd-latest__ttl a {
	font-family: var(--font-display);
	font-weight: 800;
	color: var(--ink);
	text-decoration: none;
	line-height: 1.2;
}
.hmd-latest__ttl a:hover { color: var(--magenta); }

/* ── Responsive ───────────────────────────────────────────────────────────*/
@media (max-width: 1000px) {
	.hmd-wh-grid { grid-template-columns: repeat(2, 1fr) !important; }
	.hmd-feature__row { grid-template-columns: 1fr; gap: 2rem; }
	.hmd-blog-list__grid { grid-template-columns: 1fr; gap: 2.5rem; }
}
@media (max-width: 560px) {
	.hmd-wh-grid { grid-template-columns: 1fr !important; }
}
