/* Shared responsive fixes for the static 1BC build. */
.mobile-nav-toggle {
  display: none;
}

@media (max-width: 900px) {
  html,
  body {
    overflow-x: hidden;
  }

  nav {
    padding-left: 20px !important;
    padding-right: 20px !important;
  }

  nav > div:last-child.mobile-nav-links,
  nav .mobile-nav-links {
    display: none !important;
    position: fixed !important;
    top: 60px;
    left: 0;
    right: 0;
    max-height: calc(100vh - 60px);
    overflow-y: auto;
    padding: 16px 20px !important;
    background: rgba(242, 237, 228, 0.98) !important;
    border-bottom: 1px solid #d4cdc0 !important;
    backdrop-filter: blur(12px);
    flex-direction: column !important;
    gap: 0 !important;
    z-index: 199;
  }

  nav .mobile-nav-links.open {
    display: flex !important;
  }

  nav .mobile-nav-links a {
    display: block !important;
    padding: 14px 0 !important;
    border: 0 !important;
    border-bottom: 1px solid #d4cdc0 !important;
    color: #1a1814 !important;
    font-family: "Barlow Condensed", sans-serif !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    letter-spacing: 0.08em !important;
    text-transform: uppercase !important;
  }

  nav .mobile-nav-links a:last-child {
    border-bottom: 0 !important;
  }

  .mobile-nav-toggle {
    display: flex !important;
    flex-direction: column;
    gap: 5px;
    margin-left: auto;
    padding: 8px;
    background: transparent;
    border: 0;
    cursor: pointer;
  }

  .mobile-nav-toggle span {
    display: block;
    width: 24px;
    height: 1.5px;
    background: #1a1814;
  }

  .ascent-site .mobile-nav-toggle span {
    background: #f0ece3;
  }

  .ascent-site nav .mobile-nav-links {
    background: rgba(13, 15, 20, 0.98) !important;
    border-bottom-color: rgba(240, 236, 227, 0.14) !important;
  }

  .ascent-site nav .mobile-nav-links a {
    color: #f0ece3 !important;
    border-bottom-color: rgba(240, 236, 227, 0.14) !important;
  }

  [style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
  }

  [style*="grid-column: span 2"] {
    grid-column: 1 / -1 !important;
  }

  [style*="padding:"][style*="48px"],
  [style*="padding:"][style*="52px"],
  [style*="padding:"][style*="56px"],
  [style*="padding:"][style*="64px"],
  [style*="padding:"][style*="72px"],
  [style*="padding:"][style*="80px"] {
    padding-left: 20px !important;
    padding-right: 20px !important;
  }

  [style*="padding-left: 28px"],
  [style*="padding-left: 30px"],
  [style*="padding-left: 32px"],
  [style*="padding-left: 40px"],
  [style*="padding-left: 48px"],
  [style*="paddingLeft"] {
    padding-left: 0 !important;
  }

  [style*="border-right"] {
    border-right: 0 !important;
  }

  [style*="min-width"] {
    min-width: 0 !important;
  }

  [style*="width: 200px"],
  [style*="width: 280px"] {
    width: 100% !important;
    max-width: 260px;
  }

  section [style*="justify-content: space-between"],
  footer > div {
    flex-wrap: wrap !important;
    gap: 20px !important;
    align-items: flex-start !important;
  }

  section [style*="align-items: center"][style*="gap: 24px"],
  section [style*="align-items: center"][style*="gap: 20px"],
  section [style*="align-items: center"][style*="gap: 16px"] {
    flex-wrap: wrap !important;
  }

  h1,
  h2,
  h3,
  p,
  a,
  button,
  span {
    overflow-wrap: anywhere;
  }

  img {
    max-width: 100%;
  }

  [style*="height: 38vw"],
  [style*="height: 40vw"],
  [style*="height: 42vw"],
  [style*="height: 50vw"] {
    height: 56vw !important;
    min-height: 220px;
    max-height: none !important;
  }
}

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

  [style*="padding:"][style*="40px"],
  [style*="padding:"][style*="48px"],
  [style*="padding:"][style*="52px"],
  [style*="padding:"][style*="56px"],
  [style*="padding:"][style*="64px"],
  [style*="padding:"][style*="72px"],
  [style*="padding:"][style*="80px"] {
    padding-left: 18px !important;
    padding-right: 18px !important;
  }

  nav img {
    max-width: 170px;
  }

  .ascent-site nav > div:first-child {
    gap: 10px !important;
    min-width: 0 !important;
  }

  .ascent-site nav > div:first-child a {
    max-width: 92px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
  }

  section [style*="display: flex"][style*="gap: 40px"],
  section [style*="display: flex"][style*="gap: 28px"],
  section [style*="display: flex"][style*="gap: 20px"],
  section [style*="display: flex"][style*="gap: 16px"] {
    flex-wrap: wrap !important;
  }

  [style*="font-size: 20px"] {
    font-size: 18px !important;
  }

  [style*="font-size: 18px"] {
    font-size: 16px !important;
  }
}
