/*
Theme Name: Fitness Yoga Asana
Theme URI: https://fitnessyogaasana.com
Description: Yoga asana, surya namaskar, pranayama and mudra library with pose cards, a breath pacer and a surya namaskar calorie estimator. Pages are created by the kit's publish.py.
Version: 1.0.0
Requires at least: 6.2
Requires PHP: 7.4
Text Domain: fitnessyogaasana
License: GPLv2 or later
*/

@font-face { font-family: "Kanit"; font-weight: 500; font-display: swap; src: url(assets/fonts/kanit-latin-500-normal.woff2) format("woff2"); }
@font-face { font-family: "Kanit"; font-weight: 600; font-display: swap; src: url(assets/fonts/kanit-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: "Instrument Sans"; font-weight: 400; font-display: swap; src: url(assets/fonts/instrument-sans-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Instrument Sans"; font-weight: 600; font-display: swap; src: url(assets/fonts/instrument-sans-latin-600-normal.woff2) format("woff2"); }

:root {
	--ink: #1d1838;
	--ink-2: #2d2654;
	--dusk: #3b2a6b;
	--mist: #f4f1fb;
	--paper: #ffffff;
	--line: #e3ddf2;
	--muted: #5d5875;
	--coral: #ff6f59;
	--coral-d: #d9452f;
	--leaf: #2e7d6b;
	--leaf-l: #e3f3ee;
	--sun: #ffc857;
	--sun-l: #fff4d6;
	--r: 22px;
	--shadow: 0 1px 2px rgba(29, 24, 56, .06), 0 12px 32px -12px rgba(29, 24, 56, .22);
	--head: "Kanit", "Segoe UI", system-ui, sans-serif;
	--body: "Instrument Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--mist); color: var(--ink); font: 400 17px/1.65 var(--body); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--leaf); text-underline-offset: 3px; }
a:hover { color: var(--coral-d); }
h1, h2, h3 { font-family: var(--head); font-weight: 600; line-height: 1.15; letter-spacing: -.01em; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.45rem, 3vw, 1.9rem); }
h3 { font-size: 1.18rem; font-weight: 500; }
.wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; z-index: 50; background: var(--paper); padding: 8px 14px; border-radius: 10px; }

/* ------------------------------------------------------------ header */
.fy-top { background: var(--ink); color: #fff; position: sticky; top: 0; z-index: 20; }
.fy-top-in { display: flex; align-items: center; gap: 20px; min-height: 64px; }
.fy-brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font: 500 1.2rem/1 var(--head); white-space: nowrap; }
.fy-brand svg { width: 38px; height: 38px; flex: none; }
.fy-brand b { color: var(--coral); font-weight: 600; }
.fy-brand:hover { color: #fff; }
.fy-nav { display: flex; gap: 6px; margin-left: auto; overflow-x: auto; scrollbar-width: none; padding: 10px 0; }
.fy-nav::-webkit-scrollbar { display: none; }
.fy-nav a { color: #e9e5f7; text-decoration: none; font: 500 .95rem/1 var(--head); padding: 9px 14px; border-radius: 999px; white-space: nowrap; transition: background .2s; }
.fy-nav a:hover, .fy-nav a.on { background: rgba(255, 255, 255, .1); color: #fff; }
.fy-mat-edge { display: block; height: 5px; background: repeating-linear-gradient(90deg, var(--coral) 0 26px, var(--sun) 26px 30px); }
@media (max-width: 860px) {
	.fy-top-in { flex-wrap: wrap; gap: 0; padding-top: 10px; }
	.fy-nav { margin: 0 -16px; padding: 8px 16px 10px; width: calc(100% + 32px); }
}

/* -------------------------------------------------------------- hero */
.fy-hero { position: relative; color: #fff; background: radial-gradient(120% 90% at 85% 110%, rgba(255, 111, 89, .55), transparent 55%), radial-gradient(60% 60% at 10% 0%, rgba(255, 200, 87, .18), transparent 60%), linear-gradient(160deg, var(--ink) 0%, var(--dusk) 70%, #5b3a7a 100%); overflow: hidden; }
.fy-hero::before { content: ""; position: absolute; right: -120px; bottom: -160px; width: 520px; height: 520px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 200, 87, .55), rgba(255, 111, 89, .15) 60%, transparent 70%); }
.fy-hero-in { position: relative; display: grid; grid-template-columns: 1.25fr .9fr; gap: 48px; align-items: center; padding: 64px 0 96px; }
.fy-kicker { display: inline-block; font: 500 .85rem/1 var(--head); letter-spacing: .08em; text-transform: uppercase; color: var(--sun); margin: 0 0 14px; }
.fy-hero h1 { color: #fff; margin-bottom: 14px; }
.fy-hero .lead { font-size: 1.12rem; color: #e4def6; max-width: 36em; margin: 0 0 22px; }
.fy-hero-go { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; }
.fy-hero-go a { color: #fff; text-decoration: none; border: 1px solid rgba(255, 255, 255, .28); padding: 8px 14px; border-radius: 999px; font: 500 .9rem/1 var(--head); }
.fy-hero-go a:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.fy-hero-hills { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: 70px; fill: var(--mist); }
@media (max-width: 900px) { .fy-hero-in { grid-template-columns: 1fr; padding: 40px 0 84px; gap: 28px; } }

/* finder */
.fy-finder { position: relative; max-width: 560px; }
.fy-finder label { display: block; font: 500 .9rem/1 var(--head); color: #cfc7ee; margin-bottom: 8px; }
.fy-finder input { width: 100%; font: 400 1.05rem var(--body); padding: 16px 20px; border-radius: 16px; border: 0; background: #fff; color: var(--ink); box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .45); }
.fy-finder input:focus { outline: 3px solid var(--sun); }
.fy-finder-out { position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 10; list-style: none; margin: 0; padding: 6px; background: #fff; border-radius: 16px; box-shadow: var(--shadow); max-height: 340px; overflow: auto; }
.fy-finder-out a { display: flex; gap: 10px; align-items: baseline; padding: 10px 12px; border-radius: 10px; color: var(--ink); text-decoration: none; }
.fy-finder-out a:hover, .fy-finder-out a:focus { background: var(--mist); }
.fy-finder-out b { font: 500 1rem var(--head); }
.fy-finder-out small { color: var(--muted); font-size: .82rem; }
.fy-finder-out em { margin-left: auto; font-style: normal; font-size: .75rem; color: var(--leaf); background: var(--leaf-l); padding: 3px 8px; border-radius: 999px; white-space: nowrap; }

/* ----------------------------------------------------- breath pacer */
.fy-pacer { background: rgba(255, 255, 255, .96); color: var(--ink); border-radius: 28px; padding: 22px; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .6); }
.fy-flow .fy-pacer, .fy-flow .fy-surya { background: var(--paper); box-shadow: var(--shadow); margin: 28px 0; }
.fy-pacer h3, .fy-surya h3 { margin: 0 0 4px; font-size: 1.2rem; }
.fy-pacer .sub, .fy-surya .sub { margin: 0 0 14px; color: var(--muted); font-size: .9rem; }
.fy-pacer .ring { position: relative; width: min(240px, 70vw); aspect-ratio: 1; margin: 6px auto 14px; display: grid; place-items: center; }
.fy-pacer .ring::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px dashed var(--line); }
.fy-pacer .orb { position: absolute; inset: 18%; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #ffd6a8, var(--coral) 55%, var(--coral-d)); transform: scale(.62); transition-property: transform; transition-timing-function: ease-in-out; box-shadow: 0 18px 40px -14px rgba(217, 69, 47, .7); }
.fy-pacer .say { position: relative; text-align: center; color: #fff; font: 600 1.15rem/1.2 var(--head); text-shadow: 0 1px 6px rgba(0, 0, 0, .25); }
.fy-pacer .say small { display: block; font: 400 .85rem var(--body); opacity: .9; }
.fy-pacer .chips { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-bottom: 12px; }
.fy-pacer .chips button, .fy-surya .seg button { font: 500 .85rem var(--head); border: 1px solid var(--line); background: var(--mist); color: var(--ink); padding: 7px 12px; border-radius: 999px; cursor: pointer; }
.fy-pacer .chips button[aria-pressed="true"], .fy-surya .seg button[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.fy-pacer .go, .fy-surya .go { display: block; width: 100%; font: 600 1rem var(--head); border: 0; background: var(--leaf); color: #fff; padding: 13px; border-radius: 14px; cursor: pointer; }
.fy-pacer .go:hover, .fy-surya .go:hover { background: #24685a; }
.fy-pacer .meta { text-align: center; color: var(--muted); font-size: .85rem; margin: 10px 0 0; }

/* surya calculator */
.fy-surya { border-radius: 24px; padding: 22px; }
.fy-surya .grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 12px; }
.fy-surya label { display: block; font: 500 .85rem var(--head); color: var(--muted); }
.fy-surya input { width: 100%; font: 500 1.1rem var(--body); padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; margin-top: 4px; background: var(--mist); color: var(--ink); }
.fy-surya .seg { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.fy-surya output { display: block; margin-top: 14px; padding: 14px 16px; border-radius: 14px; background: var(--sun-l); font: 500 1.05rem/1.4 var(--head); }
.fy-surya output small { display: block; font: 400 .85rem var(--body); color: var(--muted); }
@media (max-width: 560px) { .fy-surya .grid { grid-template-columns: 1fr 1fr; } }

/* ----------------------------------------------------------- masthead */
.fy-mast { position: relative; padding: 30px 0 26px; background: linear-gradient(180deg, #ebe5fa, var(--mist)); overflow: hidden; }
.fy-mast::after { content: ""; position: absolute; right: -80px; top: -90px; width: 300px; height: 300px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 111, 89, .22), transparent 65%); }
.fy-mast-pranayama::after { background: radial-gradient(circle, rgba(46, 125, 107, .22), transparent 65%); }
.fy-mast-mudras::after { background: radial-gradient(circle, rgba(255, 200, 87, .35), transparent 65%); }
.fy-mast h1 { max-width: 22em; position: relative; z-index: 1; }
.fy-crumbs { font-size: .88rem; color: var(--muted); margin-bottom: 14px; display: flex; flex-wrap: wrap; gap: 6px; position: relative; z-index: 1; }
.fy-crumbs a { color: var(--muted); }
.fy-pills { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; position: relative; z-index: 1; }
.fy-pills a, .fy-pills span { font: 500 .82rem/1 var(--head); padding: 7px 12px; border-radius: 999px; background: var(--paper); color: var(--muted); text-decoration: none; border: 1px solid var(--line); }
.fy-pills a { background: var(--ink); color: #fff; border-color: var(--ink); }

/* -------------------------------------------------------- content flow */
.fy-flow { padding: 26px 0 10px; }
.fy-flow > section, .fy-flow > .fy-intro, .fy-flow > nav, .fy-flow > .fy-glance, .fy-flow > .fy-safety, .fy-flow > .fy-pacer, .fy-flow > .fy-surya { max-width: 820px; }
.fy-intro { font-size: 1.1rem; }
.fy-intro p:first-child { font-size: 1.16rem; }
.fy-glance { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0; margin: 22px 0 26px; background: var(--paper); border-radius: var(--r); box-shadow: var(--shadow); overflow: hidden; border-top: 6px solid var(--coral); }
.fy-glance div { padding: 14px 18px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.fy-glance dt { font: 500 .75rem/1 var(--head); text-transform: uppercase; letter-spacing: .07em; color: var(--muted); margin-bottom: 6px; }
.fy-glance dd { margin: 0; font: 500 1rem/1.3 var(--head); }
.fy-jump { display: flex; gap: 8px; overflow-x: auto; padding: 4px 0 14px; margin-bottom: 8px; scrollbar-width: thin; }
.fy-jump a { flex: none; font: 500 .85rem/1 var(--head); padding: 9px 13px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.fy-jump a:hover { border-color: var(--coral); }
.fy-sec { margin: 34px 0; scroll-margin-top: 90px; }
.fy-sec h2 { position: relative; padding-left: 26px; }
.fy-sec h2::before { content: ""; position: absolute; left: 0; top: .32em; width: 14px; height: 14px; border-radius: 50%; background: var(--coral); box-shadow: 0 0 0 5px rgba(255, 111, 89, .2); }
.fy-sec h3 { margin-top: 1.4em; }
.fy-sec ul { padding-left: 1.2em; }
.fy-sec li { margin: .35em 0; }
.fy-sec li::marker { color: var(--coral); }
/* numbered steps drawn as a breath timeline */
.fy-sec ol { list-style: none; counter-reset: st; padding: 0; margin: 1em 0; }
.fy-sec ol > li { counter-increment: st; position: relative; padding: 0 0 18px 54px; margin: 0; }
.fy-sec ol > li::before { content: counter(st); position: absolute; left: 0; top: -2px; width: 36px; height: 36px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font: 600 .95rem var(--head); }
.fy-sec ol > li::after { content: ""; position: absolute; left: 17px; top: 38px; bottom: 2px; width: 2px; background: var(--line); }
.fy-sec ol > li:last-child::after { display: none; }
.table-scroll { overflow-x: auto; margin: 1em 0; border-radius: 16px; box-shadow: var(--shadow); background: var(--paper); }
.fy-flow table { width: 100%; border-collapse: collapse; font-size: .96rem; min-width: 480px; }
.fy-flow th { background: var(--ink); color: #fff; text-align: left; font: 500 .9rem var(--head); padding: 11px 14px; }
.fy-flow td { padding: 11px 14px; border-top: 1px solid var(--line); vertical-align: top; }
.fy-flow tr:nth-child(even) td { background: #faf8fe; }
.fy-flow caption { caption-side: bottom; font-size: .82rem; color: var(--muted); padding: 8px; }
.note, .tip { border-radius: 16px; padding: 14px 18px; margin: 1.2em 0; }
.note { background: var(--sun-l); border-left: 5px solid var(--sun); }
.tip { background: var(--leaf-l); border-left: 5px solid var(--leaf); }
.note p, .tip p { margin: .3em 0; }
.fy-safety { display: flex; gap: 14px; align-items: flex-start; background: var(--paper); border: 1px solid #cfe7df; border-radius: var(--r); padding: 16px 18px; margin: 30px 0; }
.fy-safety svg { width: 30px; height: 30px; flex: none; color: var(--leaf); }
.fy-safety p { margin: 0; font-size: .95rem; }
.fy-ad { margin: 26px 0; text-align: center; }

/* --------------------------------------------------- pose cards (mats) */
.fy-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); gap: 22px; margin: 22px 0 10px; }
.fy-card { margin: 0; background: var(--paper); border-radius: var(--r); box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column; scroll-margin-top: 90px; }
.fy-card .zoom { display: block; position: relative; background: #ece6f8; }
.fy-card .zoom img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.fy-card .zoom::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 7px; background: repeating-linear-gradient(90deg, var(--coral) 0 22px, #ff8f7d 22px 26px); }
.fy-card figcaption { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.fy-stats { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; }
.fy-stats div { background: var(--mist); border-radius: 10px; padding: 6px 10px; }
.fy-stats dt { font: 500 .66rem/1 var(--head); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 3px; }
.fy-stats dd { margin: 0; font: 500 .88rem/1.2 var(--head); }
.fy-card .cap { margin: 0; font-size: .96rem; }
.fy-card .cue { margin: auto 0 0; font-size: .9rem; background: var(--leaf-l); color: #1f5a4d; border-radius: 12px; padding: 9px 12px; }
.fy-card .cue b { font-family: var(--head); font-weight: 500; }

/* ------------------------------------------------------------- tiles */
.fy-row { margin: 40px 0; }
.fy-row-h { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.fy-row-h a { font: 500 .92rem var(--head); white-space: nowrap; }
.fy-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(46%, 250px), 1fr)); gap: 16px; }
.fy-tile { display: flex; flex-direction: column; background: var(--paper); border-radius: 18px; overflow: hidden; text-decoration: none; color: var(--ink); box-shadow: var(--shadow); transition: transform .2s; }
.fy-tile:hover { transform: translateY(-3px); color: var(--ink); }
.fy-tile img, .fy-tile-ph { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; background: linear-gradient(135deg, #e9e2fb, #ffe1d9); display: block; }
.fy-tile span { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 4px; }
.fy-tile b { font: 500 1.02rem/1.25 var(--head); }
.fy-tile small { color: var(--muted); font-size: .84rem; line-height: 1.4; }
.fy-tiles-sm { grid-template-columns: repeat(auto-fill, minmax(min(46%, 200px), 1fr)); }
.fy-tiles-sm small { display: none; }
.fy-next { margin: 40px 0; }

/* -------------------------------------------------------- tables of pages */
.fy-index { margin: 24px 0; }
.fy-index td:first-child { font-family: var(--head); font-weight: 500; white-space: nowrap; }

/* --------------------------------------------------------------- FAQ */
.fy-faq details { background: var(--paper); border-radius: 16px; margin: 10px 0; box-shadow: 0 1px 2px rgba(29, 24, 56, .06); }
.fy-faq summary { list-style: none; cursor: pointer; padding: 16px 52px 16px 18px; position: relative; }
.fy-faq summary::-webkit-details-marker { display: none; }
.fy-faq summary h3 { margin: 0; font-size: 1.04rem; }
.fy-faq summary::after { content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); width: 28px; height: 28px; border-radius: 50%; background: var(--mist); display: grid; place-items: center; font: 500 1.2rem/1 var(--head); color: var(--coral-d); }
.fy-faq details[open] summary::after { content: "\2212"; }
.fy-faq details > div { padding: 0 18px 16px; }

/* ------------------------------------------------------- plain pages */
.fy-plain { padding: 30px 0 50px; }
.fy-page { background: var(--paper); border-radius: var(--r); padding: clamp(20px, 4vw, 44px); box-shadow: var(--shadow); max-width: 860px; }
.fy-post-meta { color: var(--muted); }
.fy-post-img { border-radius: 16px; margin: 10px 0 20px; }
.fy-post-list { padding-left: 1.2em; }
.fy-post-cards { list-style: none; padding: 0; display: grid; gap: 14px; margin-top: 20px; max-width: 860px; }
.fy-post-cards a { display: flex; flex-direction: column; gap: 4px; background: var(--paper); padding: 18px 20px; border-radius: 18px; color: var(--ink); text-decoration: none; box-shadow: var(--shadow); }
.fy-post-cards b { font: 500 1.1rem var(--head); }
.fy-post-cards small { color: var(--muted); }
.fy-pager { margin: 24px 0; }
.fy-pager .page-numbers { display: inline-block; padding: 8px 12px; border-radius: 10px; background: var(--paper); margin-right: 4px; }

/* ------------------------------------------------------------ footer */
.fy-foot { position: relative; margin-top: 60px; background: #e7e0f7; color: var(--ink); padding: 0 0 26px; }
.fy-foot-sun { position: absolute; left: 0; right: 0; top: -60px; width: 100%; height: 61px; color: #e7e0f7; }
.fy-foot-in { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; padding: 26px 0 10px; }
.fy-foot-brand { font: 600 1.35rem var(--head); margin: 0 0 8px; }
.fy-foot-about p:last-child { color: var(--muted); font-size: .95rem; max-width: 30em; }
.fy-foot-col { display: flex; flex-direction: column; gap: 6px; }
.fy-foot-col a { color: var(--ink); text-decoration: none; font-size: .95rem; }
.fy-foot-col a:hover { color: var(--coral-d); }
.fy-foot-h { font: 500 .8rem var(--head); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 0 0 4px; }
.fy-legal { font-size: .82rem; color: var(--muted); border-top: 1px solid #d5cbef; padding-top: 16px; margin-top: 16px; }
@media (max-width: 760px) { .fy-foot-in { grid-template-columns: 1fr 1fr; } .fy-foot-about { grid-column: 1 / -1; } }

/* ------------------------------------------------------------ viewer */
.fy-view { border: 0; padding: 0; width: 100vw; height: 100vh; max-width: none; max-height: none; background: rgba(20, 16, 40, .96); color: #fff; }
.fy-view::backdrop { background: rgba(20, 16, 40, .8); }
.fy-view .bar { position: absolute; top: 0; left: 0; right: 0; display: flex; justify-content: space-between; padding: 14px 18px; z-index: 2; }
.fy-view .close, .fy-view .nav { background: rgba(255, 255, 255, .12); color: #fff; border: 0; border-radius: 999px; padding: 10px 16px; font: 500 .95rem var(--head); cursor: pointer; }
.fy-view .nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; font-size: 1.3rem; }
.fy-view .prev { left: 12px; }
.fy-view .next { right: 12px; }
.fy-view .stage { position: absolute; inset: 60px 0 120px; display: grid; place-items: center; }
.fy-view .stage img { max-width: 94vw; max-height: 100%; object-fit: contain; border-radius: 12px; }
.fy-view .info { position: absolute; left: 0; right: 0; bottom: 0; padding: 14px 20px 20px; text-align: center; }
.fy-view .info p { margin: 0 auto 10px; max-width: 760px; color: #ddd6f3; font-size: .95rem; }
.fy-view .act { display: flex; justify-content: center; gap: 10px; }
.fy-view .act a { color: #fff; background: rgba(255, 255, 255, .14); padding: 8px 14px; border-radius: 999px; text-decoration: none; font-size: .9rem; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
