/*
 * Kit base — neutral design driven by tokens. Colours and fonts come from YogaFX Settings → Design
 * (printed as --yfx-* custom properties); the values below are the fallbacks.
 */
:root {
	--yfx-primary: #c62828;
	--yfx-primary-dark: #8e1c1c;
	--yfx-dark: #141414;
	--yfx-light: #f5f2ed;
	--yfx-text: #1f1f1f;
	--yfx-muted: #5f5b55;
	--yfx-border: #e4e0d9;
	--yfx-radius: 10px;
	--yfx-container: 1200px;
	--yfx-font-heading: Georgia, "Times New Roman", serif;
	--yfx-font-body: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	/* Aliases used by shared components (blog.css, author box, promo). */
	--color-yogafx-red: var(--yfx-primary);
	--color-yogafx-darkred: var(--yfx-primary-dark);
	--color-yogafx-black: var(--yfx-dark);
	--color-yogafx-warmgray: var(--yfx-light);
	--color-foreground: var(--yfx-text);
	--color-muted-foreground: var(--yfx-muted);
	--color-border: var(--yfx-border);
	--color-background: #fff;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; font-family: var(--yfx-font-body); color: var(--yfx-text); background: #fff; line-height: 1.65; }
img { max-width: 100%; height: auto; }
a { color: var(--yfx-primary); }
a:hover { color: var(--yfx-primary-dark); }
h1, h2, h3, h4 { font-family: var(--yfx-font-heading); line-height: 1.2; color: var(--yfx-text); }
.font-display { font-family: var(--yfx-font-heading); }
[hidden] { display: none !important; }

.yfx-button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0.7rem 1.4rem; border-radius: var(--yfx-radius); background: var(--yfx-primary); color: #fff; font-weight: 700; text-decoration: none; transition: background .2s ease; }
.yfx-button:hover { background: var(--yfx-primary-dark); color: #fff; }

/* ---- header */
.yfx-header { position: fixed; inset: 0 0 auto 0; z-index: 50; transition: background .3s ease, box-shadow .3s ease; }
.yfx-header.is-solid { background: var(--yfx-dark); box-shadow: 0 4px 18px rgb(0 0 0 / .15); }
.yfx-header.is-transparent { background: transparent; }
.yfx-header__inner { max-width: var(--yfx-container); margin: 0 auto; padding: 0 1.25rem; height: 68px; display: flex; align-items: center; gap: 1.5rem; }
.yfx-header__brand { display: flex; align-items: center; color: #fff; font-family: var(--yfx-font-heading); font-size: 1.35rem; text-decoration: none; }
.yfx-header__brand img { height: 44px; width: auto; }
.yfx-header__menu { display: none; margin-left: auto; }
.yfx-menu, .yfx-menu__sub, .yfx-drawer__menu, .yfx-drawer__menu__sub, .yfx-footer__menu, .yfx-footer__menu__sub { list-style: none; margin: 0; padding: 0; }
.yfx-menu { display: flex; gap: 1.25rem; }
.yfx-menu a, .yfx-menu span { color: rgb(255 255 255 / .85); text-decoration: none; font-size: .95rem; padding: .5rem 0; display: block; }
.yfx-menu a:hover, .yfx-menu a[aria-current] { color: #fff; }
.yfx-menu .has-children { position: relative; }
.yfx-menu__sub { position: absolute; top: 100%; right: 0; min-width: 240px; background: var(--yfx-dark); border-radius: var(--yfx-radius); padding: .5rem 0; box-shadow: 0 12px 30px rgb(0 0 0 / .25); opacity: 0; visibility: hidden; transform: translateY(6px); transition: all .2s ease; }
.yfx-menu .has-children:hover .yfx-menu__sub, .yfx-menu .has-children:focus-within .yfx-menu__sub { opacity: 1; visibility: visible; transform: none; }
.yfx-menu__sub a { padding: .55rem 1.1rem; }
.yfx-header__cta { display: none; }
.yfx-header__toggle { margin-left: auto; width: 44px; height: 44px; border-radius: var(--yfx-radius); border: 1px solid rgb(255 255 255 / .2); background: transparent; color: #fff; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.yfx-drawer { position: fixed; inset: 68px 0 0 0; overflow-y: auto; background: var(--yfx-dark); padding: 1rem 1.25rem 2rem; }
.yfx-drawer__menu a, .yfx-drawer__menu span { display: block; color: #fff; text-decoration: none; padding: .85rem 0; border-bottom: 1px solid rgb(255 255 255 / .1); }
.yfx-drawer__menu__sub { padding-left: 1rem; }
.yfx-drawer .yfx-button { margin-top: 1.25rem; width: 100%; }
@media (min-width: 1024px) {
	.yfx-header__inner { height: 80px; }
	.yfx-header__menu { display: block; }
	.yfx-header__cta { display: inline-flex; }
	.yfx-header__toggle { display: none; }
	.yfx-drawer { display: none !important; }
}

/* ---- footer */
.yfx-footer { background: var(--yfx-dark); color: rgb(255 255 255 / .8); padding: 3rem 1.25rem 6rem; }
.yfx-footer__inner { max-width: var(--yfx-container); margin: 0 auto; display: grid; gap: 2rem; }
.yfx-footer__about img { height: 48px; width: auto; }
.yfx-footer__about p { font-size: .95rem; max-width: 34rem; }
.yfx-footer__badges { height: auto !important; max-width: 28rem; }
.yfx-footer__title { font-family: var(--yfx-font-heading); color: #fff; font-size: 1rem; margin: 0 0 .75rem; }
.yfx-footer__menu a { color: rgb(255 255 255 / .8); text-decoration: none; line-height: 2; font-size: .95rem; }
.yfx-footer__menu a:hover { color: #fff; }
.yfx-footer__social { display: flex; gap: .6rem; }
.yfx-footer__social a { width: 40px; height: 40px; border-radius: 999px; border: 1px solid rgb(255 255 255 / .25); color: #fff; display: inline-flex; align-items: center; justify-content: center; }
.yfx-footer__social a:hover { background: var(--yfx-primary); border-color: var(--yfx-primary); }
.yfx-footer__bottom { max-width: var(--yfx-container); margin: 2rem auto 0; padding-top: 1.25rem; border-top: 1px solid rgb(255 255 255 / .1); display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem; font-size: .8rem; }
.yfx-footer__bottom p { margin: 0; }
@media (min-width: 768px) { .yfx-footer__inner { grid-template-columns: 2fr 1fr 1fr 1fr; } .yfx-footer { padding-bottom: 3rem; } }

/* ---- back to top, sticky bar (main.js toggles aria-hidden) */
.yfx-top { position: fixed; right: 1rem; bottom: 5.5rem; z-index: 50; width: 46px; height: 46px; border-radius: 999px; border: 0; background: var(--yfx-primary); color: #fff; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; transition: opacity .3s ease; }
.yfx-top[aria-hidden="true"], .yfx-bar[aria-hidden="true"] { opacity: 0; pointer-events: none; }
.yfx-bar { position: fixed; inset: auto 0 0 0; z-index: 40; background: rgb(20 20 20 / .95); color: #fff; padding: .6rem 1rem calc(.6rem + env(safe-area-inset-bottom)); transition: opacity .3s ease; }
.yfx-bar__inner { max-width: var(--yfx-container); margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.yfx-bar__text { font-size: .8rem; min-width: 0; }
.yfx-bar__long { display: none; }
@media (min-width: 640px) { .yfx-bar__short { display: none; } .yfx-bar__long { display: inline; } .yfx-bar__text { font-size: .95rem; } }

/* ---- page content defaults (core blocks) */
.wp-site-blocks > main { padding-top: 68px; }
.home .wp-site-blocks > main, .yfx-has-hero .wp-site-blocks > main { padding-top: 0; }
.entry-content > *:not(.alignfull) { max-width: var(--yfx-container); margin-left: auto; margin-right: auto; padding-left: 1.25rem; padding-right: 1.25rem; }
.entry-content > .alignfull { max-width: none; }

/* ---- articles (shared article blocks on the base kit) */
.article-content { max-width: 896px; margin: 0 auto; padding: 0 1.25rem; }
.article-content p, .article-content li { color: #333; }
.article-content figure img { border-radius: var(--yfx-radius); width: 100%; height: auto; }
.article-content figcaption { color: var(--yfx-muted); font-style: italic; }
.article-content .table-of-contents { background: var(--yfx-light); border-left: 4px solid var(--yfx-primary); border-radius: var(--yfx-radius); padding: 1.25rem 1.5rem; margin: 2rem 0; }
.article-content details { border: 1px solid var(--yfx-border); border-radius: var(--yfx-radius); padding: 1rem 1.25rem; margin: 1rem 0; background: #fafaf9; }
.article-content details summary { cursor: pointer; font-weight: 700; }
.article-content table { width: 100%; border-collapse: collapse; }
.article-content th, .article-content td { border: 1px solid var(--yfx-border); padding: .75rem; text-align: left; }
.article-content th { background: var(--yfx-dark); color: #fff; }

/* ---- page hero (articles: YogaFX Settings → Blog → Article header; archives) */
.yfx-hero { position: relative; overflow: hidden; background: var(--yfx-dark); color: #fff; }
.yfx-hero__inner { position: relative; z-index: 2; max-width: calc(var(--yfx-container) + 2 * var(--yfx-gutter, 1.25rem)); margin: 0 auto; padding: 56px var(--yfx-gutter, 1.25rem); display: grid; gap: 2rem; align-items: center; }
.yfx-hero__text { max-width: 760px; }
.yfx-hero.is-align-center .yfx-hero__text { margin: 0 auto; text-align: center; }
.yfx-hero.is-align-right .yfx-hero__text { margin-left: auto; text-align: right; }
.yfx-hero__eyebrow { margin: 0 0 1rem; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.yfx-hero__eyebrow a, .yfx-hero__eyebrow { color: #fff; text-decoration: none; }
.yfx-hero__eyebrow > a, .yfx-hero__eyebrow:not(:has(a)) { display: inline-block; padding: .35rem .8rem; border-radius: 999px; background: var(--yfx-primary); }
.yfx-hero__eyebrow:has(a) { padding: 0; background: none; }
.yfx-hero__title { margin: 0; color: #fff; font-size: clamp(30px, 2.4vw + 16px, 50px); line-height: 1.12; letter-spacing: -0.015em; }
.yfx-hero__desc { margin: 1.1rem 0 0; color: rgb(255 255 255 / .86); font-size: clamp(16px, .4vw + 14px, 19px); line-height: 1.6; }
.yfx-hero.is-align-center .yfx-hero__desc { margin-left: auto; margin-right: auto; }
.yfx-hero.is-hero-bg .yfx-hero__inner { min-height: 380px; padding-top: 72px; padding-bottom: 72px; }
.yfx-hero__bg { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; object-fit: cover; }
.yfx-hero.is-hero-bg::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgb(0 0 0 / .82) 0%, rgb(0 0 0 / .55) 55%, rgb(0 0 0 / .3) 100%); }
.yfx-hero.is-hero-bg.is-align-center::after { background: rgb(0 0 0 / .62); }
.yfx-hero.is-hero-bg.is-align-right::after { background: linear-gradient(270deg, rgb(0 0 0 / .82) 0%, rgb(0 0 0 / .55) 55%, rgb(0 0 0 / .3) 100%); }
.yfx-hero__media { margin: 0; }
.yfx-hero__media img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--yfx-radius); box-shadow: 0 20px 50px rgb(0 0 0 / .35); }
@media (min-width: 900px) {
	.yfx-hero.is-hero-bg .yfx-hero__inner { min-height: 460px; }
	.yfx-hero.is-hero-right .yfx-hero__inner, .yfx-hero.is-hero-left .yfx-hero__inner { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 4rem; padding-top: 72px; padding-bottom: 72px; }
	.yfx-hero.is-hero-left .yfx-hero__media { order: -1; }
	.yfx-hero.is-hero-right .yfx-hero__text, .yfx-hero.is-hero-left .yfx-hero__text { margin: 0; max-width: none; }
}
.yfx-article-main.has-hero { padding-top: 48px; }
