/* Jonah's Music Coaching sections: only what blocks cannot say. The sections are core blocks styled by theme.json, block style
   variations (Hero, Card, Mark, Soft, Tint, Deep, Arrow, Outline arrow, Accordion) and block attributes
   (tools/build-site.py). Here: the overlay hero's phone art direction and the whole-card link of linked cards.
   Token variables only; raw values are limited to 0, hairlines and image focus points. */

/* ---------- overlay hero (Hero cover) ---------- */
.wp-block-cover.is-style-hero { min-height: var(--wp--custom--layout--hero-min); }
/* the photo runs full width, the copy sits on the site's wide edge (core sets width:auto with a stronger selector) */
.wp-block-cover.is-style-hero.has-custom-content-position[class*="is-position-"] .wp-block-cover__inner-container { width: 100%; max-width: var(--wp--custom--layout--wide); margin-inline: auto; }
.wp-block-cover.is-style-hero .jmc-hero__picture { position: absolute; inset: 0; display: block; }
/* phones: the copy on the page ground first, then a full-width photo window (no scrim over faces) */
@media (max-width: 781px) {
	.wp-block-cover.is-style-hero.jmc-hero--tone-light { display: flex; flex-direction: column; align-items: stretch; min-height: 0; padding: 0 !important; background: var(--wp--preset--color--base); }
	.wp-block-cover.is-style-hero.jmc-hero--tone-light .wp-block-cover__background { display: none; }
	.wp-block-cover.is-style-hero.jmc-hero--tone-light .wp-block-cover__inner-container { order: 1; padding: var(--wp--preset--spacing--60) var(--wp--custom--layout--gutter-mobile) var(--wp--preset--spacing--50); box-sizing: border-box; }
	.wp-block-cover.is-style-hero.jmc-hero--tone-light .jmc-hero__picture { order: 2; position: relative; width: 100%; aspect-ratio: var(--wp--custom--image--hero-tall); }
	.wp-block-cover.is-style-hero.jmc-hero--tone-light img.wp-block-cover__image-background { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
}

/* ---------- linked cards: the whole card is the link (the title link stretches over it) ---------- */
.jmc-card { position: relative; transition: transform var(--wp--custom--transition--base), box-shadow var(--wp--custom--transition--base); }
.jmc-card :where(h3) a { color: inherit; text-decoration: none; }
.jmc-card :where(h3) a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.jmc-card:has(h3 a):hover { transform: translateY(-3px); box-shadow: var(--wp--preset--shadow--md); }
.jmc-card:has(h3 a:focus-visible) { outline: var(--wp--custom--border--focus) solid var(--wp--preset--color--focus); outline-offset: var(--wp--custom--border--focus-offset); }
.jmc-card h3 a:focus-visible { outline: 0; }
.jmc-card .wp-block-image { margin: 0; }

/* ---------- Version B (the guitar magazine, 27 October 2026) ----------
   Photo fades into the dark bands are masks (the mask colour is irrelevant: currentColor). Image blocks set their
   aspect ratio inline, so the phone art direction below needs !important. */

/* spread hero: the photo fills the left half and fades into the near-black panel */
.jmc-hero--spread .jmc-hero__media .wp-block-image { margin: 0; height: 100%; }
.jmc-hero--spread .jmc-hero__media img { display: block; width: 100%; height: 100%; aspect-ratio: var(--wp--custom--image--split) !important; object-fit: cover; object-position: 50% 20%; -webkit-mask-image: linear-gradient(currentColor 70%, transparent); mask-image: linear-gradient(currentColor 70%, transparent); }
.jmc-hero__foot { margin-top: auto !important; }
@media (min-width: 782px) {
	.jmc-hero--spread { min-height: calc(100svh - var(--jmc-header-h, var(--wp--custom--layout--header-height))); }
	.jmc-hero--spread .jmc-hero__media { position: relative; }
	.jmc-hero--spread .jmc-hero__media .wp-block-image { position: absolute; inset: 0; }
	.jmc-hero--spread .jmc-hero__media img { aspect-ratio: auto !important; -webkit-mask-image: linear-gradient(90deg, transparent, currentColor 12%, currentColor 72%, transparent); mask-image: linear-gradient(90deg, transparent, currentColor 12%, currentColor 72%, transparent); }
}
.jmc-hero--spread :focus-visible, .jmc-card--feature :focus-visible, .jmc-cta :focus-visible { outline-color: var(--wp--preset--color--focus-inverse); }

/* live strip: tall photos edge to edge, ink between them */
.jmc-gallery .wp-block-image, .jmc-gallery .wp-block-image img { margin: 0; display: block; width: 100%; }

/* bleed split: the photo runs to the viewport edge, the text keeps the site's wide edge */
.jmc-split--bleed .wp-block-image { margin: 0; }
.jmc-split--bleed .jmc-split__text { padding-inline: var(--wp--custom--layout--gutter-mobile); }
@media (min-width: 782px) {
	.jmc-split--bleed .jmc-split__text { padding-inline: 0 max(var(--wp--custom--layout--gutter), calc((100vw - var(--wp--custom--layout--wide)) / 2)); }
}
.jmc-body-justify { hyphens: auto; max-width: var(--wp--custom--layout--content); }

/* feature card: its photo runs to the card's edges and fades into the dark */
.jmc-card--feature { overflow: hidden; }
.jmc-card--feature .jmc-card__photo { margin-inline: calc(-1 * var(--wp--preset--spacing--50)); }
.jmc-card--feature .jmc-card__photo img { display: block; width: 100%; -webkit-mask-image: linear-gradient(currentColor 65%, transparent); mask-image: linear-gradient(currentColor 65%, transparent); }

/* reviews: the narrow columns lose their side rule when they stack */
@media (max-width: 781px) {
	.jmc-rule-left { border-left: 0 !important; padding-left: 0 !important; padding-top: var(--wp--preset--spacing--50); border-top: var(--wp--custom--border--hairline) solid var(--wp--preset--color--contrast); }
}

/* call to action: the photo band fades into the near-black, the title row overlaps its foot */
.jmc-cta .jmc-cta__photo { margin: 0; }
.jmc-cta .jmc-cta__photo img { display: block; width: 100%; -webkit-mask-image: linear-gradient(currentColor 60%, transparent); mask-image: linear-gradient(currentColor 60%, transparent); }
.jmc-cta.jmc-cta > .wp-block-columns { position: relative; margin-top: calc(-1 * var(--wp--preset--spacing--70)); }
@media (max-width: 781px) {
	.jmc-cta .jmc-cta__photo img { aspect-ratio: var(--wp--custom--image--card) !important; }
	.jmc-cta.jmc-cta > .wp-block-columns { margin-top: calc(-1 * var(--wp--preset--spacing--50)); }
}
