/* Yama & Niyama bilingual presentation — additive to original course CSS.
   Only scoped YN elements; no changes to other course pages or the original assets. */
/* Match the persistent, calm course headers on Return to Self and Advanced Meditation.
   Unlike the original Persian landing CSS's absolute header, this stays visible on scroll. */
html.ypm-yn-root { scroll-padding-top: 6rem; }
.ypm-yn .site-header {
  position: sticky;
  inset-block-start: 0;
  z-index: 40;
  background: rgba(243, 241, 236, 0.92);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  backdrop-filter: saturate(140%) blur(10px);
  border-block-end: var(--hair);
  box-sizing: border-box;
}
.ypm-yn .site-header__inner { gap: 0.55rem; }
.ypm-yn .brand { min-width: 0; flex: 0 1 auto; }
.ypm-yn .brand__text { min-width: 0; overflow-wrap: anywhere; }
.ypm-yn .ypm-course-menu { margin-inline-start: auto; }
.ypm-yn .lang-switch {
  display: inline-flex; align-items: center; gap: 0.16rem;
  flex: 0 0 auto; border: 1px solid #c7b99c; border-radius: 10px;
  background: #f8f5ed; padding: 0.18rem;
  font-family: system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
}
.ypm-yn .lang-switch__item {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 34px; min-height: 38px; box-sizing: border-box;
  padding: 0.3rem 0.48rem; border-radius: 7px;
  text-decoration: none; font-size: 0.76rem; font-weight: 700; line-height: 1.2;
  color: #244c42;
}
.ypm-yn .lang-switch__item[aria-current="page"] {
  color: #fffdf8; background: #244c42;
}
.ypm-yn .lang-switch__item:focus-visible {
  outline: 3px solid #a67c36; outline-offset: 2px;
}
/* The Persian page keeps IranSans; English uses local system fonts without cross-origin requests. */
html.ypm-yn-root[lang="en"] { --font-fa: system-ui, -apple-system, "Segoe UI", Arial, sans-serif; }
html.ypm-yn-root[lang="en"] body.ypm-yn { line-height: 1.8; }
html.ypm-yn-root[lang="en"] .ypm-yn .hero__title,
html.ypm-yn-root[lang="en"] .ypm-yn .section-title,
html.ypm-yn-root[lang="en"] .ypm-yn .finale__signature {
  font-family: Georgia, "Times New Roman", serif;
  letter-spacing: -0.025em;
}
html.ypm-yn-root[lang="en"] .ypm-yn .hero__content { max-width: 48rem; }
html.ypm-yn-root[lang="en"] .ypm-yn .section-lead { max-width: 72ch; }
@media (max-width: 600px) {
  body.ypm-yn .site-header__inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: center; gap: 0.32rem;
  }
  body.ypm-yn .brand { gap: 0.3rem; }
  body.ypm-yn .brand__logo { width: 35px; height: 35px; }
  body.ypm-yn .brand__text { font-size: 0.79rem; line-height: 1.25; }
  body.ypm-yn .brand__mark { font-size: 0.56rem; letter-spacing: 0.01em; }
  body.ypm-yn .lang-switch__item { min-width: 29px; min-height: 38px; padding-inline: 0.27rem; }
  body.ypm-yn .ypm-course-menu { margin-inline-start: 0; }
}
@media (max-width: 360px) {
  body.ypm-yn .brand__mark { display: none; }
  body.ypm-yn .brand__logo { width: 32px; height: 32px; }
  body.ypm-yn .brand__text { font-size: 0.72rem; }
  body.ypm-yn .lang-switch__item { padding-inline: 0.22rem; }
}
@media print {
  body.ypm-yn .lang-switch { display: none; }
}
