/* Smart compact mode for short mobile-landscape menus. Long lists still scroll. */
@media (pointer: coarse) and (orientation: landscape) and (max-height: 760px) and (max-width: 1200px) {
  html.gfm-mobile-landscape .gfm-mobile-smart-fit {
    --gfm-fit-gap: 7px;
    --gfm-fit-pad: 9px;
    font-size: 92% !important;
  }

  html.gfm-mobile-landscape .gfm-mobile-smart-fit :is(h1, h2, h3, h4, p) {
    margin-top: 3px !important;
    margin-bottom: 5px !important;
  }

  html.gfm-mobile-landscape .gfm-mobile-smart-fit :is(.card, .gfm-card, .gfm-pitch-card, .gfm-fm-card, .gfm-ib-visual-body) {
    padding: var(--gfm-fit-pad) !important;
  }

  html.gfm-mobile-landscape .gfm-mobile-smart-fit :is(.grid, .gfm-grid, .gfm-pitch-grid) {
    gap: var(--gfm-fit-gap) !important;
  }

  html.gfm-mobile-landscape .gfm-mobile-smart-fit :is(button, .btn) {
    min-height: 34px !important;
  }

  html.gfm-mobile-landscape .gfm-mobile-smart-fit .gfm-pitch-title {
    font-size: clamp(22px, 6.4dvh, 30px) !important;
    line-height: .94 !important;
  }

  html.gfm-mobile-landscape .gfm-mobile-smart-fit .gfm-pitch-sub {
    margin: 3px 0 6px !important;
    font-size: 9px !important;
    line-height: 1.2 !important;
  }

  html.gfm-mobile-landscape .gfm-mobile-smart-fit :is(.gfm-avatar-face, .gfm-pitch-avatar, .gfm-manager-avatar) {
    min-height: 0 !important;
    max-height: 24dvh !important;
  }

  html.gfm-mobile-landscape .gfm-mobile-smart-fit :is(.gfm-avatar-face img, .gfm-pitch-avatar img, .gfm-manager-avatar img) {
    width: auto !important;
    max-width: 100% !important;
    max-height: 21dvh !important;
    object-fit: contain !important;
  }

  html.gfm-mobile-landscape .gfm-mobile-smart-fit.gfm-ib-detail-inner {
    padding: 8px 12px 58px !important;
  }

  html.gfm-mobile-landscape .gfm-mobile-smart-fit .gfm-ib-detail-head {
    margin-bottom: 7px !important;
    padding-bottom: 6px !important;
  }

  html.gfm-mobile-landscape .gfm-mobile-smart-fit .gfm-ib-hero {
    min-height: 105px !important;
    max-height: 27dvh !important;
  }

  html.gfm-mobile-landscape .gfm-mobile-smart-fit .gfm-ib-hero-txt {
    padding: 8px 11px !important;
  }

  html.gfm-mobile-landscape .gfm-mobile-smart-fit .gfm-ib-hero-txt h3 {
    font-size: clamp(14px, 3.8dvh, 18px) !important;
    line-height: 1.04 !important;
  }

  html.gfm-mobile-landscape .gfm-mobile-smart-fit :is(.gfm-ib-hero-art, .gfm-ib-story-face) {
    max-height: 24dvh !important;
  }

  html.gfm-mobile-landscape .gfm-mobile-smart-fit .gfm-news-facts {
    gap: 5px !important;
    margin: 5px 0 !important;
  }

  html.gfm-mobile-landscape .gfm-mobile-smart-fit .gfm-news-facts > * {
    min-height: 0 !important;
    padding: 5px 7px !important;
  }

  html.gfm-mobile-landscape .gfm-mobile-smart-fit :is(.gfm-ib-gap, .gfm-ib-pips, .gfm-ib-story-duo) {
    margin-top: 5px !important;
    margin-bottom: 5px !important;
  }

  html.gfm-mobile-landscape .gfm-mobile-smart-fit .gfm-ib-visual-body {
    margin-bottom: 6px !important;
    font-size: 12px !important;
    line-height: 1.38 !important;
  }

  html.gfm-mobile-landscape .gfm-mobile-smart-fit :is(.gfm-prematch-logo, .gfm-sum-club .gfm-club-logo) {
    transform: scale(.84) !important;
  }

  html.gfm-mobile-landscape .gfm-mobile-smart-fit.gfm-sum-card :is(.gfm-sum-hero, .gfm-sum-body, .gfm-sum-tabs) {
    padding-top: 7px !important;
    padding-bottom: 7px !important;
  }

  html.gfm-mobile-landscape .gfm-mobile-smart-fit.gfm-sum-card .gfm-sum-score {
    font-size: 28px !important;
  }

  html.gfm-mobile-landscape .gfm-mobile-smart-fit.gfm-prematch-mobile-card {
    width: min(760px, 98vw) !important;
  }

  html.gfm-mobile-landscape .gfm-mobile-smart-fit.gfm-prematch-mobile-card :is(.gfm-pm-head, .gfm-pm-body, .gfm-pm-actions) {
    padding-top: 6px !important;
    padding-bottom: 6px !important;
  }

  html.gfm-mobile-landscape .gfm-mobile-smart-fit.gfm-media-shell {
    height: calc(100dvh - 8px) !important;
  }

  html.gfm-mobile-landscape .gfm-mobile-smart-fit.gfm-mobile-fit-level-2 {
    --gfm-fit-gap: 5px;
    --gfm-fit-pad: 6px;
    font-size: 86% !important;
  }

  html.gfm-mobile-landscape .gfm-mobile-smart-fit.gfm-mobile-fit-level-2 :is(button, .btn) {
    min-height: 31px !important;
    padding-top: 4px !important;
    padding-bottom: 4px !important;
  }

  html.gfm-mobile-landscape .gfm-mobile-smart-fit.gfm-mobile-fit-level-2 .gfm-ib-hero {
    min-height: 88px !important;
    max-height: 23dvh !important;
  }

  html.gfm-mobile-landscape .gfm-mobile-smart-fit.gfm-mobile-fit-level-2 .gfm-ib-visual-body {
    font-size: 11px !important;
    line-height: 1.3 !important;
  }
}
