/* Yoga Payammehr Knowledge Library: scoped, no remote fonts/dependencies. */
.ypm-library { background: #f7f4ed; }
.ypm-library__hero { display:grid; grid-template-columns:minmax(0,1.65fr) minmax(260px,.8fr); gap:clamp(1.5rem,4vw,4rem); align-items:center; padding:clamp(1rem,3vw,3rem) 0 clamp(2rem,4vw,4.5rem); }
.ypm-library__intro h1, .ypm-library__coming h1 { color:#173f35; max-width:19ch; font-size:clamp(2.1rem,4vw,3.8rem);line-height:1.42;margin:.6rem 0 1.2rem; }
.ypm-library__intro > p:not(.eyebrow), .ypm-library__coming > p:not(.eyebrow):not(.ypm-library__coming-symbol) {max-width:65ch;color:#51635a;font-size:1.04rem;line-height:2;}
.ypm-library__intro .ypm-library__count {font-size:.86rem!important;font-weight:700;color:#365e50!important;}
.ypm-library__hero-card {border:1px solid #daccb3;border-radius:18px;padding:clamp(1.5rem,3vw,2.4rem);background:linear-gradient(145deg,#fffefb,#eee7d9);box-shadow:0 12px 35px rgb(36 57 46 / 5%);min-width:0;}
.ypm-library__hero-card-kicker{color:#8d6a36;font-weight:700;font-size:.82rem;letter-spacing:.03em;}
.ypm-library__hero-card strong{display:block;font-size:clamp(3rem,5vw,4.7rem);font-weight:600;color:#174238;line-height:1.25;}
.ypm-library__hero-card span{font-size:1rem;color:#23473b;font-weight:700;}
.ypm-library__hero-card p:last-child{color:#58665b;line-height:1.9;margin:1rem 0 0;font-size:.9rem;}
.ypm-library__filters{display:flex;flex-wrap:wrap;gap:.65rem;padding:0 0 2rem;border-bottom:1px solid #dfd5c6;margin-block-end:2rem;}
.ypm-library__filter{display:inline-flex;gap:.65rem;align-items:center;text-decoration:none;color:#214b3c;background:#fffdfa;border:1px solid #d8d1c3;border-radius:100px;padding:.58rem 1rem;font-weight:700;font-size:.9rem;min-height:44px;}
.ypm-library__filter span{font-size:.78rem;color:#64746a;}
.ypm-library__filter.is-active,.ypm-library__filter:hover{background:#205546;color:#fff;border-color:#205546;}
.ypm-library__filter.is-active span,.ypm-library__filter:hover span{color:#e7eee7;}
.ypm-library__filter:focus-visible,.ypm-library a:focus-visible,.ypm-library-preview a:focus-visible{outline:3px solid #a88242;outline-offset:3px;}
.ypm-library__group-heading{display:flex;justify-content:space-between;align-items:baseline;gap:1rem;border-bottom:1px solid #e2d8ca;margin-bottom:1.4rem;}
.ypm-library__group-heading h2{margin:0 0 1rem;}
.ypm-library__group-heading span{font-size:.9rem;color:#6a796e;}
.ypm-library .insights-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:1.1rem;}
.ypm-library .insights-card{background:#fffefb;border-color:#dfd4c2;box-shadow:0 10px 30px rgb(20 55 38 / 4%);}
.ypm-library__card-meta{display:flex;align-items:center;justify-content:space-between;gap:.75rem;width:100%;margin-bottom:1rem;flex-wrap:wrap;}
.ypm-library__card-meta .insights-card__category{margin:0;}
.ypm-library__access{display:inline-flex;align-items:center;gap:.3rem;border-radius:100px;padding:.3rem .7rem;font-size:.74rem;font-weight:700;white-space:nowrap;}
.ypm-library__access--premium{background:#f4ecdb;color:#82602b;border:1px solid #e4d5ae;}
.ypm-library__access--free{background:#e8f1eb;color:#32624c;border:1px solid #d0dfd6;}
.ypm-library-preview{border-color:#dac9a8;background:#fffdfa;}
.ypm-library-preview__heading{color:#234b3e;margin:0 0 .8rem;}
.ypm-library-lock{background:linear-gradient(135deg,#f2ead8,#f7f3ea);border:1px solid #dac69e;border-radius:14px;padding:clamp(1.2rem,3vw,2.1rem);margin-block:2rem .3rem;}
.ypm-library-lock h3{color:#244b3b;margin:0 0 .6rem;font-size:1.3rem;}
.ypm-library-lock p{line-height:1.9;color:#4e6052;margin:0 0 1.1rem;}
.ypm-library-lock a,.ypm-library__coming-return{display:inline-flex;text-decoration:none;align-items:center;justify-content:center;border-radius:100px;background:#215645;color:#fff;padding:.85rem 1.35rem;min-height:44px;font-weight:700;}
.ypm-library-lock a:hover,.ypm-library__coming-return:hover{background:#163e32;color:#fff;}
.ypm-library__coming{max-width:780px;margin:2rem auto 4rem;border:1px solid #e4d5be;background:#fffefa;border-radius:1.25rem;text-align:center;padding:clamp(2rem,5vw,4.5rem);}
.ypm-library__coming h1{max-width:none;}
.ypm-library__coming > p:not(.eyebrow){margin-inline:auto;}
.ypm-library__coming-symbol{font-size:2rem!important;color:#ae8249!important;margin:0;}
.ypm-library__coming-return{margin-top:1rem;}
@media(max-width:850px){.ypm-library__hero{grid-template-columns:1fr;}.ypm-library .insights-grid{grid-template-columns:repeat(2,minmax(0,1fr));}}
@media(max-width:600px){.ypm-library .insights-grid{grid-template-columns:1fr;}.ypm-library__hero-card{padding:1.4rem;}.ypm-library__filters{gap:.5rem;}.ypm-library__filter{padding:.55rem .8rem;}}
@media(prefers-reduced-motion:reduce){.ypm-library *{scroll-behavior:auto!important;transition:none!important;}}

/* Bilingual, keyboard-accessible library search; scoped to Insights only. */
.ypm-library__search{display:grid;gap:.55rem;max-width:780px;margin:0 0 1.6rem;}
.ypm-library__search label{font-size:.98rem;font-weight:700;color:#214b3c;}
.ypm-library__search-row{display:flex;flex-wrap:wrap;gap:.65rem;align-items:stretch;}
.ypm-library__search input[type="search"]{flex:1 1 220px;min-width:0;min-height:48px;border:1px solid #c9cbbf;background:#fffefa;border-radius:12px;padding:.7rem 1rem;font:inherit;color:#173f35;}
.ypm-library__search input[type="search"]::placeholder{color:#617069;opacity:1;}
.ypm-library__search button{min-height:48px;min-width:92px;cursor:pointer;border:1px solid #205546;border-radius:12px;padding:.7rem 1.3rem;background:#205546;color:#fff;font:inherit;font-weight:700;}
.ypm-library__search button:hover{background:#163e32;}
.ypm-library__search-clear{display:inline-flex;align-items:center;justify-content:center;min-height:48px;padding:.5rem .75rem;color:#214b3c;text-underline-offset:.2em;}
.ypm-library__search input:focus-visible,.ypm-library__search button:focus-visible,.ypm-library__search-clear:focus-visible{outline:3px solid #a88242;outline-offset:3px;}
.ypm-library__result-count{font-weight:700;color:#365e50;margin:0 0 1.3rem;}
.ypm-library__empty{border:1px solid #e4d5be;background:#fffefa;border-radius:16px;padding:clamp(1.5rem,4vw,2.7rem);margin:0 0 2.5rem;}
.ypm-library__empty h2{font-size:1.5rem;color:#173f35;margin:0 0 .6rem;}
.ypm-library__empty p{color:#51635a;line-height:1.85;}
.ypm-library__empty a{color:#205546;font-weight:700;text-underline-offset:.2em;}
@media(max-width:420px){.ypm-library__search-row{display:grid;grid-template-columns:minmax(0,1fr) auto;}.ypm-library__search-row input[type="search"]{grid-column:1 / -1;}.ypm-library__search button{min-width:0;}}

/* M1.1: quiet, premium editorial rhythm; existing IRANSans/English font stack retained. */
.ypm-library{
  background:
    radial-gradient(ellipse at 92% 0%,rgba(199,168,105,.13),transparent 39%),
    radial-gradient(ellipse at 6% 44%,rgba(59,100,78,.06),transparent 45%),#f7f4ed;
}
.ypm-library__hero{
  position:relative;overflow:hidden;isolation:isolate;
  padding:clamp(1.5rem,4vw,3.6rem);
  margin-block:clamp(.35rem,1.4vw,1.1rem) clamp(2rem,4vw,3.5rem);
  border:1px solid rgba(169,138,84,.31);border-radius:clamp(18px,2.5vw,29px);
  background:linear-gradient(118deg,#fffdf6 2%,#f8f5eb 56%,#f0ede1 100%);
  box-shadow:0 16px 48px rgb(47 67 48 / 6%),inset 0 1px rgba(255,255,255,.9);
}
.ypm-library__hero::before,.ypm-library__hero::after{
  position:absolute;content:"";pointer-events:none;border:1px solid rgba(161,132,75,.14);
  width:440px;height:440px;border-radius:50%;z-index:-1;
}
.ypm-library__hero::before{inset:-310px -120px auto auto;}
.ypm-library__hero::after{inset:auto auto -360px -125px;}
.ypm-library__hero-ornament{position:absolute;inset-block-start:1.2rem;inset-inline-end:1.6rem;color:#ae8c4b;opacity:.62;font-size:1.3rem;}
.ypm-library__eyebrow{color:#8b6d43;letter-spacing:.13em;font-weight:700;}
.ypm-library__eyebrow span{font-size:.7em;margin-inline:.45em;color:#b69659;}
.ypm-library__intro h1{letter-spacing:-.018em;}
.ypm-library__editorial-rule{display:flex;align-items:center;gap:.8rem;color:#aa8247;width:min(230px,65%);margin-top:1.35rem;}
.ypm-library__editorial-rule::after{content:"";height:1px;flex:1;background:linear-gradient(90deg,#ae8b51,transparent);}
.ypm-library__hero-card{border-color:#d7c5a3;box-shadow:0 13px 40px rgba(45,69,45,.08);}
/* Keep the animated search form above following filters, headings and cards. */
.ypm-library__search{position:relative;z-index:40;max-width:980px;margin-block-end:1.65rem;gap:.75rem;padding:clamp(1.15rem,2.4vw,1.7rem);background:rgba(255,254,250,.91);border:1px solid #e0d5bd;border-radius:18px;box-shadow:0 10px 35px rgba(40,63,48,.045);}
.ypm-library__search-input-wrap{position:relative;flex:1 1 280px;min-width:0;}
.ypm-library__search .ypm-library__search-input-wrap input[type="search"]{display:block;min-width:0;width:100%;height:100%;}
.ypm-library__search input:focus{border-color:#a98a50;box-shadow:0 0 0 3px rgba(176,143,79,.13);}
.ypm-library__search button{background:linear-gradient(145deg,#28634f,#184b3e);box-shadow:0 4px 14px rgba(21,73,54,.13);}
.ypm-library__suggestions{position:absolute;top:calc(100% + 8px);inset-inline:0;z-index:30;margin:0;padding:.4rem;list-style:none;max-height:340px;overflow-y:auto;background:#fffefa;border:1px solid #d4c6aa;border-radius:14px;box-shadow:0 15px 36px rgba(25,55,43,.19);}
.ypm-library__suggestions[hidden]{display:none!important;}
.ypm-library__suggestions li{margin:0;padding:0;}
.ypm-library__suggestions a{display:flex;justify-content:space-between;align-items:center;gap:1rem;min-height:48px;color:#1f473a;padding:.65rem .75rem;text-decoration:none;border-radius:9px;line-height:1.6;}
.ypm-library__suggestions li[aria-selected="true"] a,.ypm-library__suggestions a:hover,.ypm-library__suggestions a:focus-visible{background:#edf2e9;outline:2px solid transparent;}
.ypm-library__suggestion-kind{font-size:.73rem;white-space:nowrap;border:1px solid #ddcfb1;border-radius:99px;color:#7b5f2d;padding:.15rem .52rem;background:#f8f3e7;}
.ypm-library__search-announcement{position:absolute;inline-size:1px;block-size:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;}
.ypm-library__filters{padding-block:.2rem 1.7rem;}
.ypm-library__filter{border-color:#d8cbb4;box-shadow:0 2px 7px rgba(37,65,49,.03);}
.ypm-library__group-heading{position:relative;border-bottom-color:#d8ccb6;padding-block-end:.2rem;}
.ypm-library__group-heading::after{content:"";position:absolute;inset-block-end:-1px;inset-inline-start:0;width:72px;height:2px;background:#b39154;}
.ypm-library .insights-card{position:relative;overflow:hidden;border-radius:17px;box-shadow:0 8px 30px rgba(26,56,44,.055);}
.ypm-library .insights-card::before{content:"";position:absolute;inset-block-start:0;inset-inline:18px;height:2px;background:linear-gradient(90deg,transparent,#bea270,transparent);opacity:.7;}
.ypm-library__did-you-mean{padding:.8rem 1rem;background:#f4ede0;border-inline-start:3px solid #b39254;border-radius:7px;color:#234b3e;font-weight:600;}
.ypm-library__did-you-mean a{margin-inline-start:.35rem;text-decoration:underline;text-underline-offset:.18em;}
@media (max-width:600px){.ypm-library__hero{padding:1.35rem;}.ypm-library__hero-ornament{inset-inline-end:1rem;inset-block-start:.75rem;}.ypm-library__search{padding:1rem;}}
@media (max-width:420px){.ypm-library__search-input-wrap{grid-column:1/-1;}.ypm-library__search-row .ypm-library__search-clear{grid-column:1/-1;justify-self:start;}}
@media (prefers-reduced-motion:no-preference){
  .ypm-library__hero{animation:ypm-library-arrive .48s ease-out both;}
  .ypm-library__search{animation:ypm-library-arrive .5s .07s ease-out both;}
  .ypm-library .insights-card{transition:transform .24s ease,box-shadow .24s ease,border-color .24s ease;}
  .ypm-library .insights-card:hover,.ypm-library .insights-card:focus-within{transform:translateY(-4px);border-color:#cbb991;box-shadow:0 18px 38px rgba(29,67,48,.13);}
  .ypm-library__filter{transition:background .18s ease,color .18s ease,border-color .18s ease,transform .18s ease;}
  .ypm-library__filter:hover{transform:translateY(-1px);}
  .ypm-library__suggestions{animation:ypm-library-suggestions .16s ease-out both;}
  @keyframes ypm-library-arrive{from{opacity:.3;transform:translateY(10px);}to{opacity:1;transform:translateY(0);}}
  @keyframes ypm-library-suggestions{from{opacity:.55;transform:translateY(-5px);}to{opacity:1;transform:translateY(0);}}
}
