/* Magnet Studio M20 — dedicated iPad/tablet composition. */
@media (min-width:769px) and (max-width:1180px) {
  :root {
    --m20-tablet-pad:max(22px,env(safe-area-inset-left));
  }
  .ms-container {
    width:auto!important;
    margin-left:var(--m20-tablet-pad)!important;
    margin-right:max(22px,env(safe-area-inset-right))!important;
  }
  .ms-header {
    width:auto!important;
    left:max(18px,env(safe-area-inset-left))!important;
    right:max(18px,env(safe-area-inset-right))!important;
  }
  .ms-nav { gap:18px!important; }
  .ms-nav a { font-size:11px!important; }
  .ms-account-link { display:none!important; }

  .m16-hero,
  .m17-hero { grid-template-columns:minmax(330px,.88fr) minmax(390px,1.12fr)!important; }
  .m16-hero__copy,
  .m17-hero__copy { padding:48px 34px!important; }
  .m16-hero h1,
  .m17-hero h1 { font-size:clamp(52px,7vw,76px)!important; }
  .m16-hero__stage,
  .m17-hero__visual { min-height:560px!important; }

  .m18-rail article { padding-inline:16px!important; }
  .m18-rail small { font-size:8px!important; }

  .m17-process__list {
    grid-template-columns:repeat(6,minmax(0,1fr))!important;
    gap:14px!important;
  }
  .m17-process__list article {
    min-height:370px!important;
    grid-column:span 2;
    grid-template-columns:1fr!important;
    grid-template-rows:166px auto!important;
  }
  .m17-process__list article:nth-child(4),
  .m17-process__list article:nth-child(5) { grid-column:span 3; }
  .m17-process__visual,
  .m17-process__copy { grid-column:1!important; }
  .m17-process__visual img { height:164px!important; }
  .m17-process__copy { padding:8px 8px 12px!important; }

  .m17-product-row,
  .m17-dark-story,
  .m17-deep-dive,
  .m17-proof-story,
  .m17-calculator,
  .m17-volume,
  .m17-photo-guide,
  .m17-support-human,
  .m17-b2b-workspace,
  .m17-b2b-volume { gap:40px!important; }

  .m17-calculator { grid-template-columns:minmax(0,1fr) minmax(330px,.82fr)!important; }
  .m17-calculator__controls { padding:38px!important; }
  .m17-control { grid-template-columns:110px 1fr!important; padding:15px!important; }
  .m17-control > div { grid-template-columns:repeat(2,minmax(0,1fr))!important; }
  .m17-control button { min-height:50px!important; }

  .m17-price-includes > div:last-child,
  .m17-help-topics > div:last-child,
  .m17-b2b-benefits > div:last-child { grid-template-columns:repeat(2,1fr)!important; }
  .m17-b2b-uses > div:last-child { grid-template-columns:repeat(3,1fr)!important; }

  .ms-footer { grid-template-columns:1.35fr repeat(3,1fr)!important; gap:28px!important; }
}

@media (min-width:769px) and (max-width:980px) {
  .ms-header__actions > .ms-button { display:none!important; }
  .m16-hero,
  .m17-hero { grid-template-columns:1fr!important; }
  .m16-hero__stage,
  .m17-hero__visual { min-height:470px!important; }
  .m17-calculator { grid-template-columns:1fr!important; }
}
