/*
 * Minami — single-post ABOVE-THE-FOLD critical CSS.
 *
 * A small, render-blocking subset of single-article.css covering only what paints
 * on the first screen of a single post/page: the two-column reading container, the
 * editorial article header (kicker / title / dek / byline / hero image), the post-
 * header variant, the dark-mode hero scrim, and the post-content prose BASE (reading
 * scale, measure, headings, body text). Everything below the fold — the engagement
 * bar, comment card, lists/blockquote/table, image treatments, the byline footer,
 * the page backdrop and embeds — stays in single-article.css, which now DEFERS
 * (media="print" onload swap) instead of blocking first paint.
 *
 * This sheet owns the shared header/prose baseline. single-article.css adds the
 * remaining treatments and overrides; the editor consumes both in that order.
 *
 * Loaded via wp_enqueue_block_style( 'core/post-content', … ) and listed in the
 * plugin's CRITICAL_STYLE_HANDLES so it stays a real render-blocking <link>.
 */

/* ---- Article + aside two-column ------------------------------------- */
.minami-content-grid {
	display: grid;
	grid-template-columns:
		minmax(0, var(--wp--custom--site-layout--article-width, var(--wp--style--global--content-size, 720px)))
		minmax(var(--wp--custom--site-layout--sidebar-min, 280px), var(--wp--custom--site-layout--sidebar-width, 320px));
	justify-content: center;
	gap: var(--wp--preset--spacing--60);
	align-items: start;
}

.minami-content-grid:not(:has(.minami-aside)) {
	grid-template-columns: minmax(0, 1fr);
}

.minami-content-grid__primary {
	min-width: 0;
}

.minami-content-grid__primary {
	display: flex;
	flex-direction: column;
	gap: var(--wp--preset--spacing--60);
}

/* Editorial article header ------------------------------------------------ */
.minami-article__header {
	gap: var(--wp--preset--spacing--20);
	padding-block-end: var(--wp--preset--spacing--20);
	border-block-end: 1px solid color-mix(in srgb, var(--wp--preset--color--border) 60%, transparent);
}

/* Compact visible breadcrumbs keep the structured trail aligned with page text. */
.minami-article__header .wp-block-breadcrumbs {
	margin-block-end: 0;
	font-size: var(--wp--preset--font-size--x-small);
}

.minami-article__header .wp-block-breadcrumbs ol {
	row-gap: 0.25rem;
}

.minami-article__header .wp-block-breadcrumbs [aria-current="page"] {
	max-width: 100%;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.minami-article__title.wp-block-post-title {
	margin-block: var(--wp--preset--spacing--10) 0;
	font-size: clamp(2rem, 3.4vw, 3rem);
	font-weight: 700;
	line-height: 1.1;
	letter-spacing: -0.02em;
	text-wrap: balance;
}

.minami-article__dek.wp-block-post-excerpt {
	margin-block: var(--wp--preset--spacing--20) 0;
}

.minami-article__dek .wp-block-post-excerpt__excerpt {
	margin: 0;
	font-size: clamp(1.05rem, 1.6vw, 1.3rem);
	line-height: 1.5;
	color: var(--wp--preset--color--contrast-secondary);
	text-wrap: pretty;
}

.minami-article__dek .wp-block-post-excerpt__more-text,
.minami-article__dek .wp-block-post-excerpt__more-link {
	display: none;
}

p.minami-article__dek {
	margin-block: var(--wp--preset--spacing--20) 0;
	font-size: clamp(1.05rem, 1.6vw, 1.3rem);
	line-height: 1.5;
	color: var(--wp--preset--color--contrast-secondary);
	text-wrap: pretty;
}

p.minami-article__dek:empty {
	display: none;
}

.minami-feature-hero p.minami-article__dek {
	color: inherit;
	opacity: 0.85;
}

.minami-feature-hero .minami-article__dek .wp-block-post-excerpt__excerpt {
	color: inherit;
	opacity: 0.85;
}

/* Byline row: avatar + author + date on the left, the Google "preferred source"
   pill on the right. The action toolbar has moved out of the header to a centered
   bar below the hero (.minami-article__actionbar); these reader actions are still
   mirrored in the article-sidebar engagement bar. */
.minami-article__byline-row {
	margin-block-start: var(--wp--preset--spacing--20);
	gap: var(--wp--preset--spacing--20);
	column-gap: var(--wp--preset--spacing--30);
}

.minami-article__byline-meta {
	gap: var(--wp--preset--spacing--20) var(--wp--preset--spacing--30);
	min-width: 0;
	font-size: var(--wp--preset--font-size--small);
	color: var(--wp--preset--color--contrast-secondary);
}

.minami-article__byline-meta .minami-date {
	display: inline-flex;
	align-items: center;
	gap: 0.3rem;
	color: var(--minami-ds-muted-foreground);
	white-space: nowrap;
	text-decoration: none;
}

.minami-article__byline-meta .minami-date svg {
	flex: 0 0 auto;
	width: 15px;
	height: 15px;
	color: inherit;
	vertical-align: middle;
}

/* Google "preferred source" pill — solid gray rounded pill (not the always-on
   components.css glass control), multicolour G preserved. Higher specificity than
   the global .minami-google-follow so this wins; shares its glass blur. */

/* Premium pill: single-line label, white G chip, hover lift + press/focus
   states. Pill radius + soft shadow give real button affordance without a loud
   fill, so it still sits quietly in the byline row. */
.minami-article__byline-row .minami-google-follow {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	box-sizing: border-box;
	max-width: none;
	padding: 0.35rem 0.85rem 0.35rem 0.4rem;
	border: 1px solid color-mix(in srgb, var(--wp--preset--color--contrast) 16%, transparent);
	border-radius: var(--minami-ds-badge-radius, var(--wp--custom--radius--pill, 999px));
	-webkit-backdrop-filter: blur(12px) saturate(1.4);
	backdrop-filter: blur(12px) saturate(1.4);
	font-size: var(--wp--preset--font-size--small);
	font-weight: 600;
	line-height: 1.2;
	white-space: nowrap;
	text-decoration: none;
	box-shadow: 0 1px 2px color-mix(in srgb, var(--wp--preset--color--contrast) 8%, transparent);
	transition:
		background var(--minami-dur-short, 0.16s) var(--minami-ease-emphasized, cubic-bezier(0.2, 0, 0, 1)),
		border-color var(--minami-dur-short, 0.16s) var(--minami-ease-emphasized, cubic-bezier(0.2, 0, 0, 1)),
		box-shadow var(--minami-dur-short, 0.16s) var(--minami-ease-emphasized, cubic-bezier(0.2, 0, 0, 1)),
		transform var(--minami-dur-short, 0.16s) var(--minami-ease-emphasized, cubic-bezier(0.2, 0, 0, 1));
	min-block-size: 44px;
	min-inline-size: 44px;
}

.minami-article__byline-row .minami-google-follow:where(:not(.has-text-color)) {
	color: var(--minami-tonal-ink);
}

.minami-article__byline-row .minami-google-follow:where(:not(.has-background)) {
	background: var(--minami-tonal-gradient);
}

.minami-article__byline-row .minami-google-follow:hover {
	border-color: color-mix(in srgb, var(--wp--preset--color--contrast) 30%, transparent);
	box-shadow: 0 4px 12px color-mix(in srgb, var(--wp--preset--color--contrast) 16%, transparent);
}

.minami-article__byline-row .minami-google-follow:hover:where(:not(.has-text-color)) {
	color: var(--minami-tonal-ink);
}

.minami-article__byline-row .minami-google-follow:hover:where(:not(.has-background)) {
	background: var(--minami-tonal-hover);
}

.minami-article__byline-row .minami-google-follow:active {
	box-shadow: 0 1px 2px color-mix(in srgb, var(--wp--preset--color--contrast) 10%, transparent);
}

.minami-article__byline-row .minami-google-follow:focus-visible {
	outline: 2px solid var(--wp--preset--color--accent);
	outline-offset: 2px;
}

.minami-article__byline-row .minami-google-follow:hover {
	transform: translateY(-1px);
}

.minami-article__byline-row .minami-google-follow:hover:where(:not(.has-text-color)) {
	color: var(--minami-tonal-ink);
}

.minami-article__byline-row .minami-google-follow:hover:where(:not(.has-background)) {
	background-color: var(--minami-tonal-hover);
}

.minami-article__byline-row .minami-google-follow:active {
	transform: translateY(0);
}

.minami-google-follow__icon {
	display: inline-flex;
	flex: 0 0 auto;
}

/* White circular badge so the multicolour G logo pops against the pill (both modes). */
.minami-article__byline-row .minami-google-follow__icon {
	box-sizing: border-box;
	width: 28px;
	height: 28px;
	padding: 4px;
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 0 0 1px color-mix(in srgb, var(--wp--preset--color--contrast) 10%, transparent);
	align-items: center;
	justify-content: center;
}

.minami-article__byline-row .minami-google-follow__icon svg {
	width: 18px;
	height: 18px;
	display: block;
}

.minami-article__byline-authors {
	min-width: 0;
}

.minami-article__byline-identity {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	grid-template-areas:
		"avatar names"
		"avatar role";
	column-gap: 0.65rem;
	row-gap: 0.1rem;
	align-items: center;
}

.minami-article__byline-identity .minami-avatar {
	--minami-avatar-size: 36px;
	grid-area: avatar;
	align-self: center;
}

.minami-article__byline-identity .minami-byline__stack {
	grid-area: avatar;
	align-self: center;
}

.minami-article__byline-identity .minami-byline__stack .minami-avatar {
	--minami-avatar-size: 24px;
}

/* Compact header cluster: tighter overlap + a "+N" badge sized to the 24px stack. */
.minami-article__byline-identity .minami-byline__stack > * + * {
	margin-inline-start: -0.5rem;
}

.minami-article__byline-identity .minami-byline__more {
	inline-size: 24px;
	block-size: 24px;
}

.minami-article__byline-identity .minami-article__byline-names {
	grid-area: names;
	align-self: end;
	min-width: 0;
}

.minami-article__byline-role {
	grid-area: role;
	align-self: start;
	display: inline-flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 0.4rem;
	font-size: var(--wp--preset--font-size--small);
	color: var(--minami-ds-muted-foreground);
}

.minami-article__byline-sep {
	color: var(--minami-ds-muted-foreground);
}

/* Names line: 600-weight author-archive links with a brand tint on hover; the
   joiners (", " / " & ") flow as inline text and the verified tick rides inline
   after the name. The "+N more" tail is a quieter link to the footer credits. */
.minami-article__byline-names {
	font-size: var(--wp--preset--font-size--small);
	font-weight: 600;
	line-height: 1.3;
	color: var(--wp--preset--color--contrast);
}

.minami-article__byline-name,
.minami-article__byline-more {
	color: inherit;
	text-decoration: none;
}

.minami-article__byline-name:hover {
	color: var(--wp--preset--color--brand);
}

.minami-article__byline-more {
	color: var(--wp--preset--color--contrast-secondary);
	font-weight: 500;
}

.minami-article__byline-more:hover {
	color: var(--wp--preset--color--brand);
}

.minami-article__byline-names .minami-byline__verified {
	vertical-align: middle;
	margin-inline-start: 0.1rem;
}

/* Featured image hero + overlays. Category sits top-left; stats sit top-right. */
.minami-article__hero-wrap {
	position: relative;
	isolation: isolate;
	margin-block-start: var(--wp--preset--spacing--40);
}

.minami-article__hero-kicker {
	display: flex;
	gap: var(--wp--preset--spacing--10);
	margin-block: 0 var(--wp--preset--spacing--20);
}

.minami-article__hero-kicker .minami-post-categories {
	margin: 0;
	gap: 0.4rem;
}

.minami-article__hero-wrap:has(.wp-block-post-featured-image img) .minami-article__hero-kicker {
	position: absolute;
	z-index: 3;
	inset-block-start: var(--wp--preset--spacing--20);
	inset-inline-start: var(--wp--preset--spacing--20);
	max-width: min(68%, calc(100% - 8rem));
	margin: 0;
}

.minami-article__hero-wrap:has(.wp-block-post-featured-image img) .minami-article__hero-kicker .minami-post-categories__chip {
	padding: 0.35em 0.7em;
	border: 1px solid transparent;
	border-radius: var(--minami-ds-chip-radius, 8px);
	font-size: var(--wp--preset--font-size--x-small);
	font-weight: 800;
	line-height: 1.25;
	text-shadow: none;
	box-shadow: none;
}

/* The block owns the compact painted capsule; this wrapper owns its hit area. */
.minami-article__hero-wrap:has(.wp-block-post-featured-image img) .minami-article__hero-kicker .minami-post-categories__chip:where(:not(.has-background)) {
	background: transparent;
}

.minami-article__hero-badges {
	position: absolute;
	z-index: 2;
	inset-block-start: var(--wp--preset--spacing--20);
	inset-inline-end: var(--wp--preset--spacing--20);
	justify-content: flex-end;
	gap: var(--wp--preset--spacing--10);
	max-width: calc(100% - 2 * var(--wp--preset--spacing--20));
}

/* Opaque semantic pairs preserve contrast over imagery. */
.minami-article__hero-badges > * {
	display: inline-flex;
	align-items: center;
	gap: 0.3rem;
	margin: 0;
	padding: 0.3em 0.65em;
	border-radius: var(--minami-ds-badge-radius, var(--wp--custom--radius--pill));
	font-size: var(--wp--preset--font-size--x-small);
	font-weight: 600;
	line-height: 1.4;
	white-space: nowrap;
	box-shadow: none;
}

.minami-article__hero-badges > *:where(:not(.has-text-color)) {
	color: var(--minami-ds-secondary-foreground);
}

.minami-article__hero-badges > *:where(:not(.has-background)) {
	background: var(--minami-ds-secondary);
}

.minami-article__hero-badges svg {
	flex: 0 0 auto;
	width: 14px;
	height: 14px;
	color: inherit;
}

/* Heat status uses the same tonal recipe as listing badges. */
.minami-article__hero-badges > .minami-heat-badge {
	display: contents;
}

.minami-article__hero-badges .minami-card__badge {
	background: var(--minami-tonal-fill);
	color: var(--minami-tonal-ink);
	box-shadow: none;
	-webkit-backdrop-filter: none;
	backdrop-filter: none;
	padding-inline: 0.65em;
	text-transform: none;
	letter-spacing: 0.03em;
	text-shadow: none;
}

/* Below-image action bar: a centered frosted-glass strip of bigger icon+count
   controls (reaction · comment · share · bookmark). This is the in-flow primary
   affordance under the hero; the same actions are mirrored in the aside sidebar. */
.minami-article__actionbar {
	gap: var(--wp--preset--spacing--20);
	margin-block-start: var(--wp--preset--spacing--30);
	margin-inline: auto;
	width: fit-content;
	max-width: 100%;
	padding: 0.4rem 0.6rem;
	border: 1px solid color-mix(in srgb, var(--wp--preset--color--border) 70%, transparent);
	border-radius: var(--minami-ds-control-radius, 8px);
	background: color-mix(in srgb, var(--wp--preset--color--surface) 70%, transparent);
	-webkit-backdrop-filter: saturate(180%) blur(14px);
	backdrop-filter: saturate(180%) blur(14px);
}

.minami-article__actionbar > * {
	margin: 0;
	flex: 0 0 auto;
}

.minami-article__actionbar .minami-reactions__trigger,
.minami-article__actionbar .minami-share__trigger,
.minami-article__actionbar > .minami-bookmark,
.minami-article__actionbar .minami-engage__comment {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.35rem;
	width: auto;
	min-width: 44px;
	height: 44px;
	padding: 0 0.85rem;
	border: 0;
	border-radius: var(--minami-ds-control-radius, 8px);
	background: transparent;
	color: var(--wp--preset--color--contrast-secondary);
	font-size: var(--wp--preset--font-size--small);
	font-weight: 600;
	line-height: 1;
	text-decoration: none;
	box-shadow: none;
	white-space: nowrap;
	transition:
		background var(--minami-dur-short, 0.16s) var(--minami-ease-emphasized, cubic-bezier(0.2, 0, 0, 1)),
		color var(--minami-dur-short, 0.16s) var(--minami-ease-emphasized, cubic-bezier(0.2, 0, 0, 1));
}

.minami-article__actionbar svg {
	flex: 0 0 auto;
	width: 22px;
	height: 22px;
	color: inherit;
}

/* View count rides the bar as a quiet (non-button) icon+count atom. */
.minami-article__actionbar .minami-views {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	margin: 0;
	color: var(--wp--preset--color--contrast-secondary);
	font-size: var(--wp--preset--font-size--small);
	font-weight: 600;
	white-space: nowrap;
}

.minami-article__actionbar .minami-views[hidden] {
	display: none !important;
}

/* Icon + count: hide only the word labels (counts stay; controls keep aria-label). */
.minami-article__actionbar :is(.minami-reactions__trigger-label, .minami-share__trigger-label, .minami-bookmark__label) {
	display: none;
}

.minami-article__actionbar .minami-reactions__trigger:hover,
.minami-article__actionbar .minami-share__trigger:hover,
.minami-article__actionbar > .minami-bookmark:not(.is-saved):hover,
.minami-article__actionbar .minami-engage__comment:hover {
	background: var(--wp--preset--color--surface);
	color: var(--wp--preset--color--contrast);
}

.minami-article__actionbar > .minami-bookmark.is-saved {
	background: var(--minami-tonal-fill);
	color: var(--minami-tonal-ink);
}

.minami-article__actionbar .minami-reactions.has-reaction .minami-reactions__trigger {
	background: var(--minami-tonal-fill);
	color: var(--minami-tonal-ink);
}

/* comment-link: flat inline icon + count (undo its article-sidebar tile styling). */
.minami-article__actionbar .minami-engage__comment {
	flex-direction: row;
}

.minami-article__actionbar .minami-engage__count {
	position: static;
	top: auto;
	left: auto;
	min-width: 0;
	height: auto;
	padding: 0;
	border-radius: 0;
	background: none;
	color: inherit;
	font-size: inherit;
	font-weight: inherit;
}

.minami-article__actionbar .minami-engage__comment .minami-engage__label {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
}

/* Featured image hero. The hero-wrap owns the top margin, so the image sits flush. */
.minami-article .wp-block-post-featured-image,
.minami-article__hero {
	position: relative;
	overflow: hidden;
	isolation: isolate;
	border-radius: var(--wp--custom--radius--lg);
	margin-block-start: 0;
}

.minami-article .wp-block-post-featured-image img,
.minami-article__hero img {
	width: 100%;
	height: auto;
	aspect-ratio: 16 / 9;
	object-fit: cover;
	display: block;
	border-radius: inherit;
	box-shadow: 0 1px 0 color-mix(in srgb, var(--wp--preset--color--contrast) 8%, transparent);
}

.wp-block-post-title,
.minami-article .wp-block-post-title {
	line-height: 1.15;
	overflow-wrap: anywhere;
}

.minami-article .wp-block-post-content {
	line-height: 1.75;
}

.minami-article .minami-card__kicker {
	display: inline-flex;
	flex-wrap: wrap;
	gap: var(--wp--preset--spacing--10);
	padding: 0.2em 0.6em;
	border: 1px solid var(--wp--preset--color--border);
	border-radius: var(--minami-ds-badge-radius, var(--wp--custom--radius--sm, 6px));
	color: var(--wp--preset--color--contrast-secondary);
}

@media (max-width: 1024px) {
	.minami-content-grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.minami-content-grid > .wp-block-template-part:has(> .minami-aside) {
		display: none;
	}

	.minami-content-grid .minami-aside {
		display: none;
	}

	.minami-content-grid__primary {
		gap: var(--wp--preset--spacing--50);
	}
}

/* Desktop (aside sidebar visible >1024): the sidebar carries the engagement actions, so
   the in-flow action bar below the hero is redundant there — hide it. At ≤1024 the
   sidebar is hidden, so the bar becomes the page's only engagement affordance. */
@media (min-width: 1025px) {
	/* Desktop: the aside sidebar carries engagement + the view count lives elsewhere,
	   so hide the whole bar. Ancestor-scoped to outrank WP's per-instance
	   .wp-container-…-is-layout-flex display:flex (same specificity). */
	.minami-article .minami-article__actionbar {
		display: none;
	}
}

@media (max-width: 781px) {
	.minami-content-grid {
		gap: var(--wp--preset--spacing--50);
	}

	.minami-article__header {
		padding-block-end: var(--wp--preset--spacing--10);
	}

	.minami-article__title.wp-block-post-title {
		font-size: clamp(1.875rem, 1.75rem + 1vw, 2.125rem);
		line-height: 1.12;
	}

	.minami-article__hero-wrap {
		margin-block-start: var(--wp--preset--spacing--30);
	}

	/* Stack the byline: [avatar + name] left / date right on one row, then the
	   Google pill full-width beneath. */

	/* The revised badge remains content-width beneath the full-width byline. */
	.minami-article__byline-row {
		flex-direction: column;
		align-items: stretch;
	}

	.minami-article__byline-meta {
		width: 100%;
		flex-wrap: nowrap;
		justify-content: space-between;
		align-items: center;
	}

	.minami-article__byline-row .minami-google-follow {
		max-width: 100%;
		width: fit-content;
		align-self: flex-start;
		justify-content: flex-start;
		min-height: 44px;
		align-items: center;
		box-sizing: border-box;
		min-block-size: 44px;
		min-inline-size: 44px;
	}

	/* Keep the content-width badge's tooltip inside the reading column. */
	.minami-article__byline-row .minami-google-follow::after {
		right: auto;
		left: 0;
	}

	.minami-article__byline-row .minami-google-follow:where(:not(.has-text-color)) {
		color: var(--minami-tonal-ink);
	}

	.minami-article__byline-row .minami-google-follow:where(:not(.has-background)) {
		background-color: var(--minami-tonal-fill);
	}

	/* Compact category + heat badge chips on phones. */
	.minami-article__hero-wrap:has(.wp-block-post-featured-image img) .minami-article__hero-kicker {
		inset-block-start: var(--wp--preset--spacing--10);
		inset-inline-start: var(--wp--preset--spacing--10);
		max-width: min(68%, calc(100% - 5.5rem));
	}

	.minami-article__hero-wrap:has(.wp-block-post-featured-image img) .minami-article__hero-kicker .minami-post-categories__chip {
		padding: 0.25em 0.55em;
		font-size: 0.6875rem;
	}

	.minami-article__hero-badges {
		inset-block-start: var(--wp--preset--spacing--10);
		inset-inline-end: var(--wp--preset--spacing--10);
		gap: 0.3rem;
	}

	.minami-article__hero-badges > * {
		padding: 0.2em 0.5em;
		gap: 0.25rem;
		font-size: 0.6875rem;
		border-radius: var(--minami-ds-badge-radius, var(--wp--custom--radius--pill));
	}

	.minami-article__hero-badges svg {
		width: 12px;
		height: 12px;
	}
}

/* ---- Article header meta (single) ----------------------------------- */
.minami-article .minami-post-meta {
	gap: var(--wp--preset--spacing--20) var(--wp--preset--spacing--30);
	margin: 0;
}

/* ---- Dark-mode hero scrim -------------------------------------------- */
[data-theme="dark"] .minami-spotlight .wp-block-cover__background,
[data-theme="dark"] .minami-feature-hero .wp-block-cover__background {
	background-color: #0a0a0a !important;
}

/* ---- Post header (breadcrumb + title) -------------------------------- */
.minami-post-header {
	margin-block-end: var(--wp--preset--spacing--50);
}

.minami-post-header__kicker {
	margin-block: var(--wp--preset--spacing--20) 0;
}

.minami-post-header__title {
	margin-block: var(--wp--preset--spacing--20) 0;
}

.minami-post-header__meta {
	gap: var(--wp--preset--spacing--20);
	margin-block-start: var(--wp--preset--spacing--30);
	font-size: var(--wp--preset--font-size--small);
	color: var(--minami-ds-muted-foreground);
}

.minami-post-header__meta .wp-block-post-author-name a {
	color: var(--wp--preset--color--contrast-secondary);
	text-decoration: none;
}

.minami-post-header__meta .wp-block-post-author-name a:hover {
	color: var(--wp--preset--color--brand);
}

.minami-post-header__meta p {
	margin: 0;
}

.minami-post-header__dek {
	margin-block: var(--wp--preset--spacing--20) 0;
	font-size: var(--wp--preset--font-size--medium);
	line-height: 1.5;
	color: var(--wp--preset--color--contrast-secondary);
}

.minami-post-header__dek:empty,
.minami-post-header__reading:empty {
	display: none;
}

/* ---- Post-content prose BASE (reading scale, measure, headings, body) ---- */
.minami-site-layout .wp-block-post-content {
	font-size: clamp(1.0625rem, 1rem + 0.4vw, 1.1875rem);
	line-height: 1.65;
	--prose-measure: 62ch;
	--prose-h1: clamp(1.75rem, 1.45rem + 1.25vw, 2.5rem);
	--prose-h2: clamp(1.5rem, 1.375rem + 0.5vw, 1.75rem);
	--prose-h3: clamp(1.25rem, 1.125rem + 0.5vw, 1.375rem);
	--prose-h4: 1.1875rem;
	--prose-h5: 1.0625rem;
	--prose-tracking: -0.02em;
	--prose-flow: 1.4em;
	--prose-tight: 0.5em;
	--prose-mt-h2: 2.75em;
	--prose-mt-h3: 2em;
	--prose-mb-head: 0.6em;
}

.minami-site-layout .wp-block-post-content > * {
	max-width: var(--prose-measure);
	margin-inline: auto;
}

.minami-site-layout
	.wp-block-post-content
	> :where(
		.alignwide,
		.alignfull,
		figure,
		.wp-block-image,
		.wp-block-gallery,
		.wp-block-embed,
		.wp-block-video,
		.wp-block-audio,
		.wp-block-table,
		.wp-block-media-text,
		.wp-block-columns
	) {
	max-width: none;
}

.minami-site-layout .wp-block-post-content :where(.alignwide, .alignfull) {
	max-width: none;
}

.minami-site-layout .wp-block-post-content :where(h1, h2, h3, h4, h5, h6) {
	letter-spacing: var(--prose-tracking);
	line-height: 1.2;
	color: var(--wp--preset--color--contrast);
	margin-block-end: var(--prose-mb-head);
	text-wrap: balance;
}

.minami-site-layout .wp-block-post-content h1 {
	font-size: var(--prose-h1);
	font-weight: 800;
	line-height: 1.1;
	letter-spacing: -0.025em;
}

.minami-site-layout .wp-block-post-content h2 {
	font-size: var(--prose-h2);
	font-weight: 700;
}

.minami-site-layout .wp-block-post-content h3 {
	font-size: var(--prose-h3);
	font-weight: 600;
}

.minami-site-layout .wp-block-post-content h4 {
	font-size: var(--prose-h4);
	font-weight: 600;
}

.minami-site-layout .wp-block-post-content h5 {
	font-size: var(--prose-h5);
	font-weight: 600;
}

.minami-site-layout .wp-block-post-content h6 {
	letter-spacing: 0.05em;
}

.minami-site-layout .wp-block-post-content h3 {
	margin-block-start: var(--prose-mt-h3);
}

.minami-site-layout .wp-block-post-content :where(h4, h5, h6) {
	margin-block-start: var(--prose-flow);
}

.minami-site-layout .wp-block-post-content h2 {
	margin-block-start: var(--prose-mt-h2);
}

.minami-site-layout .wp-block-post-content > :where(h1, h2, h3, h4, h5, h6):first-child {
	margin-block-start: 0;
}

.minami-site-layout .wp-block-post-content p {
	line-height: 1.65;
}

.minami-site-layout .wp-block-post-content p:not(:first-child) {
	margin-block-start: var(--prose-flow);
}

.minami-site-layout .wp-block-post-content a:where(:not(.wp-element-button, .has-text-color, .has-inline-color)) {
	color: var(--minami-ds-link);
	font-weight: 500;
	text-decoration: underline;
	text-decoration-color: currentcolor;
	text-underline-offset: 0.2em;
	text-decoration-thickness: 1px;
	transition:
		color var(--minami-dur-short, 150ms) var(--minami-ease-emphasized),
		text-decoration-color var(--minami-dur-short, 150ms) var(--minami-ease-emphasized);
}

.minami-site-layout .wp-block-post-content a:where(:not(.wp-element-button, .has-text-color, .has-inline-color)):hover,
.minami-site-layout .wp-block-post-content a:where(:not(.wp-element-button, .has-text-color, .has-inline-color)):focus-visible {
	color: var(--minami-ds-link-hover);
	text-decoration-color: currentcolor;
	text-decoration-thickness: 2px;
}

.minami-site-layout .wp-block-post-content :where(strong, b) {
	font-weight: 600;
}

.minami-site-layout .wp-block-post-content :where(em, i, cite) {
	font-style: italic;
}

/* Shared appearance adapter; local geometry and motion remain authoritative. */

.minami-article__byline-row .minami-google-follow:not(.has-background):active {
	background-color: var(--minami-tonal-pressed);
}
