/*
 * The site's information pages in the new look (inc/site-pages.php): ordinary pages (page.php), placement, contact,
 * 404, the team, the magazine, the speaking teachers and the printed books. Same tokens, cards and buttons as the
 * PDF library, the blog and the about page; everything follows the «روشن / تاریک» switch through the tokens.
 */
.ysp {
	position: relative;
	isolation: isolate;
	padding: 22px 0 64px;
	background: var(--ye-surface);
	color: var(--ye-ink);
}
.ysp *, .ysp *::before, .ysp *::after { box-sizing: border-box; }
.ysp a, .ysp a:hover, .ysp a:focus { text-decoration: none; }
.ysp::before { content: ""; position: absolute; top: 0; right: 0; left: 0; z-index: -1; height: 480px; background: linear-gradient(180deg, var(--ye-tint) 0%, rgba(246, 240, 253, 0) 100%); pointer-events: none; }
:root[data-theme="dark"] .ysp::before { background: linear-gradient(180deg, var(--ye-tint) 0%, rgb(var(--ye-surface-rgb) / 0) 100%); }
/* The old strip under the header («همهٔ دوره‌ها / تعیین سطح»): these pages bring their own ways on. */
.ysp-page .small-hero:not(.sadoo-countdown-banner) { display: none; }

/* ---------- Buttons ---------- */
.ysp-btn, .ysp-btn:visited { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 8px 22px; border: 1px solid transparent; border-radius: 14px; font-size: 15px; font-weight: var(--ye-w-bold); line-height: 1.4; white-space: nowrap; cursor: pointer; transition: background .15s ease, color .15s ease, border-color .15s ease, box-shadow .15s ease; }
.ysp-btn i { font-size: 16px; }
.ysp-btn--primary, .ysp-btn--primary:visited { background: var(--ye-fill-accent); color: #fff; box-shadow: 0 10px 22px rgba(87, 40, 159, .22); }
.ysp-btn--primary:hover, .ysp-btn--primary:focus { background: var(--ye-fill-accent-strong); color: #fff; }
.ysp-btn--sun, .ysp-btn--sun:visited { background: var(--ye-sun); color: var(--ye-sun-ink); box-shadow: 0 10px 22px rgba(201, 146, 34, .24); }
.ysp-btn--sun:hover, .ysp-btn--sun:focus { background: var(--ye-sun-soft); color: var(--ye-sun-ink); }
.ysp-btn--ghost, .ysp-btn--ghost:visited { border-color: var(--ye-border-strong); background: var(--ye-surface); color: var(--ye-deep); }
.ysp-btn--ghost:hover, .ysp-btn--ghost:focus { border-color: var(--ye-border-accent); background: var(--ye-tint); color: var(--ye-deep); }
.ysp-btn--soft, .ysp-btn--soft:visited { background: var(--ye-tint-strong); color: var(--ye-deep); }
.ysp-btn--soft:hover, .ysp-btn--soft:focus { background: var(--ye-border-accent); color: var(--ye-deep); }
.ysp a:focus-visible, .ysp button:focus-visible, .ysp summary:focus-visible { outline: 3px solid var(--ye-accent); outline-offset: 3px; }

/* ---------- A London scene (sadoo_site_scene) ---------- */
.ysp-scene { position: relative; display: block; width: 100%; aspect-ratio: 2 / 1; overflow: hidden; border-radius: 20px; background: linear-gradient(180deg, #d9e6f6 0%, #eaf1fa 100%); }
.ysp-scene__set { position: absolute; inset: 0; display: block; }
.ysp-scene__set--night { display: none; background: var(--ye-night); }
.ysp-scene__layer { position: absolute; top: 0; left: 0; width: 100%; height: 100%; max-width: none; }
:root[data-theme="dark"] .ysp-scene { background: var(--ye-night); }
:root[data-theme="dark"] .ysp-scene__set--day { display: none; }
:root[data-theme="dark"] .ysp-scene__set--night { display: block; }

/* ---------- Page head and text card (page.php) ---------- */
.ysp-head { padding: 26px 34px 24px; border: 1px solid var(--ye-border); border-radius: 24px; background: linear-gradient(180deg, var(--ye-tint-soft) 0%, var(--ye-surface) 100%); }
.ysp-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 6px; color: var(--ye-muted); font-size: 13.5px; font-weight: var(--ye-w-bold); }
.ysp-crumbs a, .ysp-crumbs a:visited { color: var(--ye-accent); }
.ysp-crumbs a:hover { color: var(--ye-deep); }
.ysp-crumbs i { font-size: 12px; opacity: .7; }
.ysp-kicker { display: flex; align-items: center; gap: 8px; margin: 0 0 4px; color: var(--ye-accent); font-size: 14px; font-weight: var(--ye-w-bold); }
.ysp .ysp-title { margin: 0; color: var(--ye-ink); font-size: 32px; font-weight: var(--ye-w-display); line-height: 1.55; }
.ysp-lead { max-width: 680px; margin: 8px 0 0; color: var(--ye-muted); font-size: 16px; line-height: 2; }
.ysp-meta { display: inline-flex; align-items: center; gap: 8px; margin: 12px 0 0; padding: 3px 14px; border: 1px solid var(--ye-border); border-radius: 999px; background: var(--ye-surface); color: var(--ye-muted); font-size: 13.5px; font-weight: var(--ye-w-bold); line-height: 1.9; }

.ysp-card { margin-top: 18px; padding: 34px 40px; border: 1px solid var(--ye-border); border-radius: 24px; background: var(--ye-surface); box-shadow: var(--ye-shadow-sm); }
.ysp-card--long .ysp-prose { max-width: 860px; margin-right: auto; margin-left: auto; }

/* Text written in the editor */
.ysp-prose { color: var(--ye-text); font-size: 16px; line-height: 2.1; overflow-wrap: anywhere; }
.ysp-prose > :first-child { margin-top: 0; }
.ysp-prose > :last-child { margin-bottom: 0; }
.ysp-prose p { margin: 0 0 14px; }
.ysp-prose h1, .ysp-prose h2, .ysp-prose h3, .ysp-prose h4 { color: var(--ye-ink); font-weight: var(--ye-w-heading); line-height: 1.7; }
.ysp-prose h1, .ysp-prose h2 { position: relative; margin: 34px 0 12px; padding-right: 16px; font-size: 22px; }
.ysp-prose h1::before, .ysp-prose h2::before { content: ""; position: absolute; top: .42em; right: 0; width: 5px; height: 1.05em; border-radius: 4px; background: var(--ye-fill-accent); }
.ysp-prose h3 { margin: 26px 0 8px; font-size: 18.5px; }
.ysp-prose h4 { margin: 20px 0 6px; font-size: 16.5px; }
.ysp-prose a, .ysp-prose a:visited { color: var(--ye-accent); font-weight: var(--ye-w-bold); text-decoration: underline; text-decoration-color: var(--ye-border-accent); text-underline-offset: 4px; }
.ysp-prose a:hover { color: var(--ye-deep); text-decoration-color: currentColor; }
.ysp-prose strong, .ysp-prose b { color: var(--ye-ink); }
.ysp-prose ul, .ysp-prose ol { margin: 0 0 16px; padding-right: 24px; }
.ysp-prose li { margin: 0 0 6px; padding-right: 4px; }
.ysp-prose ul li::marker { color: var(--ye-accent); }
.ysp-prose ol li::marker { color: var(--ye-accent); font-weight: var(--ye-w-bold); }
.ysp-prose blockquote { margin: 20px 0; padding: 16px 20px; border: 0; border-right: 4px solid var(--ye-border-accent); border-radius: 14px; background: var(--ye-tint-soft); color: var(--ye-text); font-size: 16px; }
.ysp-prose img { max-width: 100%; height: auto; border-radius: 14px; }
.ysp-prose figure { margin: 20px 0; }
.ysp-prose figcaption { margin-top: 6px; color: var(--ye-muted); font-size: 13.5px; text-align: center; }
.ysp-prose hr, .ysp-vc-line { height: 0; margin: 28px 0; border: 0; border-top: 1px dashed var(--ye-border-strong); }
.ysp-prose table { width: 100%; margin: 0 0 18px; border-collapse: separate; border-spacing: 0; overflow: hidden; border: 1px solid var(--ye-border); border-radius: 14px; font-size: 15px; }
.ysp-prose th, .ysp-prose td { padding: 10px 14px; border-bottom: 1px solid var(--ye-border); text-align: right; vertical-align: top; }
.ysp-prose th { background: var(--ye-tint); color: var(--ye-ink); font-weight: var(--ye-w-bold); }
.ysp-prose tr:last-child td { border-bottom: 0; }
.ysp-prose [dir="ltr"], .ysp-prose .ltr { text-align: left; }
.ysp-prose iframe, .ysp-prose video { max-width: 100%; border: 0; border-radius: 14px; }
/* Forms left in the text (the newsletter page): the site's own fields and button. */
.ysp-prose input[type="text"], .ysp-prose input[type="email"], .ysp-prose input[type="tel"], .ysp-prose input[type="search"], .ysp-prose textarea, .ysp-prose select { width: 100%; max-width: 460px; min-height: 48px; padding: 10px 14px; border: 1px solid var(--ye-border-strong); border-radius: 12px; background: var(--ye-surface); color: var(--ye-ink); font: inherit; font-size: 15px; }
.ysp-prose textarea { min-height: 120px; }
.ysp-prose input:focus, .ysp-prose textarea:focus, .ysp-prose select:focus { border-color: var(--ye-accent); outline: 3px solid rgba(111, 63, 192, .18); outline-offset: 0; }
.ysp-prose input[type="submit"], .ysp-prose button[type="submit"], .ysp-prose .button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 8px 24px; border: 0; border-radius: 14px; background: var(--ye-fill-accent); color: #fff; font: inherit; font-size: 15px; font-weight: var(--ye-w-bold); cursor: pointer; }
.ysp-prose input[type="submit"]:hover, .ysp-prose button[type="submit"]:hover, .ysp-prose .button:hover { background: var(--ye-fill-accent-strong); color: #fff; }

/* Old page-builder rows and columns, drawn as plain blocks */
.ysp-vc-row { display: flex; flex-wrap: wrap; gap: 8px 28px; margin: 0 0 8px; }
.ysp-vc-col { flex: 1 1 260px; min-width: 0; }
.ysp-vc-row > .ysp-vc-col:only-child { flex-basis: 100%; }
.ysp-vc-image { margin: 0 0 16px; text-align: center; }
.ysp-vc-image img { display: inline-block; }

/* Questions that open (old accordions) */
.ysp-faq { display: grid; gap: 10px; margin: 8px 0 18px; }
.ysp-faq__item { border: 1px solid var(--ye-border); border-radius: 16px; background: var(--ye-surface); transition: border-color .15s ease, box-shadow .15s ease; }
.ysp-faq__item[open] { border-color: var(--ye-border-accent); box-shadow: var(--ye-shadow-sm); }
.ysp-faq__item summary { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 56px; padding: 12px 18px; color: var(--ye-ink); font-size: 16px; font-weight: var(--ye-w-bold); line-height: 1.8; cursor: pointer; list-style: none; }
.ysp-faq__item summary::-webkit-details-marker { display: none; }
.ysp-faq__item summary i { flex: 0 0 auto; display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--ye-tint); color: var(--ye-accent); font-size: 16px; transition: transform .2s ease, background .15s ease; }
.ysp-faq__item[open] summary i { transform: rotate(180deg); background: var(--ye-fill-accent); color: #fff; }
.ysp-faq__answer { padding: 0 18px 16px; color: var(--ye-text); font-size: 15.5px; line-height: 2; }
.ysp-faq__answer > :last-child { margin-bottom: 0; }

/* A short note in a card (the old request form, an empty list) */
.ysp-note { display: flex; gap: 16px; align-items: flex-start; margin: 18px 0; padding: 20px 22px; border: 1px solid var(--ye-border-accent); border-radius: 18px; background: linear-gradient(135deg, var(--ye-tint-soft) 0%, var(--ye-surface) 80%); color: var(--ye-text); }
.ysp-note > i { display: inline-grid; place-items: center; flex: 0 0 48px; width: 48px; height: 48px; border-radius: 14px; background: var(--ye-fill-accent); color: #fff; font-size: 21px; }
.ysp-note strong { display: block; color: var(--ye-ink); font-size: 16.5px; line-height: 1.8; }
.ysp-note p { margin: 2px 0 12px; color: var(--ye-muted); font-size: 15px; line-height: 1.9; }
.ysp-prose .ysp-note a.ysp-btn, .ysp-prose a.ysp-btn { color: #fff; text-decoration: none; }
.ysp-prose a.ysp-btn--soft, .ysp-prose a.ysp-btn--ghost { color: var(--ye-deep); }

/* ---------- «سؤالی داری؟» at the end of a page ---------- */
.ysp-help { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; margin-top: 24px; padding: 22px 26px; border: 1px solid var(--ye-border-strong); border-radius: 22px; background: linear-gradient(135deg, var(--ye-tint-soft) 0%, var(--ye-surface) 75%); }
.ysp-help__text { min-width: 0; }
.ysp .ysp-help h2 { margin: 0; color: var(--ye-ink); font-size: 20px; font-weight: var(--ye-w-heading); line-height: 1.7; }
.ysp-help p { margin: 2px 0 0; color: var(--ye-muted); font-size: 14.5px; line-height: 1.9; }
.ysp-help__links { display: flex; flex-wrap: wrap; gap: 8px; }
.ysp-help__link, .ysp-help__link:visited { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 6px 16px; border: 1px solid var(--ye-border); border-radius: 999px; background: var(--ye-surface); color: var(--ye-ink); font-size: 14.5px; font-weight: var(--ye-w-semibold); transition: background .15s ease, border-color .15s ease, color .15s ease; }
.ysp-help__link i { color: var(--ye-accent); }
.ysp-help__link:hover, .ysp-help__link:focus { border-color: var(--ye-border-accent); background: var(--ye-tint); color: var(--ye-deep); }
.ysp-help__link--start, .ysp-help__link--start:visited { border-color: var(--ye-gold-line); background: var(--ye-sun-soft); color: var(--ye-sun-ink); }
.ysp-help__link--start i { color: var(--ye-sun-ink); }
.ysp-help__link--start:hover, .ysp-help__link--start:focus { border-color: var(--ye-gold); background: var(--ye-sun); color: var(--ye-sun-ink); }
.ysp-help__link--talk, .ysp-help__link--talk:visited { border-color: transparent; background: var(--ye-fill-accent); color: #fff; }
.ysp-help__link--talk i { color: #fff; }
.ysp-help__link--talk:hover, .ysp-help__link--talk:focus { border-color: transparent; background: var(--ye-fill-accent-strong); color: #fff; }

/* ---------- A page hero with a scene (placement, contact, 404, team, magazine) ---------- */
.ysp-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 440px); gap: 32px; align-items: center; padding: 30px 34px; overflow: hidden; border: 1px solid var(--ye-border); border-radius: 24px; background: linear-gradient(180deg, var(--ye-tint-soft) 0%, var(--ye-surface) 100%); }
.ysp-hero__copy { min-width: 0; }
.ysp-hero__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.ysp-hero__art { position: relative; min-width: 0; }
.ysp-hero__art .ysp-scene { box-shadow: 0 18px 40px rgba(46, 31, 84, .14); }

/* Three numbered steps */
.ysp-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 18px 0 0; padding: 0; list-style: none; }
.ysp-steps li { display: flex; align-items: flex-start; gap: 12px; padding: 16px 18px; border: 1px solid var(--ye-border); border-radius: 18px; background: var(--ye-surface); }
.ysp-steps li > span { display: inline-grid; place-items: center; flex: 0 0 auto; width: 34px; height: 34px; border-radius: 50%; background: var(--ye-fill-deep); color: #fff; font-size: 15px; font-weight: var(--ye-w-bold); }
.ysp-steps li:last-child > span { background: var(--ye-sun); color: var(--ye-sun-ink); }
.ysp-steps strong { display: block; color: var(--ye-ink); font-size: 15.5px; line-height: 1.8; }
.ysp-steps p { margin: 0; color: var(--ye-muted); font-size: 14px; line-height: 1.8; }

.ysp-section { margin-top: 34px; }
.ysp-section__head { margin-bottom: 16px; }
.ysp .ysp-section__head h2 { margin: 0; color: var(--ye-ink); font-size: 24px; font-weight: var(--ye-w-display); line-height: 1.6; }
.ysp-section__head p { max-width: 720px; margin: 4px 0 0; color: var(--ye-muted); font-size: 15px; line-height: 1.9; }
.ysp-section__head p a, .ysp-section__head p a:visited { color: var(--ye-accent); font-weight: var(--ye-w-bold); text-decoration: underline; text-decoration-color: var(--ye-border-accent); text-underline-offset: 4px; }
.ysp-section__head p a:hover { color: var(--ye-deep); text-decoration-color: currentColor; }

/* ---------- Placement: the four levels ---------- */
.ysp-levels { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.ysp-level, .ysp-level:visited { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--ye-border); border-radius: 22px; background: var(--ye-surface); color: inherit; transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease; }
.ysp-level:hover, .ysp-level:focus { border-color: var(--ye-border-accent); box-shadow: var(--ye-shadow); transform: translateY(-3px); }
.ysp-level__art .ysp-scene { border-radius: 0; }
.ysp-level__body { display: flex; flex: 1; flex-direction: column; gap: 4px; padding: 14px 16px 16px; }
.ysp-level__step { align-self: flex-start; padding: 0 10px; border-radius: 999px; background: var(--ye-tint); color: var(--ye-accent); font-size: 12.5px; font-weight: var(--ye-w-bold); line-height: 1.9; }
.ysp-level strong { color: var(--ye-ink); font-size: 18px; font-weight: var(--ye-w-heading); line-height: 1.7; }
.ysp-level strong small { color: var(--ye-muted); font-size: 12.5px; font-weight: var(--ye-w-bold); }
.ysp-level__text { color: var(--ye-muted); font-size: 14px; line-height: 1.85; }
.ysp-level__go { display: inline-flex; align-items: center; gap: 6px; margin-top: auto; padding-top: 8px; color: var(--ye-accent); font-size: 14.5px; font-weight: var(--ye-w-bold); }

/* ---------- Contact: three ways and the channels ---------- */
.ysp-guide { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 18px; }
.ysp-guide__item, .ysp-guide__item:visited { --ysp-way: var(--ye-accent); --ysp-way-tint: var(--ye-tint); display: flex; flex-direction: column; gap: 6px; padding: 22px; border: 1px solid var(--ye-border); border-radius: 22px; background: var(--ye-surface); color: inherit; transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease; }
.ysp-guide__item--password { --ysp-way: var(--ye-gold-ink); --ysp-way-tint: var(--ye-gold-tint); }
.ysp-guide__item--talk { --ysp-way: var(--ye-green); --ysp-way-tint: var(--ye-green-tint); }
.ysp-guide__item--start { --ysp-way: var(--ye-info); --ysp-way-tint: var(--ye-info-tint); }
.ysp-guide--four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.ysp-guide__item:hover, .ysp-guide__item:focus { border-color: var(--ye-border-accent); box-shadow: var(--ye-shadow); transform: translateY(-3px); }
.ysp-guide__icon { display: inline-grid; place-items: center; width: 52px; height: 52px; margin-bottom: 6px; border-radius: 16px; background: var(--ysp-way-tint); color: var(--ysp-way); font-size: 22px; }
.ysp-guide__item strong { color: var(--ye-ink); font-size: 18px; font-weight: var(--ye-w-heading); line-height: 1.7; }
.ysp-guide__item > span:not(.ysp-guide__icon) { color: var(--ye-muted); font-size: 14.5px; line-height: 1.9; }
.ysp-guide__item em { display: inline-flex; align-items: center; gap: 6px; margin-top: auto; padding-top: 8px; color: var(--ysp-way); font-size: 14.5px; font-style: normal; font-weight: var(--ye-w-bold); }

.ysp-channels { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.ysp-channels li { margin: 0; }
.ysp-channel, .ysp-channel:visited { display: flex; align-items: center; gap: 14px; height: 100%; padding: 16px 18px; border: 1px solid var(--ye-border); border-radius: 18px; background: var(--ye-surface); color: inherit; transition: border-color .15s ease, background .15s ease; }
.ysp-channel:hover, .ysp-channel:focus { border-color: var(--ye-border-accent); background: var(--ye-tint-soft); }
.ysp-channel__icon { display: inline-grid; place-items: center; flex: 0 0 46px; width: 46px; height: 46px; border-radius: 14px; background: var(--ye-tint); color: var(--ye-accent); font-size: 20px; }
.ysp-channel__text { flex: 1; min-width: 0; }
.ysp-channel__text strong { display: block; color: var(--ye-ink); font-size: 15.5px; line-height: 1.7; }
.ysp-channel__text span { display: block; color: var(--ye-muted); font-size: 13.5px; line-height: 1.8; }
.ysp-channel__id { flex: 0 0 auto; color: var(--ye-deep); font-size: 14px; font-weight: var(--ye-w-bold); }

/* ---------- 404 ---------- */
.ysp-search { display: flex; max-width: 480px; margin-top: 20px; border: 1px solid var(--ye-border-strong); border-radius: 16px; background: var(--ye-surface); box-shadow: var(--ye-shadow-sm); overflow: hidden; }
.ysp-search:focus-within { border-color: var(--ye-accent); }
.ysp-search input { flex: 1; min-width: 0; min-height: 52px; padding: 8px 16px; border: 0; background: transparent; color: var(--ye-ink); font: inherit; font-size: 15.5px; }
.ysp-search input:focus { outline: none; }
.ysp-search button { flex: 0 0 56px; border: 0; background: var(--ye-fill-accent); color: #fff; font-size: 18px; cursor: pointer; }
.ysp-search button:hover { background: var(--ye-fill-accent-strong); }
.ysp-shortcuts { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
.ysp-shortcuts li { margin: 0; }
.ysp-shortcuts a, .ysp-shortcuts a:visited { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 8px 18px; border: 1px solid var(--ye-border); border-radius: 999px; background: var(--ye-surface); color: var(--ye-ink); font-size: 15px; font-weight: var(--ye-w-semibold); transition: background .15s ease, border-color .15s ease; }
.ysp-shortcuts a i { color: var(--ye-accent); }
.ysp-shortcuts a:hover, .ysp-shortcuts a:focus { border-color: var(--ye-border-accent); background: var(--ye-tint); color: var(--ye-deep); }

/* ---------- The team (archive-member.php, single-member.php) ---------- */
.ysp-people { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 18px; margin: 0; padding: 0; list-style: none; }
.ysp-people--lead { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.ysp-people li { margin: 0; }
.ysp-person, .ysp-person:visited { display: flex; flex-direction: column; height: 100%; overflow: hidden; border: 1px solid var(--ye-border); border-radius: 22px; background: var(--ye-surface); color: inherit; transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease; }
.ysp-person:hover, .ysp-person:focus { border-color: var(--ye-border-accent); box-shadow: var(--ye-shadow); transform: translateY(-3px); }
.ysp-person__photo { position: relative; display: block; aspect-ratio: 1; overflow: hidden; background: linear-gradient(160deg, var(--ye-tint) 0%, var(--ye-tint-strong) 100%); }
.ysp-person__photo img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .3s ease; }
.ysp-person:hover .ysp-person__photo img { transform: scale(1.03); }
.ysp-person__initial { display: grid; place-items: center; width: 100%; height: 100%; color: var(--ye-accent); font-size: 54px; font-weight: var(--ye-w-display); }
.ysp-person__body { display: flex; flex-direction: column; gap: 2px; padding: 12px 16px 16px; text-align: center; }
.ysp-person strong { color: var(--ye-ink); font-size: 16.5px; font-weight: var(--ye-w-heading); line-height: 1.7; }
.ysp-person span.ysp-person__role { color: var(--ye-muted); font-size: 13.5px; line-height: 1.8; }
.ysp-people--small { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
.ysp-people--small .ysp-person__photo { aspect-ratio: auto; height: 0; padding: 0; }
.ysp-people--small .ysp-person__photo:has(img) { aspect-ratio: 1; height: auto; }
.ysp-people--small .ysp-person__body { padding-top: 16px; }

.ysp-member { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 28px; align-items: start; }
.ysp-member__side { position: sticky; top: 96px; overflow: hidden; border: 1px solid var(--ye-border); border-radius: 24px; background: var(--ye-surface); }
.ysp-member__side .ysp-person__photo { aspect-ratio: 4 / 5; }
.ysp-member__side .ysp-person__initial { font-size: 84px; }
.ysp-member__name { padding: 14px 18px 18px; text-align: center; }
.ysp-member__name .ysp-title { font-size: 24px; }
.ysp-member__role { display: inline-block; margin-top: 4px; padding: 0 12px; border-radius: 999px; background: var(--ye-tint); color: var(--ye-accent); font-size: 13.5px; font-weight: var(--ye-w-bold); line-height: 2; }
.ysp-member .ysp-card { margin-top: 0; }
.ysp-member__back, .ysp-member__back:visited { display: inline-flex; align-items: center; gap: 8px; margin-top: 16px; color: var(--ye-accent); font-size: 15px; font-weight: var(--ye-w-bold); }

/* ---------- The magazine (archive-magazine.php) ---------- */
.ysp-mags.ysp-section, .ysp-books.ysp-section { margin-top: 24px; }
.ysp-mags { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 26px 20px; margin: 0; padding: 0; list-style: none; }
.ysp-mags li { margin: 0; }
.ysp-mag, .ysp-mag:visited { display: flex; flex-direction: column; gap: 10px; color: inherit; }
.ysp-mag__cover { position: relative; display: block; aspect-ratio: 3 / 4; overflow: hidden; border: 1px solid var(--ye-border); border-radius: 16px; background: var(--ye-tint); box-shadow: 0 10px 26px rgba(41, 34, 53, .12); transition: box-shadow .2s ease, transform .2s ease; }
.ysp-mag__cover img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ysp-mag:hover .ysp-mag__cover, .ysp-mag:focus .ysp-mag__cover { box-shadow: 0 18px 36px rgba(46, 31, 84, .2); transform: translateY(-4px) rotate(-1deg); }
.ysp-mag__title { color: var(--ye-ink); font-size: 15px; font-weight: var(--ye-w-bold); line-height: 1.75; text-align: center; }
.ysp-pages { margin-top: 26px; text-align: center; }
.ysp-pages .page-numbers { display: inline-grid; place-items: center; min-width: 42px; height: 42px; margin: 0 3px; padding: 0 10px; border: 1px solid var(--ye-border); border-radius: 12px; background: var(--ye-surface); color: var(--ye-ink); font-weight: var(--ye-w-bold); }
.ysp-pages .page-numbers.current { border-color: transparent; background: var(--ye-fill-deep); color: #fff; }

.ysp-empty { display: grid; justify-items: center; gap: 10px; padding: 36px 20px; border: 1px dashed var(--ye-border-strong); border-radius: 22px; background: var(--ye-tint-soft); color: var(--ye-muted); font-size: 15.5px; line-height: 1.9; text-align: center; }
.ysp-empty > i { display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--ye-tint-strong); color: var(--ye-accent); font-size: 24px; }
.ysp-empty strong { color: var(--ye-ink); font-size: 18px; }
.ysp-empty p { max-width: 520px; margin: 0; }
.ysp-empty .ysp-hero__actions { justify-content: center; margin-top: 6px; }

/* ---------- Speaking teachers (archive-teacher.php keeps its own markup) ---------- */
.ysp-page .team-list { padding: 22px 0 60px; }
.ysp-page .team-list .team-sec-title { margin: 0 0 18px; padding: 0; border: 0; color: var(--ye-ink); font-size: 26px; font-weight: var(--ye-w-display); line-height: 1.6; text-align: right; }
.ysp-page .team-list .team-sec-title small { display: block; margin-top: 4px; color: var(--ye-muted); font-size: 14.5px; font-weight: var(--ye-w-bold); }
.ysp-page .team-list .mem-item { overflow: hidden; margin-bottom: 20px; border: 1px solid var(--ye-border); border-radius: 22px; background: var(--ye-surface); box-shadow: none; }
.ysp-page .team-list .mem-ava { position: relative; aspect-ratio: 1; overflow: hidden; border-radius: 0; background: var(--ye-tint); }
.ysp-page .team-list .mem-ava img { width: 100%; height: 100%; object-fit: cover; filter: none; }
.ysp-page .team-list .mem-ava a { position: absolute; inset: 0; }
.ysp-page .team-list .mem-item .info { position: static; padding: 12px 14px 16px; background: none; text-align: center; }
.ysp-page .team-list .mem-item h2 { margin: 0; font-size: 16.5px; font-weight: var(--ye-w-heading); line-height: 1.7; }
.ysp-page .team-list .mem-item h2 a { color: var(--ye-ink); }
.ysp-page .team-list .mem-item .h3 { margin: 2px 0 0; color: var(--ye-muted); font-size: 13.5px; }
.ysp-page .team-list .mem-item .h3 a { color: var(--ye-accent); }

/* ---------- Printed books (page-physhop.php, item-physhop.php) ---------- */
.ysp-books { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 18px; margin: 0; padding: 0; list-style: none; }
.ysp-books li { margin: 0; }
.ysp-books .physhop-item-round { display: flex; flex-direction: column; height: 100%; margin: 0; overflow: hidden; border: 1px solid var(--ye-border); border-radius: 22px; background: var(--ye-surface); box-shadow: none; }
.ysp-books .physhop-item-round .cover { aspect-ratio: 1; overflow: hidden; background: var(--ye-tint); }
.ysp-books .physhop-item-round .cover img { width: 100%; height: 100%; object-fit: cover; }
.ysp-books .physhop-item-round .con { display: flex; flex: 1; flex-direction: column; gap: 6px; padding: 14px 16px 16px; text-align: center; }
.ysp-books .physhop-item-round .title a { color: var(--ye-ink); font-size: 16px; font-weight: var(--ye-w-bold); line-height: 1.75; }
.ysp-books .physhop-item-round .price { color: var(--ye-deep); font-weight: var(--ye-w-bold); }
.ysp-books .physhop-item-round .btn { display: flex; align-items: center; justify-content: center; min-height: 44px; margin-top: auto; border: 0; border-radius: 12px; background: var(--ye-tint); color: var(--ye-accent); font-weight: var(--ye-w-bold); }
.ysp-books .physhop-item-round .btn:hover { background: var(--ye-fill-accent); color: #fff; }

/* ---------- Tablets and phones ---------- */
@media (max-width: 1199px) {
	.ysp-levels { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.ysp-guide--four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 991px) {
	.ysp-hero { grid-template-columns: minmax(0, 1fr); gap: 20px; }
	.ysp-hero__art { order: -1; max-width: 520px; }
	.ysp-guide { grid-template-columns: minmax(0, 1fr); }
	.ysp-guide__item, .ysp-guide__item:visited { display: grid; grid-template-columns: 52px minmax(0, 1fr); grid-template-areas: "icon title" "icon text" "icon go"; gap: 2px 14px; padding: 18px; }
	.ysp-guide__icon { grid-area: icon; margin: 0; }
	.ysp-guide__item strong { grid-area: title; }
	.ysp-guide__item > span:not(.ysp-guide__icon) { grid-area: text; }
	.ysp-guide__item em { grid-area: go; padding-top: 4px; }
	.ysp-member { grid-template-columns: minmax(0, 1fr); }
	.ysp-member__side { position: static; display: grid; grid-template-columns: 140px minmax(0, 1fr); align-items: center; }
	.ysp-member__side .ysp-person__photo { aspect-ratio: 1; }
	.ysp-member__side .ysp-person__initial { font-size: 56px; }
	.ysp-member__name { text-align: right; }
}
@media (max-width: 767px) {
	.ysp { padding: 14px 0 48px; }
	.ysp-head, .ysp-hero { padding: 20px 18px; border-radius: 20px; }
	.ysp .ysp-title { font-size: 25px; line-height: 1.6; }
	.ysp-lead { font-size: 15px; line-height: 1.95; }
	.ysp-card { padding: 22px 18px; border-radius: 20px; }
	.ysp-prose { font-size: 15.5px; line-height: 2.05; }
	.ysp-prose h1, .ysp-prose h2 { font-size: 19.5px; }
	.ysp-prose table { display: block; overflow-x: auto; }
	.ysp-hero__actions .ysp-btn { flex: 1 1 100%; }
	.ysp-steps { grid-template-columns: minmax(0, 1fr); gap: 8px; }
	.ysp-steps li { padding: 12px 14px; }
	.ysp-levels { grid-template-columns: minmax(0, 1fr); }
	.ysp-level, .ysp-level:visited { display: grid; grid-template-columns: 132px minmax(0, 1fr); }
	.ysp-level__art .ysp-scene { height: 100%; aspect-ratio: auto; min-height: 120px; }
	.ysp-level__art .ysp-scene__layer { object-fit: cover; object-position: 50% 100%; }
	.ysp-level__body { padding: 12px 14px; }
	.ysp-level strong { font-size: 16.5px; }
	.ysp-channels { grid-template-columns: minmax(0, 1fr); }
	.ysp-channel { flex-wrap: wrap; }
	.ysp-channel__id { flex-basis: 100%; padding-right: 60px; font-size: 13.5px; }
	.ysp .ysp-section__head h2 { font-size: 21px; }
	.ysp-help { padding: 18px; }
	.ysp-help__links { width: 100%; }
	.ysp-help__link, .ysp-help__link:visited { flex: 1 1 auto; justify-content: center; }
	.ysp-people, .ysp-people--lead { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
	.ysp-person__body { padding: 10px 10px 12px; }
	.ysp-person strong { font-size: 15px; }
	.ysp-mags { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 12px; }
	.ysp-books { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
	.ysp-member__side { grid-template-columns: 110px minmax(0, 1fr); }
	.ysp-member__name .ysp-title { font-size: 20px; }
	.ysp-note { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
	.ysp *, .ysp *::before, .ysp *::after { transition: none !important; }
}
