/*
 * The home page (index.php, header-hero-home.php, parts/home-*.php, text from seo/home.html).
 * After the banner, one learner walks through London: the four levels from a summer morning to the night of her
 * graduation, then the door to all courses. Colours come from ye-tokens.css; the pictures from assets/img/scenes/.
 */

/* Nothing on this page may widen it sideways: an RTL phone page wider than the screen can open on empty space.
   overflow-x on body alone does not stop that; clip on html and body does (hidden for older browsers). */
html { overflow-x: clip; }
body.home { overflow-x: hidden; overflow-x: clip; }

.yh {
	--yh-sky0: #fbf7f1;
	--yh-sky1: #f0f5f5;
	--yh-sky2: #fcf3e8;
	--yh-sky3: #f0e6f1;
	--yh-night: var(--ye-night);
	--yh-night2: #2b2463;
	--yh-road: rgba(111, 63, 192, .3);
	color: var(--ye-text);
}
.yh *,
.yh *::before,
.yh *::after { box-sizing: border-box; }
.yh a { text-decoration: none; }
.yh h2,
.yh h3 { margin: 0; color: var(--ye-ink); font-weight: var(--ye-w-display); line-height: 1.55; }
.yh h2 { font-size: 32px; }
.yh-path,
.yh-facts,
.yh-numbers { margin: 0; padding: 0; list-style: none; }

/* ---------- Banner: same band, picture, pencil and words; softer shadow and weights, a little light behind Yalda ---------- */
/* The discount banner (header-hero-home-countdown.php) keeps its own colours; like the banner, it meets the path with no gap. */
.head-hero.head-hero-cd { margin-bottom: 0; }
.head-hero.ye-hero { margin-bottom: 0; background: radial-gradient(60% 120% at 74% 42%, #5413b4 0%, rgba(84, 19, 180, 0) 62%), var(--ye-brand); font-weight: var(--ye-w-bold); }
.head-hero.ye-hero strong { font-weight: var(--ye-w-display); }
.head-hero.ye-hero .hero-text { padding-top: 52px; text-shadow: 0 1px 2px rgba(20, 0, 52, .28); }
.hero-text .hero-seo-title { margin: 0 0 12px; color: #fff; font-size: 18px; font-weight: var(--ye-w-semibold); line-height: 1.7; text-shadow: none; opacity: .88; }
.head-hero.ye-hero .dn { margin-bottom: 26px; }
.head-hero.ye-hero .dn p { margin: 0; }
.head-hero.ye-hero .col-md-4 img { filter: drop-shadow(0 18px 34px rgba(16, 0, 46, .35)); }
.head-hero a.ye-hero-new { display: inline-flex; align-items: center; gap: 10px; max-width: 100%; margin: 0 0 14px; padding: 4px 6px 4px 14px; border: 1px solid rgba(255, 255, 255, .22); border-radius: 999px; background: rgba(255, 255, 255, .1); color: #fff; font-size: 15px; font-weight: var(--ye-w-semibold); line-height: 1.8; text-decoration: none; text-shadow: none; transition: background .15s ease; }
.head-hero a.ye-hero-new:hover,
.head-hero a.ye-hero-new:focus { background: rgba(255, 255, 255, .18); color: #fff; text-decoration: none; }
.ye-hero-new__tag { flex: 0 0 auto; padding: 0 10px; border-radius: 999px; background: var(--ye-sun); color: var(--ye-sun-ink); font-size: 13px; font-weight: var(--ye-w-heading); }
.ye-hero-new__text { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.head-hero a.ye-hero-new i { display: inline; flex: 0 0 auto; width: auto; height: auto; margin: 0; padding: 0 !important; border: 0; background: none; font-size: 17px; opacity: .8; }
.ye-hero-actions { display: flex; flex-wrap: wrap; gap: 10px 12px; }
.head-hero .ye-hero-actions .btn,
.head-hero .ye-hero-actions .userbtns { margin: 0; }
.head-hero .ye-hero-actions .btn { font-weight: var(--ye-w-bold); text-shadow: none; }
/* «نمی‌دونی از کجا شروع کنی؟» under the buttons: the guide «از صفر تا صد». */
.head-hero a.ye-hero-path { display: inline-flex; align-items: center; gap: 8px; max-width: 100%; margin-top: 16px; color: rgba(255, 255, 255, .9); font-size: 15.5px; font-weight: var(--ye-w-semibold); line-height: 1.8; text-decoration: none; text-shadow: none; }
.head-hero a.ye-hero-path strong { color: var(--ye-sun); font-weight: var(--ye-w-bold); border-bottom: 1px dashed currentColor; }
.head-hero a.ye-hero-path i { display: inline; flex: 0 0 auto; width: auto; height: auto; margin: 0; padding: 0 !important; border: 0; background: none; color: var(--ye-sun); font-size: 16px; }
.head-hero a.ye-hero-path:hover,
.head-hero a.ye-hero-path:focus { color: #fff; text-decoration: none; }
.head-hero a.ye-hero-path:hover strong { border-bottom-style: solid; }
.head-hero a.ye-hero-new:focus-visible,
.head-hero a.ye-hero-path:focus-visible,
.head-hero .ye-hero-actions .btn:focus-visible { outline: 3px solid var(--ye-sun); outline-offset: 3px; }

/* ---------- Shared pieces ---------- */
.yh-section { position: relative; padding: 96px 0; }
.yh-head { max-width: 680px; }
.yh-head--center { margin: 0 auto; text-align: center; }
.yh-head--row { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; max-width: none; }
.yh-head p { margin: 12px 0 0; color: var(--ye-muted); font-size: 17px; line-height: 2.05; }
.yh-head p strong { color: var(--ye-text); font-weight: var(--ye-w-medium); }
.yh-head p a { color: var(--ye-accent); font-weight: var(--ye-w-medium); }
.yh-head p a:hover { color: var(--ye-accent-strong); text-decoration: underline; text-underline-offset: 5px; }
.yh-head__more { margin-top: 22px; }
/* «راهنمای کامل از صفر تا صد» under «از کجا شروع کنم؟»: the main way on, so it is the strongest button of the part. */
.yh-btn--guide,
.yh-btn--guide:visited { min-height: 58px; padding: 0 30px; background: var(--ye-fill-deep); color: #fff; font-size: 17px; font-weight: var(--ye-w-bold); box-shadow: 0 12px 28px rgba(67, 22, 143, .22); }
.yh-btn--guide .fa-map-signs { color: var(--ye-sun); font-size: 19px; }
.yh-btn--guide:hover,
.yh-btn--guide:focus { background: var(--ye-fill-hover); color: #fff; box-shadow: 0 14px 32px rgba(67, 22, 143, .28); }
.yh-btn--guide:focus-visible { outline: 3px solid var(--ye-sun); outline-offset: 3px; }
.yh-head .yh-head__alt { margin: 12px 0 0; font-size: 14.5px; line-height: 1.9; }
.yh-kicker { display: inline-flex; align-items: center; gap: 7px; margin: 0 0 8px; color: var(--ye-accent); font-size: 14.5px; font-weight: var(--ye-w-medium); line-height: 1.7; }
.yh-kicker--light { color: var(--ye-sun); }
.yh-link,
.yh-link:visited { display: inline-flex; align-items: center; gap: 8px; color: var(--ye-deep); font-size: 15.5px; font-weight: var(--ye-w-medium); white-space: nowrap; }
.yh-link:hover,
.yh-link:focus { color: var(--ye-accent); }
.yh-btn,
.yh-btn:visited { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 0 24px; border: 1px solid transparent; border-radius: 14px; font-size: 16px; font-weight: var(--ye-w-semibold); line-height: 1.2; white-space: nowrap; transition: background .18s ease, border-color .18s ease, box-shadow .18s ease; }
.yh-btn--sun,
.yh-btn--sun:visited { background: var(--ye-sun); color: var(--ye-sun-ink); box-shadow: 0 8px 22px rgba(243, 203, 116, .16); }
.yh-btn--sun:hover,
.yh-btn--sun:focus { background: var(--ye-sun-soft); color: var(--ye-sun-ink); }
.yh-btn--line,
.yh-btn--line:visited { border-color: rgba(255, 255, 255, .34); background: rgba(255, 255, 255, .06); color: #fff; }
.yh-btn--line:hover,
.yh-btn--line:focus { border-color: rgba(255, 255, 255, .6); background: rgba(255, 255, 255, .12); color: #fff; }
/* A quiet button on the page (the library): a thin line; the strong colours stay for buying and continuing. */
.yh-btn--soft,
.yh-btn--soft:visited { border-color: var(--ye-border-accent); background: var(--ye-surface); color: var(--ye-deep); }
.yh-btn--soft:hover,
.yh-btn--soft:focus { background: var(--ye-tint); color: var(--ye-deep); }
.yh a:focus-visible,
.yh summary:focus-visible { outline: 3px solid var(--ye-accent); outline-offset: 3px; border-radius: 12px; }

/* ---------- Live group classes, right under the banner (Global only; parts/home-live-classes.php) ----------
   A calm lilac band: «ثبت‌نام باز است», Yalda's words about the live classes and the way to all of them, then the
   classes open for sign-up with their own posters. Two and a bit in view to swipe on a tablet, one and a bit on a phone. */
.yh-live { position: relative; padding: 64px 0 60px; border-bottom: 1px solid var(--ye-border); background: var(--ye-tint-soft); }
.yh-live__in { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "head all" "list list"; align-items: end; column-gap: 24px; }
.yh-live__head { grid-area: head; max-width: 720px; }
.yh-live__head p { margin: 10px 0 0; color: var(--ye-muted); font-size: 16.5px; line-height: 2; }
.yh-live__open { display: inline-flex; align-items: center; gap: 9px; margin: 0 0 12px; padding: 1px 14px; border: 1px solid var(--ye-green-line); border-radius: 999px; background: var(--ye-green-tint); color: var(--ye-green); font-size: 14px; font-weight: var(--ye-w-medium); line-height: 1.9; }
.yh-live__dot { position: relative; flex: 0 0 auto; width: 8px; height: 8px; border-radius: 50%; background: var(--ye-buy); }
.yh-live__all,
.yh-live__all:visited { grid-area: all; display: inline-flex; align-items: center; justify-content: center; gap: 8px; margin-bottom: 8px; color: var(--ye-deep); font-size: 15.5px; font-weight: var(--ye-w-medium); line-height: 1.6; white-space: nowrap; }
.yh-live__all:hover,
.yh-live__all:focus { color: var(--ye-accent-strong); text-decoration: underline; text-underline-offset: 6px; }
.yh-live__list { grid-area: list; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 30px; }
.yh-live__in--2 .yh-live__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.yh-live__in--1 .yh-live__list { grid-template-columns: minmax(0, 1fr); max-width: 860px; }
.yh-live-card { min-width: 0; }
.yh-live-card__link,
.yh-live-card__link:visited { display: flex; flex-direction: column; height: 100%; overflow: hidden; border: 1px solid var(--ye-border); border-radius: 20px; background: var(--ye-surface); color: var(--ye-text); transition: border-color .2s ease, box-shadow .2s ease; }
.yh-live-card__link:hover,
.yh-live-card__link:focus { border-color: var(--ye-border-accent); box-shadow: var(--ye-shadow); color: var(--ye-text); }
.yh-live-card__cover { display: block; aspect-ratio: 3 / 2; overflow: hidden; background: var(--ye-tint); }
.yh-live-card__image { display: block; width: 100%; height: 100%; object-fit: cover; }
.yh-live-card__body { display: flex; flex: 1 1 auto; flex-direction: column; gap: 6px; padding: 18px 20px; }
.yh .yh-live-card__title { font-size: 19px; font-weight: var(--ye-w-heading); line-height: 1.6; }
.yh-live-card__line { display: -webkit-box; overflow: hidden; color: var(--ye-muted); font-size: 14.5px; line-height: 1.95; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.yh-live-card__foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 14px; border-top: 1px solid var(--ye-border); }
.yh-live-card__price { min-width: 0; color: var(--ye-ink); font-size: 17px; font-weight: var(--ye-w-semibold); line-height: 1.6; }
.yh-live-card__price del { display: block; color: var(--ye-faint); font-size: 13px; font-weight: var(--ye-w-body); }
.yh-live-card__price ins { background: transparent; text-decoration: none; }
.yh-live-card__go { display: inline-flex; flex: 0 0 auto; align-items: center; gap: 7px; color: var(--ye-deep); font-size: 15px; font-weight: var(--ye-w-medium); line-height: 1.6; }
.yh-live-card__link:hover .yh-live-card__go { color: var(--ye-accent-strong); }
/* One or two open classes on a wide screen: each poster beside its words, so the band stays as low as with three. */
@media (min-width: 768px) {
	.yh-live__in--1 .yh-live-card__link { display: grid; grid-template-columns: minmax(0, 46%) minmax(0, 1fr); }
	.yh-live__in--1 .yh-live-card__cover { width: 100%; height: 100%; aspect-ratio: auto; }
	.yh-live__in--1 .yh-live-card__body { padding: 22px 24px; }
}
@media (min-width: 992px) {
	.yh-live__in--2 .yh-live-card__link { display: grid; grid-template-columns: minmax(0, 46%) minmax(0, 1fr); }
	.yh-live__in--2 .yh-live-card__cover { width: 100%; height: 100%; aspect-ratio: auto; }
}
@media (max-width: 991px) {
	.yh-live__list { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 46%; gap: 16px; margin: 26px -15px 0; padding: 4px 15px 10px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding: 0 15px; scrollbar-width: none; }
	.yh-live__list::-webkit-scrollbar { display: none; }
	.yh-live-card { scroll-snap-align: start; }
	.yh-live__in--2 .yh-live__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.yh-live__in--1 .yh-live__list { grid-template-columns: minmax(0, 1fr); }
	.yh-live__in--2 .yh-live__list,
	.yh-live__in--1 .yh-live__list { grid-auto-flow: row; margin: 26px 0 0; padding: 0; overflow: visible; }
}
@media (max-width: 767px) {
	.yh-live { padding: 44px 0 40px; }
	.yh-live__in { grid-template-columns: minmax(0, 1fr); grid-template-areas: "head" "list" "all"; }
	.yh-live__head p { font-size: 15px; line-height: 1.95; }
	.yh-live__open { margin-bottom: 10px; font-size: 13px; }
	.yh-live__list,
	.yh-live__in--2 .yh-live__list { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 82%; gap: 14px; margin: 22px -15px 0; padding: 4px 15px 10px; overflow-x: auto; }
	.yh-live__in--1 .yh-live__list { margin-top: 22px; }
	.yh-live__all,
	.yh-live__all:visited { width: 100%; min-height: 48px; margin: 14px 0 0; border: 1px solid var(--ye-border-accent); border-radius: 14px; background: var(--ye-surface); }
	.yh-live__all:hover,
	.yh-live__all:focus { background: var(--ye-tint); text-decoration: none; }
	.yh-live-card__body { padding: 14px 16px 16px; }
	.yh .yh-live-card__title { font-size: 17.5px; }
	.yh-live-card__line { font-size: 14px; }
	.yh-live-card__price { font-size: 16px; }
	.yh-live-card__go { font-size: 14px; }
}

/* ---------- The path: one London day, four stops from sunrise to the sunset of the graduation ----------
   Each stop is one wide picture. Its sky fills the band, its skyline (layer c) repeats behind the words and its
   ground runs on to the edge of the screen, so the words stand in the same street as the learner. The level's
   English name is written in the sky behind the buildings, and the sun crosses the four skies like a clock. */
.yh-journey { position: relative; padding: 84px 0 0; background: var(--yh-sky0); overflow: hidden; overflow: clip; counter-reset: yh-stop; }
.yh-journey .yh-head h2 { font-size: 36px; }
.yh-path { position: relative; margin-top: 30px; }
/* The guide's card (inc/guide-card.php) between «از کجا شروع کنم؟» and the four stops. */
.yh-journey .ygc { margin: 28px 0 0; }
.yh-stop { position: relative; isolation: isolate; padding-top: 150px; counter-increment: yh-stop;
	--yh-ground: #84796e; --yh-mark: rgba(255, 183, 128, .5); --yh-ink: var(--ye-ink); --yh-copy: var(--ye-text); }
.yh-stop::before { content: ""; position: absolute; top: 0; bottom: 0; left: calc(50% - 50vw); right: calc(50% - 50vw); z-index: -2; }
/* Sunrise, noon, golden afternoon, sunset. */
.yh-stop--1::before { background: linear-gradient(180deg, var(--yh-sky0) 0%, #fdeedc 42%, #fbd6b8 100%); }
.yh-stop--2 { --yh-mark: rgba(255, 221, 120, .62); }
.yh-stop--2::before { background: linear-gradient(180deg, #c3dfeb 0%, #dcedf2 52%, #f1f7f3 100%); }
.yh-stop--3 { --yh-mark: rgba(255, 246, 228, .62); }
.yh-stop--3::before { background: linear-gradient(180deg, #fcefdf 0%, #f8d9b6 52%, #f1bc8a 100%); }
.yh-stop--4 { --yh-mark: rgba(255, 196, 178, .6); }
.yh-stop--4::before { background: linear-gradient(180deg, #ebe3f5 0%, #f6dde2 50%, #f7c8b3 100%); }
/* Stars over the door. */
.yh-door::before { content: ""; position: absolute; top: 0; bottom: 0; left: calc(50% - 50vw); right: calc(50% - 50vw); z-index: -1; pointer-events: none;
	background-image:
		radial-gradient(1.6px 1.6px at 12% 28%, rgba(255, 255, 255, .9) 50%, transparent 52%),
		radial-gradient(1.2px 1.2px at 34% 62%, rgba(255, 255, 255, .7) 50%, transparent 52%),
		radial-gradient(1.8px 1.8px at 58% 18%, rgba(255, 255, 255, .85) 50%, transparent 52%),
		radial-gradient(1.1px 1.1px at 77% 46%, rgba(255, 255, 255, .6) 50%, transparent 52%),
		radial-gradient(1.4px 1.4px at 91% 12%, rgba(255, 255, 255, .8) 50%, transparent 52%),
		radial-gradient(1px 1px at 46% 84%, rgba(255, 255, 255, .55) 50%, transparent 52%);
	background-size: 420px 260px; }

/* Words on the open side of the street, the picture on the other; the sides swap at every stop. */
.yh-stop__link { position: relative; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: 40px; align-items: end; color: inherit; }
.yh-stop:nth-child(even) .yh-stop__link { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.yh-stop__link:hover,
.yh-stop__link:focus { color: inherit; }
.yh-stop__text { position: relative; z-index: 6; grid-column: 1; grid-row: 1; align-self: start; display: flex; flex-direction: column; align-items: flex-start; margin-top: -108px; }
.yh-scene { grid-column: 2; grid-row: 1; }
.yh-stop:nth-child(even) .yh-stop__text { grid-column: 2; }
.yh-stop:nth-child(even) .yh-scene { grid-column: 1; }

/* The step: a London street sign. */
.yh-stop__step { display: inline-flex; align-items: center; gap: 12px; padding: 7px 16px 7px 15px; border-radius: 7px; background: #fff; color: var(--ye-ink); font-size: 14.5px; font-weight: var(--ye-w-semibold); line-height: 1.6; box-shadow: inset 0 0 0 3px #fff, inset 0 0 0 4.5px var(--ye-ink), 0 10px 26px rgba(42, 37, 51, .13); }
.yh-stop__step::before { content: counter(yh-stop, persian); padding-left: 12px; border-left: 1.5px solid rgba(42, 37, 51, .22); color: #c4343d; font-size: 19px; font-weight: var(--ye-w-display); line-height: 1; }
.yh-stop__title { margin: 22px 0 4px; padding: 0 6px; color: var(--yh-ink); font-size: 62px; font-weight: var(--ye-w-display); line-height: 1.22; background: linear-gradient(180deg, transparent 63%, var(--yh-mark) 63%, var(--yh-mark) 88%, transparent 88%); }
.yh-stop__line { max-width: 25em; color: var(--yh-copy); font-size: 17px; line-height: 1.95; }
.yh-stop__tag { margin-top: 12px; padding: 2px 12px; border-radius: 999px; background: #e4f3ea; color: var(--ye-green); font-size: 13.5px; font-weight: var(--ye-w-semibold); line-height: 1.9; }
.yh-stop__go { display: inline-flex; align-items: center; gap: 10px; margin-top: 22px; padding: 11px 20px; border: 1px solid rgba(42, 37, 51, .14); border-radius: 999px; background: #fff; color: var(--ye-deep); font-size: 15.5px; font-weight: var(--ye-w-bold); box-shadow: 0 10px 24px rgba(42, 37, 51, .09); transition: background .18s ease, border-color .18s ease, color .18s ease; }
.yh-stop__go::after { content: "\f104"; font-family: FontAwesome; font-size: 17px; font-weight: normal; line-height: 1; transition: transform .18s ease; }
.yh-stop__link:hover .yh-stop__go { border-color: var(--ye-deep); background: var(--ye-fill-deep); color: #fff; }
.yh-stop__link:hover .yh-stop__go::after { transform: translateX(-3px); }

/* The picture: no frame. The landmark (b) and the learner with her ground (a) stand on the scene's own box;
   the skyline repeats and the ground goes on across the band (a's ground is 2.25% to 22.25% high at its edges). */
.yh-scene { position: relative; display: block; width: calc(100% + 96px); margin-left: -96px; aspect-ratio: 2 / 1; --yh-gl: 0%; --yh-gr: 0%; }
.yh-stop:nth-child(even) .yh-scene { margin-left: 0; margin-right: -96px; }
.yh-scene__layer { position: absolute; top: 0; left: 0; width: 100%; height: 100%; max-width: none; }
/* The landmark fades out at the picture's sides, so a bridge deck or a palace yard never stops in mid-air. */
.yh-scene__layer--b { z-index: 4; -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 9%, #000 91%, transparent 100%); mask-image: linear-gradient(90deg, transparent 0, #000 9%, #000 91%, transparent 100%); }
.yh-scene__layer--a { z-index: 5; }
.yh-scene__layer--night { display: none; }
/* Clouds and birds (d) float in front of the name in the sky, behind the buildings. */
.yh-scene__sky { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; }
.yh-scene__city { position: absolute; top: 0; bottom: 0; left: -100vw; right: -100vw; z-index: 2; background: var(--yh-city) repeat-x 100vw 100% / auto 100%; }
.yh-scene::before,
.yh-scene::after { content: ""; position: absolute; bottom: 0; z-index: 3; width: 100vw; background: var(--yh-ground); }
.yh-scene::before { right: calc(100% - 1px); height: var(--yh-gl); }
.yh-scene::after { left: calc(100% - 1px); height: var(--yh-gr); }
.yh-scene--beginner { --yh-gl: 2.25%; --yh-gr: 7.25%; }
.yh-scene--pre-intermediate { --yh-gl: 7.25%; --yh-gr: 12.25%; }
.yh-scene--intermediate { --yh-gl: 12.25%; --yh-gr: 17.25%; }
.yh-scene--advanced { --yh-gl: 17.25%; --yh-gr: 22.25%; }

/* The level's name, written in the sky over its landmark; the tallest towers rise through the letters. */
.yh-scene__word { position: absolute; bottom: calc(100% - 16px); left: 0; right: 0; z-index: 1; color: rgba(255, 255, 255, .82); font-family: "Neucha", cursive; font-size: clamp(76px, 8.8vw, 122px); font-weight: 400; line-height: 1; text-align: center; white-space: nowrap; direction: ltr; text-shadow: 0 0 26px rgba(255, 255, 255, .9); pointer-events: none; }
.yh-scene--pre-intermediate .yh-scene__word { font-size: clamp(58px, 6.6vw, 92px); }
.yh-scene--intermediate .yh-scene__word { font-size: clamp(64px, 7.6vw, 106px); }

/* The sun crosses the day on the far side of each street: rising behind the city, high at noon, low and gold in
   the afternoon, then big and rosy as it sets over the palace. */
.yh-scene__sun { position: absolute; z-index: 1; width: 104px; height: 104px; border-radius: 50%; pointer-events: none; }
.yh-stop--1 .yh-scene__sun { left: 9%; bottom: 44%; background: radial-gradient(circle, #ffe3b6 0 56%, #ffd4a3 64%, rgba(255, 212, 163, 0) 72%); box-shadow: 0 0 90px 46px rgba(255, 205, 150, .42); }
.yh-stop--2 .yh-scene__sun { right: 7%; bottom: 70%; width: 62px; height: 62px; background: #fff7dc; box-shadow: 0 0 0 14px rgba(255, 247, 220, .35), 0 0 70px 34px rgba(255, 244, 205, .7); }
.yh-stop--3 .yh-scene__sun { left: 6%; bottom: 52%; width: 92px; height: 92px; background: radial-gradient(circle, #ffd28c 0 58%, rgba(255, 196, 120, 0) 72%); box-shadow: 0 0 80px 38px rgba(255, 186, 110, .38); }
.yh-stop--4 .yh-scene__sun { right: 8%; bottom: 40%; width: 96px; height: 96px; background: radial-gradient(circle, #ffc3a2 0 56%, rgba(255, 170, 140, 0) 72%); box-shadow: 0 0 90px 40px rgba(255, 170, 140, .38); }

/* ---------- The door: all courses, at the end of the night ---------- */
.yh-door { position: relative; isolation: isolate; padding: 28px 0 128px; background: var(--yh-night); color: #fff; text-align: center; }
.yh-door::before { left: 0; right: 0; }
.yh-door::after { content: ""; position: absolute; left: 50%; bottom: 40px; width: min(720px, 90%); height: 220px; z-index: -1; transform: translateX(-50%); border-radius: 50%; background: radial-gradient(closest-side, rgba(111, 63, 192, .38), transparent); pointer-events: none; }
.yh-door__in { display: flex; flex-direction: column; align-items: center; max-width: 660px; margin: 0 auto; padding-top: 36px; border-top: 1px solid rgba(255, 255, 255, .1); }
.yh .yh-door__title { color: #fff; font-size: 40px; }
.yh-door__text { margin: 10px 0 0; color: rgba(236, 232, 248, .8); font-size: 17.5px; line-height: 2; }
.yh-door__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 28px; }
.yh-door__actions .yh-btn--sun { min-height: 56px; padding: 0 30px; font-size: 17px; }
.yh-door__actions .yh-btn--line { min-height: 56px; }
.yh-door__more,
.yh-door__more:visited { display: inline-flex; align-items: center; gap: 9px; margin-top: 22px; color: rgba(236, 232, 248, .78); font-size: 15px; }
.yh-door__more i { color: var(--ye-sun); }
.yh-door__more:hover,
.yh-door__more:focus { color: #fff; }

/* ---------- Goals: a sheet that rises over the night ---------- */
.yh-goals-wrap { z-index: 1; margin-top: -56px; padding-top: 76px; border-radius: 48px 48px 0 0; background: #fff; }
.yh-goals { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; margin-top: 36px; }
.yh-goal,
.yh-goal:visited { display: flex; flex-direction: column; gap: 6px; padding: 10px 10px 22px; border: 1px solid var(--ye-border); border-radius: 22px; background: #fff; color: var(--ye-ink); transition: box-shadow .25s ease, border-color .25s ease; }
.yh-goal:hover,
.yh-goal:focus { border-color: var(--ye-border-strong); box-shadow: var(--ye-shadow-sm); color: var(--ye-ink); }
.yh-art { position: relative; display: block; aspect-ratio: 2 / 1; margin-bottom: 8px; overflow: hidden; border-radius: 15px; background: linear-gradient(180deg, #e2eff2, #f7fbfb 75%); }
.yh-goal:nth-child(2) .yh-art { background: linear-gradient(180deg, #f6e4cf, #fdf6ee 75%); }
.yh-goal:nth-child(3) .yh-art { background: linear-gradient(180deg, #e3e9f5, #f7f9fc 75%); }
.yh-goal:nth-child(4) .yh-art { background: linear-gradient(180deg, #e9f0dd, #f9fbf4 75%); }
.yh-art__set { display: contents; }
.yh-art__set--night { display: none; }
.yh-art img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; max-width: none; transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.yh-goal:hover .yh-art img:nth-child(1) { transform: translateX(-10px); }
.yh-goal:hover .yh-art img:nth-child(2) { transform: translateX(-5px) scale(1.02); }
.yh-goal:hover .yh-art img:nth-child(3) { transform: scale(1.04); }
.yh-goal:hover .yh-art img:nth-child(4) { transform: translateX(4px) scale(1.04); }
.yh-goal strong { padding: 0 8px; font-size: 17.5px; font-weight: var(--ye-w-semibold); line-height: 1.75; }
.yh-goal > span:not(.yh-art) { display: -webkit-box; padding: 0 8px; overflow: hidden; color: var(--ye-muted); font-size: 15px; line-height: 1.9; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.yh-topics { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 32px; }
.yh-topics__label { margin-left: 4px; color: var(--ye-muted); font-size: 14.5px; }
.yh-topic,
.yh-topic:visited { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 16px; border: 1px solid var(--ye-border); border-radius: 999px; background: var(--ye-tint-soft); color: var(--ye-ink); font-size: 15px; font-weight: var(--ye-w-body); transition: border-color .18s ease, background .18s ease; }
.yh-topic i { color: var(--ye-accent); font-size: 15px; }
.yh-topic:hover,
.yh-topic:focus { border-color: var(--ye-border-accent); background: #fff; color: var(--ye-deep); }
.yh-topic--pack,
.yh-topic--pack:visited { border-color: #eedcb4; background: #fdf7ea; }
.yh-topic--pack i { color: #b07a12; }

/* ---------- Special offers from the Customizer ---------- */
.yh-offers { padding-top: 24px; }
.yh-offers__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-top: 28px; }
.yh-offer,
.yh-offer:visited { display: grid; grid-template-columns: 200px minmax(0, 1fr); align-items: center; gap: 22px; padding: 14px; border: 1px solid var(--ye-border); border-radius: 22px; background: var(--ye-paper); color: var(--ye-ink); transition: border-color .2s ease, box-shadow .2s ease; }
.yh-offer:hover,
.yh-offer:focus { border-color: var(--ye-border-strong); box-shadow: var(--ye-shadow-sm); color: var(--ye-ink); }
.yh-offer img { display: block; width: 100%; height: 128px; object-fit: cover; border-radius: 15px; }
.yh-offer__body { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.yh-offer__label { color: var(--ye-sale); font-size: 13px; font-weight: var(--ye-w-medium); line-height: 1.9; background: #fbe9ef; padding: 0 10px; border-radius: 999px; }
.yh-offer strong { font-size: 17.5px; font-weight: var(--ye-w-semibold); line-height: 1.8; }
.yh-offer__go { display: inline-flex; align-items: center; gap: 8px; color: var(--ye-deep); font-size: 15px; font-weight: var(--ye-w-medium); }

/* The desk shop row keeps its own styles; only the space around it follows the page. */
section.home-shop.ye-home-shop { margin: 0; padding: 24px 0 48px; background: #fff; overflow: visible; }
section.home-shop.ye-home-shop::before,
section.home-shop.ye-home-shop::after { display: none; }

/* ---------- Reviews: a row that moves on by itself (assets/js/home-reviews.js); without the script, a row to swipe ---------- */
.yh-reviews { background: var(--ye-paper); }
.yh-reviews__grid { display: flex; gap: 24px; margin: 40px -15px 0; padding: 4px 15px 12px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding: 0 15px; scrollbar-width: none; }
.yh-reviews__grid::-webkit-scrollbar { display: none; }
.yh-reviews__grid:focus { outline: none; }
.yh-reviews__grid:focus-visible { outline: 2px solid var(--ye-accent); outline-offset: -2px; border-radius: 24px; }
.yh-review { position: relative; display: flex; flex: 0 0 calc((100% - 48px) / 3); flex-direction: column; min-width: 0; margin: 0; padding: 28px 26px 22px; border: 1px solid var(--ye-border); border-radius: 22px; background: var(--ye-surface); scroll-snap-align: start; }
.yh-review::before { content: "”"; position: absolute; top: 4px; left: 20px; color: var(--ye-tint-strong); font-family: Georgia, serif; font-size: 84px; line-height: 1; }
.yh-review__stars { position: relative; color: var(--ye-gold); font-size: 13px; letter-spacing: 2px; }
.yh-review blockquote { position: relative; margin: 12px 0 18px; padding: 0; border: 0; color: var(--ye-text); font-size: 16px; line-height: 2.05; }
.yh-review blockquote p { display: -webkit-box; margin: 0; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 6; }
.yh-review.is-open blockquote p { display: block; overflow: visible; -webkit-line-clamp: unset; }
.yh-review__more { align-self: flex-start; margin: -12px 0 16px; padding: 0; border: 0; background: none; color: var(--ye-accent); font: inherit; font-size: 14px; font-weight: var(--ye-w-medium); line-height: 1.9; cursor: pointer; }
.yh-review__more:hover { color: var(--ye-accent-strong); text-decoration: underline; text-underline-offset: 5px; }
.yh-review figcaption { display: flex; flex-direction: column; gap: 2px; margin-top: auto; padding-top: 14px; border-top: 1px solid var(--ye-border); }
.yh-review figcaption strong { color: var(--ye-ink); font-size: 15.5px; font-weight: var(--ye-w-semibold); }
.yh-review figcaption a,
.yh-review figcaption a:visited { color: var(--ye-accent); font-size: 14px; line-height: 1.8; }
.yh-review figcaption a:hover { color: var(--ye-accent-strong); }
/* Back, hold and next, under the row; the script shows them only when there is more than fits. */
.yh-reviews__nav { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 14px; }
.yh-reviews__nav[hidden] { display: none; }
.yh-reviews__btn { display: inline-grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 1px solid var(--ye-border); border-radius: 50%; background: var(--ye-surface); color: var(--ye-deep); font-size: 22px; line-height: 1; cursor: pointer; transition: background .15s ease, border-color .15s ease, color .15s ease; }
.yh-reviews__btn--pause { width: 36px; height: 36px; color: var(--ye-muted); font-size: 11px; }
.yh-reviews__btn:hover { border-color: var(--ye-border-strong); background: var(--ye-tint); color: var(--ye-deep); }
.yh-reviews__btn:focus { outline: none; }
.yh-reviews__btn:focus-visible { outline: 2px solid var(--ye-accent); outline-offset: 2px; }
.yh-review__more:focus { outline: none; }
.yh-review__more:focus-visible { outline: 2px solid var(--ye-accent); outline-offset: 3px; border-radius: 4px; }

/* ---------- About ---------- */
.yh-about-wrap { padding: 96px 0 64px; }
.yh-about { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.yh-about h2 { font-size: 30px; }
.yh-about p { margin: 14px 0 0; color: var(--ye-text); font-size: 17px; line-height: 2.1; }
.yh-about p strong { color: var(--ye-ink); font-weight: var(--ye-w-medium); }
.yh-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); overflow: hidden; border: 1px solid var(--ye-border); border-radius: 22px; background: #fff; }
.yh-facts li { padding: 22px 24px; border-bottom: 1px solid var(--ye-border); }
.yh-facts li:nth-child(odd) { border-left: 1px solid var(--ye-border); }
.yh-facts li:nth-last-child(-n + 2) { border-bottom: 0; }
.yh-facts strong { display: block; color: var(--ye-ink); font-size: 17.5px; font-weight: var(--ye-w-semibold); line-height: 1.75; }
.yh-facts span { color: var(--ye-muted); font-size: 15px; line-height: 1.9; }
.yh-numbers { display: flex; gap: 24px; margin-top: 56px; padding-top: 40px; border-top: 1px solid var(--ye-border); }
.yh-numbers li { flex: 1; text-align: center; }
.yh-numbers strong { display: block; color: var(--ye-deep); font-size: 34px; font-weight: var(--ye-w-semibold); line-height: 1.35; }
.yh-numbers span { color: var(--ye-muted); font-size: 15px; line-height: 1.9; }

/* ---------- Free learning ---------- */
.yh-free { padding-top: 48px; }
.yh-free__grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 32px; margin-top: 32px; }
.yh-free__articles { display: flex; flex-direction: column; gap: 14px; }
.yh-article { margin: 0; }
.yh-article__link,
.yh-article__link:visited { display: grid; grid-template-columns: 136px minmax(0, 1fr); align-items: center; gap: 20px; height: 100%; padding: 12px; border: 1px solid var(--ye-border); border-radius: 18px; background: #fff; color: var(--ye-ink); transition: border-color .2s ease, box-shadow .2s ease; }
.yh-article__link:hover,
.yh-article__link:focus { border-color: var(--ye-border-strong); box-shadow: var(--ye-shadow-sm); color: var(--ye-ink); }
.yh-article__media { display: grid; place-items: center; aspect-ratio: 3 / 2; overflow: hidden; border-radius: 12px; background: var(--ye-tint); color: var(--ye-border-accent); font-size: 26px; }
.yh-article__media img { width: 100%; height: 100%; object-fit: cover; }
.yh-article__body { display: flex; flex-direction: column; min-width: 0; }
.yh-article__topic { color: var(--ye-accent); font-size: 13px; font-weight: var(--ye-w-medium); }
.yh .yh-article__title { margin: 2px 0 4px; font-size: 16.5px; font-weight: var(--ye-w-medium); line-height: 1.85; }
.yh-article__meta { color: var(--ye-faint); font-size: 13.5px; }
.yh-library { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 30px 30px 32px; border: 1px solid var(--ye-border); border-radius: 24px; background: linear-gradient(160deg, var(--ye-tint) 0%, #f9f4ee 100%); }
.yh-library__covers { display: flex; align-self: center; justify-content: center; margin: 0 0 18px; }
.yh-library__cover { display: grid; place-items: center; width: 92px; aspect-ratio: 3 / 4; overflow: hidden; border: 3px solid #fff; border-radius: 10px; background: var(--ye-tint-strong); color: var(--ye-accent); font-size: 24px; box-shadow: 0 6px 16px rgba(46, 31, 84, .08); }
.yh-library__cover:nth-child(1) { transform: rotate(6deg) translateY(6px); }
.yh-library__cover:nth-child(2) { z-index: 1; margin: 0 -14px; transform: translateY(-4px); }
.yh-library__cover:nth-child(3) { transform: rotate(-6deg) translateY(6px); }
.yh-library__cover img { width: 100%; height: 100%; object-fit: cover; }
.yh-library .yh-kicker { margin: 0; }
.yh-library h3 { font-size: 22px; }
.yh-library p { margin: 0 0 12px; color: var(--ye-muted); font-size: 15.5px; line-height: 2; }

/* ---------- Questions ---------- */
.yh-faq-wrap { padding: 32px 0 104px; }
.yh-faq-wrap .yh-head { margin: 0 auto; text-align: center; }
.yh-faq { display: flex; flex-direction: column; gap: 12px; max-width: 860px; margin: 32px auto 0; }
.yh-faq details { border: 1px solid var(--ye-border); border-radius: 16px; background: #fff; transition: border-color .2s ease, box-shadow .2s ease; }
.yh-faq details[open] { border-color: var(--ye-border-accent); }
.yh-faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 24px; color: var(--ye-ink); font-size: 16.5px; font-weight: var(--ye-w-medium); line-height: 1.85; list-style: none; cursor: pointer; }
.yh-faq summary::-webkit-details-marker { display: none; }
.yh-faq summary::after { content: "+"; display: grid; flex: 0 0 auto; place-items: center; width: 28px; height: 28px; border: 1px solid var(--ye-border); border-radius: 50%; color: var(--ye-accent); font-size: 18px; font-weight: var(--ye-w-body); line-height: 1; transition: transform .2s ease; background: var(--ye-tint); }
.yh-faq details[open] summary::after { transform: rotate(45deg); }
.yh-faq details p { margin: 0; padding: 0 24px 22px; color: var(--ye-text); font-size: 16px; line-height: 2.1; }
.yh-faq details p a { color: var(--ye-accent); font-weight: var(--ye-w-medium); }

/* ---------- Motion ----------
   As a street crosses the screen its layers move at their own pace, like the pages of a pop-up book: the clouds
   and birds drift with the wind, the name in the sky slides the other way, the skyline pans slowly, the landmark
   rises into place and the sun climbs its arc; the clouds also sway on their own. The layers of the goal pictures
   pan the same way. Browsers with scroll timelines run it off the main thread; the others take the progress from
   assets/js/home-motion.js (--yh-p, 0 to 1); with neither, every picture stands still in its place (0.5). */
@media (prefers-reduced-motion: no-preference) {
	.yh-stop .yh-scene__sky { animation-name: yh-sky; }
	.yh-stop .yh-scene__word { animation-name: yh-word; }
	.yh-stop .yh-scene__city { animation-name: yh-city; }
	.yh-stop .yh-scene__layer--b { transform-origin: 50% 100%; animation-name: yh-landmark; }
	.yh-stop .yh-scene__sun { animation-name: yh-sun; }
	.yh-goal .yh-art img:nth-child(1) { animation-name: yh-art-sky; }
	.yh-goal .yh-art img:nth-child(2) { transform-origin: 50% 100%; animation-name: yh-art-city; }
	.yh-goal .yh-art img:nth-child(3) { transform-origin: 50% 100%; animation-name: yh-art-landmark; }
	.yh-stop :is(.yh-scene__sky, .yh-scene__word, .yh-scene__city, .yh-scene__layer--b, .yh-scene__sun),
	.yh-goal .yh-art img:not(:nth-child(4)) { animation-duration: 1s; animation-timing-function: linear; animation-fill-mode: both; animation-play-state: paused; animation-delay: calc(var(--yh-p, .5) * -1s); }
	.yh-scene__sky .yh-scene__layer { animation: yh-sway 9s ease-in-out infinite alternate; }
	.yh-stop:nth-child(even) .yh-scene__sky .yh-scene__layer { animation-duration: 12s; animation-direction: alternate-reverse; }
	@supports (animation-timeline: view()) {
		.yh-stop { view-timeline: --yh-stop block; }
		.yh-goal { view-timeline: --yh-goal block; }
		.yh-stop :is(.yh-scene__sky, .yh-scene__word, .yh-scene__city, .yh-scene__layer--b, .yh-scene__sun) { animation-timeline: --yh-stop; }
		.yh-goal .yh-art img:not(:nth-child(4)) { animation-timeline: --yh-goal; }
		.yh-stop :is(.yh-scene__sky, .yh-scene__word, .yh-scene__city, .yh-scene__layer--b, .yh-scene__sun),
		.yh-goal .yh-art img:not(:nth-child(4)) { animation-duration: auto; animation-delay: 0s; animation-play-state: running; }
		.yh-stop__text > span,
		.yh-stop__text > strong { animation: yh-rise linear both; animation-timeline: view(); animation-range: entry 10% cover 30%; }
		.yh-door__in { animation: yh-rise linear both; animation-timeline: view(); animation-range: entry 0% cover 25%; }
	}
	.yh-door::before,
	:root[data-theme="dark"] .yh-stop::after { animation: yh-twinkle 5s ease-in-out infinite alternate; }
	/* «ثبت‌نام باز است» on the live classes: a soft ring around the green dot. */
	.yh-live__dot::after { content: ""; position: absolute; inset: -4px; border: 2px solid var(--ye-buy); border-radius: 50%; opacity: 0; animation: yh-live-pulse 2.4s ease-out infinite; }
}
@keyframes yh-sky { from { translate: 9% 0; } to { translate: -9% 0; } }
@keyframes yh-word { from { translate: -11% 0; } to { translate: 11% 0; } }
@keyframes yh-city { from { translate: max(3.5vw, 24px) 0; } to { translate: min(-3.5vw, -24px) 0; } }
@keyframes yh-landmark { 0% { translate: 3% 0; scale: .88; } 45% { scale: 1; } 100% { translate: -3% 0; scale: 1; } }
@keyframes yh-sun { 0% { translate: -40% 120%; scale: .8; } 50% { translate: 0 0; scale: 1; } 100% { translate: 40% -70%; scale: 1.06; } }
@keyframes yh-sway { from { transform: translate3d(14px, 0, 0); } to { transform: translate3d(-14px, 0, 0); } }
@keyframes yh-art-sky { from { translate: 10% 0; } to { translate: -10% 0; } }
@keyframes yh-art-city { from { translate: 3% 0; scale: 1.07; } to { translate: -3% 0; scale: 1.07; } }
@keyframes yh-art-landmark { 0% { translate: 1.5% 0; scale: .94; } 45% { scale: 1.04; } 100% { translate: -1.5% 0; scale: 1.04; } }
@keyframes yh-rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes yh-twinkle { from { opacity: .55; } to { opacity: 1; } }
@keyframes yh-live-pulse { from { opacity: .6; transform: scale(.6); } to { opacity: 0; transform: scale(1.7); } }

/* ---------- Tablet ---------- */
@media (max-width: 1199px) {
	.yh-goals { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 991px) {
	.yh-stop__link { column-gap: 24px; }
	.yh-scene { width: calc(100% + 40px); margin-left: -40px; }
	.yh-stop:nth-child(even) .yh-scene { margin-right: -40px; }
	.yh-stop { padding-top: 120px; }
	.yh-stop__text { margin-top: -84px; }
	.yh-stop__title { margin-top: 16px; font-size: 44px; }
	.yh-stop__line { font-size: 15.5px; }
	.yh-stop__go { margin-top: 16px; }
	.yh-about { grid-template-columns: minmax(0, 1fr); gap: 32px; }
	.yh-free__grid { grid-template-columns: minmax(0, 1fr); }
	.yh-offers__grid { grid-template-columns: minmax(0, 1fr); }
	/* Reviews: two and a bit in view. */
	.yh-reviews__grid { gap: 14px; margin-top: 30px; }
	.yh-review { flex-basis: 46%; }
}

/* ---------- Phone ---------- */
@media (max-width: 767px) {
	.hero-text .hero-seo-title { font-size: 15px; }
	.head-hero.ye-hero { padding: 24px 0; background: radial-gradient(90% 60% at 50% 22%, #5413b4 0%, rgba(84, 19, 180, 0) 70%), var(--ye-brand); }
	.head-hero.ye-hero .container { padding: 14px 18px 36px; }
	.head-hero.ye-hero .col-md-4 img { max-width: 132px; }
	.head-hero.ye-hero .hero-text { padding-top: 12px; font-size: 20px; line-height: 1.75; }
	.head-hero.ye-hero .dn { margin-bottom: 18px; }
	.head-hero a.ye-hero-new { margin: 0 0 10px; padding: 3px 4px 3px 12px; font-size: 13.5px; }
	.ye-hero-new__tag { font-size: 12px; }
	.ye-hero-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
	.head-hero .ye-hero-actions .btn { display: block; padding: 10px 8px; font-size: 15px; }
	.head-hero a.ye-hero-path { margin-top: 12px; font-size: 14px; }
	.head-hero .ye-hero-actions .btn i { display: none; }

	.yh h2 { font-size: 25px; }
	.yh-section { padding: 72px 0; }
	.yh-head p { font-size: 15.5px; line-height: 1.95; }
	.yh-kicker { font-size: 13.5px; }

	/* The path: the words in the sky, the street under them, wider than the screen so the landmark stays big. */
	.yh-journey { padding-top: 56px; }
	.yh-journey .yh-head h2 { font-size: 27px; }
	.yh-path { margin-top: 12px; }
	.yh-stop { padding-top: 46px; }
	.yh-stop__text,
	.yh-stop:nth-child(even) .yh-stop__text { margin-top: 0; }
	.yh-stop__link,
	.yh-stop:nth-child(even) .yh-stop__link { display: flex; flex-direction: column; align-items: stretch; }
	.yh-stop__text { order: 1; margin: 0; padding: 0 4px; }
	.yh-scene,
	.yh-stop:nth-child(even) .yh-scene { order: 2; flex: none; align-self: center; width: 540px; margin: 62px 0 0; }
	.yh-stop__step { padding: 6px 14px 6px 13px; font-size: 13.5px; }
	.yh-stop__step::before { padding-left: 10px; font-size: 17px; }
	.yh-stop__title { margin: 14px 0 2px; font-size: 42px; }
	.yh-stop__line { font-size: 15.5px; line-height: 1.9; }
	.yh-stop__go { margin-top: 14px; padding: 10px 18px; font-size: 15px; }
	.yh-scene__word { font-size: 72px; }
	.yh-scene--pre-intermediate .yh-scene__word { font-size: 50px; }
	.yh-scene--intermediate .yh-scene__word { font-size: 60px; }
	.yh-stop--1 .yh-scene__sun { left: 22%; width: 74px; height: 74px; box-shadow: 0 0 60px 30px rgba(255, 205, 150, .42); }
	.yh-stop--2 .yh-scene__sun { right: 20%; width: 46px; height: 46px; }
	.yh-stop--3 .yh-scene__sun { left: 20%; width: 66px; height: 66px; }
	.yh-stop--4 .yh-scene__sun { right: 20%; width: 68px; height: 68px; box-shadow: 0 0 60px 28px rgba(255, 170, 140, .38); }

	.yh-door { padding: 8px 0 104px; }
	.yh-door__in { padding-top: 28px; }
	.yh .yh-door__title { font-size: 29px; }
	.yh-door__text { font-size: 15.5px; line-height: 1.95; }
	.yh-door__actions { flex-direction: column; align-self: stretch; gap: 10px; }
	.yh-door__actions .yh-btn { width: 100%; }

	.yh-goals-wrap { margin-top: -44px; padding-top: 56px; border-radius: 34px 34px 0 0; }
	/* Goals: a row to swipe. */
	.yh-goals { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 80%; gap: 14px; margin: 26px -15px 0; padding: 4px 15px 10px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding: 0 15px; scrollbar-width: none; }
	.yh-goals::-webkit-scrollbar { display: none; }
	.yh-goal { scroll-snap-align: start; }
	.yh-goal strong { font-size: 17px; }
	.yh-goal > span:not(.yh-art) { font-size: 14.5px; }
	.yh-topics { gap: 8px; margin-top: 24px; }
	.yh-topics__label { flex-basis: 100%; }
	.yh-topic { min-height: 38px; padding: 0 13px; font-size: 14px; }

	.yh-offer,
	.yh-offer:visited { grid-template-columns: 112px minmax(0, 1fr); gap: 16px; padding: 12px; }
	.yh-offer img { height: 84px; }
	.yh-offer strong { font-size: 16px; }

	/* One in view: each card as tall as its own review, no empty half card under a short one. */
	.yh-reviews__grid { align-items: flex-start; }
	.yh-review { flex-basis: 84%; padding: 22px 20px 18px; }
	.yh-review blockquote p { -webkit-line-clamp: 5; }
	.yh-review blockquote { font-size: 15px; }

	.yh-about-wrap { padding: 64px 0 48px; }
	.yh-about h2 { font-size: 24px; }
	.yh-about p { font-size: 15.5px; line-height: 2; }
	.yh-facts li { padding: 16px 18px; }
	.yh-facts strong { font-size: 15.5px; }
	.yh-facts span { font-size: 13.5px; }
	.yh-numbers { flex-direction: column; gap: 14px; margin-top: 32px; padding-top: 24px; }
	.yh-numbers li { display: flex; align-items: baseline; gap: 12px; text-align: right; }
	.yh-numbers strong { min-width: 112px; font-size: 25px; }
	.yh-numbers span { font-size: 14.5px; }

	.yh-free { padding-top: 32px; }
	.yh-head--row { align-items: center; }
	.yh-article__link,
	.yh-article__link:visited { grid-template-columns: 96px minmax(0, 1fr); gap: 14px; padding: 10px; }
	.yh .yh-article__title { font-size: 15px; line-height: 1.75; }
	.yh-library { padding: 22px 20px 24px; }
	.yh-library__cover { width: 78px; }
	.yh-library .yh-btn { width: 100%; }

	.yh-faq-wrap { padding: 20px 0 80px; }
	.yh-faq summary { padding: 16px 18px; font-size: 15.5px; }
	.yh-faq details p { padding: 0 18px 18px; font-size: 15px; }
}

@media (prefers-reduced-motion: reduce) {
	.head-hero a.ye-hero-new,
	.yh-btn,
	.yh-stop__go,
	.yh-goal,
	.yh-art img { transition: none; }
	.yh-btn:hover,
	.yh-goal:hover { transform: none; }
}

/* ---------- Night theme (<html data-theme="dark">, inc/theme-mode.php) ----------
   The walk happens at night: every street shows its night picture under a night sky, the moon takes the sun's
   place and the names glow like the last stop. The sheets below the door turn dark with the rest of the site. */
:root[data-theme="dark"] .yh { --yh-sky0: #131126; --yh-night: #1c1640; }
:root[data-theme="dark"] .yh-scene__layer--night { display: block; }
:root[data-theme="dark"] .yh-scene--day .yh-scene__layer:not(.yh-scene__layer--night) { display: none; }
:root[data-theme="dark"] .yh-scene--day .yh-scene__city { background-image: var(--yh-city-night); }
:root[data-theme="dark"] .yh-art__set--day { display: none; }
:root[data-theme="dark"] .yh-art__set--night { display: contents; }

:root[data-theme="dark"] .yh-stop { --yh-ground: #72685f; --yh-mark: rgba(245, 200, 98, .3); --yh-ink: #fff; --yh-copy: rgba(236, 232, 248, .82); }
:root[data-theme="dark"] .yh-stop--1::before { background: linear-gradient(180deg, #131126 0%, #1e1a47 46%, #3a3380 100%); }
:root[data-theme="dark"] .yh-stop--2::before { background: linear-gradient(180deg, #141633 0%, #1d2257 52%, #32397f 100%); }
:root[data-theme="dark"] .yh-stop--3::before { background: linear-gradient(180deg, #18143a 0%, #251d5c 52%, #3f318a 100%); }
:root[data-theme="dark"] .yh-stop--4::before { background: linear-gradient(180deg, #1b1650 0%, #251f5d 46%, #3a3080 100%); }
:root[data-theme="dark"] .yh-stop::after { content: ""; position: absolute; top: 0; bottom: 30%; left: calc(50% - 50vw); right: calc(50% - 50vw); z-index: -1; pointer-events: none;
	background-image:
		radial-gradient(1.4px 1.4px at 18% 22%, rgba(255, 255, 255, .8) 50%, transparent 52%),
		radial-gradient(1.1px 1.1px at 41% 58%, rgba(255, 255, 255, .6) 50%, transparent 52%),
		radial-gradient(1.6px 1.6px at 66% 14%, rgba(255, 255, 255, .75) 50%, transparent 52%),
		radial-gradient(1px 1px at 84% 40%, rgba(255, 255, 255, .55) 50%, transparent 52%),
		radial-gradient(1.2px 1.2px at 6% 66%, rgba(255, 255, 255, .5) 50%, transparent 52%);
	background-size: 380px 240px; }
:root[data-theme="dark"] .yh-scene__word { color: rgba(255, 238, 200, .16); text-shadow: 0 0 26px rgba(245, 200, 98, .45); }
/* The moon: rising full and warm, high and small, lower and pale, then the crescent over the palace. */
:root[data-theme="dark"] .yh-stop--1 .yh-scene__sun { background: radial-gradient(circle, #f7ecd0 0 54%, rgba(247, 236, 208, 0) 66%); box-shadow: 0 0 80px 30px rgba(247, 230, 190, .16); }
:root[data-theme="dark"] .yh-stop--2 .yh-scene__sun { background: #f4efe0; box-shadow: 0 0 0 12px rgba(244, 239, 224, .07), 0 0 60px 20px rgba(244, 239, 224, .16); }
:root[data-theme="dark"] .yh-stop--3 .yh-scene__sun { background: radial-gradient(circle, #efe6cf 0 56%, rgba(239, 230, 207, 0) 70%); box-shadow: 0 0 70px 24px rgba(239, 226, 190, .14); }
:root[data-theme="dark"] .yh-stop--4 .yh-scene__sun { right: 9%; bottom: 66%; width: 60px; height: 60px; background: transparent; box-shadow: inset 14px -7px 0 0 #fbeec4, 0 0 60px 6px rgba(255, 238, 190, .18); }
@media (max-width: 767px) {
	:root[data-theme="dark"] .yh-stop--4 .yh-scene__sun { right: 22%; width: 48px; height: 48px; box-shadow: inset 11px -5px 0 0 #fbeec4, 0 0 44px 4px rgba(255, 238, 190, .18); }
}

/* The street sign stays a white enamel sign. */
:root[data-theme="dark"] .yh-stop__step { color: #2a2533; box-shadow: inset 0 0 0 3px #fff, inset 0 0 0 4.5px #2a2533, 0 10px 26px rgba(0, 0, 0, .3); }
:root[data-theme="dark"] .yh-stop__tag { background: rgba(102, 211, 149, .14); color: #8be0ae; }
:root[data-theme="dark"] .yh-stop__go { border-color: rgba(255, 255, 255, .3); background: rgba(255, 255, 255, .08); color: #fff; box-shadow: none; }
:root[data-theme="dark"] .yh-stop__link:hover .yh-stop__go { border-color: var(--ye-sun); background: var(--ye-sun); color: var(--ye-sun-ink); }

/* Below the door */
:root[data-theme="dark"] .yh-goals-wrap,
:root[data-theme="dark"] section.home-shop.ye-home-shop { background: var(--ye-surface); }
:root[data-theme="dark"] :is(.yh-goal, .yh-review, .yh-facts, .yh-article__link, .yh-faq details) { background: var(--ye-paper); }
:root[data-theme="dark"] .yh-reviews { background: var(--ye-tint-soft); }
:root[data-theme="dark"] .yh-reviews__btn { border-color: var(--ye-border-strong); background: var(--ye-paper); }
:root[data-theme="dark"] .yh-reviews__btn:hover { background: var(--ye-tint-strong); }
:root[data-theme="dark"] .yh-art { background: linear-gradient(180deg, #1b1a45, #2b2a63 75%); }
:root[data-theme="dark"] .yh-goal:nth-child(2) .yh-art { background: linear-gradient(180deg, #221a46, #352a66 75%); }
:root[data-theme="dark"] .yh-goal:nth-child(3) .yh-art { background: linear-gradient(180deg, #171c45, #262f66 75%); }
:root[data-theme="dark"] .yh-goal:nth-child(4) .yh-art { background: linear-gradient(180deg, #1a1d40, #2a3160 75%); }
:root[data-theme="dark"] .yh-topic:hover,
:root[data-theme="dark"] .yh-topic:focus { background: var(--ye-tint); }
:root[data-theme="dark"] .yh-topic--pack { border-color: var(--ye-gold-line); background: var(--ye-gold-tint); }
:root[data-theme="dark"] .yh-topic--pack i { color: var(--ye-gold-ink); }
:root[data-theme="dark"] .yh-offer__label { background: var(--ye-sale-tint); }
:root[data-theme="dark"] .yh-live { background: var(--ye-surface); }
:root[data-theme="dark"] .yh-live-card__link { background: var(--ye-paper); }
:root[data-theme="dark"] .yh-library { background: linear-gradient(160deg, var(--ye-tint) 0%, var(--ye-paper) 100%); }
:root[data-theme="dark"] .yh-library__cover { border-color: var(--ye-border-strong); }
