/* Parametric House structured lessons — English interface, inherits site's Vazir font. */
.ph-rs .ph-lesson-content .ph-lesson-part{margin:2.1rem 0 1.1rem;padding:0 0 .8rem;border-bottom:1px solid #e5e9ef}
.ph-rs .ph-lesson-content .ph-lesson-part:first-of-type{margin-top:1rem}
.ph-rs .ph-lesson-part h3{font-family:inherit;font-size:1.45rem;line-height:1.35;margin:0;color:#18334c}
.ph-rs .ph-lesson-copy{margin:1.1rem 0;line-height:1.8}
.ph-rs .ph-lesson-image{margin:1.45rem 0;padding:0}
.ph-rs .ph-lesson-image img{width:auto;max-width:100%;height:auto;border-radius:12px;display:block}
.ph-rs .ph-lesson-image figcaption{margin-top:12px;color:#4c5f6e}
.ph-rs .ph-lesson-gallery{margin:1.4rem 0}
.ph-rs .ph-lesson-video-card{background:#fff;border:1px solid #e3e9f0;border-radius:15px;box-shadow:0 4px 18px rgba(17,49,72,.045);padding:18px;margin:18px 0;overflow:hidden}
.ph-rs .ph-lesson-video-head{display:flex;align-items:center;justify-content:space-between;gap:14px;margin:0 0 14px}
.ph-rs .ph-lesson-video-head h3{font-family:inherit;font-size:1.08rem;line-height:1.4;margin:0;flex:1}
.ph-rs .ph-lesson-video-head span{font-size:.75rem;background:#eef6f1;color:#237a50;border-radius:30px;padding:5px 11px;font-weight:700}
.ph-rs .ph-lesson-video-card:has(.ph-vimeo-locked) .ph-lesson-video-head span{background:#fff3df;color:#95610c}
.ph-rs .ph-lesson-video-caption{padding:14px 2px 0;line-height:1.7}
.ph-rs .ph-lesson-video-caption img{max-width:100%;height:auto;border-radius:10px}
@media(max-width:650px){.ph-rs .ph-lesson-video-card{padding:11px;border-radius:11px}.ph-rs .ph-lesson-video-head{align-items:flex-start}.ph-rs .ph-lesson-part h3{font-size:1.23rem}}

/* Video cards: preserve existing HTML, ordering, captions, and Vimeo access state. */
.ph-rs .ph-video-list{display:flex;flex-direction:column;gap:20px}
.ph-rs .ph-video-list .ph-lesson-video-card{margin:0}
.ph-rs .ph-lesson-video-card{border:1px solid #e2e7ef;border-radius:17px;padding:clamp(13px,2.3vw,23px);box-shadow:0 8px 26px rgba(29,45,64,.052);overflow:hidden}
.ph-rs .ph-lesson-video-head{margin-bottom:16px;align-items:center;gap:12px}
.ph-rs .ph-lesson-video-head h3{font-family:inherit;font-weight:750;font-size:clamp(1rem,1.5vw,1.15rem);color:#172f48;line-height:1.55}
.ph-rs .ph-lesson-video-head span{white-space:nowrap;letter-spacing:.01em}
.ph-rs .ph-lesson-video-card .ph-video-frame{overflow:hidden;border-radius:11px;background:#0f1117}
.ph-rs .ph-lesson-video-caption{border-top:1px solid #e7ebf1;margin-top:17px;padding:16px 1px 1px;line-height:1.85;color:#354a5d}
.ph-rs .ph-lesson-video-caption>:first-child{margin-top:0}
.ph-rs .ph-lesson-video-caption>:last-child{margin-bottom:0}
.ph-rs .ph-lesson-video-caption a{text-decoration:underline;text-underline-offset:3px}
.ph-rs .ph-lesson-video-caption img{display:block;max-width:100%;height:auto;object-fit:contain;border-radius:10px;margin:14px 0}
.ph-rs .ph-lesson-video-caption ul,.ph-rs .ph-lesson-video-caption ol{padding-inline-start:1.4em}
@media(max-width:650px){.ph-rs .ph-video-list{gap:14px}.ph-rs .ph-lesson-video-card{border-radius:12px}}

/* Keep editor-defined image geometry, but never overflow narrow viewports. */
.ph-rs .ph-lesson-video-caption img,
.ph-rs .ph-lesson-copy img,
.ph-rs .ph-content img{max-width:100%;height:auto;}
.ph-rs .ph-lesson-video-caption figure,
.ph-rs .ph-lesson-copy figure{max-width:100%;}
.ph-rs .ph-lesson-video-caption img[width],
.ph-rs .ph-lesson-copy img[width]{max-width:100%;}

@media(max-width:650px){.ph-rs .ph-lesson-video-caption img[style*="height:"],.ph-rs .ph-lesson-copy img[style*="height:"]{height:auto!important}}
