/* MMA Artistry components shared by every page: paragraph/image/group/button styles, heroes (split, plain), section head, facts strip, editorial pair, price cards.
   Block-specific CSS lives in assets/css/blocks/<block>.css and loads only when that block renders (inc/assets.php). Tokens live in theme.json. */
/* ===== Default rhythm (blockGap is 0; zero-specificity defaults so every component rule wins) ===== */
:where(.is-layout-flow, .is-layout-constrained) > :where(p, ul, ol, h2, h3, h4, blockquote) + :where(p, ul, ol) { margin-block-start: 1em; }
:where(.is-layout-flow, .is-layout-constrained) > :where(p, ul, ol, figure, .wp-block-group) + :where(h2, h3, h4) { margin-block-start: 1.6em; }
:where(.is-layout-flow, .is-layout-constrained) > :where(:not(.wp-block-buttons, .mma-section-head)) + :where(.wp-block-buttons) { margin-block-start: var(--wp--preset--spacing--50); }
:where(.is-layout-flow, .is-layout-constrained) > :where(h2, h3) + :where(figure, .wp-block-table, .wp-block-gallery, .wp-block-accordion, .wp-block-columns) { margin-block-start: var(--wp--preset--spacing--40); }

/* ===== Paragraph styles ===== */
.is-style-eyebrow { font: 600 var(--wp--preset--font-size--eyebrow)/1.45 var(--mma-sans) !important; letter-spacing: .2em !important; text-transform: uppercase; color: var(--wp--preset--color--gold-ink); margin-bottom: 12px !important; }
.is-style-lede { font-size: var(--wp--preset--font-size--lede) !important; line-height: 1.6 !important; max-width: 60ch; }
.has-text-align-center.is-style-lede, .has-text-align-center .is-style-lede, .mma-section-head .is-style-lede { margin-inline: auto !important; }
.is-style-display { font-family: var(--mma-script) !important; font-size: var(--wp--preset--font-size--display); font-weight: 400 !important; line-height: .95 !important; color: var(--wp--preset--color--gold-deep); }
.mma-numeral { font: 400 var(--wp--preset--font-size--script-l)/1 var(--mma-script) !important; letter-spacing: 0 !important; text-transform: none !important; color: var(--wp--preset--color--gold-deep); }
.has-drop-cap:not(:focus)::first-letter { font-family: var(--mma-script); font-weight: 400; color: var(--wp--preset--color--gold-deep); font-size: 5.2em; line-height: .72; margin: .08em .1em 0 0; }

/* ===== Section styles (styles/sections/*.json set colours + padding 70) ===== */
:is(.is-style-section-white, .is-style-section-cream, .is-style-section-blush) :is(h3, h4, h5, h6):where(:not(.has-text-color)) { color: var(--wp--preset--color--ink); }
.is-style-section-ink { color: rgba(255,255,255,.88); }
.is-style-section-ink :is(h1,h2,h3,h4,h5,h6) { color: #fff; }
.is-style-section-ink .is-style-eyebrow, .is-style-section-ink .mma-numeral { color: var(--wp--preset--color--gold); }
.is-style-section-ink a:where(:not(.wp-element-button)) { color: var(--wp--preset--color--gold); }

/* ===== Image: framed (gold hairline offset box) ===== */
.wp-block-image.is-style-framed { position: relative; isolation: isolate; width: fit-content; max-width: calc(100% - 14px); margin-bottom: 14px; }
.wp-block-image.is-style-framed::before { content: ""; position: absolute; inset: 14px -14px -14px 14px; border: 1px solid var(--wp--preset--color--gold); z-index: -1; pointer-events: none; }
.wp-block-image.is-style-framed img { display: block; }
@media (max-width: 781px) { .wp-block-image.is-style-framed { max-width: calc(100% - 10px); margin-bottom: 10px; } .wp-block-image.is-style-framed::before { inset: 10px -10px -10px 10px; } }

/* ===== Group: card / card-overlap ===== */
.wp-block-group.is-style-card { background: var(--wp--preset--color--cream); border: var(--mma-hair); padding: var(--wp--preset--spacing--40); }
@media (min-width: 782px) { .wp-block-group.is-style-card { padding: var(--wp--preset--spacing--50); } }
.wp-block-group.is-style-card-overlap { position: relative; z-index: 2; margin-top: -48px !important; margin-bottom: var(--wp--preset--spacing--60) !important; padding: var(--wp--preset--spacing--40); background: #fff; box-shadow: var(--wp--preset--shadow--soft); }
@media (min-width: 782px) { .wp-block-group.is-style-card-overlap { margin-top: -120px !important; padding: var(--wp--preset--spacing--60); } }

/* ===== Button styles ===== */
.wp-block-button.is-style-outline-gold .wp-block-button__link { background: transparent; color: var(--wp--preset--color--gold-ink); box-shadow: inset 0 0 0 1.5px var(--wp--preset--color--gold-deep); }
.wp-block-button.is-style-outline-gold .wp-block-button__link:hover { background: var(--wp--preset--color--gold-deep); color: #fff; }
.wp-block-button.is-style-outline-light .wp-block-button__link { background: transparent; color: #fff; box-shadow: inset 0 0 0 1px #fff; }
.wp-block-button.is-style-outline-light .wp-block-button__link:hover { background: #fff; color: var(--wp--preset--color--ink); }
.wp-block-button.is-style-text-arrow .wp-block-button__link { display: inline-block; min-height: 44px; padding: 11px 0; background: none; color: var(--wp--preset--color--gold-ink); font: 600 15px/1.4 var(--mma-sans); letter-spacing: .02em; text-align: left; text-decoration: underline; text-underline-offset: 6px; text-decoration-color: var(--wp--preset--color--gold); }
.wp-block-button.is-style-text-arrow .wp-block-button__link::after { content: "\2192"; display: inline-block; margin-left: .35em; text-decoration: none; }
.wp-block-button.is-style-text-arrow .wp-block-button__link:hover { color: var(--wp--preset--color--ink); background: none; }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
	.wp-block-button.is-style-text-arrow .wp-block-button__link::after { transition: transform .25s var(--mma-ease); }
	.wp-block-button.is-style-text-arrow .wp-block-button__link:hover::after { transform: translateX(3px); }
}
.is-style-section-ink .is-style-text-arrow .wp-block-button__link { color: var(--wp--preset--color--gold); }
.wp-block-button.is-style-chip .wp-block-button__link { min-height: 44px; padding: 0 18px; border-radius: 999px; background: #fff; color: var(--wp--preset--color--ink); box-shadow: inset 0 0 0 1px var(--wp--preset--color--gold-deep); font: 600 13px/1.2 var(--mma-sans); letter-spacing: .06em; white-space: nowrap; }
.wp-block-button.is-style-chip .wp-block-button__link:hover, .wp-block-button.is-style-chip .wp-block-button__link[aria-current] { background: var(--wp--preset--color--gold-deep); color: #fff; }
.mma-chips { gap: 8px !important; }
@media (max-width: 781px) { .mma-chips { flex-wrap: nowrap !important; justify-content: flex-start !important; overflow-x: auto; scroll-snap-type: x proximity; scroll-padding-inline: var(--mma-gutter); margin-inline: calc(-1 * var(--mma-gutter)) !important; padding: 4px var(--mma-gutter) !important; scrollbar-width: none; } .mma-chips > * { scroll-snap-align: start; flex: none; } }

/* ===== C4c plain hero (C4b split hero: assets/css/modules/hero-split.css) ===== */
.mma-hero-plain { padding-top: var(--wp--preset--spacing--60) !important; padding-bottom: 48px !important; text-align: center; }
.mma-hero-plain h1 { color: var(--wp--preset--color--gold-deep); font-size: var(--wp--preset--font-size--display); }
.mma-hero-plain h1::after { content: ""; display: block; width: 64px; height: 1px; margin: 26px auto 0; background: var(--wp--preset--color--gold); }
.mma-hero-plain > * + * { margin-top: 20px !important; }
.mma-hero-plain .wp-block-buttons { justify-content: center; }

/* ===== C7 section head ===== */
.mma-section-head { max-width: 760px; margin: 0 auto var(--wp--preset--spacing--60) !important; text-align: center; }
.mma-section-head .is-style-eyebrow { display: flex; align-items: center; justify-content: center; gap: 14px; margin-bottom: var(--wp--preset--spacing--20) !important; }
.mma-section-head .is-style-eyebrow::before, .mma-section-head .is-style-eyebrow::after { content: ""; width: 28px; height: 1px; background: var(--wp--preset--color--gold); }
.mma-section-head :is(h2, h3) + * { margin-top: var(--wp--preset--spacing--40) !important; }
.mma-section-head--left { margin-left: 0 !important; text-align: left; }
.mma-section-head--left .is-style-eyebrow { justify-content: flex-start; }
.mma-section-head--left .is-style-eyebrow::after { display: none; }

/* ===== Icon cards, highlight, text-link rows (generic) ===== */
.is-style-card > .wp-block-icon svg, .mma-icon-lg svg { width: 28px; height: 28px; fill: var(--wp--preset--color--gold-deep); }
.is-style-card > .wp-block-icon + * { margin-top: 16px !important; }
.is-style-card > h3 + p, .is-style-card > h2 + p { margin-top: 10px; }
mark { background: linear-gradient(180deg, transparent 56%, rgba(190,155,108,.32) 56%) !important; color: inherit !important; padding: 0 .08em; }
.mma-text-links { gap: 8px 40px !important; }

/* ===== Section CTA row, ink statement ===== */
/* Long verbatim CTA labels stay on one line in ink statements and C9 pairs */
:is(.mma-pair__text, .mma-statement, .is-style-section-ink) .wp-block-button:not(.is-style-text-arrow):not(.is-style-chip) .wp-block-button__link { line-height: 1.1; padding-inline: 20px; font-size: 26px; }
@media (min-width: 782px) { :is(.mma-pair__text, .mma-statement, .is-style-section-ink) .wp-block-button:not(.is-style-text-arrow):not(.is-style-chip) .wp-block-button__link { padding-inline: 24px; font-size: 28px; } }

.mma-section-cta { margin-top: var(--wp--preset--spacing--60) !important; }
.wp-block-buttons.mma-section-cta.is-vertical { align-items: center; gap: 18px; }
.mma-statement .is-style-lede { max-width: 66ch; margin-inline: auto !important; color: #fff; }
.mma-statement .is-style-lede::before { content: ""; display: block; width: 40px; height: 1px; margin: 0 auto 32px; background: var(--wp--preset--color--gold); }

/* ===== Small utilities ===== */
.mma-measure { max-width: 60ch; }
.mma-reading { max-width: 720px; margin-inline: auto; }
.mma-center { text-align: center; }
.mma-center .wp-block-buttons, .wp-block-buttons.mma-center { justify-content: center; }
.mma-stack > * + * { margin-top: var(--wp--preset--spacing--40); }
.mma-hold { position: relative; }

/* ===== Core lightbox: cream overlay, ink controls (never gold on cream, 3.1) ===== */
.wp-lightbox-overlay .scrim { background-color: var(--wp--preset--color--cream) !important; opacity: 1 !important; } /* opaque: the page never shows through */
.wp-lightbox-overlay button { fill: var(--wp--preset--color--ink) !important; color: var(--wp--preset--color--ink); }
.wp-lightbox-overlay button:focus-visible { outline: 2px solid var(--wp--preset--color--gold-ink); outline-offset: 2px; }
