/* 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}
}
