/* V16.2.1 – final responsive consistency layer for the public and account experience. */
.ga-v16-preview .ga-v16-nav__account-mobile{display:none}
@media(max-width:820px){
  body.ga-v16-active{--ga-mobile-edge:clamp(12px,3.8vw,18px);--ga16-content:calc(100% - (var(--ga-mobile-edge) * 2));--ga16-content-wide:calc(100% - (var(--ga-mobile-edge) * 2));--ga16-page:calc(100% - (var(--ga-mobile-edge) * 2))}
  body.ga-v16-active,body.ga-v16-active main#main-content{max-width:100%;overflow-x:clip}
  body.ga-v16-active main#main-content>:is(.container,.ga-section,.page-content){max-width:100%}
  body.ga-v16-active :is(img,picture,video,canvas,svg,iframe){max-width:100%}
  body.ga-v16-active :is(.card,.ga-card-system,.ga-section,.ga-page-hero,.ga-hero-shell,.account-panel,.account-card-main){min-width:0}
  body.ga-v16-active :is(h1,h2,h3,p,a,span,strong,small){overflow-wrap:break-word}
  body.ga-v16-active :is(input:not([type=checkbox]):not([type=radio]),select,textarea){max-width:100%;font-size:16px}
  body.ga-v16-active :is(.btn,button,[role="button"]){min-height:44px}

  body.ga-v16-active :is(.ga-tabs,.ga-page-subnav,.ga-course-story-nav,.ga-trip-experience-nav,.ga-profile-section-nav,.ga-performance-tabs,.ga-performance-subtabs,.academy-category-nav){display:flex;max-width:100%;flex-wrap:nowrap;overflow-x:auto;overscroll-behavior-inline:contain;scroll-snap-type:x proximity;scrollbar-width:none;-webkit-overflow-scrolling:touch}
  body.ga-v16-active :is(.ga-tabs,.ga-page-subnav,.ga-course-story-nav,.ga-trip-experience-nav,.ga-profile-section-nav,.ga-performance-tabs,.ga-performance-subtabs,.academy-category-nav)::-webkit-scrollbar{display:none}
  body.ga-v16-active :is(.ga-tabs,.ga-page-subnav,.ga-course-story-nav,.ga-trip-experience-nav,.ga-profile-section-nav,.ga-performance-tabs,.ga-performance-subtabs,.academy-category-nav)>*{flex:0 0 auto;white-space:nowrap;scroll-snap-align:start}

  body.ga-v16-active :is(.ga-page-hero h1,.ga-page-hero .ga-hero__title,.ga-home-copy h1,.ga-trip-experience-copy h1,.account-hero h1,.ga-benefits-hero h1,.ga-404-copy h1,.journal-story-hero-content h1,.journal-article-header h1){max-width:100%;font-size:clamp(2.15rem,10.5vw,3.45rem)!important;line-height:.98!important;letter-spacing:-.035em!important;text-wrap:balance}
  body.ga-v16-active :is(.ga-section-head h2,.section-title-row h2,.ga-course-story-section>header h2,.account-panel>h2){max-width:100%;font-size:clamp(1.7rem,8vw,2.45rem)!important;line-height:1.03!important;text-wrap:balance}
  body.ga-v16-active :is(.ga-section-head,.section-title-row,.ga-dashboard-widget-header){align-items:flex-start;gap:14px}
  body.ga-v16-active :is(.ga-section-head,.section-title-row)>.btn{flex:0 0 auto}

  body.ga-v16-active :is(.ga-premium-grid,.ga-trip-grid,.ga-directory-grid,.ga-editorial-grid,.journal-card-grid,.ga-dashboard-grid,.ga-dashboard-widgets,.ga-companion-grid,.passport-grid,.scorecard-grid,.ga-benefits-grid,.ga-feature-grid,.ga-tool-grid,.ga-community-grid,.ga-finder-grid){grid-template-columns:minmax(0,1fr)!important}
  body.ga-v16-active :is(.form-grid,.ga-filter-grid,.ga-trip-filter-grid){grid-template-columns:minmax(0,1fr)!important}
  body.ga-v16-active :is(.form-grid,.ga-filter-grid,.ga-trip-filter-grid)>.full{grid-column:auto!important}
  body.ga-v16-active :is(.button-row,.ga-hero__actions,.ga-page-hero__actions,.ga-filter-actions){gap:9px;flex-wrap:wrap}
  body.ga-v16-active :is(.button-row,.ga-hero__actions,.ga-page-hero__actions,.ga-filter-actions)>.btn{flex:1 1 180px;justify-content:center;text-align:center}
  body.ga-v16-active .table-wrap{max-width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}
  body.ga-v16-active .table-wrap table{min-width:640px}

  body.ga-v16-route--home .ga-home-hero-inner{min-height:auto!important;padding:clamp(34px,9vw,54px) var(--ga-mobile-edge)!important}
  body.ga-v16-route--home main#main-content>.ga-section[data-home-section]{width:var(--ga16-content)!important;padding:26px 16px!important;border-radius:24px!important}
  body.ga-v16-route--home main#main-content>.ga-section[data-home-section]>.ga-section-head{grid-template-columns:1fr!important;gap:16px!important}
  body.ga-v16-route--home main#main-content>.ga-section[data-home-section]>.ga-section-head>.btn{width:100%;justify-content:center}

  body.ga-v16-route--course .ga-course-story{width:100%;padding-inline:var(--ga-mobile-edge)}
  body.ga-v16-route--course :is(.ga-course-hero,.detail-hero){width:var(--ga16-content-wide)!important}
  body.ga-v16-route--course .ga-course-story-shell{grid-template-columns:minmax(0,1fr)!important}
  body.ga-v16-route--course .ga-course-story-summary{position:static!important;grid-template-columns:repeat(2,minmax(0,1fr));order:1}
  body.ga-v16-route--course .ga-course-story-main{order:2}
  body.ga-v16-route--course :is(.ga-gallery-2,.ga-gallery-grid){grid-template-columns:minmax(0,1fr)!important}
  body.ga-v16-route--course .ga-gallery-item{min-height:0!important;aspect-ratio:4/3}
  body.ga-v16-route--course :is(.ga-course-map,.leaflet-container){width:100%!important;min-height:340px}

  body.ga-v16-account .account-layout,body.ga-v16-account .account-layout-pro{width:var(--ga16-account,var(--ga16-content));grid-template-columns:minmax(0,1fr)!important;gap:14px}
  body.ga-v16-account .account-panel{min-width:0;padding:14px!important}
  body.ga-v16-account :is(.ga-performance-shell,.ga-performance-content,.ga-swing-layout,.ga-concierge-layout){min-width:0;max-width:100%}
  body.ga-v16-account :is(.ga-performance-layout,.ga-swing-layout,.ga-concierge-layout){grid-template-columns:minmax(0,1fr)!important}
  body.ga-v16-account .ga-ai-coach-summary h2{font-size:clamp(1.75rem,7.8vw,2.5rem)!important;line-height:1.03!important}
}

@media(max-width:760px){
  .ga-v16-preview .ga-v16-header__actions{grid-column:3;justify-self:end;margin-left:auto}
  .ga-v16-preview .ga-v16-account-link{width:auto!important;min-width:64px;padding:0 13px!important;font-size:.76rem!important;justify-content:center;white-space:nowrap}
  .ga-v16-preview .ga-v16-account-link::before{content:none!important;display:none!important}
  .ga-v16-preview .ga-v16-nav__account-mobile{min-height:50px;display:flex;align-items:center;margin-top:8px;padding:0 14px;border:1px solid var(--ga16-green-800);border-radius:var(--ga16-radius-sm);background:var(--ga16-green-800);color:#fff;font-size:.82rem;font-weight:850;text-decoration:none}
}

@media(max-width:520px){
  body.ga-v16-active :is(.button-row,.ga-hero__actions,.ga-page-hero__actions,.ga-filter-actions){display:grid;grid-template-columns:minmax(0,1fr)}
  body.ga-v16-active :is(.button-row,.ga-hero__actions,.ga-page-hero__actions,.ga-filter-actions)>.btn{width:100%}
  body.ga-v16-active :is(.ga-page-hero__stats,.account-kpi-grid,.ga-dashboard-kpis,.ga-trip-experience-stats,.ga-course-story-facts){grid-template-columns:repeat(2,minmax(0,1fr))!important}
  body.ga-v16-route--course .ga-course-story-summary{grid-template-columns:minmax(0,1fr)}
  body.ga-v16-route--course .ga-course-story-practical{grid-template-columns:minmax(0,1fr)!important}
  body.ga-v16-active .ga-memory-entry{grid-template-columns:minmax(0,1fr)!important}
  body.ga-v16-active .ga-memory-entry>*{grid-column:auto!important;grid-row:auto!important}
}

@media(max-width:390px){
  .ga-v16-preview .ga-v16-header__inner{grid-template-columns:minmax(108px,1fr) auto!important;gap:8px}
  .ga-v16-preview .ga-v16-brand{width:min(122px,100%)}
  .ga-v16-preview .ga-v16-header__actions{grid-column:2}
  .ga-v16-preview .ga-v16-account-link{min-width:58px;padding-inline:10px!important;font-size:.72rem!important}
}

@media(max-width:360px){
  body.ga-v16-active :is(.ga-page-hero__stats,.account-kpi-grid,.ga-dashboard-kpis,.ga-trip-experience-stats,.ga-course-story-facts){grid-template-columns:minmax(0,1fr)!important}
}
