/*
 * Minami — single-post reading + article-layout styles.
 * Split out of site-layout.css. Loaded via wp_enqueue_block_style( 'core/post-content', … )
 * so it ships ONLY on pages that render the post content body (single posts/pages,
 * and the matching canvases in the site/post editor — parity preserved). Depends on
 * the 'minami-global' handle so its rules print AFTER the layout base and win the
 * cascade on equal specificity (same source-order contract as the monolith).
 */

/* ---- Article + aside two-column ------------------------------------- */

.minami-article__insight > summary {
	box-sizing: border-box;
	min-block-size: 44px;
	padding-block: var(--wp--preset--spacing--10);
	cursor: pointer;
}

/* Related reading: native shelf, shadcn image/type rhythm, no outer frame. */
.minami-article .minami-related-posts {
	--minami-related-gap: var(--wp--preset--spacing--30);
	padding-block-start: var(--wp--preset--spacing--40);
}

.minami-article .minami-related-posts__title {
	display: flex;
	align-items: center;
	gap: var(--wp--preset--spacing--10);
	min-width: 0;
	font-size: var(--wp--preset--font-size--large);
	font-weight: 600;
	letter-spacing: -0.025em;
	line-height: 1.3;
}

.minami-article .minami-related-posts__title-icon {
	flex: none;
	inline-size: 1.25em;
	block-size: 1.25em;
	color: var(--minami-ds-foreground);
}

.minami-article .minami-related-posts__actions .minami-related-posts__arrow {
	display: inline-grid;
	place-items: center;
	flex: none;
	box-sizing: border-box;
	inline-size: 44px;
	block-size: 44px;
	padding: 0;
	border: 1px solid transparent;
	border-radius: var(--wp--custom--radius--pill);
	background: var(--minami-tonal-fill);
	color: var(--minami-tonal-ink);
	line-height: 0;
}

.minami-article .minami-related-posts__arrow > svg {
	display: block;
	inline-size: 1.25rem;
	block-size: 1.25rem;
	pointer-events: none;
}

.minami-article .minami-related-posts__arrow:focus-visible {
	background: var(--minami-tonal-hover);
}

.minami-article .minami-related-posts__arrow:is(:disabled, [aria-disabled="true"]) {
	background: var(--minami-ds-muted);
	color: var(--minami-ds-muted-foreground);
	opacity: 1;
}

@media (hover: hover) and (pointer: fine) {
	.minami-article .minami-related-posts__arrow:not(:disabled, [aria-disabled="true"]):hover {
		background: var(--minami-tonal-hover);
	}
}

.minami-article .minami-related-posts__arrow:not(:disabled, [aria-disabled="true"]):active {
	background: var(--minami-tonal-pressed);
}

@media (forced-colors: active) {
	.minami-article .minami-related-posts__actions .minami-related-posts__arrow {
		border-color: ButtonText;
		background: ButtonFace;
		color: ButtonText;
	}

	.minami-article .minami-related-posts__arrow:is(:disabled, [aria-disabled="true"]) {
		border-color: GrayText;
		color: GrayText;
	}
}

.minami-article .minami-related-posts__sidebar::before,
.minami-article .minami-related-posts__sidebar::after {
	display: none;
}

.minami-article .minami-related-posts__track {
	padding: var(--wp--preset--spacing--10);
	margin-inline: calc(-1 * var(--wp--preset--spacing--10));
	scroll-padding-inline: var(--wp--preset--spacing--10);
}

.minami-article .minami-related-posts__item {
	min-width: 0;
	flex-basis: calc((100% - var(--minami-related-gap)) / 2);
}

.minami-article .minami-related-posts__card-img-wrap {
	aspect-ratio: 16 / 9;
	border-radius: var(--minami-ds-card-radius);
	background: var(--minami-ds-muted);
}

.minami-article .minami-related-posts__card-img-wrap img {
	transition: transform var(--minami-motion-thumb-dur) var(--minami-ease-standard);
}

.minami-article .minami-related-posts__card-img-wrap:hover img {
	transform: none;
}

.minami-article .minami-related-posts__card-body {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: var(--wp--preset--spacing--10);
	padding-block-start: var(--wp--preset--spacing--20);
}

.minami-article .minami-related-posts__card-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0 var(--wp--preset--spacing--20);
	color: var(--minami-ds-muted-foreground);
}

.minami-article .minami-related-posts__card-date {
	margin: 0;
	color: var(--minami-ds-muted-foreground);
	font-size: var(--wp--preset--font-size--x-small);
}

.minami-article .minami-related-posts__card-title {
	display: block;
	overflow: visible;
	margin: 0;
	color: var(--minami-ds-foreground);
	font-size: var(--wp--preset--font-size--large);
	font-weight: 700;
	letter-spacing: -0.02em;
	line-height: 1.35;
	overflow-wrap: anywhere;
}

.minami-article .minami-related-posts__card-title a {
	display: flex;
	align-items: center;
	min-height: 44px;
	border-radius: var(--wp--custom--radius--sm);
	text-decoration-thickness: 0.08em;
	text-underline-offset: 0.2em;
	transition: color var(--minami-dur-short) var(--minami-ease-standard);
}

.minami-article .minami-related-posts__card-cat {
	min-height: 44px;
	max-width: 100%;
	border-radius: var(--wp--custom--radius--sm);
	color: var(--minami-ds-muted-foreground);
	font-size: var(--wp--preset--font-size--x-small);
	font-weight: 500;
	text-underline-offset: 0.2em;
	overflow-wrap: anywhere;
}

.minami-article .minami-related-posts__card :is(a:active, a:focus-visible) {
	color: var(--minami-ds-foreground);
	text-decoration: underline;
}

@media (hover: hover) and (pointer: fine) {
	.minami-article .minami-related-posts__card:hover img {
		transform: scale(var(--minami-motion-thumb-scale));
	}

	.minami-article .minami-related-posts__card-cat:hover {
		color: var(--minami-ds-foreground);
	}
}

@media (max-width: 600px) {
	.minami-article .minami-related-posts__item {
		flex-basis: 80%;
	}
}

/* Single posts get a quiet reading column plus a sticky article utility sidebar.
   The body remains the priority; the sidebar is for context and recirculation. */

/* FSE template-driven aside: when the `article-sidebar` part isn't included (the editor
   removed it), there is no `.minami-aside` and the grid collapses to one column —
   no body-class / setting needed. Replaces the old `.minami-sidebar-off` gate. */

/* The sticky aside wrapper, the outline .minami-aside__card, and the social-counter
   "Follow us" card are SHARED sidebar interface (home/single/search/static pages), so they
   live in blocks/article-sidebar.css attached to minami/trending-tabs — not here, where the
   sheet only ships on single posts via core/post-content. */

/* Primary column: stacked sections with vertical rhythm */

/* Editorial article header ------------------------------------------------ */

/* Compact visible breadcrumbs keep the structured trail aligned with page text. */

/* Dek: excerpt directly under the single title — quieter, larger than body meta */

/* Standfirst as a core paragraph bound to the minami_dek meta (replaces the
   auto-excerpt dek). Same type scale as the excerpt variant above. */

/* No standfirst entered: the binding leaves an empty <p> — collapse it. */

/* Feature hero: dek sits on the dimmed cover, inherit on-brand color */

/* 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. */

/* 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. */

/* White circular badge so the multicolour G logo pops against the pill (both modes). */

/* Compact header cluster: tighter overlap + a "+N" badge sized to the 24px stack. */

/* 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. */

/* Featured image hero + overlays. Category sits top-left; stats sit top-right. */

/* The block owns the compact painted capsule; this wrapper owns its hit area. */

/* Opaque semantic pairs preserve contrast over imagery. */

/* Heat status uses the same tonal recipe as listing badges. */

/* 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. */

/* View count rides the bar as a quiet (non-button) icon+count atom. */

/* Icon + count: hide only the word labels (counts stay; controls keep aria-label). */

/* comment-link: flat inline icon + count (undo its article-sidebar tile styling). */

/* Featured image: compact 16/9 hero filling the article's primary column. The
   hero-wrap owns the top margin, so the image sits flush inside it. */

/* Title: tighter leading suits large display sizes */

/* Post body: comfortable long-form reading rhythm */

/* Article category chip: a compact editorial badge. */

/* 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. */

/* ---- Article header meta (single) ----------------------------------- */

/* shadcn article pattern: the byline row closes the header with a hairline
   Separator before the hero image, so the kicker/title/meta read as one block
   distinct from the body. Scoped to .minami-article so the homepage/card uses
   of .minami-post-meta keep their bare inline treatment. */

/* ---- Article engagement bar (single / single-feature) -------------- */

/* Facebook-style action bar: a hairline strip, sitting directly above the
   comments, split into THREE equal segments — Reaction · Save · Share. Each
   control is a borderless full-width ghost button that fills its third and
   highlights on hover; active states (reacted / saved) wear a quiet brand TINT
   — never a loud solid fill — so the bar stays balanced. Share opens the share
   sheet (social-share block). */
.minami-article__actions {
	display: flex;
	align-items: stretch;
	gap: var(--wp--preset--spacing--10);
	padding-block: var(--wp--preset--spacing--20);
	margin-block: var(--wp--preset--spacing--30);
	border-block: 1px solid var(--wp--preset--color--border);
	border-radius: 0;
}

/* The three equal segments. (> child selectors so a control nested inside the
   share wrapper / reaction cluster doesn't get the flex:1 too.) */
.minami-article__actions > .minami-article__react,
.minami-article__actions > .minami-bookmark,
.minami-article__actions > .minami-share {
	flex: 1 1 0;
	min-width: 0;
}

/* The reaction cluster fills its third; the trigger grows, the reactor-count
   summary tucks at the end so the Like control matches the Save/Share width. */
.minami-article__react {
	align-items: center;
	justify-content: center;
	gap: var(--wp--preset--spacing--10);
}

.minami-article__actions .minami-reactions {
	display: flex;
	flex: 1 1 auto;
	align-items: center;
	margin-block: 0;
}

.minami-article__actions .minami-reactions__trigger {
	flex: 1 1 auto;
}

/* Shared ghost recipe — full-width, borderless, taller tap target, rounded so
   the hover/active wash reads as a button. */
.minami-article__actions .minami-reactions__trigger,
.minami-article__actions > .minami-bookmark,
.minami-article__actions .minami-share__trigger {
	width: 100%;
	height: 44px;
	border: 0;
	background: transparent;
	border-radius: var(--wp--custom--radius--md, 8px);
	color: var(--wp--preset--color--contrast-secondary, currentColor);
	font-weight: 600;
}

/* Icon parity across the three controls. */
.minami-article__actions > .minami-bookmark svg,
.minami-article__actions .minami-share__trigger svg {
	width: 20px;
	height: 20px;
}

.minami-article__actions .minami-reactions__trigger-label,
.minami-article__actions .minami-bookmark__label,
.minami-article__actions .minami-share__trigger-label {
	white-space: nowrap;
}

/* Hover — quiet surface wash + full-contrast text. */
.minami-article__actions .minami-reactions__trigger:hover,
.minami-article__actions > .minami-bookmark:not(.is-saved):hover,
.minami-article__actions .minami-share__trigger:hover {
	background: var(--wp--preset--color--surface);
	color: var(--wp--preset--color--contrast);
}

/* Active — shared tonal pair. Saved keeps the bookmark
   glyph filled so "on" is unmistakable; reacted inherits its per-reaction accent. */
.minami-article__actions > .minami-bookmark.is-saved {
	background: var(--minami-tonal-fill);
	color: var(--minami-tonal-ink);
	border-color: transparent;
}

.minami-article__actions > .minami-bookmark.is-saved svg {
	fill: var(--minami-icon-tone);
	stroke: currentcolor;
}

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

/* The reactor total is integrated INTO the Like control (.__trigger-count) so the
   segment reads as one unit. The standalone face-pile summary would otherwise tuck
   at the far edge of the full-width trigger and read as an orphan between segments
   — so it's suppressed here; the picker already conveys which reactions exist. */
.minami-article__actions .minami-reactions__summary {
	display: none;
}

.minami-article__actions .minami-reactions__trigger-count {
	margin-inline-start: 0.1rem;
	font-variant-numeric: tabular-nums;
	font-weight: 700;
	opacity: 0.85;
}

.minami-article__actions .minami-reactions__trigger-count[hidden] {
	display: none;
}

/* Re-assert [hidden] over the inline-flex display rules (glyph slots, faces,
   summary) so data-wp-bind--hidden actually collapses them. */
.minami-reactions [hidden] {
	display: none;
}

/* Narrow columns: tighten gaps + drop to icon-led labels; the three segments
   stay equal and on one row with comfortable 44px targets. */
@media (max-width: 600px) {
	.minami-article__actions {
		gap: 2px;
	}

	.minami-article__actions .minami-reactions__trigger,
	.minami-article__actions > .minami-bookmark,
	.minami-article__actions .minami-share__trigger {
		padding-inline: 0.35rem;
		gap: 0.3rem;
	}
}

/* ---- Engagement box: action bar + comments share one card ------------ */

/* The reaction/save/share bar and the comment thread live inside a single
   bordered card. The action bar is the tinted header; the comment thread is
   the seamless body below it. */
.minami-article__engagement {
	margin-block: var(--wp--preset--spacing--40);
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 16px;
	background: var(--wp--preset--color--base);
	overflow: clip;

	/* Rides the constrained 680px reading measure as a border-box card — same
	   outer edge as post-content and the author card (now also border-box). */
}

/* Action bar header: drop its standalone border/margin/radius and sit it on a
   subtle gray wash, with a divider only on the bottom edge against the body. */
.minami-article__engagement .minami-article__actions {
	margin-block: 0;
	padding: var(--wp--preset--spacing--20) var(--wp--preset--spacing--30);
	border-block: 0;
	border-block-end: 1px solid var(--wp--preset--color--border);
	border-radius: 0;
	background: var(--wp--preset--color--surface);
}

/* Comment thread body: strip its own card interface since the engagement wrapper
   now owns the border, radius, and background. */
.minami-article__engagement .minami-comments {
	margin-block: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
}

/* ---- Dark-mode hero scrim -------------------------------------------- */

/* The spotlight + feature covers use overlayColor "contrast", which is a dark
   scrim in light mode (white title reads well) but flips to a near-white scrim
   in dark mode — making the white title vanish. Force a dark scrim in dark
   mode so the hero stays legible regardless of the resolved contrast colour. */

/* ---- Post header (breadcrumb + title) -------------------------------- */

/* Bound paragraphs sit in the flex meta row; drop the default block margin. */

/* Standfirst bound from the minami_dek meta via core/post-meta. */

/* Empty when no standfirst entered / reading-time feature is off — collapse it
   so the binding leaves no hollow node. */

/* ============================================================================
   shadcn Typography — post-content reading system
   ----------------------------------------------------------------------------
   A complete shadcn/ui Typography prose system, scoped to .wp-block-post-content
   (the article/page reading body) ONLY. Chromium, cards, shelves, heroes, sidebar and
   listings keep minami's editorial scale; the global block-element styles above
   (table/quote/code) stay the baseline and are overridden HERE, inside the
   reading column, on specificity (no !important). shadcn's doc scale
   (1.875/1.5/1.125rem) has no minami preset, so it lives in local custom props
   (literal rem is allowed for a self-contained prose scale). Every colour/space
   is a token, so the whole system flips correctly in dark mode with no
   per-element override (verified against color-modes.css). */

/* Reading measure + shadcn prose type scale & rhythm (fixed rems).
   The scale AND the vertical rhythm are pinned to fixed shadcn rems rather than
   the --wp--preset--spacing--* scale: that scale is re-themable (Site Editor +
   saved Global-Styles customizations can override theme.json), which would drift
   the body away from shadcn's measured rhythm. Fixed rems guarantee the reading
   column matches shadcn on every install. Colours stay role tokens (dark-mode
   safe); only the prose geometry is fixed. */

/* Measure cap: clamp the text column to --prose-measure on direct flow children,
   centered; wide/full blocks, figures, media, tables and column layouts escape
   back to the full article column (and .alignwide up to wideSize). Only direct
   children (>) are capped, so nested paragraphs are never double-clamped. */

/* Fallback: release wide/full blocks even when nested inside a group. */

/* -- Headings: shadcn scale + weights + tracking ------------------------- */

/* Own leading so the body's 1.75 measure never bleeds into headings. */

/* h6: no shadcn target — keep minami's editorial uppercase label, don't flatten
   it with the tracking-tight rule above. */

/* Heading rhythm: shadcn per-level top margin; first block in the body flush. */

/* H2: section header — carried by generous whitespace alone (divider dropped for
   article flow; the 700 weight + air separate sections without a docs-style rule). */

/* -- Body text + inline roles -------------------------------------------- */

/* Paragraphs: leading-7 + mt-6 on every non-first paragraph (independent of
   blockGap so the reading column keeps its rhythm if blockGap is retuned). */

/* Prose links: shadcn underline + brand + medium weight, scoped to the reading
   body so interface links keep their global contrast/no-underline style. Button-
   styled links (.wp-element-button, incl. the is-style-minami-link variant) opt
   out so a CTA dropped in the body keeps its filled look. */

/* Emphasis: shadcn strong/b = semibold (not UA bold 700); em stays italic. */

/* Highlight (<mark> / core Highlight format): subtle brand tint, not UA yellow.
   Fallback to the surface token where color-mix is unsupported. */
.minami-site-layout .wp-block-post-content mark {
	background-color: var(--wp--preset--color--surface);
	background-color: color-mix(in srgb, var(--wp--preset--color--brand) 18%, var(--wp--preset--color--surface));
	color: var(--wp--preset--color--contrast);
	padding: 0.05em 0.25em;
	border-radius: var(--wp--custom--radius--sm, 6px);
	box-decoration-break: clone;
	-webkit-box-decoration-break: clone;
}

/* Sub / sup: shrink + raise without disturbing the leading-7 line rhythm. */
.minami-site-layout .wp-block-post-content :where(sub, sup) {
	font-size: 0.75em;
	line-height: 0;
	position: relative;
	vertical-align: baseline;
}

.minami-site-layout .wp-block-post-content sup {
	top: -0.5em;
}

.minami-site-layout .wp-block-post-content sub {
	bottom: -0.25em;
}

/* Inline code: shadcn muted chip. 0.875em so the mono glyphs sit optically with
   the surrounding prose. Scoped to flow text so it never hits a <pre> code block. */
.minami-site-layout .wp-block-post-content :where(p, li, td, dd) code {
	font-family: var(--wp--preset--font-family--mono);
	font-size: 0.875em;
	background: var(--wp--preset--color--surface);
	border: 1px solid var(--wp--preset--color--border);
	border-radius: var(--wp--custom--radius--sm, 6px);
	padding: 0.1em 0.35em;
	color: var(--wp--preset--color--contrast);
}

/* -- Lists: shadcn my-6 ml-6 list-disc/decimal, each direct li mt-2 -------- */
.minami-site-layout .wp-block-post-content :where(ul, ol) {
	margin-block: var(--prose-flow);
	padding-inline-start: 1.5em; /* em-scaled indent (~27px) */
	list-style-position: outside;
}

.minami-site-layout .wp-block-post-content ul {
	list-style: disc;
}

.minami-site-layout .wp-block-post-content ol {
	list-style: decimal;
}

.minami-site-layout .wp-block-post-content :where(ul, ol) > li {
	margin-block-start: var(--prose-tight);
	padding-inline-start: 0.25em; /* gap between marker and text */
	line-height: 1.6; /* a touch tighter than body for density */
}

/* Markers: quiet bullet, brand-tinted sequence number. */
.minami-site-layout .wp-block-post-content ul > li::marker {
	color: var(--minami-ds-muted-foreground);
}

.minami-site-layout .wp-block-post-content ol > li::marker {
	color: var(--wp--preset--color--brand);
	font-weight: 600;
}

/* Nested lists: alternate marker shape, tighter top gap. */
.minami-site-layout .wp-block-post-content ul ul {
	list-style: circle;
}

.minami-site-layout .wp-block-post-content ul ul ul {
	list-style: square;
}

.minami-site-layout .wp-block-post-content li > :where(ul, ol) {
	margin-block: var(--prose-tight) 0;
}

/* Definition lists — shadcn-silent; align to the family (semibold terms). */
.minami-site-layout .wp-block-post-content dl {
	margin-block: var(--prose-flow);
}

.minami-site-layout .wp-block-post-content dt {
	font-weight: 600;
	margin-block-start: var(--prose-flow);
}

.minami-site-layout .wp-block-post-content dt:first-child {
	margin-block-start: 0;
}

.minami-site-layout .wp-block-post-content dd {
	margin-block-start: 0;
	margin-inline-start: var(--prose-flow);
}

/* -- Blockquote / pullquote: shadcn border-l-2 + pl-6 + italic ------------ */

/* Text held at FOREGROUND here (the global rule above mutes it for the layout;
   in the reading body the left rule + italic carry the emphasis, per shadcn). */
.minami-site-layout .wp-block-post-content .wp-block-quote {
	margin-block: var(--prose-flow);
	margin-inline: 0;
	border-inline-start: 3px solid var(--minami-ds-border); /* on-brand accent rule */
	padding-inline-start: 1.25em;
	font-style: normal; /* italic hurts long quotes; rule + indent signal it */ /* quiet aside, not a 2nd body voice */
	font-size: 1.0625em;
}

.minami-site-layout .wp-block-post-content .wp-block-quote:where(:not(.has-text-color)) {
	color: var(--wp--preset--color--contrast-secondary);
}

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

.minami-site-layout .wp-block-post-content :where(.wp-block-quote, .wp-block-pullquote) cite {
	display: block;
	margin-block-start: 0.75rem;
	font-size: var(--wp--preset--font-size--small);
	font-style: normal;
	color: var(--minami-ds-muted-foreground);
}

.minami-site-layout .wp-block-post-content .wp-block-pullquote {
	margin-block: var(--prose-mt-h3); /* 2rem — more air than a quote */
	margin-inline: 0;
	padding-block: var(--prose-flow);
	border-block: 1px solid var(--wp--preset--color--border);
	text-align: center;
	color: var(--wp--preset--color--contrast);
}

.minami-site-layout .wp-block-post-content .wp-block-pullquote p {
	font-size: var(--wp--preset--font-size--large);
	font-style: italic;
	line-height: 1.4;
}

/* -- Table: shadcn <Table> ----------------------------------------------- */

/* Canonical shadcn data table: rounded bordered container, horizontal row
   rules only (no vertical grid), muted medium-weight header, muted footer
   band, subtle row hover. Neutralizes WP-core's 3px thead/tfoot bars and the
   global per-cell grid inside the reading body. */
.minami-site-layout .wp-block-post-content :where(figure.wp-block-table, table) {
	margin-block: var(--prose-flow);
} /* my-6 */
.minami-site-layout .wp-block-post-content figure.wp-block-table {
	max-width: 100%;
	overflow-x: auto; /* horizontal scroll for wide tables... */
	overflow-y: hidden; /* ...while clipping rows to the rounded edge */
	border: 1px solid var(--wp--preset--color--border);
	border-radius: var(--wp--custom--radius--lg, 12px);
}

.minami-site-layout .wp-block-post-content :where(.wp-block-table, table) :where(th, td) {
	border: 0; /* drop global cell grid */
	border-block-end: 1px solid var(--wp--preset--color--border); /* row rule only */
	padding: var(--prose-tight) 1rem; /* py-2 px-4 */
	text-align: start;
	vertical-align: middle;
	color: var(--wp--preset--color--contrast);
}

/* Last row carries no rule -- it meets the rounded container edge. */
.minami-site-layout .wp-block-post-content :where(.wp-block-table, table) tr:last-child :where(th, td) {
	border-block-end: 0;
}

/* Header: muted, medium weight; remove core's 3px black bar (row rule separates). */
.minami-site-layout .wp-block-post-content :where(.wp-block-table, table) thead {
	border-bottom: 0;
}

.minami-site-layout .wp-block-post-content :where(.wp-block-table, table) thead th {
	font-weight: 600;
	color: var(--wp--preset--color--contrast-secondary);
}

/* Footer: muted band; remove core's 3px black bar. */
.minami-site-layout .wp-block-post-content :where(.wp-block-table, table) tfoot {
	border-top: 0;
}

.minami-site-layout .wp-block-post-content :where(.wp-block-table, table) tfoot :where(th, td) {
	font-weight: 600;
	background: var(--wp--preset--color--surface);
}

/* Subtle row hover (shadcn hover:bg-muted/50). */
.minami-site-layout .wp-block-post-content :where(.wp-block-table, table) tbody tr:hover {
	background: color-mix(in srgb, var(--wp--preset--color--surface) 60%, transparent);
}

/* Stripes block style stays available (even rows muted). */
.minami-site-layout .wp-block-post-content .wp-block-table.is-style-stripes tbody tr:nth-child(even) {
	background: var(--wp--preset--color--surface);
}

.minami-site-layout .wp-block-post-content .wp-block-table.is-style-stripes tbody tr:nth-child(odd) {
	background: transparent;
}

/* -- Table on mobile: tighter cells, momentum scroll, scroll affordance --- */
@media (max-width: 600px) {
	.minami-site-layout .wp-block-post-content figure.wp-block-table {
		-webkit-overflow-scrolling: touch; /* iOS momentum scroll */
		overscroll-behavior-x: contain; /* horizontal swipe won't trigger back-nav */
		scrollbar-width: thin; /* Firefox */
		scrollbar-color: var(--wp--preset--color--border) transparent;
	}

	/* Persistent thin scrollbar doubles as the "swipe for more" cue. */
	.minami-site-layout .wp-block-post-content figure.wp-block-table::-webkit-scrollbar {
		height: 8px;
	}

	.minami-site-layout .wp-block-post-content figure.wp-block-table::-webkit-scrollbar-track {
		background: transparent;
	}

	.minami-site-layout .wp-block-post-content figure.wp-block-table::-webkit-scrollbar-thumb {
		background: var(--wp--preset--color--border);
		border-radius: var(--wp--custom--radius--pill, 999px);
	}

	/* Tighter inline padding fits more columns; min-width keeps columns readable
	   so wide tables scroll instead of crushing into tall single-word slivers. */
	.minami-site-layout .wp-block-post-content :where(.wp-block-table, table) :where(th, td) {
		padding-inline: 0.75rem; /* px-3 */
		min-width: 7rem;
	}
}

/* -- Media: content images, captions, hr, code-block flow ---------------- */

/* Content images: shadcn rounded-md + border, flowed with reading rhythm.
   Targets the single-image block + inline images only — galleries and covers
   keep their own look, and the 16:9 featured hero lives outside post-content. */
.minami-site-layout .wp-block-post-content :where(.wp-block-image, figure):not(.wp-block-post-featured-image) {
	margin-block: var(--prose-flow);
}

.minami-site-layout .wp-block-post-content :where(.wp-block-image img, p > img) {
	display: block;
	height: auto;
	border-radius: var(--wp--custom--radius--md, 8px); /* rounded-md */
	border: 1px solid var(--wp--preset--color--border); /* shadcn `border` */
}

/* Captions: shadcn figcaption — text-sm, muted, centered (covers image + table). */
.minami-site-layout .wp-block-post-content :where(figcaption, .wp-element-caption) {
	margin-block-start: 0.75rem;
	text-align: center;
	font-size: var(--wp--preset--font-size--small);
	color: var(--minami-ds-muted-foreground);
}

/* Bare <hr> + code block: borders/surfaces are already shadcn-correct globally;
   add prose flow margin so a raw rule / code block sits in the reading rhythm. */
.minami-site-layout .wp-block-post-content hr {
	margin-block: var(--prose-flow);
}

.minami-site-layout .wp-block-post-content :where(.wp-block-code, pre) {
	margin-block: var(--prose-flow);
}

/* -- WordPress default content blocks: in-body flow & treatment ----------- */

/* The button + table systems stay as-is; this
   only governs how each block sits inside the reading column — flow rhythm,
   measure behaviour, and the treatments that were previously unstyled in-body.
   All token-driven → dark-mode safe. */

/* Buttons: keep within the measure (a body CTA aligns to the text column);
   block flow margin only. Variant fills/opt-out from prose links are untouched. */
.minami-site-layout .wp-block-post-content :where(.wp-block-button, .wp-block-buttons) {
	margin-block: var(--prose-flow);
}

/* Embed / video / audio: flow margin; embed + video already escape the measure
   (release list above). Match the rounded image frame on the visual media. */
.minami-site-layout .wp-block-post-content :where(.wp-block-embed, .wp-block-video, .wp-block-audio) {
	margin-block: var(--prose-flow);
}

.minami-site-layout .wp-block-post-content :where(.wp-block-video video, .wp-block-embed iframe) {
	border-radius: var(--wp--custom--radius--md, 8px);
}

/* Media-text: flow margin; rounds its media side to match content images. */
.minami-site-layout .wp-block-post-content .wp-block-media-text {
	margin-block: var(--prose-flow);
}

.minami-site-layout .wp-block-post-content .wp-block-media-text :where(img, .wp-block-media-text__media) {
	border-radius: var(--wp--custom--radius--md, 8px);
}

/* File: shadcn surface chip in reading rhythm; inner download button inherits
   the button system, so only the wrapper is styled here. */
.minami-site-layout .wp-block-post-content .wp-block-file {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 0.75em;
	margin-block: var(--prose-flow);
	padding: 0.75em 1em;
	background: var(--wp--preset--color--surface);
	border: 1px solid var(--wp--preset--color--border);
	border-radius: var(--wp--custom--radius--lg, 12px);
}

.minami-site-layout .wp-block-post-content .wp-block-file a:not(.wp-block-file__button) {
	font-weight: 500;
	color: var(--wp--preset--color--contrast);
	text-decoration: none;
}

/* Footnotes: muted end-matter list, set off by a top hairline; brand back-links
   and a brand :target flash when a reader jumps to a note. */
.minami-site-layout .wp-block-post-content .wp-block-footnotes {
	margin-block-start: var(--prose-mt-h2);
	padding-block-start: var(--prose-flow);
	border-block-start: 1px solid var(--wp--preset--color--border);
	font-size: var(--wp--preset--font-size--small);
	color: var(--wp--preset--color--contrast-secondary);
}

.minami-site-layout .wp-block-post-content .wp-block-footnotes li {
	margin-block-start: var(--prose-tight);
}

.minami-site-layout .wp-block-post-content .wp-block-footnotes a {
	color: var(--wp--preset--color--brand);
}

.minami-site-layout .wp-block-post-content .wp-block-footnotes li:target {
	background: color-mix(in srgb, var(--wp--preset--color--brand) 12%, transparent);
	border-radius: var(--wp--custom--radius--sm, 6px);
}

/* Separator (block) + group/columns: reading-rhythm flow margin. */
.minami-site-layout .wp-block-post-content .wp-block-separator {
	margin-block: var(--prose-flow);
}

.minami-site-layout .wp-block-post-content :where(.wp-block-group, .wp-block-columns) {
	margin-block: var(--prose-flow);
}

/* -- Image treatments (selectable in the editor "Styles" panel) --------- */

/* register_block_style() in functions.php exposes these on core/image and
   core/post-featured-image. theme.json already supplies the free-form controls
   an editor expects (Border radius/colour/width/style, Aspect ratio, Shadow,
   Duotone filter); these named styles are curated one-click presets on top.
   Token-driven, scoped to .minami-site-layout so they beat the default content-image
   border without fighting the post-content rule above. */

/* Bordered — clean hairline frame + rounded corners (shadcn card edge). */
.minami-site-layout :where(.wp-block-image, .wp-block-post-featured-image).is-style-minami-bordered img {
	border: 1px solid var(--wp--preset--color--border);
	border-radius: var(--wp--custom--radius--md);
}

/* Frame — matte mount: padded raised surface around the photo (gallery feel). */
.minami-site-layout :where(.wp-block-image, .wp-block-post-featured-image).is-style-minami-frame {
	padding: 0.75rem;
	background: var(--wp--preset--color--surface-raised);
	border: 1px solid var(--wp--preset--color--border);
	border-radius: var(--wp--custom--radius--lg);
	box-shadow: var(--wp--preset--shadow--sm);
}

.minami-site-layout :where(.wp-block-image, .wp-block-post-featured-image).is-style-minami-frame img {
	display: block;
	border: 0;
	border-radius: var(--wp--custom--radius--sm);
}

/* Shadow — borderless elevation, soft-rounded. */
.minami-site-layout :where(.wp-block-image, .wp-block-post-featured-image).is-style-minami-shadow img {
	border: 0;
	border-radius: var(--wp--custom--radius--md);
	box-shadow: var(--wp--preset--shadow--lg);
}

/* Circle — 1:1 round crop for portraits / avatars. */
.minami-site-layout :where(.wp-block-image, .wp-block-post-featured-image).is-style-minami-circle img {
	border: 0;
	border-radius: 50%;
	aspect-ratio: 1 / 1;
	object-fit: cover;
	width: 100%;
}

/* Rounded — large soft corners (featured image; core ships this on core/image). */
.minami-site-layout .wp-block-post-featured-image.is-style-minami-rounded,
.minami-site-layout .wp-block-post-featured-image.is-style-minami-rounded img {
	border-radius: var(--wp--custom--radius--lg);
}

/* In the article hero the figure clips + rounds itself; an elevation/circle/
   frame style needs that clip released so the shadow shows and the crop wins. */
.minami-article .wp-block-post-featured-image.is-style-minami-shadow,
.minami-article .wp-block-post-featured-image.is-style-minami-circle,
.minami-article .wp-block-post-featured-image.is-style-minami-frame {
	overflow: visible;
}

.minami-article .wp-block-post-featured-image.is-style-minami-circle {
	border-radius: 0;
}

/* ---- Editorial byline (post-footer credits) --------------------------------
   "Editorial Team": a heading over the author(s). A single author shows one row
   (avatar · role · name). Multiple authors collapse to an overlapping avatar
   stack + "N+" overflow badge with a chevron; a native <details> expands the
   full list (avatar · role · name per row, dividers) with no JS. Each row keeps
   its Follow button. */
.minami-byline {
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	gap: var(--wp--preset--spacing--20);
	margin-block-start: var(--wp--preset--spacing--50);
	padding-block-start: var(--wp--preset--spacing--30);
	border-block-start: 1px solid var(--wp--preset--color--border);
}

.minami-byline__label {
	font-size: var(--wp--preset--font-size--medium, 1rem);
	font-weight: 700;
	color: var(--wp--preset--color--contrast);
}

/* Author rows (the solo case, and the expanded list). */
.minami-byline__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
}

.minami-byline__row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.6rem 1rem;
	padding-block: 0.65rem;
	border-block-start: 1px solid var(--wp--preset--color--border);
}

/* Solo author: no divider above the single row, sits straight under the heading. */
.minami-byline__list--solo .minami-byline__row {
	border-block-start: 0;
	padding-block-start: 0;
}

.minami-byline__person {
	display: inline-flex;
	align-items: center;
	gap: 0.7rem;
	min-width: 0;
	text-decoration: none;
	color: inherit;
}

.minami-byline__id {
	display: flex;
	flex-direction: column;
	min-width: 0;
	line-height: 1.25;
}

.minami-byline__role {
	font-size: var(--wp--preset--font-size--x-small, 0.7rem);
	color: var(--minami-ds-muted-foreground);
}

.minami-byline__name {
	display: inline-flex;
	align-items: center;
	gap: 0.3rem;
	font-size: var(--wp--preset--font-size--medium, 1rem);
	font-weight: 700;
	color: var(--wp--preset--color--contrast);
}

.minami-byline__person:hover .minami-byline__name,
.minami-byline__person:focus-visible .minami-byline__name {
	color: var(--wp--preset--color--brand);
}

/* Verified seal — a two-tone badge (blue seal + knockout check in the page color)
   for author-level authors and up. The name keeps its hover tint; the seal stays
   blue regardless via its own color token. */
.minami-byline__verified {
	flex: 0 0 auto;
	inline-size: 1rem;
	block-size: 1rem;
	color: var(--minami-verified, #1d9bf0);
}

.minami-byline__verified-seal {
	fill: currentcolor;
}

.minami-byline__verified-check {
	fill: var(--wp--preset--color--base, #fff);
}

/* Follow button, byline variant — a quiet outline pill (the global block is a solid
   brand pill; in the credits row it should read as a secondary affordance). */
.minami-byline .minami-follow-sources {
	height: 44px;
	padding-inline: 0.8rem;
	gap: 0.3rem;
	font-size: var(--wp--preset--font-size--x-small, 0.7rem);
	font-weight: 600;
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 999px;
	box-sizing: border-box;
	min-block-size: 44px;
	min-inline-size: 44px;
}

.minami-byline .minami-follow-sources:where(:not(.has-text-color)) {
	color: var(--minami-tonal-ink);
}

.minami-byline .minami-follow-sources:where(:not(.has-background)) {
	background: var(--minami-tonal-fill);
}

.minami-byline .minami-follow-sources:hover {
	border-color: var(--minami-ds-border);
}

.minami-byline .minami-follow-sources:hover:where(:not(.has-text-color)) {
	color: var(--minami-tonal-ink);
}

.minami-byline .minami-follow-sources:hover:where(:not(.has-background)) {
	background: var(--minami-tonal-hover);
}

.minami-byline .minami-follow-sources.is-following:where(:not(.has-text-color)) {
	color: var(--minami-tonal-ink);
}

.minami-byline .minami-follow-sources.is-following:where(:not(.has-background)) {
	background: var(--minami-tonal-pressed);
}

.minami-byline .minami-follow-sources.is-following:hover:where(:not(.has-text-color)) {
	color: var(--minami-tonal-ink);
}

.minami-byline .minami-follow-sources__icon {
	inline-size: 14px;
	block-size: 14px;
}

/* Disclosure: summary holds the avatar stack + chevron; <details> reveals the list. */
.minami-byline__disclosure {
	display: flex;
	flex-direction: column;
}

.minami-byline__summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	cursor: pointer;
	list-style: none;
}

/* Strip the native disclosure triangle (WebKit + the standard marker). */
.minami-byline__summary::-webkit-details-marker {
	display: none;
}

.minami-byline__summary::marker {
	content: "";
}

.minami-byline__stack {
	display: inline-flex;
	align-items: center;
}

/* Overlap the avatars + overflow badge, each ringed against the page so the
   stack reads as a cluster. */
.minami-byline__stack > * + * {
	margin-inline-start: -0.7rem;
}

.minami-byline__stack .minami-avatar,
.minami-byline__more {
	box-shadow: 0 0 0 2px var(--wp--preset--color--base);
}

.minami-byline__more {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	inline-size: 2.5rem;
	block-size: 2.5rem;
	border-radius: 50%;
	background: var(--wp--preset--color--surface);
	color: var(--wp--preset--color--contrast-secondary);
	font-size: var(--wp--preset--font-size--small);
	font-weight: 600;
}

.minami-byline__chevron {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	inline-size: 2.25rem;
	block-size: 2.25rem;
	flex: 0 0 auto;
	border-radius: 50%;
	border: 1px solid var(--wp--preset--color--border);
	color: var(--wp--preset--color--contrast-secondary);
	transition:
		transform var(--minami-dur-medium) var(--minami-ease-spring),
		color var(--minami-dur-short) var(--minami-ease-emphasized),
		border-color var(--minami-dur-short) var(--minami-ease-emphasized);
}

.minami-byline__summary:hover .minami-byline__chevron {
	color: var(--wp--preset--color--brand);
	border-color: var(--wp--preset--color--brand);
}

.minami-byline__disclosure[open] .minami-byline__chevron {
	transform: rotate(180deg);
}

.minami-byline__disclosure .minami-byline__list {
	margin-block-start: var(--wp--preset--spacing--20);
}

/* Expand/collapse animation. `::details-content` + interpolate-size lets the
   native <details> animate its height (and a fade) with zero JS; browsers without
   support simply snap open, so it degrades cleanly. */
.minami-byline__disclosure {
	interpolate-size: allow-keywords;
}

.minami-byline__disclosure::details-content {
	block-size: 0;
	overflow: clip;
	opacity: 0;
	transition:
		block-size var(--minami-dur-medium, 250ms) var(--minami-ease-emphasized, cubic-bezier(0.2, 0, 0, 1)),
		opacity var(--minami-dur-medium, 250ms) var(--minami-ease-emphasized, cubic-bezier(0.2, 0, 0, 1)),
		content-visibility var(--minami-dur-medium, 250ms) allow-discrete;
}

.minami-byline__disclosure[open]::details-content {
	block-size: auto;
	opacity: 1;
}

/* ---- YouTube-Music page backdrop (single posts) ---------------------------
   Relocated from site-layout.css. Keyed on body.single / body.minami-single-hero
   (stamped server-side by BodyClasses + the view module's --minami-hero-page-img),
   so these only match on singular posts — exactly where this sheet loads. The
   --mn-glow-* intensity dials they read stay in the always-on site-layout sheet.
   --------------------------------------------------------------------------- */

/* Singles take their ambient from the hero IMAGE only — no brand-coloured wash. The flat
   radial wash and the layout's own viewport room-light both read --minami-ambient (brand at
   base, image-sampled later), so they fought the hero backdrop and flashed brand before the
   sample landed. Zero the background-glow strengths here so the room-light radial doesn't
   paint on singles; image-less singles get no ambient at all (plain base), and hero singles
   get only the blurred ::before below. Card/list/button ambient tints are untouched (they
   read --mn-tint, not these strengths). */
body.single .minami-site-layout {
	--minami-ambient-strength: 0%;
	--minami-ambient-strength-2: 0%;
}

/* The hero image itself, blurred + masked across the top band. Painted by a
 * ::before at z-index:-1 over the body's base colour so content needs no lifting. */

/* Keep the stacking owner matched on SSR so used-CSS extraction retains it
   before the decoded hero adds its runtime class. */
body.single.minami-ambient-on-background .minami-site-layout {
	position: relative;

	/* Own stacking context so the z-index:-1 ::before paints above the body base but below
	   content. Without isolation the -1 layer escapes to the root and hides behind body's
	   background-color → no visible backdrop. */
	isolation: isolate;
}

body.minami-single-hero.minami-ambient-on-background .minami-site-layout::before {
	content: "";
	position: absolute;
	inset-block-start: 0;
	inset-inline: 0;

	/* Band spans the kicker → title → roughly the upper half of the hero, so the colour
	   reads down the gutters beside the image (the image itself occludes the centre).
	   Mask fades it out by ~88% — still above the body copy, which sits below the full
	   image. Tall enough to carry the whole ambient effect now that it's the only one. */
	height: clamp(540px, 80vh, 920px);
	z-index: -1;
	background-image: var(--minami-hero-page-img);
	background-size: cover;
	background-position: top center;
	background-repeat: no-repeat;
	filter: blur(96px) saturate(1.35);

	/* Decode first; reveal and replace through the shared opacity transition.
	   Blur stays fixed; kill room-light wake/drift (deferred CSS) so reading
	   text stays legible over the wash. */
	--mn-ambient-rest: 0.22;
	opacity: 0;
	transform: scaleY(1.04);
	transform-origin: top center;
	animation: none !important;
	-webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 12%, transparent 82%);
	mask-image: linear-gradient(to bottom, #000 0%, #000 12%, transparent 82%);
	pointer-events: none;
}

[data-theme="dark"] body.minami-single-hero.minami-ambient-on-background .minami-site-layout::before {
	--mn-ambient-rest: 0.32;
}

body.minami-single-hero.minami-ambient-on-background.is-ambient-ready .minami-site-layout::before,
body.minami-single-hero.minami-ambient-on-background.is-ambient-ready.is-ambient-enter .minami-site-layout::before {
	opacity: var(--mn-ambient-rest);
	animation: none !important;
	transform: scaleY(1.04);
}

@media (max-width: 600px) {
	body.minami-single-hero.minami-ambient-on-background .minami-site-layout::before {
		filter: blur(52px) saturate(1.35);
	}
}

/* Follow-sources CTA card — Apple-style control tiles for publisher destinations
   (Google News, WhatsApp, Preferred source). Brand logos stay as images so
   multicolour survives dark mode. Entrance staggers on viewport entry; hover /
   press use the shared motion ladder. */
.minami-follow-sources {
	/* Neutral hover lift — no brand wash on the card surface. */
	--minami-tonal-hover: color-mix(in srgb, var(--minami-ds-muted-foreground) 6%, var(--minami-ds-card));
	display: flex;
	flex-direction: column;
	gap: var(--wp--preset--spacing--20);
	text-align: center;
	position: relative;
	isolation: isolate;
	overflow: hidden;
}

/* Core's border marker also matches the palette's text-color utility. */
.minami-follow-sources:where(:not(.has-text-color)) {
	color: var(--minami-ds-foreground) !important;
}

/* Older saved patterns used the neutral base-2 or surface preset. */
.minami-follow-sources:not(.has-background-image):is(:not(.has-background), .has-base-2-background-color, .has-surface-background-color) {
	background: var(--minami-ds-card-gradient);
}

.minami-follow-sources:not(.has-background-image):is(:not(.has-background), .has-base-2-background-color, .has-surface-background-color):is(
		:hover,
		:focus-within
	) {
	background: var(--minami-tonal-hover);
}

.minami-follow-sources::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	pointer-events: none;
	opacity: 0;
	/* Soft neutral room-light — foreground ink, not brand/ambient hue. */
	background: radial-gradient(
		ellipse at var(--minami-light-x, 50%) var(--minami-light-y, 50%),
		color-mix(in srgb, var(--minami-ds-foreground) 10%, transparent),
		transparent 72%
	);
	transition: opacity var(--minami-dur-x-long) var(--minami-ease-emphasized-decelerate);
}

.minami-follow-sources:is(:hover, :focus-within)::before {
	opacity: 1;
}

body.minami-ambient-off .minami-follow-sources::before {
	display: none;
}

@media (prefers-reduced-motion: reduce) {
	.minami-follow-sources::before {
		--minami-light-x: 50%;
		--minami-light-y: 50%;
		transition: none;
	}
}

:root[data-motion="off"] .minami-follow-sources::before {
	--minami-light-x: 50%;
	--minami-light-y: 50%;
	transition: none;
}

@media (forced-colors: active), (prefers-reduced-transparency: reduce) {
	.minami-follow-sources::before {
		display: none;
	}

	.minami-follow-sources:not(.has-background-image):is(:not(.has-background), .has-base-2-background-color, .has-surface-background-color) {
		background: var(--minami-ds-card);
	}
}

.minami-follow-sources__title {
	margin: 0 0 0.25rem;
	font-weight: 700;
	color: var(--wp--preset--color--contrast);
}

.minami-follow-sources__subtitle {
	margin: 0 0 var(--wp--preset--spacing--40);
	color: var(--wp--preset--color--contrast-secondary);
	font-size: var(--wp--preset--font-size--small);
}

.minami-follow-sources__row {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(7.5rem, 1fr));
	gap: var(--wp--preset--spacing--20);
	width: 100%;
	margin: 0;
	padding: 0;
	list-style: none;
}

.minami-follow-sources__row > li {
	display: grid;
	min-width: 0;
}

.minami-article .halo-sc__badge {
	color: var(--hsc-text, var(--minami-ds-foreground));
}

.minami-follow-sources__tile {
	--minami-fs-i: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: flex-start;
	gap: 0.35rem;
	min-block-size: 44px;
	padding: var(--wp--preset--spacing--40) var(--wp--preset--spacing--30);
	text-decoration: none;
	color: inherit;
	background: var(--minami-ds-card);
	border: 1px solid var(--wp--preset--color--border);
	border-radius: var(--wp--custom--radius--md, 12px);
	box-shadow: var(--wp--preset--shadow--sm, 0 1px 2px color-mix(in srgb, var(--minami-ds-foreground) 6%, transparent));
	transform-origin: center;
	transition:
		background-color var(--minami-dur-short) var(--minami-ease-standard),
		border-color var(--minami-dur-short) var(--minami-ease-standard),
		box-shadow var(--minami-motion-item-hover-dur) var(--minami-ease-standard),
		transform var(--minami-motion-item-hover-dur) var(--minami-ease-spring),
		scale var(--minami-dur-x-short) var(--minami-ease-spring);
}

.minami-follow-sources__tile:hover {
	background: var(--minami-tonal-fill, var(--minami-ds-card));
	border-color: var(--minami-ds-border);
	box-shadow: var(--wp--preset--shadow--md, 0 4px 12px color-mix(in srgb, var(--minami-ds-foreground) 10%, transparent));
}

.minami-follow-sources__tile:active {
	scale: var(--minami-press-scale-card, 0.97);
	box-shadow: var(--wp--preset--shadow--sm, none);
	transition-duration: var(--minami-dur-x-short);
}

.minami-follow-sources__icon {
	display: block;
	inline-size: 48px;
	block-size: 48px;
	margin-bottom: 0.15rem;
	border-radius: var(--wp--custom--radius--md, 12px);
	background-color: color-mix(in srgb, var(--minami-ds-muted-foreground) 8%, var(--minami-ds-card));
	background-repeat: no-repeat;
	background-position: center;
	background-size: 28px 28px;
	transform-origin: center;
	/* After the one-shot gesture, settle into the hovered pop via spring. */
	transition:
		transform var(--minami-dur-medium) var(--minami-ease-spring),
		background-color var(--minami-dur-short) var(--minami-ease-standard);
}

.minami-follow-sources__label {
	font-size: var(--wp--preset--font-size--small);
	font-weight: 600;
	line-height: 1.25;
	color: var(--wp--preset--color--contrast);
}

.minami-follow-sources__hint {
	font-size: var(--wp--preset--font-size--x-small, 0.75rem);
	line-height: 1.3;
	color: var(--wp--preset--color--contrast-secondary);
}

.minami-follow-sources__count {
	font-size: var(--wp--preset--font-size--x-small, 0.75rem);
	font-weight: 600;
	color: var(--minami-tonal-ink, var(--wp--preset--color--contrast-secondary));
}

/* Brand wells — soft platform tint behind the logo */
.minami-follow-sources__tile.mn-src-gnews .minami-follow-sources__icon {
	background-color: color-mix(in srgb, #4285f4 14%, var(--minami-ds-card));
	background-image: url(data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%3E%3Cpath%20fill%3D%22%2334A853%22%20d%3D%22M4%203h15v15H4z%22%20transform%3D%22rotate%28-12%2012%2012%29%22%2F%3E%3Cpath%20fill%3D%22%23FBBC04%22%20d%3D%22M5%203h15v17H5z%22%20transform%3D%22rotate%2812%2012%2012%29%22%2F%3E%3Cpath%20fill%3D%22%23EA4335%22%20d%3D%22M4%205h16v13H4z%22%2F%3E%3Crect%20x%3D%222%22%20y%3D%226%22%20width%3D%2220%22%20height%3D%2216%22%20rx%3D%222%22%20fill%3D%22%234285F4%22%2F%3E%3Cpath%20fill%3D%22%23fff%22%20d%3D%22M10%2010a4%204%200%201%200%203.8%205.2V13H10v2h2a2%202%200%201%201-.6-2.9l1.4-1.4A4%204%200%200%200%2010%2010Z%22%2F%3E%3Cpath%20fill%3D%22%23fff%22%20d%3D%22M16%2011h4v2h-4zM16%2015h4v2h-4zM6%2019h14v1H6z%22%2F%3E%3C%2Fsvg%3E);
}

.minami-follow-sources__tile.mn-src-wa .minami-follow-sources__icon {
	background-color: color-mix(in srgb, #25d366 14%, var(--minami-ds-card));
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%2325D366' d='M17.472 14.382c-.297-.149-1.758-.867-2.03-.967-.273-.099-.471-.148-.67.15-.197.297-.767.966-.94 1.164-.173.199-.347.223-.644.075-.297-.15-1.255-.463-2.39-1.475-.883-.788-1.48-1.761-1.653-2.059-.173-.297-.018-.458.13-.606.134-.133.298-.347.446-.52.149-.174.198-.298.298-.497.099-.198.05-.371-.025-.52-.075-.149-.669-1.612-.916-2.207-.242-.579-.487-.5-.669-.51-.173-.008-.371-.01-.57-.01-.198 0-.52.074-.792.372-.272.297-1.04 1.016-1.04 2.479 0 1.462 1.065 2.875 1.213 3.074.149.198 2.096 3.2 5.077 4.487.71.306 1.263.489 1.694.625.712.227 1.36.195 1.871.118.571-.085 1.758-.719 2.006-1.413.248-.694.248-1.289.173-1.413-.074-.124-.272-.198-.57-.347m-5.421 7.403h-.004a9.87 9.87 0 0 1-5.031-1.378l-.361-.214-3.741.982.998-3.648-.235-.374a9.86 9.86 0 0 1-1.51-5.26c.001-5.45 4.436-9.884 9.888-9.884 2.64 0 5.122 1.03 6.988 2.898a9.825 9.825 0 0 1 2.893 6.994c-.003 5.45-4.437 9.884-9.885 9.884m8.413-18.297A11.815 11.815 0 0 0 12.05 0C5.495 0 .16 5.335.157 11.892c0 2.096.547 4.142 1.588 5.945L.057 24l6.305-1.654a11.882 11.882 0 0 0 5.683 1.448h.005c6.554 0 11.89-5.335 11.893-11.893a11.821 11.821 0 0 0-3.48-8.413'/%3E%3C/svg%3E");
}

.minami-follow-sources__tile.mn-src-preferred .minami-follow-sources__icon {
	background-color: color-mix(in srgb, #4285f4 10%, color-mix(in srgb, #fbbc04 8%, var(--minami-ds-card)));
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Cpath fill='%23FFC107' d='M43.6 20.5H42V20H24v8h11.3C33.7 32.9 29.3 36 24 36c-6.6 0-12-5.4-12-12s5.4-12 12-12c3.1 0 5.8 1.2 7.9 3.1l5.7-5.7C34 6.1 29.3 4 24 4 12.9 4 4 12.9 4 24s8.9 20 20 20 20-8.9 20-20c0-1.3-.1-2.3-.4-3.5z'/%3E%3Cpath fill='%23FF3D00' d='M6.3 14.7l6.6 4.8C14.7 16 19 12 24 12c3.1 0 5.8 1.2 7.9 3.1l5.7-5.7C34 6.1 29.3 4 24 4 16.3 4 9.7 8.3 6.3 14.7z'/%3E%3Cpath fill='%234CAF50' d='M24 44c5.2 0 9.9-2 13.4-5.2l-6.2-5.2C29.2 35 26.7 36 24 36c-5.3 0-9.7-3.1-11.3-7.9l-6.5 5C9.5 39.6 16.2 44 24 44z'/%3E%3Cpath fill='%231976D2' d='M43.6 20.5H42V20H24v8h11.3c-.8 2.2-2.2 4.1-4.1 5.6l6.2 5.2C39.9 36.6 44 31 44 24c0-1.3-.1-2.3-.4-3.5z'/%3E%3C/svg%3E");
}

/* Fine-pointer hover: tile lift + M3 expressive icon gesture (squash → overshoot → settle). */
@media (hover: hover) and (pointer: fine) {
	.minami-follow-sources__tile:hover {
		transform: translateY(var(--minami-motion-item-hover-y));
	}

	.minami-follow-sources__tile:hover .minami-follow-sources__icon {
		animation: minami-follow-icon-expressive var(--minami-dur-long) var(--minami-ease-spring-expressive);
		transform: scale(var(--minami-icon-pop, 1.1));
	}

	.minami-follow-sources__tile:active {
		transform: none;
	}

	.minami-follow-sources__tile:active .minami-follow-sources__icon {
		animation: none;
		transform: scale(var(--minami-press-scale, 0.96));
		transition-duration: var(--minami-dur-x-short);
	}
}

@keyframes minami-follow-icon-expressive {
	0% {
		transform: scale(1) translateY(0) rotate(0deg);
	}

	35% {
		transform: scale(0.88) translateY(2px) rotate(-6deg);
	}

	70% {
		transform: scale(1.14) translateY(-3px) rotate(5deg);
	}

	100% {
		transform: scale(var(--minami-icon-pop, 1.1)) translateY(0) rotate(0deg);
	}
}

/* Viewport entrance — below-fold; SSR stays painted until entry. */
@supports (animation-timeline: view()) {
	.minami-follow-sources__tile {
		animation:
			minami-block-fade var(--minami-dur-short) var(--minami-ease-standard) both,
			minami-block-slide var(--minami-dur-medium) var(--minami-ease-emphasized-decelerate) both;
		animation-timeline: view();
		animation-range: entry 0% entry 40%;
		animation-delay: calc(min(var(--minami-fs-i, 0), 2) * var(--minami-motion-stagger));
	}
}

@media (prefers-reduced-motion: reduce) {
	.minami-follow-sources__tile {
		animation: none !important;
		transition:
			background-color var(--minami-dur-short) var(--minami-ease-standard),
			border-color var(--minami-dur-short) var(--minami-ease-standard);
	}

	.minami-follow-sources__tile:hover,
	.minami-follow-sources__tile:active,
	.minami-follow-sources__tile:hover .minami-follow-sources__icon {
		transform: none;
		scale: 1;
	}
}

:root[data-motion="off"] .minami-follow-sources__tile {
	animation: none !important;
}

:root[data-motion="off"] .minami-follow-sources__tile:hover,
:root[data-motion="off"] .minami-follow-sources__tile:active,
:root[data-motion="off"] .minami-follow-sources__tile:hover .minami-follow-sources__icon {
	transform: none;
	scale: 1;
}

@media (forced-colors: active) {
	.minami-follow-sources__tile {
		border: 1px solid ButtonText;
		background: ButtonFace;
		box-shadow: none;
	}

	.minami-follow-sources__icon {
		forced-color-adjust: none;
	}
}

/* Narrow: stack full-width for thumb reach */
@media (max-width: 599px) {
	.minami-follow-sources__row {
		grid-template-columns: 1fr;
	}

	.minami-follow-sources__tile {
		display: grid;
		grid-template-columns: auto 1fr;
		grid-template-rows: auto auto auto;
		column-gap: 0.75rem;
		row-gap: 0.1rem;
		align-items: center;
		text-align: start;
		padding: var(--wp--preset--spacing--30) var(--wp--preset--spacing--40);
	}

	.minami-follow-sources__icon {
		grid-row: 1 / span 3;
		grid-column: 1;
		inline-size: 44px;
		block-size: 44px;
		margin-bottom: 0;
		background-size: 24px 24px;
	}

	.minami-follow-sources__label {
		grid-column: 2;
		grid-row: 1;
	}

	.minami-follow-sources__hint {
		grid-column: 2;
		grid-row: 2;
	}

	.minami-follow-sources__count {
		grid-column: 2;
		grid-row: 3;
	}
}

/* ---- Embed block centering ------------------------------------------ */

/* Centre social embed blocks (Twitter/X, TikTok, Facebook…) within the article column.
   WP core stamps `is-type-video` on video providers (YouTube, Vimeo, etc.); those fill
   the full column width and are excluded from the 560px cap. Social card embeds are
   capped at 560px — the max render width Twitter/X uses for its widget. */
.wp-block-post-content .wp-block-embed {
	display: flex;
	flex-direction: column;
	align-items: center;
}

/* All wrappers fill the column — prevents flex-child collapse to 0 width. */
.wp-block-post-content .wp-block-embed > .wp-block-embed__wrapper {
	width: 100%;
}

/* Social card embeds (Twitter/X, TikTok, Facebook…) cap at Twitter's max render width.
   Video providers (is-type-video) stay full-column — no cap. */
.wp-block-post-content .wp-block-embed:not(.is-type-video) > .wp-block-embed__wrapper {
	max-width: 560px;
}

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