/* MG Termine 10.4.2: Desktop typography, navigation and cards. */
@media (min-width: 1101px) {
  /* A comfortable reading width across full-page layouts. */
  .mgt-site-shell .mgt-home,
  body.mgt-consolidated-page-body .mgt-home,
  body.mgt-consolidated-page-body .mgt-ae-main,
  body.mgt-consolidated-page-body .mgt-free-main,
  body.mgt-consolidated-page-body .mgt-paid-main,
  body.mgt-consolidated-page-body .mgt-leisure-main-v810,
  body.mgt-consolidated-page-body .mgt-personal-main-v1001 {
    width:min(1280px,calc(100% - 64px))!important;
    max-width:1280px!important;
    margin-left:auto!important;margin-right:auto!important;
  }
  .mgt-home-grid { grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:22px!important;align-items:stretch!important; }
  .mgt-home-card-v400 {min-width:0!important;display:flex!important;flex-direction:column!important;}
  .mgt-home-card-v400>a {display:flex!important;flex-direction:column!important;min-height:100%!important;}
  .mgt-home-card-v400 .mgt-card-image-v400{aspect-ratio:16/9!important;flex:0 0 auto!important;}
  .mgt-home-card-v400 .mgt-card-image-v400 img{width:100%!important;height:100%!important;object-fit:cover!important;}
  .mgt-home-card-v400 .mgt-home-card-body {flex:1 1 auto!important;display:flex!important;flex-direction:column!important;padding:19px 20px 21px!important;}
  .mgt-home-card-v400 .mgt-home-card-body h3{font-family:Inter,system-ui,-apple-system,'Segoe UI',sans-serif!important;font-size:1.14rem!important;font-weight:760!important;line-height:1.39!important;letter-spacing:-.018em!important;overflow-wrap:anywhere!important;color:#20232e!important;}
  .mgt-home-card-v400 .mgt-meta{font-family:Inter,system-ui,-apple-system,'Segoe UI',sans-serif!important;font-size:.94rem!important;line-height:1.5!important;white-space:normal!important;overflow-wrap:anywhere!important;color:#646a79!important;}
  .mgt-home-card-v400 .mgt-more{margin-top:auto!important;padding-top:15px!important;font-family:Inter,system-ui,-apple-system,'Segoe UI',sans-serif!important;font-size:.93rem!important;}
  .mgt-home-card-v400.mgt-package-top .mgt-home-card-body h3{color:#fff!important;}
  .mgt-home-card-v400.mgt-package-top .mgt-meta{color:#d9dce5!important;}
  .mgt-ae-card-v460 h2,.mgt-ae-card-v460 .mgt-ae-lines,.mgt-ae-card-v460 .mgt-ae-detail{font-family:Inter,system-ui,-apple-system,'Segoe UI',sans-serif!important;}
  .mgt-ae-card-v460 h2{font-size:1.15rem!important;line-height:1.4!important;}
}
/* A desktop header must never compress its CTA into unreadable text. */
@media(min-width:1281px){
  [data-mgt-shared-header].mgt-unified-header-v994{padding-left:max(24px,calc((100% - 1440px)/2))!important;padding-right:max(24px,calc((100% - 1440px)/2))!important;gap:18px!important;}
  [data-mgt-shared-header].mgt-unified-header-v994 .mgt-nav{gap:clamp(9px,1vw,17px)!important;min-width:0!important;}
  [data-mgt-shared-header].mgt-unified-header-v994 .mgt-nav>a{font-size:clamp(.78rem,.88vw,.89rem)!important;white-space:nowrap!important;}
  [data-mgt-shared-header].mgt-unified-header-v994 .mgt-nav>.mgt-nav-cta{flex:0 0 auto!important;min-width:max-content!important;color:#fff!important;}
}
/* Avoid collision when desktop navigation does not fit; use existing hamburger. */
@media(min-width:901px) and (max-width:1280px){
  [data-mgt-shared-header].mgt-unified-header-v994{padding-left:22px!important;padding-right:22px!important;}
  [data-mgt-shared-header].mgt-unified-header-v994 .mgt-nav{display:none!important;}
  [data-mgt-shared-header].mgt-unified-header-v994 .mgt-mobile-menu{display:block!important;margin-left:auto!important;}
  [data-mgt-shared-header].mgt-unified-header-v994 .mgt-mobile-menu-panel{right:0!important;left:auto!important;}
}
@media(min-width:761px) and (max-width:1100px){
  .mgt-home-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:18px!important;}
}
