/* Asem Portfolio — Luxury Gold theme runtime + toggle overrides.
 * Built on the golden ratio (φ ≈ 1.618).
 */

:root {
	color-scheme: light;

	/* Golden-ratio constants — usable from any block style. */
	--phi:        1.618;
	--phi-half:   1.272;     /* √φ */
	--phi-inv:    0.618;     /* 1/φ */
	--phi-inv2:   0.382;     /* 1/φ² */

	/* Golden modular scale — radii. */
	--radius-xs:  0.236rem;
	--radius-sm:  0.382rem;
	--radius-md:  0.618rem;
	--radius-lg:  1rem;
	--radius-xl:  1.618rem;
	--radius-2xl: 2.618rem;

	/* Golden aspect ratios (width / height). */
	--ratio-golden:    1.618;
	--ratio-golden-h:  0.618;

	/* Card surface — luxurious warm ivory gradient (visible against cream bg).
	 * Top-left receives a subtle gold wash; bottom-right is paler ivory. */
	--asem-card-bg:        linear-gradient(155deg, #FFFBF1 0%, #FBF3DD 60%, #F5E9C9 100%);
	--asem-card-bg-strong: linear-gradient(155deg, #FFFCF4 0%, #FAF1D8 100%);

	/* Card decoration — a soft gold inner glow + warm ambient shadow. */
	--asem-card-shadow:
		0 1px 0 rgba(212,175,55,0.25) inset,
		0 0.382rem 1rem rgba(184,134,46,0.10),
		0 1.618rem 3.236rem -1rem rgba(140,99,17,0.12);
	--asem-card-shadow-hover:
		0 1px 0 rgba(212,175,55,0.45) inset,
		0 0.618rem 1.618rem rgba(184,134,46,0.18),
		0 2.618rem 4.236rem -1rem rgba(140,99,17,0.22);
}

/*
 * Dark-mode runtime overrides:
 * Re-bind the WP preset CSS variables when [data-theme="dark"] is set on <html>.
 * No FSE rebuild needed — toggling the attribute swaps the entire palette.
 */
html[data-theme="dark"] {
	color-scheme: dark;
	--wp--preset--color--bg:             #0E0F12;
	--wp--preset--color--bg-elevated:    #171A21;
	--wp--preset--color--bg-deep:        #0A0B0E;
	--wp--preset--color--primary:        #D4AF37;
	--wp--preset--color--primary-strong: #FFD86B;
	--wp--preset--color--gold-bright:    #FFE08A;
	--wp--preset--color--accent:         #F2EAD3;
	--wp--preset--color--text:           #F2EAD3;
	--wp--preset--color--muted:          #A89A7A;
	--wp--preset--color--border:         #2A2620;
	--wp--preset--color--white:          #FFFFFF;

	/* Cards become deep onyx in dark mode with subtle gold sheen. */
	--asem-card-bg:        linear-gradient(155deg, #1B1F28 0%, #14171E 60%, #0E0F12 100%);
	--asem-card-bg-strong: linear-gradient(155deg, #1F232C 0%, #14171E 100%);
	--asem-card-shadow:
		0 1px 0 rgba(212,175,55,0.30) inset,
		0 0.382rem 1rem rgba(0,0,0,0.45),
		0 1.618rem 3.236rem -1rem rgba(0,0,0,0.6);
	--asem-card-shadow-hover:
		0 1px 0 rgba(255,216,107,0.5) inset,
		0 0.618rem 1.618rem rgba(0,0,0,0.55),
		0 2.618rem 4.236rem -1rem rgba(0,0,0,0.7);
}

html {
	scroll-behavior: smooth;
	overflow-x: clip;          /* contain stray overflow without disabling sticky/inset */
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
	background:
		radial-gradient(ellipse at top, rgba(212,175,55,0.10) 0%, transparent 55%),
		radial-gradient(ellipse at bottom right, rgba(184,134,46,0.06) 0%, transparent 50%),
		var(--wp--preset--color--bg);
	min-height: 100vh;
	overflow-x: clip;          /* RTL safety net — kills the infinite drag */
	transition: background-color .35s ease, color .35s ease;
}

html[data-theme="dark"] body {
	background:
		radial-gradient(ellipse at top, rgba(212,175,55,0.12) 0%, transparent 55%),
		radial-gradient(ellipse at bottom right, rgba(255,216,107,0.08) 0%, transparent 50%),
		var(--wp--preset--color--bg);
}


::selection {
	background: rgba(212,175,55,0.35);
	color: var(--wp--preset--color--text);
}

::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: var(--wp--preset--color--bg-deep); }
::-webkit-scrollbar-thumb {
	background: linear-gradient(180deg, #D4AF37, #B8862E);
	border-radius: 12px;
	border: 2px solid var(--wp--preset--color--bg-deep);
}

.wp-site-blocks > main { min-height: 60vh; }
.wp-block-post-content > * + * { margin-top: var(--wp--preset--spacing--40); }

/* Buttons — luxury rise (φ padding & radius) */
.wp-block-button__link {
	transition: transform .25s ease, box-shadow .25s ease, background-color .25s ease;
	box-shadow: 0 0.382rem 1rem rgba(184,134,46,0.18);
	letter-spacing: 0.02em;
	border-radius: 999px;
}
.wp-block-button__link:hover {
	transform: translateY(-2px);
	box-shadow: 0 14px 32px rgba(212,175,55,0.32);
}
.wp-block-button.is-style-outline .wp-block-button__link {
	box-shadow: none;
	border: 1px solid var(--wp--preset--color--primary);
	color: var(--wp--preset--color--primary);
	background: transparent;
}

.wp-block-post-title a { color: inherit; text-decoration: none; }

/* RTL: switch the body font to Arabic display family */
[dir="rtl"] body {
	font-family: var(--wp--preset--font-family--ibm-plex-arabic), var(--wp--preset--font-family--inter), system-ui, sans-serif;
}
[dir="rtl"] :is(h1, h2, h3, h4) {
	font-family: var(--wp--preset--font-family--ibm-plex-arabic), serif;
}

/* Skip-link uses logical inset-start so it never overflows in RTL. */
.skip-link {
	position: absolute;
	inset-inline-start: -9999px;
	top: 1rem;
	background: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--white);
	padding: 0.5rem 1rem;
	z-index: 1000;
	border-radius: 6px;
}
.skip-link:focus { inset-inline-start: 1rem; }

/* ─── About / Summary card ───────────────────────────────────────────── */
.asem-summary__eyebrow {
	margin: 0 0 1rem;
	text-align: center;
	color: var(--wp--preset--color--primary);
	font-size: 0.786rem;
	font-weight: 600;
	letter-spacing: 0.18em;
	text-transform: uppercase;
}
.asem-summary__text {
	margin: 0 auto;
	max-width: 660px;
	text-align: center;
	font-size: 1.05rem;
	line-height: 1.85;
	color: var(--wp--preset--color--text);
}
[dir="rtl"] .asem-summary__text {
	font-family: var(--wp--preset--font-family--ibm-plex-arabic, system-ui, sans-serif);
}

/* ─── Sidebar ────────────────────────────────────────────────────────── */
.asem-sidebar-title {
	font-family: var(--wp--preset--font-family--playfair, Georgia, serif);
	font-size: 1.15rem;
	color: var(--wp--preset--color--primary);
	margin: 0 0 0.6rem;
}
.asem-sidebar-list {
	list-style: none;
	margin: 0 0 1rem;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	color: var(--wp--preset--color--text);
	font-size: 0.95rem;
}
.asem-sidebar-list li { margin: 0; padding: 0; }
.asem-sidebar-list strong { color: var(--wp--preset--color--primary); margin-inline-end: 0.35rem; }
.asem-sidebar-rule {
	border: 0;
	border-top: 1px solid var(--wp--preset--color--border);
	margin: 1rem 0;
}

/* ─── Footer (bilingual) — golden-ratio layout ────────────────────────
 * Brand column : Sitemap : Connect = φ : 1 : 1
 */
.asem-footer-grid {
	display: grid;
	grid-template-columns: 1.618fr 1fr 1fr;
	column-gap: 2.618rem;
	row-gap: 1.618rem;
	max-width: 1280px;
	margin: 0 auto;
	align-items: start;
}
.asem-footer-col { min-width: 0; }
@media (max-width: 880px) {
	.asem-footer-grid { grid-template-columns: 1fr 1fr; }
	.asem-footer-col:first-child { grid-column: 1 / -1; }
}
@media (max-width: 540px) {
	.asem-footer-grid { grid-template-columns: 1fr; row-gap: 2rem; }
	.asem-footer-col:first-child { grid-column: auto; }
}
.asem-footer-brand {
	color: var(--wp--preset--color--primary);
	font-family: var(--wp--preset--font-family--playfair, Georgia, serif);
	font-size: 1.4rem;
	margin: 0 0 0.6rem;
}
.asem-footer-tag {
	color: var(--wp--preset--color--muted);
	font-size: 0.95rem;
	line-height: 1.7;
	margin: 0;
}
.asem-footer-title {
	color: var(--wp--preset--color--primary);
	font-size: 0.85rem;
	text-transform: uppercase;
	letter-spacing: 0.12em;
	margin: 0 0 1rem;
	font-weight: 600;
}
.asem-footer-links {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 0.45rem;
}
.asem-footer-links a {
	color: var(--wp--preset--color--muted);
	text-decoration: none;
	font-size: 0.95rem;
	transition: color .2s ease;
}
.asem-footer-links a:hover { color: var(--wp--preset--color--primary); }
.asem-footer-social {
	display: flex;
	gap: 0.85rem;
	list-style: none;
	margin: 0;
	padding: 0;
}
.asem-footer-social a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 999px;
	border: 1px solid var(--wp--preset--color--border);
	color: var(--wp--preset--color--primary);
	transition: transform .25s ease, border-color .25s ease, background .25s ease;
	background: var(--wp--preset--color--bg);
}
.asem-footer-social a:hover {
	transform: translateY(-2px);
	border-color: var(--wp--preset--color--primary);
	background: var(--wp--preset--color--bg-elevated);
}
.asem-credit {
	text-align: center;
	font-size: 0.85rem;
	color: var(--wp--preset--color--muted);
	letter-spacing: 0.04em;
	margin: 1.5rem 0 0;
}
.asem-credit strong { color: var(--wp--preset--color--primary); }

/* ─── Header right cluster ───────────────────────────────────────────── */
.asem-header-right {
	display: flex;
	align-items: center;
	gap: 1.5rem;
	flex-wrap: wrap;
}
@media (max-width: 720px) { .asem-header-right { gap: 1rem; } }

/* ─── Primary navigation (bilingual) ─────────────────────────────────── */
.asem-nav__list {
	display: flex;
	gap: 1.5rem;
	margin: 0;
	padding: 0;
	list-style: none;
	align-items: center;
}
.asem-nav__list li { margin: 0; padding: 0; list-style: none; }
.asem-nav__list a {
	color: var(--wp--preset--color--text);
	text-decoration: none;
	font-size: 0.95rem;
	font-weight: 500;
	letter-spacing: 0.01em;
	padding: 0.5rem 0.2rem;
	border-bottom: 2px solid transparent;
	transition: color .2s ease, border-color .2s ease;
}
.asem-nav__list a:hover,
.asem-nav__list a:focus-visible {
	color: var(--wp--preset--color--primary);
	border-bottom-color: var(--wp--preset--color--primary);
	outline: none;
}
@media (max-width: 720px) {
	.asem-nav__list { gap: 0.85rem; flex-wrap: wrap; justify-content: center; }
	.asem-nav__list a { font-size: 0.9rem; }
}

/* ─── Language toggle pill (gold) ─────────────────────────────────────
 * Matches .asem-theme-toggle styling. Click is wired in theme-toggle.js
 * → flips ?lang=ar|en, BilingualBridge in the plugin handles the rest.
 */
.asem-lang-toggle {
	display: inline-flex;
	align-items: center;
	gap: 0.382rem;
	padding: 0.382rem 0.85rem;
	border-radius: 999px;
	border: 1px solid var(--wp--preset--color--border);
	background: var(--wp--preset--color--bg-elevated);
	color: var(--wp--preset--color--primary);
	text-decoration: none;
	font-size: 0.85rem;
	font-weight: 600;
	letter-spacing: 0.04em;
	line-height: 1;
	white-space: nowrap;
	transition: border-color .25s ease, background .25s ease, transform .25s ease, box-shadow .25s ease;
}
.asem-lang-toggle:hover {
	border-color: var(--wp--preset--color--primary);
	box-shadow: 0 0.382rem 1rem rgba(184,134,46,0.22);
	transform: translateY(-1px);
}
.asem-lang-toggle:focus-visible {
	outline: 2px solid var(--wp--preset--color--primary);
	outline-offset: 2px;
}
.asem-lang-toggle__icon { width: 1rem; height: 1rem; }
.asem-lang-toggle__label { display: inline-block; }

/* ─── Theme toggle button (φ-square) ─────────────────────────────────── */
.asem-theme-toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.618rem;       /* φ² */
	height: 2.618rem;
	border-radius: 999px;
	border: 1px solid var(--wp--preset--color--border);
	background: var(--wp--preset--color--bg-elevated);
	color: var(--wp--preset--color--primary);
	cursor: pointer;
	transition: transform .25s ease, box-shadow .25s ease, background-color .25s ease, border-color .25s ease;
	padding: 0;
	line-height: 0;
}
.asem-theme-toggle:hover {
	transform: rotate(-12deg);
	border-color: var(--wp--preset--color--primary);
	box-shadow: 0 6px 18px rgba(212,175,55,0.25);
}
.asem-theme-toggle:focus-visible {
	outline: 2px solid var(--wp--preset--color--primary);
	outline-offset: 2px;
}
.asem-theme-toggle .asem-theme-toggle__sun,
.asem-theme-toggle .asem-theme-toggle__moon {
	width: 20px;
	height: 20px;
	transition: opacity .25s ease, transform .35s ease;
}
.asem-theme-toggle .asem-theme-toggle__moon { display: none; }
html[data-theme="dark"] .asem-theme-toggle .asem-theme-toggle__sun { display: none; }
html[data-theme="dark"] .asem-theme-toggle .asem-theme-toggle__moon { display: inline-block; }

/* ─── Luxury card baseline — applied to every plugin block surface ──── */
.asem-projects__card,
.asem-timeline__card,
.asem-certs__card,
.asem-skills__group,
.asem-contact__inner,
.asem-ai__pane {
	position: relative;
	background: var(--asem-card-bg) !important;
	border: 1px solid rgba(184,134,46,0.28) !important;
	box-shadow: var(--asem-card-shadow);
	overflow: hidden;
}

/* Gold "ornament" line at the top of each card */
.asem-projects__card::before,
.asem-timeline__card::before,
.asem-certs__card::before,
.asem-skills__group::before,
.asem-contact__inner::before,
.asem-ai__pane::before {
	content: "";
	position: absolute;
	inset-inline: 0;
	top: 0;
	height: 2px;
	background: linear-gradient(90deg, transparent 0%, rgba(212,175,55,0.65) 25%, rgba(184,134,46,0.95) 50%, rgba(212,175,55,0.65) 75%, transparent 100%);
	pointer-events: none;
	z-index: 1;
}

.asem-projects__card:hover,
.asem-timeline__card:hover,
.asem-certs__card:hover,
.asem-skills__group:hover,
.asem-ai__pane:hover {
	border-color: rgba(184,134,46,0.55) !important;
	box-shadow: var(--asem-card-shadow-hover);
}

/* Stronger gradient variant (projects) */
.asem-projects__card { background: var(--asem-card-bg-strong) !important; }

/* ─── Blog feed cards (homepage + archive) ───────────────────────────── */
.asem-blog-feed__title {
	font-family: var(--wp--preset--font-family--playfair, Georgia, serif);
	background: linear-gradient(120deg, var(--wp--preset--color--primary), #D4AF37);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	margin-bottom: 2.618rem;
	position: relative;
}
.asem-blog-feed__title::after {
	content: "";
	display: block;
	width: 4.236rem;
	height: 2px;
	margin: 0.618rem auto 0;
	background: linear-gradient(90deg, transparent, var(--wp--preset--color--primary), transparent);
}

.asem-blog-feed__card {
	position: relative;
	background: var(--asem-card-bg) !important;
	border: 1px solid rgba(184,134,46,0.28) !important;
	border-radius: 1rem !important;
	padding: 0 !important;
	box-shadow: var(--asem-card-shadow);
	overflow: hidden;
	transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease;
}
.asem-blog-feed__card::before {
	content: "";
	position: absolute;
	inset-inline: 0;
	top: 0;
	height: 2px;
	background: linear-gradient(90deg, transparent, rgba(184,134,46,0.95) 50%, transparent);
	z-index: 2;
	pointer-events: none;
}
.asem-blog-feed__card:hover {
	transform: translateY(-4px);
	border-color: rgba(184,134,46,0.55) !important;
	box-shadow: var(--asem-card-shadow-hover);
}

.asem-blog-feed__thumb {
	margin: 0 !important;
	overflow: hidden;
	border-radius: 1rem 1rem 0 0;
}
.asem-blog-feed__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .6s ease;
}
.asem-blog-feed__card:hover .asem-blog-feed__thumb img {
	transform: scale(1.05);
}

.asem-blog-feed__body {
	padding: 1.618rem;
	display: flex;
	flex-direction: column;
	gap: 0.618rem;
}
.asem-blog-feed__date {
	color: var(--wp--preset--color--primary);
	letter-spacing: 0.08em;
	text-transform: uppercase;
	font-weight: 600;
	margin: 0;
}
.asem-blog-feed__title-link {
	font-family: var(--wp--preset--font-family--playfair, Georgia, serif);
	margin: 0;
	color: var(--wp--preset--color--text);
	line-height: 1.272;
}
.asem-blog-feed__title-link a {
	color: inherit;
	text-decoration: none;
	background: linear-gradient(90deg, var(--wp--preset--color--primary), var(--wp--preset--color--primary)) no-repeat 0 100% / 0 1px;
	transition: background-size .35s ease, color .35s ease;
}
.asem-blog-feed__title-link a:hover {
	color: var(--wp--preset--color--primary);
	background-size: 100% 1px;
}
.asem-blog-feed__excerpt {
	color: var(--wp--preset--color--muted);
	line-height: 1.618;
	margin: 0;
}
.asem-blog-feed__tags {
	font-size: 0.786rem;
	color: var(--wp--preset--color--muted);
	display: flex;
	flex-wrap: wrap;
	gap: 0.382rem;
	margin: 0.382rem 0 0;
}
.asem-blog-feed__tags a {
	color: var(--wp--preset--color--primary);
	text-decoration: none;
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 999px;
	padding: 0.18rem 0.618rem;
	transition: border-color .25s ease, background .25s ease;
}
.asem-blog-feed__tags a:hover {
	background: rgba(184,134,46,0.10);
	border-color: var(--wp--preset--color--primary);
}

/* ─── Generic SVG icon helper class (used by plugin) ─────────────────── */
.asem-icon {
	display: inline-block;
	vertical-align: -0.15em;
	width: 1.1em;
	height: 1.1em;
	color: currentColor;
}
.asem-icon--lg { width: 1.6em; height: 1.6em; }
.asem-icon--xl { width: 2.4em; height: 2.4em; }

/* ─── Bilingual content visibility ─────────────────────────────────────
 * Markup convention: put data-bilingual on the LAYOUT container (the <ul>
 * <p> <h3> etc.), and lang="en"/lang="ar" on its direct children (the <li>
 * <span>). The container's own display (flex/grid/block) is never touched —
 * we only hide the children that don't match the current direction.
 *
 * Default (LTR / Latin):  hide [lang="ar"] children.
 * RTL:                    hide [lang="en"] children.
 *
 * Children remain at their natural display when shown (list-item, inline,
 * block) — no `revert` shenanigans, no flex/grid breakage.
 */
[data-bilingual] > [lang="ar"]  { display: none; }
[dir="rtl"] [data-bilingual] > [lang="en"] { display: none; }
[dir="rtl"] [data-bilingual] > [lang="ar"] { display: revert; }

/* Decorative gold rule under H1/H2 in patterns */
.has-gold-rule::after {
	content: "";
	display: block;
	width: 64px;
	height: 2px;
	margin-top: 0.6rem;
	background: linear-gradient(90deg, transparent, var(--wp--preset--color--primary), transparent);
}
[dir="rtl"] .has-gold-rule::after { margin-left: auto; }

/* ─── Site-wide luxury polish ──────────────────────────────────────────
 * Section H2 headings get a centered gold underline.
 * Buttons use the gold gradient. Block separators turn into gold rules.
 */

/* Section H2 underline */
main h2.has-text-align-center::after,
main h2.wp-block-heading.has-text-align-center::after,
.asem-blog-feed__title::after,
.asem-projects__title + p::after,
.asem-timeline__title + p::after,
.asem-certs__title + p::after,
.asem-skills__title + p::after,
.asem-ai__title + p::after,
.asem-contact__title + p::after {
	content: "";
	display: block;
	width: 4.236rem;
	height: 2px;
	margin: 0.618rem auto 0;
	background: linear-gradient(90deg, transparent, var(--wp--preset--color--primary), transparent);
}

/* Block separator — gold double rule */
.wp-block-separator:not(.is-style-wide):not(.is-style-dots) {
	border: none !important;
	height: 1px !important;
	background: linear-gradient(90deg, transparent, rgba(184,134,46,0.4) 20%, var(--wp--preset--color--primary) 50%, rgba(184,134,46,0.4) 80%, transparent) !important;
	position: relative;
	margin-block: 2.618rem !important;
	max-width: 12rem;
	opacity: 1 !important;
	color: transparent !important;
}
.wp-block-separator:not(.is-style-wide):not(.is-style-dots)::before,
.wp-block-separator:not(.is-style-wide):not(.is-style-dots)::after {
	content: "✦";
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	font-size: 1rem;
	color: var(--wp--preset--color--primary);
	background: var(--wp--preset--color--bg);
	padding: 0 0.382rem;
}
.wp-block-separator:not(.is-style-wide):not(.is-style-dots)::before {
	left: 50%;
	transform: translate(-50%, -50%);
}
.wp-block-separator:not(.is-style-wide):not(.is-style-dots)::after { display: none; }

/* Primary CTA buttons get full gold gradient */
.wp-block-button:not(.is-style-outline) .wp-block-button__link {
	background: linear-gradient(135deg, #D4AF37 0%, #B8862E 100%) !important;
	color: #1A1F2C !important;
	border: 1px solid rgba(184,134,46,0.55) !important;
	box-shadow:
		0 0.382rem 1rem rgba(184,134,46,0.30),
		0 1px 0 rgba(255,255,255,0.4) inset !important;
}
.wp-block-button:not(.is-style-outline) .wp-block-button__link:hover {
	background: linear-gradient(135deg, #FFD86B 0%, #D4AF37 100%) !important;
	box-shadow:
		0 0.618rem 1.618rem rgba(184,134,46,0.45),
		0 1px 0 rgba(255,255,255,0.5) inset !important;
}

/* Outline buttons */
.wp-block-button.is-style-outline .wp-block-button__link {
	background: transparent !important;
	border: 1.5px solid var(--wp--preset--color--primary) !important;
	color: var(--wp--preset--color--primary) !important;
	box-shadow: none !important;
	transition: background .25s ease, color .25s ease, transform .25s ease, box-shadow .25s ease;
}
.wp-block-button.is-style-outline .wp-block-button__link:hover {
	background: rgba(184,134,46,0.12) !important;
	box-shadow: 0 0.382rem 1rem rgba(184,134,46,0.20) !important;
	transform: translateY(-2px);
}

/* Section anchors get a top decorative rule (very subtle) */
.asem-anchor {
	position: relative;
}
.asem-anchor + .asem-anchor::before {
	content: "";
	display: block;
	max-width: 6rem;
	height: 1px;
	margin: 0 auto 2.618rem;
	background: linear-gradient(90deg, transparent, rgba(184,134,46,0.35), transparent);
}

/* Site-title hover shimmer */
.wp-block-site-title a {
	background: linear-gradient(120deg, var(--wp--preset--color--primary) 0%, #D4AF37 50%, var(--wp--preset--color--primary) 100%);
	background-size: 200% 100%;
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
	transition: background-position .6s ease;
}
.wp-block-site-title a:hover {
	background-position: 100% 0;
}

/* ════════════════════════════════════════════════════════════════════════
 * VITALITY LAYER — light-weight micro-interactions only.
 * Heavy infinite animations were removed in 1.7.1 — they made the page
 * feel laggy. This file now keeps:
 *   • One scroll-driven fade-up on section entry (no JS, no infinite)
 *   • Subtle hover lifts on cards (transform/shadow only — no 3D tilt)
 *   • Gold underline fills on links via background-size transition
 *   • One soft button shimmer on hover
 * Anything infinite or repaint-heavy was deleted.
 * All animations honor `prefers-reduced-motion`.
 * ════════════════════════════════════════════════════════════════════════ */

@media (prefers-reduced-motion: no-preference) {

	/* ── Scroll-driven fade-up: ONE rule, applies once per element ──── */
	@supports (animation-timeline: view()) {
		.wp-block-asem-experience-timeline,
		.wp-block-asem-projects-filter,
		.wp-block-asem-skills-radar,
		.wp-block-asem-certifications-grid,
		.wp-block-asem-ai-showcase,
		.wp-block-asem-stats-counter,
		.wp-block-asem-contact-card {
			animation: asem-fade-up linear both;
			animation-timeline: view();
			animation-range: entry 0% cover 20%;
		}
	}
	@keyframes asem-fade-up {
		from { opacity: 0; transform: translateY(1.5rem); }
		to   { opacity: 1; transform: translateY(0); }
	}

	/* ── Cards: simple hover lift (no 3D — too repaint-heavy) ───────── */
	.asem-projects__card,
	.asem-timeline__card,
	.asem-certs__card,
	.asem-skills__group,
	.asem-blog-feed__card {
		transition: transform .28s ease, border-color .25s ease, box-shadow .28s ease;
	}
	.asem-projects__card:hover,
	.asem-timeline__card:hover,
	.asem-certs__card:hover,
	.asem-skills__group:hover,
	.asem-blog-feed__card:hover {
		transform: translateY(-0.382rem);
	}

	/* ── Gold shimmer on primary buttons (cheap; only on hover) ─────── */
	.wp-block-button:not(.is-style-outline) .wp-block-button__link {
		position: relative;
		overflow: hidden;
		isolation: isolate;
	}
	.wp-block-button:not(.is-style-outline) .wp-block-button__link::after {
		content: "";
		position: absolute;
		inset: 0;
		background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,0.45) 50%, transparent 70%);
		transform: translateX(-100%);
		transition: transform .7s ease;
		z-index: 1;
		pointer-events: none;
	}
	.wp-block-button:not(.is-style-outline) .wp-block-button__link:hover::after {
		transform: translateX(100%);
	}

	/* ── Static gold dot between sections (no animation) ────────────── */
	.asem-anchor + .asem-anchor::before {
		max-width: 8rem;
		background: linear-gradient(90deg, transparent, rgba(184,134,46,0.4), transparent);
	}

	/* ── Gold underline fills on key links (inexpensive bg-size tween) ─ */
	.asem-nav__list a,
	.asem-footer-links a,
	.asem-projects__cta,
	.asem-certs__verify {
		background-image: linear-gradient(90deg, var(--wp--preset--color--primary), var(--wp--preset--color--primary));
		background-repeat: no-repeat;
		background-size: 0 1.5px;
		background-position: 0 100%;
		transition: background-size .3s ease, color .2s ease;
	}
	.asem-nav__list a:hover,
	.asem-footer-links a:hover,
	.asem-projects__cta:hover,
	.asem-certs__verify:hover {
		background-size: 100% 1.5px;
	}
	[dir="rtl"] .asem-nav__list a,
	[dir="rtl"] .asem-footer-links a,
	[dir="rtl"] .asem-projects__cta,
	[dir="rtl"] .asem-certs__verify {
		background-position: 100% 100%;
	}
}

/* ── Reduced-motion safety: keep things static for users who ask ───── */
@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: 0.001ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.001ms !important;
		scroll-behavior: auto !important;
	}
}

/* ════════════════════════════════════════════════════════════════════════
 * SCROLL PERFORMANCE LAYER
 * `content-visibility: auto` lets the browser skip layout/paint of off-screen
 * sections — single biggest scroll-perf win for tall single pages.
 * `contain` isolates each card's layout/paint so internal hover/state
 * doesn't force a whole-page reflow.
 * ════════════════════════════════════════════════════════════════════════ */
.wp-block-asem-experience-timeline,
.wp-block-asem-projects-filter,
.wp-block-asem-skills-radar,
.wp-block-asem-certifications-grid,
.wp-block-asem-ai-showcase,
.wp-block-asem-stats-counter,
.wp-block-asem-contact-card,
.asem-blog-feed {
	content-visibility: auto;
	contain-intrinsic-size: auto 600px;   /* browser remembers actual height */
}

.asem-projects__card,
.asem-timeline__card,
.asem-certs__card,
.asem-skills__group,
.asem-blog-feed__card,
.asem-ai__pane {
	contain: layout paint;
}

/* ════════════════════════════════════════════════════════════════════════
 * MOBILE RESPONSIVE LAYER — golden-ratio (φ) sized.
 *
 * Breakpoints (chosen for clean φ progression):
 *   ≤ 980px → tablet portrait + landscape
 *   ≤ 720px → large phone portrait (~iPhone Pro Max landscape) + small tablet
 *   ≤ 480px → standard phone portrait
 *   ≤ 360px → small phones (iPhone SE etc.)
 *
 * Vertical rhythm steps (rem):  0.236, 0.382, 0.618, 1, 1.272, 1.618, 2.058, 2.618
 * Tap target floor              :  44px (Apple HIG / Material)
 * Section block padding         :  2.618rem (φ²) on phone, 1.618rem (φ) on small phone
 * Card padding                  :  1.272rem (√φ) on phone, 1rem on small phone
 * Card radius                   :  1rem (φ⁰)
 * ════════════════════════════════════════════════════════════════════════ */

/* ─── Tablet (≤ 980px) ────────────────────────────────────────────────── */
@media (max-width: 980px) {
	.asem-blog-feed,
	.wp-block-asem-experience-timeline,
	.wp-block-asem-projects-filter,
	.wp-block-asem-skills-radar,
	.wp-block-asem-certifications-grid,
	.wp-block-asem-ai-showcase,
	.wp-block-asem-stats-counter,
	.wp-block-asem-contact-card,
	.asem-booking,
	.asem-newsletter {
		padding-block: 2.618rem;        /* φ² */
		padding-inline: 1.618rem;       /* φ */
	}

	.asem-stats__grid    { grid-template-columns: repeat(3, 1fr); gap: 0.618rem; }
	.asem-skills__grid,
	.asem-certs__grid,
	.asem-projects__grid {
		grid-template-columns: 1fr 1fr;
		gap: 1rem;
	}
	.asem-footer-grid    {
		grid-template-columns: 1.618fr 1fr;
		row-gap: 1.618rem;
	}
	.asem-footer-col:first-child { grid-column: 1 / -1; }
}

/* ─── Phone portrait (≤ 720px) ───────────────────────────────────────── */
@media (max-width: 720px) {

	/* Body text scale — slightly tighter for narrow viewports */
	body { font-size: 0.95rem; line-height: 1.618; }

	/* HEADER — sticky pill, touch-friendly */
	header.wp-block-group.alignfull {
		padding-top:    0.85rem !important;
		padding-bottom: 0.85rem !important;
		padding-inline: 1rem !important;
	}
	.asem-header-right {
		gap: 0.618rem;                  /* φ⁻¹ */
		flex-wrap: wrap;
		justify-content: flex-end;
		row-gap: 0.382rem;
	}
	.asem-nav__list {
		gap: 0.85rem;
		flex-wrap: wrap;
		justify-content: center;
		font-size: 0.85rem;
	}
	.asem-nav__list a {
		font-size: 0.85rem;
		padding: 0.5rem 0.382rem;       /* φ-padding, comfy tap */
	}

	/* TAP TARGETS — 44px floor */
	.wp-block-button__link,
	.asem-projects__chip,
	.asem-contact__chip,
	.asem-contact__vcard,
	.asem-cv-download__btn,
	.asem-booking__btn,
	.asem-newsletter__btn,
	.asem-newsletter__input,
	.asem-theme-toggle,
	.asem-lang-toggle {
		min-height: 44px;
		display: inline-flex;
		align-items: center;
	}
	.asem-theme-toggle { width: 44px; padding: 0 !important; }

	/* HERO — golden viewport ratio, comfortable padding */
	.asem-hero {
		min-height: 61.8vh;             /* exactly 1/φ of viewport — golden short edge */
		padding: 1.618rem 1rem !important;
	}
	.asem-hero__name    { font-size: clamp(2rem, 9vw, 2.618rem) !important; }   /* φ² */
	.asem-hero__title   { font-size: clamp(1rem, 4.2vw, 1.272rem) !important; } /* √φ */
	.asem-hero__summary { font-size: 0.95rem !important; line-height: 1.618 !important; }
	.asem-hero__ctas    { gap: 0.618rem; }

	/* SECTION HEADINGS — clamp scale to φ */
	.asem-blog-feed__title,
	.asem-projects__title,
	.asem-timeline__title,
	.asem-certs__title,
	.asem-skills__title,
	.asem-ai__title,
	.asem-contact__title,
	.asem-booking__title,
	.asem-newsletter__title {
		font-size: clamp(1.5rem, 6vw, 1.618rem) !important;
		line-height: 1.272 !important;
	}
	.asem-timeline__sub,
	.asem-skills__sub,
	.asem-certs__sub,
	.asem-projects__sub,
	.asem-ai__sub,
	.asem-contact__sub {
		font-size: 0.85rem;
	}

	/* GRIDS — single column, φ gaps */
	.asem-stats__grid    { grid-template-columns: repeat(2, 1fr) !important; gap: 0.618rem; }
	.asem-skills__grid,
	.asem-certs__grid,
	.asem-projects__grid,
	.asem-blog-feed__card,
	.asem-related__list  { grid-template-columns: 1fr !important; gap: 1rem; }

	/* CARDS — φ inner padding, gentle radius */
	.asem-projects__card,
	.asem-timeline__card,
	.asem-certs__card,
	.asem-skills__group,
	.asem-blog-feed__card,
	.asem-ai__pane,
	.asem-contact__inner,
	.asem-booking__card,
	.asem-newsletter__card {
		padding: 1.272rem !important;   /* √φ */
		border-radius: 1rem !important;
	}

	/* TIMELINE — keep spine, narrow indent */
	.asem-timeline__list { padding-inline: 0; }
	.asem-timeline__item { padding-inline-start: 2.618rem !important; padding-bottom: 1.618rem !important; }
	.asem-timeline__dot  { width: 1.272rem !important; height: 1.272rem !important; }
	.asem-timeline__dot::after { inset: -0.382rem !important; }
	.asem-timeline__metrics { grid-template-columns: 1fr 1fr !important; }

	/* AI showcase — vertical stack already at 800px breakpoint */
	.asem-ai__shell { gap: 1rem !important; }
	.asem-ai__tab { padding: 0.85rem 1rem !important; min-height: 44px; }
	.asem-ai__pane { padding: 1.272rem !important; }
	.asem-ai__pane-title { font-size: 1.05rem !important; }
	.asem-ai__code { min-height: 200px !important; font-size: 0.78rem !important; }

	/* CONTACT chips — full width, ample tap area */
	.asem-contact__grid { grid-template-columns: 1fr !important; gap: 0.618rem; }
	.asem-contact__chip { padding: 0.85rem 1rem !important; }

	/* BOOKING / NEWSLETTER icon */
	.asem-booking__icon,
	.asem-newsletter__icon {
		width: 3.236rem !important;     /* 2 × φ */
		height: 3.236rem !important;
	}

	/* NEWSLETTER form — stacked input above button */
	.asem-newsletter__row { flex-direction: column; gap: 0.618rem; }
	.asem-newsletter__btn { width: 100%; justify-content: center; padding: 0.85rem !important; }

	/* TOC + reading meta */
	.asem-post-toc { padding: 1rem 1.272rem !important; }
	.asem-post-meta__pill { font-size: 0.72rem; }

	/* FOOTER — single column with φ rhythm */
	.asem-footer-grid {
		grid-template-columns: 1fr !important;
		row-gap: 1.618rem !important;
	}
	.asem-footer-col:first-child { grid-column: auto; }
	.asem-footer-tag { font-size: 0.95rem; }
	.asem-credit { font-size: 0.78rem; }
}

/* ─── Small phone (≤ 480px) ──────────────────────────────────────────── */
@media (max-width: 480px) {

	body { font-size: 0.93rem; }

	header.wp-block-group.alignfull {
		padding-inline: 0.85rem !important;
	}
	.asem-nav__list { gap: 0.618rem; }
	.asem-nav__list a { font-size: 0.8rem; padding: 0.382rem 0.236rem; }

	/* SECTION padding tighter (φ on outside, 1 on inside) */
	.asem-blog-feed,
	.wp-block-asem-experience-timeline,
	.wp-block-asem-projects-filter,
	.wp-block-asem-skills-radar,
	.wp-block-asem-certifications-grid,
	.wp-block-asem-ai-showcase,
	.wp-block-asem-stats-counter,
	.wp-block-asem-contact-card,
	.asem-booking,
	.asem-newsletter {
		padding-block:  1.618rem !important;
		padding-inline: 1rem !important;
	}

	/* CARDS — tighter radius/padding for small screens */
	.asem-projects__card,
	.asem-timeline__card,
	.asem-certs__card,
	.asem-skills__group,
	.asem-blog-feed__card,
	.asem-ai__pane,
	.asem-contact__inner,
	.asem-booking__card,
	.asem-newsletter__card {
		padding: 1rem !important;
		border-radius: 0.85rem !important;
	}

	.asem-hero {
		min-height: 56vh;               /* a touch shorter on smallest screens */
		padding: 1rem 0.85rem !important;
	}
	.asem-hero__name    { font-size: clamp(1.8rem, 9vw, 2.058rem) !important; }
	.asem-hero__summary { font-size: 0.9rem !important; }
	.asem-hero__ctas {
		flex-direction: column;
		align-items: stretch;
		max-width: 17.32rem;            /* 10 × √φ ≈ 17.3rem */
		margin-inline: auto;
	}
	.asem-hero__cta { justify-content: center; }

	/* TIMELINE — narrower spine on small screens */
	.asem-timeline__item { padding-inline-start: 2rem !important; }
	.asem-timeline__metrics { grid-template-columns: 1fr !important; }

	.asem-ai__code { min-height: 160px !important; font-size: 0.72rem !important; }

	/* STATS go to 2 columns */
	.asem-stats__grid { grid-template-columns: 1fr 1fr !important; }
	.asem-stats__value { font-size: clamp(1.5rem, 7vw, 1.9rem) !important; }
	.asem-stats__label { font-size: 0.72rem; }

	/* FOOTER social pill row */
	.asem-footer-social { gap: 0.618rem; }

	/* TOC item indents — keep usable on tiny screens */
	.asem-post-toc__item--h3 { padding-inline-start: 1rem; }
}

/* ─── Tiny phone (≤ 360px) — last-line fixes ─────────────────────────── */
@media (max-width: 360px) {
	.asem-hero__name    { font-size: 1.7rem !important; }
	.asem-hero__title   { font-size: 1rem !important; }
	.asem-stats__grid   { grid-template-columns: 1fr !important; }
	.asem-nav__list a   { font-size: 0.75rem; }
}

/* ════════════════════════════════════════════════════════════════════════
 * BLOG SINGLE — reading time meta + auto Table of Contents
 * Injected by AsemCV\Blog\ReadingTime — purely additive at the top of
 * every single post's content.
 * ════════════════════════════════════════════════════════════════════════ */
.asem-post-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 0.618rem;
	margin: 0 0 1.618rem;
}
.asem-post-meta__pill {
	display: inline-flex;
	align-items: center;
	gap: 0.382rem;
	padding: 0.3rem 0.85rem;
	border-radius: 999px;
	background: rgba(184,134,46,0.10);
	border: 1px solid rgba(184,134,46,0.28);
	color: var(--wp--preset--color--primary);
	font-size: 0.786rem;
	font-weight: 600;
	letter-spacing: 0.04em;
}

.asem-post-toc {
	background: var(--asem-card-bg);
	border: 1px solid rgba(184,134,46,0.28);
	border-radius: 1rem;
	padding: 1.272rem 1.618rem;
	margin: 0 0 2.618rem;
	box-shadow: var(--asem-card-shadow);
	position: relative;
	overflow: hidden;
}
.asem-post-toc::before {
	content: "";
	position: absolute;
	inset-inline: 0;
	top: 0;
	height: 2px;
	background: linear-gradient(90deg, transparent, rgba(184,134,46,0.95) 50%, transparent);
}
.asem-post-toc__title {
	cursor: pointer;
	list-style: none;
	font-family: var(--wp--preset--font-family--playfair, Georgia, serif);
	font-size: 1.1rem;
	color: var(--wp--preset--color--primary);
	font-weight: 600;
	letter-spacing: 0.02em;
	margin: 0;
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
}
.asem-post-toc__title::-webkit-details-marker { display: none; }
.asem-post-toc__title::before {
	content: "";
	display: inline-block;
	width: 0;
	height: 0;
	border-style: solid;
	border-width: 0.382rem 0 0.382rem 0.6rem;
	border-color: transparent transparent transparent var(--wp--preset--color--primary);
	transition: transform .2s ease;
}
[dir="rtl"] .asem-post-toc__title::before {
	border-width: 0.382rem 0.6rem 0.382rem 0;
	border-color: transparent var(--wp--preset--color--primary) transparent transparent;
}
.asem-post-toc[open] .asem-post-toc__title::before {
	transform: rotate(90deg);
}
.asem-post-toc__list {
	margin: 1rem 0 0;
	padding: 0;
	list-style: none;
	counter-reset: asem-toc;
}
.asem-post-toc__item {
	counter-increment: asem-toc;
	margin: 0.382rem 0;
	font-size: 0.95rem;
	line-height: 1.5;
}
.asem-post-toc__item::before {
	content: counter(asem-toc, decimal-leading-zero) ".";
	color: var(--wp--preset--color--primary);
	font-weight: 600;
	margin-inline-end: 0.5rem;
	font-variant-numeric: tabular-nums;
}
.asem-post-toc__item--h3 {
	padding-inline-start: 1.618rem;
	font-size: 0.85rem;
	color: var(--wp--preset--color--muted);
}
.asem-post-toc__item--h3::before {
	content: "—";
	margin-inline-end: 0.4rem;
}
.asem-post-toc__item a {
	color: inherit;
	text-decoration: none;
	transition: color .2s ease;
}
.asem-post-toc__item a:hover {
	color: var(--wp--preset--color--primary);
}

/* ════════════════════════════════════════════════════════════════════════
 * CV PDF DOWNLOAD BUTTON — fires window.print(), the browser's print engine
 * uses our print.css to generate a beautiful A4 PDF when the visitor picks
 * "Save as PDF" from the print dialog.
 * ════════════════════════════════════════════════════════════════════════ */
.asem-cv-download {
	display: flex;
	justify-content: center;
	margin: 1.618rem 0;
}
.asem-cv-download__btn {
	display: inline-flex;
	align-items: center;
	gap: 0.618rem;
	padding: 0.85rem 1.618rem;
	border-radius: 999px;
	border: 1.5px solid var(--wp--preset--color--primary);
	background: linear-gradient(135deg, #D4AF37 0%, #B8862E 100%);
	color: #1A1F2C;
	font-weight: 600;
	font-size: 0.95rem;
	letter-spacing: 0.04em;
	cursor: pointer;
	box-shadow:
		0 0.382rem 1rem rgba(184,134,46,0.30),
		0 1px 0 rgba(255,255,255,0.4) inset;
	transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
}
.asem-cv-download__btn:hover {
	transform: translateY(-2px);
	background: linear-gradient(135deg, #FFD86B 0%, #D4AF37 100%);
	box-shadow:
		0 0.618rem 1.618rem rgba(184,134,46,0.45),
		0 1px 0 rgba(255,255,255,0.5) inset;
}
.asem-cv-download__btn:focus-visible {
	outline: 2px solid var(--wp--preset--color--primary);
	outline-offset: 3px;
}
@media print {
	.asem-cv-download { display: none !important; }
}

/* ════════════════════════════════════════════════════════════════════════
 * BOOK CONSULTATION CARD
 * Standalone gold card with calendar icon + CTA. Used for Cal.com/Calendly
 * embeds or as a WhatsApp fallback. Reads URL from the plugin settings.
 * ════════════════════════════════════════════════════════════════════════ */
.asem-booking__card {
	max-width: 720px;
	margin: 0 auto;
	text-align: center;
	background: var(--asem-card-bg);
	border: 1px solid rgba(184,134,46,0.32);
	border-radius: 1.618rem;
	padding: 2.058rem 1.618rem;
	box-shadow: var(--asem-card-shadow);
	position: relative;
	overflow: hidden;
}
.asem-booking__card::before {
	content: "";
	position: absolute;
	inset-inline: 0;
	top: 0;
	height: 2px;
	background: linear-gradient(90deg, transparent, rgba(184,134,46,0.95) 50%, transparent);
}
.asem-booking__icon {
	width: 4.236rem;
	height: 4.236rem;
	margin: 0 auto 1rem;
	border-radius: 50%;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background:
		radial-gradient(circle at 30% 30%, rgba(255,255,255,0.5) 0%, transparent 60%),
		linear-gradient(135deg, rgba(212,175,55,0.18), rgba(184,134,46,0.32));
	border: 1px solid rgba(184,134,46,0.45);
	color: var(--wp--preset--color--primary);
	box-shadow: inset 0 1px 0 rgba(255,255,255,0.4);
}
.asem-booking__title {
	font-family: var(--wp--preset--font-family--playfair, Georgia, serif);
	font-size: clamp(1.4rem, 3vw, 1.9rem);
	margin: 0 0 0.5rem;
	color: var(--wp--preset--color--text);
}
.asem-booking__sub {
	color: var(--wp--preset--color--muted);
	max-width: 540px;
	margin: 0 auto 1.618rem;
	line-height: 1.7;
	font-size: 0.95rem;
}
.asem-booking__btn {
	display: inline-flex;
	align-items: center;
	gap: 0.382rem;
	padding: 0.95rem 1.618rem;
	border-radius: 999px;
	background: linear-gradient(135deg, #D4AF37 0%, #B8862E 100%);
	color: #1A1F2C !important;
	font-weight: 700;
	font-size: 1rem;
	letter-spacing: 0.04em;
	text-decoration: none !important;
	border: 1.5px solid var(--wp--preset--color--primary);
	box-shadow:
		0 0.382rem 1rem rgba(184,134,46,0.30),
		0 1px 0 rgba(255,255,255,0.4) inset;
	transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
}
.asem-booking__btn:hover {
	transform: translateY(-2px);
	background: linear-gradient(135deg, #FFD86B 0%, #D4AF37 100%);
	box-shadow:
		0 0.618rem 1.618rem rgba(184,134,46,0.45),
		0 1px 0 rgba(255,255,255,0.5) inset;
}
.asem-booking__meta {
	margin: 1rem 0 0;
	font-size: 0.78rem;
	color: var(--wp--preset--color--muted);
	letter-spacing: 0.06em;
}

/* ════════════════════════════════════════════════════════════════════════
 * NEWSLETTER SIGNUP CARD
 * ════════════════════════════════════════════════════════════════════════ */
.asem-newsletter__card {
	max-width: 720px;
	margin: 0 auto;
	text-align: center;
	background: var(--asem-card-bg);
	border: 1px solid rgba(184,134,46,0.32);
	border-radius: 1.618rem;
	padding: 2.058rem 1.618rem;
	box-shadow: var(--asem-card-shadow);
	position: relative;
	overflow: hidden;
}
.asem-newsletter__card::before {
	content: "";
	position: absolute;
	inset-inline: 0;
	top: 0;
	height: 2px;
	background: linear-gradient(90deg, transparent, rgba(184,134,46,0.95) 50%, transparent);
}
.asem-newsletter__icon {
	width: 4.236rem;
	height: 4.236rem;
	margin: 0 auto 1rem;
	border-radius: 50%;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background:
		radial-gradient(circle at 30% 30%, rgba(255,255,255,0.5) 0%, transparent 60%),
		linear-gradient(135deg, rgba(212,175,55,0.18), rgba(184,134,46,0.32));
	border: 1px solid rgba(184,134,46,0.45);
	color: var(--wp--preset--color--primary);
}
.asem-newsletter__title {
	font-family: var(--wp--preset--font-family--playfair, Georgia, serif);
	font-size: clamp(1.4rem, 3vw, 1.9rem);
	margin: 0 0 0.5rem;
	color: var(--wp--preset--color--text);
}
.asem-newsletter__sub {
	color: var(--wp--preset--color--muted);
	max-width: 540px;
	margin: 0 auto 1.618rem;
	line-height: 1.7;
	font-size: 0.95rem;
}
.asem-newsletter__form {
	max-width: 480px;
	margin: 0 auto;
	text-align: start;
}
.asem-newsletter__label {
	display: block;
	font-size: 0.786rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--wp--preset--color--muted);
	margin: 0 0 0.5rem;
}
.asem-newsletter__row {
	display: flex;
	gap: 0.5rem;
	flex-wrap: wrap;
}
.asem-newsletter__input {
	flex: 1 1 200px;
	min-height: 44px;
	padding: 0.75rem 1rem;
	border-radius: 999px;
	border: 1px solid rgba(184,134,46,0.32);
	background: var(--wp--preset--color--bg-elevated);
	color: var(--wp--preset--color--text);
	font-size: 0.95rem;
	font-family: inherit;
	transition: border-color .2s ease, box-shadow .2s ease;
}
.asem-newsletter__input:focus {
	outline: none;
	border-color: var(--wp--preset--color--primary);
	box-shadow: 0 0 0 3px rgba(184,134,46,0.18);
}
.asem-newsletter__btn {
	min-height: 44px;
	padding: 0 1.618rem;
	border-radius: 999px;
	background: linear-gradient(135deg, #D4AF37 0%, #B8862E 100%);
	color: #1A1F2C;
	font-weight: 700;
	letter-spacing: 0.04em;
	border: 1.5px solid var(--wp--preset--color--primary);
	cursor: pointer;
	transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.asem-newsletter__btn:hover {
	transform: translateY(-1px);
	background: linear-gradient(135deg, #FFD86B 0%, #D4AF37 100%);
}
.asem-newsletter__status {
	margin: 1rem 0 0;
	padding: 0.5rem 0.85rem;
	border-radius: 0.618rem;
	font-size: 0.9rem;
	font-weight: 600;
	text-align: center;
}
.asem-newsletter__status--ok {
	background: rgba(40,201,63,0.12);
	color: #1d7a30;
	border: 1px solid rgba(40,201,63,0.35);
}
.asem-newsletter__status--err {
	background: rgba(255,95,87,0.12);
	color: #b13a30;
	border: 1px solid rgba(255,95,87,0.4);
}
.asem-newsletter__status--info {
	background: rgba(184,134,46,0.10);
	color: var(--wp--preset--color--primary);
	border: 1px solid rgba(184,134,46,0.32);
}
html[data-theme="dark"] .asem-newsletter__status--ok  { color: #58e173; }
html[data-theme="dark"] .asem-newsletter__status--err { color: #ff8b80; }
.asem-newsletter__meta {
	margin: 1.272rem 0 0;
	font-size: 0.75rem;
	color: var(--wp--preset--color--muted);
	letter-spacing: 0.04em;
}

/* ════════════════════════════════════════════════════════════════════════
 * RELATED POSTS — appears at the bottom of every single blog post
 * ════════════════════════════════════════════════════════════════════════ */
.asem-related {
	margin: 2.618rem 0 0;
	padding: 1.618rem;
	background: var(--asem-card-bg);
	border: 1px solid rgba(184,134,46,0.28);
	border-radius: 1rem;
	box-shadow: var(--asem-card-shadow);
	position: relative;
	overflow: hidden;
}
.asem-related::before {
	content: "";
	position: absolute;
	inset-inline: 0;
	top: 0;
	height: 2px;
	background: linear-gradient(90deg, transparent, rgba(184,134,46,0.85) 50%, transparent);
}
.asem-related__title {
	font-family: var(--wp--preset--font-family--playfair, Georgia, serif);
	font-size: 1.272rem;
	color: var(--wp--preset--color--primary);
	margin: 0 0 1rem;
	letter-spacing: 0.02em;
}
.asem-related__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 0.85rem;
	grid-template-columns: 1fr;
}
@media (min-width: 720px) {
	.asem-related__list { grid-template-columns: repeat(3, 1fr); }
}
.asem-related__item { margin: 0; }
.asem-related__link {
	display: flex;
	gap: 0.85rem;
	align-items: center;
	padding: 0.618rem;
	border-radius: 0.618rem;
	text-decoration: none;
	color: inherit;
	border: 1px solid transparent;
	transition: border-color .2s ease, background .2s ease, transform .2s ease;
}
@media (min-width: 720px) {
	.asem-related__link {
		flex-direction: column;
		align-items: stretch;
		gap: 0.5rem;
	}
}
.asem-related__link:hover {
	border-color: rgba(184,134,46,0.32);
	background: rgba(184,134,46,0.06);
	transform: translateY(-2px);
}
.asem-related__thumb {
	display: block;
	flex-shrink: 0;
	width: 4.236rem;
	height: 4.236rem;
	border-radius: 0.618rem;
	background-size: cover;
	background-position: center;
	background-color: rgba(184,134,46,0.10);
	color: var(--wp--preset--color--primary);
}
@media (min-width: 720px) {
	.asem-related__thumb {
		width: 100%;
		height: 0;
		padding-bottom: 56.25%;
	}
}
.asem-related__thumb--placeholder {
	display: inline-flex;
	align-items: center;
	justify-content: center;
}
.asem-related__body {
	display: flex;
	flex-direction: column;
	gap: 0.236rem;
	min-width: 0;
}
.asem-related__date {
	font-size: 0.72rem;
	color: var(--wp--preset--color--primary);
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}
.asem-related__name {
	font-family: var(--wp--preset--font-family--playfair, Georgia, serif);
	font-size: 0.95rem;
	font-weight: 600;
	line-height: 1.3;
	color: var(--wp--preset--color--text);
}
.asem-related__link:hover .asem-related__name {
	color: var(--wp--preset--color--primary);
}
