/* ponytail: overrides inline desktop layout; upgrade = refactor HTML classes */

@media (max-width: 960px) {
  header > div {
    flex-wrap: wrap !important;
    height: auto !important;
    min-height: 58px;
    padding: 12px 20px !important;
    gap: 0 !important;
    align-items: center !important;
  }

  header > div > a:first-of-type {
    flex: 1;
  }

  .dl-menu-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin-left: auto;
    padding: 0;
    border: 1px solid rgba(27, 27, 34, 0.14);
    background: #fff;
    color: #1b1b22;
    cursor: pointer;
    clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px));
  }

  .dl-menu-btn span {
    display: block;
    width: 18px;
    height: 2px;
    background: currentColor;
    position: relative;
  }

  .dl-menu-btn span::before,
  .dl-menu-btn span::after {
    content: "";
    position: absolute;
    left: 0;
    width: 18px;
    height: 2px;
    background: currentColor;
  }

  .dl-menu-btn span::before {
    top: -6px;
  }

  .dl-menu-btn span::after {
    top: 6px;
  }

  header .dl-header-nav,
  header .dl-header-actions {
    display: none !important;
    width: 100%;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0 !important;
    margin: 12px 0 0 !important;
    padding-top: 12px;
    border-top: 1px solid rgba(27, 27, 34, 0.08);
  }

  header.dl-nav-open .dl-header-nav,
  header.dl-nav-open .dl-header-actions {
    display: flex !important;
  }

  header .dl-header-nav a {
    padding: 12px 0 !important;
    font-size: 16px !important;
  }

  header .dl-header-actions {
    gap: 10px !important;
    padding-top: 8px;
    border-top: none;
  }

  header .dl-header-actions a {
    text-align: center;
    display: block;
  }

  section[style*="padding"] {
    padding-left: 20px !important;
    padding-right: 20px !important;
  }

  section[style*="padding:96px"],
  section[style*="padding:88px"] {
    padding-top: 56px !important;
    padding-bottom: 56px !important;
  }

  section[style*="display:grid"] {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
  }

  div[style*="display:grid"][style*="grid-template-columns:1.02fr"],
  div[style*="display:grid"][style*="grid-template-columns:0.9fr"],
  div[style*="display:grid"][style*="grid-template-columns:0.92fr"],
  div[style*="display:grid"][style*="grid-template-columns:1.15fr"],
  div[style*="display:grid"][style*="grid-template-columns:1.2fr"],
  div[style*="display:grid"][style*="grid-template-columns:1.55fr"],
  div[style*="display:grid"][style*="grid-template-columns:0.85fr 1.15fr"],
  div[style*="display:grid"][style*="grid-template-columns:1fr 1fr"],
  div[style*="display:grid"][style*="grid-template-columns:1fr auto"],
  div[style*="display:grid"][style*="grid-template-columns:repeat(3"],
  div[style*="display:grid"][style*="grid-template-columns:repeat(4"] {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
  }

  div[style*="grid-template-columns:0.85fr 1fr 1.15fr 0.7fr"] {
    grid-template-columns: 1fr 1fr !important;
    gap: 24px !important;
  }

  div[style*="grid-template-columns:180px 1fr"] {
    grid-template-columns: 1fr !important;
    gap: 8px !important;
  }

  div[style*="grid-template-columns:1.4fr repeat(3,1fr)"] {
    grid-template-columns: 1fr !important;
    gap: 28px !important;
  }

  footer div[style*="justify-content:space-between"] {
    flex-direction: column !important;
    gap: 8px !important;
    align-items: flex-start !important;
  }

  h1[style*="font-size:62px"],
  h1[style*="font-size:60px"] {
    font-size: clamp(34px, 9vw, 48px) !important;
    line-height: 1.08 !important;
  }

  h2[style*="font-size:40px"],
  h2[style*="font-size:42px"],
  h2[style*="font-size:38px"] {
    font-size: clamp(28px, 7vw, 36px) !important;
  }

  blockquote[style*="font-size:34px"] {
    font-size: clamp(24px, 6vw, 30px) !important;
  }

  div[style*="font-size:31px"][style*="white-space:nowrap"] {
    white-space: normal !important;
    font-size: 26px !important;
  }

  .flight-row {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
    padding: 16px 12px !important;
  }

  .flight-row > div:nth-child(3),
  .flight-row > div:nth-child(4) {
    text-align: left !important;
  }

  .dl-pricing-matrix {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 0 -4px;
  }

  .dl-pricing-matrix > div[style*="2.2fr"] {
    min-width: 560px;
  }

  div[style*="flex-wrap:wrap"][style*="gap:14px"] a,
  div[style*="flex-wrap:wrap"][style*="gap:14px"] {
    width: 100%;
  }

  div[style*="flex-wrap:wrap"][style*="gap:14px"] a {
    box-sizing: border-box;
    text-align: center;
  }

  section[style*="padding:0 40px"] {
    padding-left: 20px !important;
    padding-right: 20px !important;
  }

  div[style*="display:flex;gap:14px"][style*="flex-wrap"] {
    flex-direction: column !important;
    align-items: stretch !important;
  }

  div[style*="display:flex;gap:30px"][style*="margin-left:auto"] {
    margin-left: 0 !important;
  }

  div[style*="position:sticky"] {
    position: static !important;
  }
}

@media (min-width: 961px) {
  .dl-menu-btn {
    display: none;
  }
}

@media (max-width: 480px) {
  div[style*="grid-template-columns:0.85fr 1fr 1.15fr 0.7fr"] {
    grid-template-columns: 1fr !important;
  }

  div[style*="display:grid"][style*="grid-template-columns:repeat(3,1fr)"][style*="gap:1px"] {
    grid-template-columns: 1fr !important;
  }
}
