/*
 * YouthMonk motion layer. Spec: Figma "Note · Motion system" + per-section notes, design/interaction-notes.md.
 * Rules: content is visible without JS (hidden states only under html.ym-js); only transform/opacity animate;
 * reduced motion keeps fades, drops movement; hover effects only on mouse devices.
 * Rendered element classes are the Elementor global class labels (ym-*).
 */
:root {
	--ym-ease-out: cubic-bezier(0.23, 1, 0.32, 1);
	--ym-ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
	interpolate-size: allow-keywords;
}

/* ---------- Press + focus (every button) ---------- */
.ym-btn, .e-form-submit-button-base, .ym-rel-chip, .ym-fab a {
	transition: transform 160ms var(--ym-ease-out), background-color 150ms ease, color 150ms ease, border-color 150ms ease;
}
.ym-btn:active, .e-form-submit-button-base:active, .ym-rel-chip:active, .ym-fab a:active { transform: scale(0.97); }
:is(a, button, summary, input, select, textarea):focus-visible { outline: 2px solid #0A0A0A; outline-offset: 2px; }
.elementor-location-footer :is(a, button):focus-visible { outline-color: #FFFFFF; }

/* Audit button: document icon before the label (Figma). */
.ym-btn-audit::before {
	content: ""; width: 20px; height: 20px; flex: none; background-color: currentColor;
	-webkit-mask: var(--ym-icon-letter) center / contain no-repeat; mask: var(--ym-icon-letter) center / contain no-repeat;
}

/* ---------- Header: sticky, shrinks after 80px, hides on scroll down ---------- */
.elementor-location-header { position: sticky; top: var(--wp-admin--admin-bar--height, 0px); z-index: 100; transition: transform 200ms var(--ym-ease-out); }
@media (min-width: 1025px) {
	.elementor-location-header { height: 88px; pointer-events: none; }
	.elementor-location-header :is(.ym-header, .ym-mega) { pointer-events: auto; }
	.ym-scrolled .ym-header-inner { padding-top: 8px !important; padding-bottom: 8px !important; }
}
/* The bar's background spans the viewport; only its content stays within 1440 (was boxed on wide screens). */
.elementor-location-header .ym-header { background-color: #FFFFFF; transition: background-color 200ms var(--ym-ease-out); }
.elementor-location-header .ym-header-inner { background-color: transparent !important; }
.ym-scrolled .elementor-location-header .ym-header { background-color: rgba(255, 255, 255, 0.9); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.ym-header-hidden .elementor-location-header { transform: translateY(-110%); }

/* ---------- Mega menu (desktop) ---------- */
.ym-mega { opacity: 0; visibility: hidden; transform: translateY(-8px); transform-origin: top center; transition: opacity 150ms var(--ym-ease-out), transform 150ms var(--ym-ease-out), visibility 0s linear 150ms; }
.ym-mega.is-open { opacity: 1; visibility: visible; transform: none; transition: opacity 180ms var(--ym-ease-out), transform 180ms var(--ym-ease-out), visibility 0s; }
@media (max-width: 1024px) { .ym-mega { display: none !important; } }
@media (min-width: 1025px) {
	/* The mega panel replaces the nav widget's own dropdowns on desktop (they stay for the mobile burger). */
	.ym-js .elementor-location-header .elementor-nav-menu--main .menu-item-has-children > .sub-menu { display: none !important; }
	.ym-js .elementor-location-header .elementor-nav-menu--main .menu-item-has-children ~ .menu-item-has-children .sub-arrow { display: none; }
	.elementor-location-header .elementor-nav-menu--main .sub-arrow { margin-inline-start: 2px; font-size: 10px; }
}
@media (hover: hover) and (pointer: fine) {
	.ym-mega-item:hover .ym-mega-tile { background-color: var(--e-global-color-accent); }
	.ym-mega-item:hover .ym-mega-title { text-decoration: underline; text-underline-offset: 3px; }
}

/* ---------- Reveals (scroll: play once at 25% visible; hero: on load) ---------- */
.ym-js:not(.ym-reveal-all) :is(
	:is(.elementor-location-single, .elementor-location-archive, [data-elementor-type="wp-page"]) > .ym-section:first-child :is(.ym-h1, .ym-lead, .ym-btn, .ym-chip, .ym-form-card, .ym-hero-media, .ym-stat, .ym-cover, :has(> .ym-proof-text)),
	:is(.elementor-location-single, .elementor-location-archive, [data-elementor-type="wp-page"]) > .ym-section:first-child .ym-small:not(.ym-form-card *),
	.ym-section:not(:is(.elementor-location-single, .elementor-location-archive, [data-elementor-type="wp-page"]) > .ym-section:first-child):not(.ym-process) :is(.ym-eyebrow, .ym-h2, .ym-intro):not(.ym-case-card *):not(.ym-rel-row *):not(.ym-cta-card *),
	.ym-inc-card, .ym-case-card, .ym-cta-card, .ym-quote-card, .ym-guide-card, .ym-ai-classic, .ym-ai-card, .ym-ai-punch
):not(.is-in) { opacity: 0; }
@media (prefers-reduced-motion: no-preference) {
	.ym-js:not(.ym-reveal-all) :is(
		:is(.elementor-location-single, .elementor-location-archive, [data-elementor-type="wp-page"]) > .ym-section:first-child :is(.ym-lead, .ym-btn, .ym-chip, :has(> .ym-proof-text)),
		:is(.elementor-location-single, .elementor-location-archive, [data-elementor-type="wp-page"]) > .ym-section:first-child .ym-small:not(.ym-form-card *),
		.ym-section:not(:is(.elementor-location-single, .elementor-location-archive, [data-elementor-type="wp-page"]) > .ym-section:first-child):not(.ym-process) :is(.ym-eyebrow, .ym-h2, .ym-intro):not(.ym-case-card *):not(.ym-rel-row *):not(.ym-cta-card *)
	):not(.is-in) { transform: translateY(8px); }
	.ym-js:not(.ym-reveal-all) :is(.ym-inc-card, .ym-case-card, .ym-form-card, .ym-hero-media, .ym-stat, .ym-quote-card, .ym-guide-card, .ym-ai-classic):not(.is-in) { transform: translateY(16px); }
	.ym-js:not(.ym-reveal-all) :is(.elementor-location-single, .elementor-location-archive, [data-elementor-type="wp-page"]) > .ym-section:first-child .ym-cover:not(.is-in) { transform: translateY(16px); }
	.ym-js:not(.ym-reveal-all) .ym-cta-card:not(.is-in) { transform: translateX(16px); }
	/* S04 AI gap, beat 2: the AI card slides in 24px from the right; its answer appears line by line. */
	.ym-js:not(.ym-reveal-all) .ym-ai-card:not(.is-in) { transform: translateX(24px); }
	.ym-js:not(.ym-reveal-all) .ym-ai-answer:not(.is-in) { clip-path: inset(0 0 100% 0); }
	.ym-ai-answer.is-in { clip-path: inset(0); transition: clip-path calc(var(--ym-lines, 3) * 160ms) steps(var(--ym-lines, 3), end) var(--ym-delay, 0ms); }
	/* Beat 1: the "position 3" row gets its lime outline. */
	.ym-js:not(.ym-reveal-all) .ym-ai-you:not(.is-in) { border-color: transparent; }
	.ym-ai-you.is-in { transition: border-color 300ms var(--ym-ease-out) var(--ym-delay, 0ms); }
}
/* The AI card's pre-entrance offset must not widen the page on phones. */
.ym-js .ym-section:has(.ym-ai-card) { overflow-x: clip; }
.ym-ai-card.is-in { transition: opacity 450ms var(--ym-ease-out) var(--ym-delay, 0ms), transform 450ms var(--ym-ease-out) var(--ym-delay, 0ms); }
/* Beat 3: a strike-through is drawn across "not cited" (static line without JS or with reduced motion). */
.ym-js .ym-ai-missing { position: relative; text-decoration: none !important; }
.ym-js .ym-ai-missing::after { content: ""; position: absolute; left: 14px; right: 14px; top: calc(50% + 0.5px); height: 1.5px; background: currentColor; transform: scaleX(0); transform-origin: left center; transition: transform 300ms var(--ym-ease-in-out) var(--ym-delay, 0ms); }
.ym-js .ym-ai-missing.is-in::after, .ym-reveal-all .ym-ai-missing::after { transform: scaleX(1); }
.is-in { opacity: 1; transform: none; transition: opacity 400ms var(--ym-ease-out) var(--ym-delay, 0ms), transform 400ms var(--ym-ease-out) var(--ym-delay, 0ms); }
.ym-h1.is-in { transition: none; }

/* Hero H1: lines rise 12px + fade (split by JS at <br>). */
.ym-line { display: inline-block; }
.ym-js:not(.ym-reveal-all) .ym-h1:not(.is-in) { opacity: 0; }
.ym-js .ym-h1 .ym-line { opacity: 0; transform: translateY(12px); transition: opacity 400ms var(--ym-ease-out) var(--ym-delay, 0ms), transform 400ms var(--ym-ease-out) var(--ym-delay, 0ms); }
.ym-js .ym-h1 .ym-line.is-in, .ym-reveal-all .ym-h1 .ym-line { opacity: 1; transform: none; }

/* Closing CTA headline: words slide up out of a mask, 60ms apart. */
.ym-word { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.ym-word > span { display: inline-block; transform: translateY(105%); transition: transform 500ms var(--ym-ease-out) var(--ym-delay, 0ms); }
.ym-cta-title.is-in .ym-word > span, .ym-reveal-all .ym-word > span { transform: none; }

/* Proof strip: "1 / 4" counter + crossfade between real results. */
.ym-proof-count { font-family: Inter, sans-serif; font-size: 13px; font-weight: 500; color: #5C5C5C; white-space: nowrap; }
:is(.ym-proof-text, .ym-proof-link) { transition: opacity 300ms ease; }
.ym-proof-swap :is(.ym-proof-text, .ym-proof-link) { opacity: 0; }

/* ---------- Hover (mouse only) ---------- */
@media (hover: hover) and (pointer: fine) {
	.ym-case-card.is-in { transition: transform 200ms var(--ym-ease-out), box-shadow 200ms var(--ym-ease-out), opacity 400ms var(--ym-ease-out); }
	.ym-case-card.is-in:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(10, 10, 10, 0.08); }
	.ym-cta-card.is-in { transition: transform 150ms var(--ym-ease-out), opacity 400ms var(--ym-ease-out); }
	.ym-cta-card.is-in:hover { transform: translateY(-2px) !important; }
	.ym-cta-card > .e-svg-base:last-child, .ym-cta-card > :last-child { transition: transform 150ms var(--ym-ease-out); }
	.ym-cta-card:hover > :last-child { transform: translateX(4px); }
	.elementor-location-footer .elementor-nav-menu a:hover, .elementor-location-footer a.e-paragraph-base:hover { text-decoration: underline; text-underline-offset: 3px; }
}

/* ---------- FAQ: open 250ms, close 200ms (progressive: browsers with ::details-content) ---------- */
.ym-faq-item::details-content { block-size: 0; overflow: hidden; opacity: 0; transition: block-size 200ms var(--ym-ease-out), opacity 200ms var(--ym-ease-out), content-visibility 200ms allow-discrete; }
.ym-faq-item[open]::details-content { block-size: auto; opacity: 1; transition-duration: 250ms; }

/* ---------- Process: signature pinned chapters (desktop) ---------- */
.ym-js .ym-step { border-top-color: transparent !important; }
.ym-js .ym-step::before { content: ""; position: absolute; left: 0; right: 0; top: -2px; height: 2px; background: #0A0A0A; transform: scaleX(0); transform-origin: left center; transition: transform 500ms var(--ym-ease-in-out); }
.ym-js .ym-step:last-child::before { top: -6px; height: 6px; background: var(--e-global-color-accent); }
.ym-js .ym-step > * { opacity: 0; transition: opacity 350ms var(--ym-ease-out), background-color 200ms ease, color 200ms ease; }
.ym-js .ym-step.is-reached::before { transform: scaleX(1); }
.ym-js .ym-step.is-reached > * { opacity: 1; } /* finished steps stay readable; the current one keeps the highlight */
.ym-js .ym-step.is-current > * { opacity: 1; }
.ym-js .ym-step.is-current:not(:last-child) .ym-chip { background-color: #0A0A0A; color: #FFFFFF; }
.ym-pinned > .ym-container { position: sticky; top: var(--ym-pin-top, 96px); }
.ym-reveal-all .ym-step::before { transform: scaleX(1); }
.ym-reveal-all .ym-step > * { opacity: 1; }

/* ---------- Floating actions (bottom-right, every page) ---------- */
.ym-fab { position: fixed; right: 24px; bottom: 24px; z-index: 90; display: flex; gap: 10px; align-items: center; opacity: 0; transform: translateY(8px); pointer-events: none; transition: opacity 200ms var(--ym-ease-out), transform 200ms var(--ym-ease-out); }
.ym-fab.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.ym-fab a { display: inline-flex; align-items: center; justify-content: flex-end; height: 52px; min-width: 52px; border-radius: 999px; box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1); text-decoration: none; }
.ym-fab-call { justify-content: center !important; background: #FFFFFF; border: 1.5px solid #0A0A0A; }
.ym-fab-wa { gap: 0; padding: 6px; background: #0A0A0A; color: #FFFFFF; font: 600 15px/1 Inter, sans-serif; }
.ym-fab-wa-badge { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 999px; background: #25D366; flex: none; }
.ym-fab-wa-label { max-width: 0; overflow: hidden; white-space: nowrap; opacity: 0; transition: max-width 220ms var(--ym-ease-out), opacity 220ms var(--ym-ease-out), padding 220ms var(--ym-ease-out); }
@media (hover: hover) and (pointer: fine) {
	.ym-fab-wa:hover .ym-fab-wa-label, .ym-fab-wa:focus-visible .ym-fab-wa-label { max-width: 180px; opacity: 1; padding: 0 12px 0 10px; }
}
@media (max-width: 767px) { .ym-fab { right: 16px; bottom: 16px; } .ym-fab a { height: 56px; min-width: 56px; } }

/* ---------- Reduced motion: fades only, no movement, no pin ---------- */
@media (prefers-reduced-motion: reduce) {
	.ym-js .ym-h1 .ym-line, .ym-word > span, .ym-fab, .ym-mega { transform: none !important; }
	.ym-js .ym-step::before { transform: scaleX(1); transition: none; }
	.ym-js .ym-step > * { opacity: 1; }
	.elementor-location-header { transition: none; }
	.ym-js .ym-ai-missing::after { transform: scaleX(1); transition: none; }
}

/* Cover labels: one line, shrunk by JS to fit the cover (Figma sets long labels smaller); without JS they wrap. */
.ym-js .ym-cover-label { white-space: nowrap; }

/* ---------- S03 Stats (outside the hero): rules draw left → right, then numbers fade up 60ms apart ---------- */
.ym-js .ym-section:not(:first-child) .ym-stat { position: relative; border-top-color: transparent !important; }
.ym-js .ym-section:not(:first-child) .ym-stat::before { content: ""; position: absolute; left: 0; right: 0; top: -1.5px; height: 1.5px; background: #0A0A0A; transform: scaleX(0); transform-origin: left center; transition: transform 500ms var(--ym-ease-in-out); }
.ym-js .ym-section:not(:first-child) .ym-stat.is-drawn::before, .ym-reveal-all .ym-section .ym-stat::before { transform: none; }
.ym-js:not(.ym-reveal-all) .ym-section:not(:first-child) .ym-stat-value:not(.is-in) { opacity: 0; }

/* ---------- S09 Why: principles fade in row by row (no movement, no hover) ---------- */
.ym-js:not(.ym-reveal-all) .ym-principle:not(.is-in) { opacity: 0; }

/* ---------- S10 Founder: portrait reveals bottom → top, tag slides in, quote line by line, chips 40ms apart ---------- */
.ym-js:not(.ym-reveal-all) :is(.ym-founder-tag, .ym-fact):not(.is-in) { opacity: 0; }
@media (prefers-reduced-motion: no-preference) {
	.ym-js:not(.ym-reveal-all) .ym-founder-photo:not(.is-in) { clip-path: inset(100% 0 0 0); }
	.ym-founder-photo.is-in { clip-path: inset(0); transition: clip-path 600ms var(--ym-ease-in-out) var(--ym-delay, 0ms); }
	.ym-js:not(.ym-reveal-all) .ym-founder-tag:not(.is-in) { transform: translateX(-8px); }
	.ym-js:not(.ym-reveal-all) .ym-founder-quote:not(.is-in) { clip-path: inset(0 0 100% 0); }
	.ym-founder-quote.is-in { clip-path: inset(0); transition: clip-path calc(var(--ym-lines, 3) * 160ms) steps(var(--ym-lines, 3), end) var(--ym-delay, 0ms); }
	.ym-js:not(.ym-reveal-all) .ym-stat-value:not(.is-in):not(:is(.elementor-location-single, .elementor-location-archive, [data-elementor-type="wp-page"]) > .ym-section:first-child *) { transform: translateY(8px); }
	.ym-js .ym-section:not(:first-child) .ym-stat::before { transition-duration: 500ms; }
}
@media (prefers-reduced-motion: reduce) {
	.ym-js .ym-stat::before { transform: none; transition: none; }
}

/* ---------- S02 Hero signature: "AI answers." (H1 <em>) in dark lime, wiped in left → right ---------- */
.ym-h1 em { font-style: normal; color: #4F6F00; }
@media (prefers-reduced-motion: no-preference) {
	.ym-js:not(.ym-reveal-all) .ym-h1 em { display: inline-block; clip-path: inset(0 100% 0 0); transition: clip-path 500ms var(--ym-ease-in-out) 400ms; }
	.ym-js .ym-h1.is-wiped em { clip-path: inset(0 -0.1em 0 0); }
}

/* ---------- S05 Services (home): hover darkens a step, "Explore →" nudges 4px; NEW label lands last ---------- */
.ym-inc-card:has(.ym-inc-label:not(:empty)) .ym-explore { color: #D4F36B; }
@media (hover: hover) and (pointer: fine) {
	a.ym-inc-card { transition: background-color 150ms ease; }
	a.ym-inc-card:hover { background-color: #EAEAE5; }
	a.ym-inc-card:has(.ym-inc-label:not(:empty)):hover { background-color: #1C1C1C; }
	.ym-explore { transition: transform 150ms var(--ym-ease-out); }
	a.ym-inc-card:hover .ym-explore { transform: translateX(4px); }
}
.ym-js:not(.ym-reveal-all) .ym-inc-label:not(:empty):not(.is-in) { opacity: 0; }

/* ---------- S06 Sectors: static rows; hover zooms the photo, shifts the name, brightens the figure ---------- */
@media (hover: hover) and (pointer: fine) {
	.ym-sector-row :is(.ym-sector-photo img, .ym-sector-name, .ym-sector-figure) { transition: transform 200ms var(--ym-ease-out), color 200ms var(--ym-ease-out); }
	.ym-sector-row:hover .ym-sector-photo img { transform: scale(1.03); }
	.ym-sector-row:hover .ym-sector-name { transform: translateX(8px); }
	.ym-sector-row:hover .ym-sector-figure { color: #6E9A00; }
}

/* ---------- Consultation form: focus border 120ms, label blurs into "Sending…" (S02 note) ---------- */
:is(.e-form-input-base, .e-form-textarea-base, .e-form-select-base, .e-form-base select) { transition: border-color 120ms ease, box-shadow 120ms ease; }
.ym-label-swap { display: inline-block; animation: ym-unblur 220ms var(--ym-ease-out) both; }
@keyframes ym-unblur { from { opacity: 0; filter: blur(6px); } to { opacity: 1; filter: none; } }
/* The overlay replaces the inline thank-you line whenever this script runs (errors still show inline). */
.ym-ready .e-form-success-message-base { display: none !important; }

/* ---------- Thank-you overlay (Figma 14:2572): centred card, no backdrop, dissolve 200ms ease-out ---------- */
.ym-thanks { box-sizing: border-box; width: min(480px, calc(100vw - 32px)); margin: auto; padding: 40px; border: 1px solid #E4E4DF; border-radius: 24px; background: #FFFFFF; color: #0A0A0A; }
.ym-thanks[open] { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; animation: ym-dissolve 200ms var(--ym-ease-out) both; }
.ym-thanks.is-closing { animation: ym-dissolve 150ms var(--ym-ease-out) reverse both; }
.ym-thanks::backdrop { background: transparent; }
@keyframes ym-dissolve { from { opacity: 0; } to { opacity: 1; } }
.ym-thanks-check { display: inline-flex; align-items: center; justify-content: center; width: 56px; height: 56px; border-radius: 999px; background: #D4F36B; color: #0A0A0A; }
.ym-thanks-title { margin: 0; font-family: Archivo, sans-serif; font-size: 36px; font-weight: 800; line-height: 1.08; letter-spacing: -1.08px; }
.ym-thanks-text { margin: 0; color: #5C5C5C; font-family: Inter, sans-serif; font-size: 17px; line-height: 1.55; }
.ym-thanks-text a { color: inherit; }
/* dialog.ym-thanks prefix: beats the Hello theme's default button colours (pink, square corners). */
dialog.ym-thanks .ym-thanks-done, dialog.ym-thanks .ym-thanks-done:focus { padding: 18px 24px; border: 0; border-radius: 999px; background-color: #D4F36B; color: #0A0A0A; font: 600 16px/1.3 Inter, sans-serif; text-transform: none; cursor: pointer; transition: transform 160ms var(--ym-ease-out), background-color 150ms ease; }
dialog.ym-thanks .ym-thanks-done:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) { dialog.ym-thanks .ym-thanks-done:hover { background-color: #C8EA55; color: #0A0A0A; } }
@media (max-width: 767px) { .ym-thanks { padding: 28px; } .ym-thanks-title { font-size: 28px; letter-spacing: -0.84px; } }
@media (prefers-reduced-motion: reduce) { .ym-label-swap { animation: none; } }

/* ---------- Below desktop the H1's designed line breaks orphan words ("from" alone): let it flow ---------- */
@media (max-width: 1024px) {
	.ym-h1 br { display: none; }
	.ym-h1 .ym-line { display: inline; }
}

/* ---------- Smooth scroll: Lenis does the easing, so the native smooth behaviour Elementor sets on <html> is off ---------- */
html.lenis { scroll-behavior: auto; }

/* ---------- Mobile UX fixes (staging audit 2026-11-28) ---------- */
/* 1. Floating buttons: stacked like the Figma mobile frame, out of the way while scrolling down or typing. */
@media (max-width: 767px) {
	.ym-fab { flex-direction: column; align-items: flex-end; gap: 12px; }
	.ym-header-hidden .ym-fab.is-visible { opacity: 0; transform: translateY(8px); pointer-events: none; }
}
body:has(:is(input, select, textarea):focus) .ym-fab { opacity: 0 !important; pointer-events: none !important; }

/* 2. Phone/tablet menu: 48px rows, a lime "Book a consultation" row (menu item class ym-menu-cta), dimmed page behind. */
.elementor-nav-menu--main .ym-menu-cta { display: none !important; }
.elementor-location-header .elementor-nav-menu--dropdown .elementor-item { padding-top: 15px !important; padding-bottom: 15px !important; }
.elementor-location-header .elementor-nav-menu--dropdown li.ym-menu-cta { padding: 8px 16px 16px; }
.elementor-location-header .elementor-nav-menu--dropdown .ym-menu-cta > a { justify-content: center; border-radius: 999px !important; background-color: #D4F36B !important; color: #0A0A0A !important; font-weight: 600; }
html.ym-menu-open { overflow: hidden; }
html.ym-menu-open::after { content: ""; position: fixed; inset: 0; z-index: 99; background: rgba(10, 10, 10, 0.4); }

/* 5. Tap targets: 44px hit areas without moving anything (padding + equal negative margin, or a stretched link). */
.elementor-location-header .elementor-menu-toggle { min-width: 44px; min-height: 44px; }
@media (max-width: 1024px), (pointer: coarse) {
	.elementor-location-footer .elementor-nav-menu--layout-vertical a.elementor-item { padding-top: 11px !important; padding-bottom: 11px !important; margin-top: -11px; margin-bottom: -11px; }
	.elementor-location-footer .elementor-nav-menu--layout-horizontal a.elementor-item { padding-top: 15px !important; padding-bottom: 15px !important; margin-top: -15px; margin-bottom: -15px; }
	.ym-toc a { padding-block: 11px; }
	.ym-case-card a { display: inline-block; padding-block: 12px; margin-block: -12px; }
	.ym-rel-chip { position: relative; }
	.ym-rel-chip > a::after { content: ""; position: absolute; inset: -4px 0; }
}

/* 6. Form: the whole field box is tappable (ym-motion.js), readable placeholders and labels. */
.e-form-base .e-div-block-base:has(> label + :is(input, select, textarea)) { cursor: text; }
.e-form-base ::placeholder { color: #737373; opacity: 1; }
@media (max-width: 767px) { .e-form-base .e-form-label-base { font-size: 13px; } }

/* 7. Hero chip never wraps; the eyebrow beside it moves to the next line instead. */
.ym-section:first-child span.ym-eyebrow { white-space: nowrap; flex-shrink: 0; }
.ym-section:first-child :has(> span.ym-eyebrow + .ym-eyebrow) { flex-wrap: wrap; row-gap: 8px; }
/* Phone/tablet hero "Book a consultation" (element ids ymbook*): the form sits beside the copy on desktop. */
@media (min-width: 1025px) { [data-id^="ymbook"] { display: none !important; } }
/* Knowledge Hub topic pills read as pills on a white page. */
.e-paragraph-base.ym-tabs a { box-shadow: inset 0 0 0 1px #E4E4DF; } /* beats Elementor's paragraph-link reset */
/* Contact cards: long emails wrap instead of running into the arrow. */
.ym-cta-card > * { min-width: 0; }
.ym-cta-card :is(p, span) { overflow-wrap: anywhere; }
