/* Public Quick Help. Scoped, logical positioning and native disclosure. */
.ypm-help{--help-bottom:1rem;position:fixed;inset-inline-end:max(1rem,env(safe-area-inset-right));bottom:calc(var(--help-bottom) + env(safe-area-inset-bottom,0px));z-index:90;font:inherit;color:#244f42;line-height:1.55;text-align:start}
[dir=rtl] .ypm-help{inset-inline-end:max(1rem,env(safe-area-inset-left))}
.ypm-help *{box-sizing:border-box}
.ypm-help__launcher{list-style:none;display:flex;align-items:center;justify-content:center;gap:.45rem;min-height:48px;min-width:48px;width:max-content;margin-inline-start:auto;padding:.6rem .9rem;border:1px solid #d5bd85;border-radius:999px;background:#244f42;color:#fff;cursor:pointer;box-shadow:0 3px 14px #142b2540;font-size:.9rem;font-weight:600}
.ypm-help__launcher::-webkit-details-marker{display:none}
.ypm-help__panel{position:absolute;inset-inline-end:0;bottom:calc(100% + .65rem);width:min(22rem,calc(100vw - 2rem));max-height:max(0px,calc(100vh - var(--help-bottom) - 12rem));max-height:var(--help-panel-max,max(0px,calc(100dvh - var(--help-bottom) - 12rem - env(safe-area-inset-bottom,0px))));overflow:auto;overscroll-behavior:contain;background:#fffdf8;border:1px solid #b6a67c;border-radius:1rem;box-shadow:0 12px 40px #142b2530}
.ypm-help__header{padding:1rem;background:#244f42;color:#fff}
.ypm-help__header h2{color:inherit;font:inherit;font-size:1.12rem;font-weight:700;margin:0 0 .2rem}
.ypm-help__header p{font-size:.875rem;margin:0;color:inherit}
.ypm-help__content{padding:.75rem}
.ypm-help__content ul{list-style:none;margin:0;padding:0;display:grid;gap:.3rem}
.ypm-help__content li{margin:0;padding:0}
.ypm-help__content nav a,.ypm-help__replay>summary{display:flex;justify-content:space-between;align-items:center;gap:.5rem;min-height:44px;padding:.55rem .65rem;background:#f4f0e5;border:1px solid #dcd4bf;border-radius:.5rem;color:#244f42;text-decoration:none;font-size:.9rem;font-weight:600;cursor:pointer}
.ypm-help__replay{margin-block:.5rem}
.ypm-help__replay>summary{display:list-item;list-style-position:inside}
.ypm-help__replay p,.ypm-help__note{font-size:.84rem;margin:.5rem 0;line-height:1.6;color:#41534c}
.ypm-help__replay a{color:#244f42;text-decoration:underline}
.ypm-help__close{font:inherit;font-size:.85rem;min-height:44px;color:#244f42;background:transparent;border:1px solid #b6a67c;border-radius:.5rem;width:100%;cursor:pointer}
.ypm-help [hidden]{display:none!important}
.ypm-help :is(a,summary,button):focus-visible{outline:3px solid #ad7525;outline-offset:2px}
.ypm-help__content nav a:hover,.ypm-help__replay>summary:hover{background:#e8e2d2}
/* The shared menu is modal on mobile: remove the launcher and all its
   descendants from layout, hit testing and the accessibility tree. */
body.nav-menu-open .ypm-help,.ypm-help[hidden]{display:none!important}
body:has([data-nav-toggle][aria-expanded=true]) .ypm-help{display:none!important}
body:has(.sticky-cta) .ypm-help{--help-bottom:6rem}
@media(max-width:720px){.ypm-help__launcher{width:48px;padding:.55rem}.ypm-help__launcher span{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}}

/* V4.5 Serenity & Motion: shared visual layer, loaded last by the existing Quick Help stylesheet. */
/* V4.5 A1 preview: visual-only CSS, no changed content, layout contracts or navigation JS. */
body:has(.v4-journey, .v4-courses) .site-header--nav-v2 {
  background: rgb(250 248 242 / .84);
  border-block-end-color: rgb(180 154 101 / .24);
  box-shadow: 0 5px 26px rgb(22 51 41 / .055);
}
body:has(.v4-journey, .v4-courses) .site-header--nav-v2.is-scrolled {
  background: rgb(250 248 242 / .91);
  box-shadow: 0 9px 30px rgb(22 51 41 / .085);
}
/* Retain the existing pseudo-element blur; never filter the header ancestor of fixed navigation. */
.v4-journey--hero {
  background: radial-gradient(ellipse at 86% 14%, #e8ebdd 0%, transparent 58%),
              radial-gradient(ellipse at 14% 6%, #fcf8ec 0%, transparent 57%), #f6f2e9;
}
.v4-journey--trust, .v4-journey--help {
  background: linear-gradient(145deg, #f8f5ed, #eaece0 160%);
}
.v4-journey--library {
  background: linear-gradient(145deg, #fdfaf2, #f2eee3);
}
.v4-courses {
  background: radial-gradient(ellipse at 86% 6%, #e8ebdf 0%, transparent 64%), #f6f2e9;
}
.v4-journey__hero-image {
  border-radius: 1.25rem;
  box-shadow: 0 14px 36px rgb(29 53 41 / .13), 0 2px 6px rgb(29 53 41 / .08);
}
/* Address the real intended-font geometry finding without reducing text size. */
html[lang="fa"] #home-hero-title { line-height: 1.55 !important; }
.v4-journey__trust-grid > div,
.v4-journey__goal-grid a,
.v4-courses__card,
.v4-courses__panel,
.v4-courses__package {
  background: linear-gradient(150deg, rgb(255 254 250 / .96), rgb(250 248 240 / .82));
  border-color: rgb(127 142 118 / .26);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .9), 0 7px 22px rgb(31 56 44 / .055);
}
.v4-courses__card, .v4-courses__panel { border-radius: 1.15rem; }
.v4-journey__trust-grid > div { border-radius: 1rem; }
.v4-journey__goal-grid a, .v4-courses__package { border-radius: .8rem; }
.v4-journey__button, .v4-courses__button {
  border-radius: .72rem;
  /* Keep the same gradient and an opaque base throughout the hover transition. */
  background-color: #244f42;
  background-image: linear-gradient(135deg, rgb(255 255 255 / .08), rgb(0 0 0 / .12));
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .18), 0 4px 11px rgb(32 70 58 / .13);
}
.v4-journey__button--outline {
  background: rgb(255 253 246 / .76);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .8);
}
.v4-journey__button:not(.v4-journey__button--outline):is(:hover,:focus-visible),
.v4-courses__button:is(:hover,:focus-visible) { background-color: #193e33; }
.v4-journey__button--outline:is(:hover,:focus-visible) { background: #fffdf8; }
/* Shared Quick Help: preserve fixed placement, hit testing, panel bounds and native disclosure. */
.ypm-help__launcher {
  background: linear-gradient(135deg,#3b6b59,#214b3f 80%);
  border-color: rgb(215 190 135 / .8);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .24), 0 7px 21px rgb(19 48 39 / .22);
}
.ypm-help__panel {
  background: #fcfaf3;
  border-radius: 1.15rem;
  box-shadow: 0 15px 44px rgb(19 48 39 / .2);
}
.ypm-help__header { background: linear-gradient(135deg,#326454,#20463a); }
@supports (backdrop-filter: blur(12px)) or (-webkit-backdrop-filter: blur(12px)) {
  .ypm-help__panel {
    background: rgb(252 250 243 / .96);
    backdrop-filter: blur(12px) saturate(115%);
    -webkit-backdrop-filter: blur(12px) saturate(115%);
  }
}
@media (prefers-reduced-motion: no-preference) {
  .v4-courses__card, .v4-journey__trust-grid > div, .v4-journey__goal-grid a,
  .v4-journey__button, .v4-courses__button, .ypm-help__launcher {
    transition: box-shadow 260ms ease, background-color 220ms ease, border-color 220ms ease, color 220ms ease;
  }
  .v4-courses__card .v4-courses__image { transition: transform 480ms cubic-bezier(.22,1,.36,1); }
  @keyframes ypm-v45-help-enter { from { opacity: .8; transform: translateY(5px); } to { opacity: 1; transform: none; } }
  .ypm-help[open] .ypm-help__panel { animation: ypm-v45-help-enter 220ms cubic-bezier(.22,1,.36,1) both; }
  @keyframes ypm-v45-hero-enter { from { opacity: .85; transform: translateY(5px); } to { opacity: 1; transform: none; } }
  .v4-journey__hero-image { animation: ypm-v45-hero-enter 440ms ease-out both; }
  /* Optional native scroll motion on imagery only. Text and CTAs are never hidden. */
  @supports (animation-timeline: view()) {
    @keyframes ypm-v45-image-enter { from { opacity: .88; } to { opacity: 1; } }
    .v4-courses__card .v4-courses__image {
      animation: ypm-v45-image-enter linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 100%;
    }
  }
}
@media (prefers-reduced-motion: no-preference) and (hover: hover) and (pointer: fine) {
  .v4-courses__card:hover, .v4-journey__trust-grid > div:hover {
    box-shadow: inset 0 1px 0 #fff, 0 13px 30px rgb(31 56 44 / .12);
    border-color: rgb(127 142 118 / .44);
  }
  .v4-courses__card:hover .v4-courses__image { transform: scale(1.025); }
  .v4-journey__goal-grid a:hover, .ypm-help__launcher:hover { box-shadow: 0 6px 18px rgb(31 56 44 / .14); }
}
@media (prefers-reduced-motion: reduce) {
  .v4-journey__hero-image, .v4-courses__card .v4-courses__image,
  .v4-courses__card, .v4-journey__trust-grid > div, .v4-journey__goal-grid a,
  .v4-journey__button, .v4-courses__button, .ypm-help__launcher,
  .ypm-help[open] .ypm-help__panel { animation: none; transition: none; }
}
