/* Calm surfaces and discrete gallery navigation, scoped to the homepage. */
#site-content.reference-home [data-home-gallery] :is(.ananda-desktop-home-feed__card,.ananda-mobile-home-feed__card,.ananda-home-teacher-card,.ananda-home-archive-card){border:1px solid #d9bda4;box-shadow:0 3px 12px #75442709}
#site-content.reference-home :is([data-home-rail],.ananda-mobile-home-feed__rail){scrollbar-width:none;scroll-snap-type:x mandatory}
#site-content.reference-home :is([data-home-rail],.ananda-mobile-home-feed__rail)::-webkit-scrollbar{display:none}
.reference-home .ananda-gallery-navigation{display:flex;align-items:center;gap:12px;width:100%;margin:0 0 22px;padding:0;background:transparent}
.reference-home .ananda-gallery-navigation button{margin:0;box-sizing:border-box;cursor:pointer;box-shadow:none}
.reference-home .ananda-gallery-navigation__arrow{display:grid;place-items:center;flex:0 0 44px;min-width:44px;height:44px;padding:0;border:1px solid #d4ac88;border-radius:50%;background:#fffaf3;color:#8c3c21;font:24px Georgia,serif}
.reference-home .ananda-gallery-navigation__arrow:disabled{opacity:.35;cursor:default}
.reference-home .ananda-gallery-navigation__track{display:flex;align-items:center;gap:6px;flex:1;min-width:0;min-height:44px}
.reference-home .ananda-gallery-navigation__step{flex:1;min-width:0;height:44px;padding:0;border:0;border-radius:0;background:transparent;position:relative}
.reference-home .ananda-gallery-navigation__step:before{content:"";display:block;height:12px;border:1px solid #d3ae8b;border-radius:20px;background:#ead7c2;transition:background .2s}
.reference-home .ananda-gallery-navigation__step[aria-pressed="true"]:before{background:#ad572e;border-color:#93401f;box-shadow:0 0 0 2px #fff9ed,0 0 0 3px #c3a16c}
.reference-home .ananda-gallery-navigation button:hover:not(:disabled){color:#672c19}
.reference-home .ananda-gallery-navigation button:hover:before{background:#ca8d5a}
.reference-home .ananda-gallery-navigation button:focus-visible{outline:3px solid #be873b;outline-offset:3px;border-radius:12px}
.reference-home .ananda-gallery-navigation__status{flex:0 0 auto;min-width:42px;color:#8c5637;font-size:13px;text-align:center;font-variant-numeric:tabular-nums}
.reference-home .ananda-highlight-card{min-height:260px;text-transform:none;letter-spacing:normal;text-align:left;font:inherit;cursor:pointer}
.reference-home .ananda-highlight-card .ananda-home-gallery-title{min-height:0;padding:0;margin:0 0 18px;font-size:27px}
.reference-home .ananda-highlight-card .ananda-desktop-home-feed__card-copy{padding:28px}
.reference-home .ananda-highlight-detail{padding:24px;max-width:100%;overflow-wrap:anywhere}
.reference-home .ananda-highlight-detail img{max-width:100%;height:auto}
.reference-home .ananda-highlight-detail .ananda-highlight-detail__html :is(article,section){padding:0;border:0;background:transparent;box-shadow:none}
.reference-home .ananda-highlight-detail .ananda-highlight-detail__html>article>h3:first-child{display:none}
#site-content.reference-home .ananda-home-course-calendar .ananda-course-matrix{border:0;border-radius:0;box-shadow:none;background:transparent;min-width:0;max-width:100%}
#site-content.reference-home .ananda-home-course-calendar .ananda-course-matrix__results{padding:12px 0 0;background:transparent;border:0}
#site-content.reference-home .ananda-home-course-calendar .ananda-course-matrix__time-filters{border:0;background:transparent}
#site-content.reference-home .ananda-home-course-calendar .ananda-course-matrix__days{background:transparent;border:0;padding-inline:0;gap:6px}
#site-content.reference-home .ananda-home-course-calendar .ananda-course-matrix__days button{flex:1;min-width:0;padding-inline:3px}
#site-content.reference-home .ananda-home-course-calendar[data-calendar-view="minimal"] .ananda-offers-grid{gap:0;background:transparent}
#site-content.reference-home .ananda-home-course-calendar[data-calendar-view="minimal"] .ananda-offer-card--home-matrix{border:0;border-bottom:1px solid #e5d0bb;border-radius:0;box-shadow:none;background:transparent;padding:18px 0}
#site-content.reference-home .ananda-calendar-overlay{margin:0;width:100%;max-width:100%;min-width:0}
#site-content.reference-home .ananda-calendar-overlay>.ananda-home-course-calendar__toolbar{display:none}
#site-content.reference-home .ananda-calendar-overlay .ananda-course-matrix__groups{border:0;border-right:1px solid #e5d0bb;background:transparent}
@media(max-width:700px){
 #site-content.reference-home .ananda-homepage-highlight-gallery{padding:24px 12px;width:100%;margin:0}
 #site-content.reference-home .ananda-homepage-highlight-gallery .ananda-desktop-home-feed__rail{width:100%;margin:0;padding:4px;gap:14px}
 #site-content.reference-home .ananda-highlight-card{flex:0 0 86%;min-height:260px;scroll-snap-align:start}
 .reference-home .ananda-gallery-navigation{gap:8px;margin-bottom:16px}
 .reference-home .ananda-gallery-navigation__track{gap:4px}
 #site-content.reference-home .ananda-home-course-calendar .ananda-course-matrix__groups{border:0}
}

/* One compact reading scale for every gallery and calendar detail dialog.
   Source pages keep their own typography outside this shared modal surface. */
#site-content.reference-home .ananda-detail-overlay{--ananda-gallery-padding:16px;--ananda-overlay-body:16px}
#site-content.reference-home .ananda-detail-overlay__header{padding:10px 16px;gap:12px}
#site-content.reference-home .ananda-detail-overlay__header h2{font-size:17px;line-height:1.3}
#site-content.reference-home .ananda-detail-overlay__content{padding:16px;font-size:var(--ananda-overlay-body);line-height:1.5}
#site-content.reference-home .ananda-detail-overlay__content :is(h1,h2,h3,h4,h5,h6){line-height:1.2!important;letter-spacing:normal;margin:0 0 10px!important}
#site-content.reference-home .ananda-detail-overlay__content h1{font-size:32px!important}
#site-content.reference-home .ananda-detail-overlay__content h2{font-size:27px!important}
#site-content.reference-home .ananda-detail-overlay__content h3{font-size:22px!important}
#site-content.reference-home .ananda-detail-overlay__content :is(h4,h5,h6){font-size:18px!important}
#site-content.reference-home .ananda-detail-overlay__content :is(p,li,dt,dd,th,td,blockquote){font-size:var(--ananda-overlay-body)!important;line-height:1.5!important}
#site-content.reference-home .ananda-detail-overlay__content :is(p,ul,ol,dl,blockquote){margin-top:0!important;margin-bottom:10px!important}
#site-content.reference-home .ananda-detail-overlay__content :is(ul,ol){padding-inline-start:22px}
#site-content.reference-home .ananda-detail-overlay__content li{margin-block:3px!important}
#site-content.reference-home .ananda-detail-overlay__content :is(th,td){padding:7px 9px}
#site-content.reference-home .ananda-detail-overlay__content :is(.section-kicker,.ref-kicker,.travel-detail__eyebrow,.ananda-offer-card__meta,.ananda-teacher-role){font-size:13px!important;line-height:1.4!important;margin-bottom:6px!important}
#site-content.reference-home .ananda-detail-overlay :is(.ananda-home-item-detail__header,.travel-detail__copy,.travel-detail__media--collection,.ananda-teacher-hero,.ananda-teacher-gallery,.ananda-teacher-courses,.ananda-education-detail__body,.page-cta){padding:16px!important;gap:14px}
#site-content.reference-home .ananda-detail-overlay :is(.ananda-teacher-story,.ananda-teacher-contacts,.ananda-teacher-focus,.ananda-teacher-gallery,.ananda-teacher-courses,.ananda-teacher-cta){margin-top:14px!important}
#site-content.reference-home .ananda-detail-overlay :is(.ananda-teacher-weekday,.ananda-teacher-course-day,.ananda-offer-card){padding:12px;gap:8px}
#site-content.reference-home .ananda-detail-overlay .ananda-teacher-cta{padding:14px!important;gap:10px}
#site-content.reference-home .ananda-detail-overlay .ananda-highlight-detail{padding:0}
#site-content.reference-home .ananda-detail-overlay .ananda-home-item-detail:not(.ananda-home-item-detail--source-page) .ananda-home-item-detail__source{padding:var(--ananda-gallery-padding)}
#site-content.reference-home .ananda-detail-overlay .ananda-home-item-detail__richtext{margin-top:12px}
#site-content.reference-home .ananda-detail-overlay .ananda-home-item-detail__richtext>section{padding:12px 0;margin:0}
#site-content.reference-home .ananda-detail-overlay .ananda-highlight-detail__html :is(article,section){padding:0;border:0;background:transparent;box-shadow:none}
@media(max-width:700px){
 #site-content.reference-home .ananda-detail-overlay{--ananda-gallery-padding:12px}
 #site-content.reference-home .ananda-detail-overlay__header{padding:10px 12px}
 #site-content.reference-home .ananda-detail-overlay__header h2{font-size:15px}
 #site-content.reference-home .ananda-detail-overlay__content{padding:12px}
 #site-content.reference-home .ananda-detail-overlay__content h1{font-size:27px!important}
 #site-content.reference-home .ananda-detail-overlay__content h2{font-size:24px!important}
 #site-content.reference-home .ananda-detail-overlay__content h3{font-size:21px!important}
 #site-content.reference-home .ananda-detail-overlay :is(.ananda-home-item-detail__header,.travel-detail__copy,.travel-detail__media--collection,.ananda-teacher-hero,.ananda-teacher-gallery,.ananda-teacher-courses,.ananda-education-detail__body,.page-cta){padding:12px!important;gap:10px}
}

/* One compact pictures-first surface for canonical details and homepage dialogs. */
#site-content .ananda-images-first > .ananda-detail-picture-group,
#site-content .ananda-images-first .ananda-offer-card__expanded-content > .ananda-detail-picture-group{display:flex;flex-direction:column;gap:12px;width:100%;max-width:100%;min-width:0;margin:0 0 24px;padding:0;background:transparent}
#site-content .ananda-images-first .ananda-detail-picture-row{display:flex;flex-wrap:nowrap;align-items:center;justify-content:center;gap:12px;width:100%;min-width:0;max-height:360px}
#site-content .ananda-images-first .ananda-detail-picture-group .ananda-detail-picture{position:relative;inset:auto;display:block;flex:0 1 var(--ananda-picture-width,calc(50% - 6px));width:var(--ananda-picture-width,calc(50% - 6px));height:var(--ananda-picture-height,160px);max-width:100%;max-height:360px;min-width:0;min-height:0;margin:0;padding:0;aspect-ratio:auto;overflow:visible;border:0;border-radius:10px;background:#f4eee6;grid-column:auto;grid-row:auto}
#site-content .ananda-images-first .ananda-detail-picture-group .ananda-detail-picture img{position:static!important;inset:auto!important;display:block;width:100%!important;height:100%!important;max-width:100%!important;max-height:100%!important;min-width:0;min-height:0;aspect-ratio:auto!important;object-fit:contain!important;object-position:center;margin:0;padding:0;border-radius:10px;contain-intrinsic-size:none}
#site-content .ananda-images-first .ananda-detail-picture-group .ananda-teacher-lightbox-trigger,
#site-content .ananda-images-first .ananda-detail-picture-group .ananda-teacher-avatar{position:relative!important;inset:auto!important;display:block!important;width:100%!important;height:100%!important;min-height:0!important;max-height:100%!important;aspect-ratio:auto!important;margin:0;padding:0;overflow:visible}
#site-content .ananda-images-first .ananda-detail-picture-remainder{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:start;gap:16px;width:100%;max-width:100%;min-width:0;margin:28px 0 0}
#site-content .ananda-images-first .ananda-detail-picture-remainder>.ananda-detail-picture{position:relative;inset:auto;display:block;width:100%;max-width:100%;height:auto;min-height:0;min-width:0;margin:0;padding:0;aspect-ratio:auto;grid-column:auto;grid-row:auto;background:transparent}
#site-content .ananda-images-first .ananda-detail-picture-remainder img{position:static!important;inset:auto!important;display:block;width:100%!important;max-width:100%!important;height:auto!important;max-height:360px!important;min-height:0;aspect-ratio:auto!important;object-fit:contain!important;border-radius:10px}
#site-content .ananda-images-first [data-ananda-picture-duplicate],
#site-content .ananda-images-first [data-ananda-picture-empty]{display:none!important}
#site-content .ananda-teacher-profile.ananda-images-first .ananda-teacher-hero,
#site-content .travel-detail.ananda-images-first,
#site-content .ananda-special-public-card.ananda-images-first{display:block}
#site-content .ananda-teacher-profile.ananda-images-first .ananda-teacher-hero__copy{width:100%;max-width:none}
#site-content .ananda-education-detail__article.ananda-images-first .ananda-education-detail__hero{position:relative;display:block;min-height:0;height:auto;max-height:none;padding:0;background:transparent;overflow:visible}
#site-content .ananda-education-detail__article.ananda-images-first .ananda-education-detail__hero>.subhero__veil{display:none}
#site-content .ananda-education-detail__article.ananda-images-first .ananda-education-detail__hero>.subhero__content{position:static;inset:auto;display:block;width:100%;max-width:none;margin:0;padding:0 0 24px;color:inherit;text-shadow:none;transform:none}
#site-content .ananda-education-detail__article.ananda-images-first .ananda-education-detail__hero h1{font-size:clamp(30px,4vw,52px);line-height:1.12;color:inherit;text-shadow:none}
#site-content .ananda-images-first .travel-detail__video-grid video{max-width:100%;max-height:360px;object-fit:contain}
@media(max-width:700px){
#site-content .ananda-images-first .ananda-detail-picture-row{max-height:260px}
#site-content .ananda-images-first .ananda-detail-picture-group .ananda-detail-picture{height:var(--ananda-picture-height,124px);max-height:260px}
#site-content .ananda-images-first .ananda-detail-picture-remainder{gap:12px}
#site-content .ananda-images-first .ananda-detail-picture-remainder img{max-height:260px!important}
#site-content .ananda-images-first .travel-detail__video-grid video{max-height:260px}
}

#site-content .ananda-education-detail__article.ananda-images-first .ananda-education-detail__hero{color:#553a2e}
#site-content .ananda-education-detail__article.ananda-images-first .ananda-education-detail__hero>.subhero__content>p:last-child{color:#604d43}

/* The original full-screen education sections must not leave empty hero-sized gaps. */
#site-content .ananda-education-detail__article.ananda-images-first>.ananda-education-detail__hero{padding:0!important;margin:0!important}
#site-content .ananda-education-detail__article.ananda-images-first .ananda-education-detail__hero>.subhero__content{padding:0 0 10px!important}
#site-content .ananda-education-detail__article.ananda-images-first>.ananda-education-breadcrumb{width:100%;max-width:100%;margin:10px 0 0;padding:0;flex-wrap:wrap;gap:8px}
#site-content .ananda-education-detail__article.ananda-images-first>.ananda-education-detail__facts{width:100%;max-width:100%;margin:20px 0 0!important;padding:0!important}
#site-content .ananda-education-detail__article.ananda-images-first>.ananda-education-detail__body{width:100%;max-width:100%;margin:24px 0!important;padding:0!important;gap:24px}
#site-content .ananda-education-detail__article.ananda-images-first .ananda-education-detail__body h2{margin:0 0 12px;font-size:clamp(28px,3.5vw,42px)}
#site-content .ananda-education-detail__article.ananda-images-first .ananda-education-detail__body aside{padding:20px}
