/* Shared responsive layer for the verified Design Nux documents. */
html,
body,
x-dc,
#dc-root,
#dc-root > .sc-host {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  overflow-x: hidden;
}

#dc-root *,
#dc-root *::before,
#dc-root *::after {
  box-sizing: border-box;
}

#dc-root [style*="display:grid"] > *,
#dc-root [style*="display:flex"] > * {
  min-width: 0;
}

.dn-mobile-menu {
  display: none;
}

img,
video,
canvas,
svg {
  max-width: 100%;
}

input,
select,
textarea,
button {
  box-sizing: border-box;
  max-width: 100%;
}

@media (max-width: 900px) {
  header > div {
    flex-wrap: wrap !important;
    gap: 12px !important;
    padding: 11px 20px !important;
  }

  header > div > a:first-child {
    min-width: 0;
  }

  header nav {
    order: 3;
    flex: 1 0 100%;
    width: 100%;
    margin: 0 !important;
    padding: 3px 0 2px;
    flex-wrap: nowrap !important;
    justify-content: flex-start;
    gap: 20px !important;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-snap-type: inline proximity;
    scrollbar-width: none;
  }

  header nav::-webkit-scrollbar {
    display: none;
  }

  header nav > * {
    flex: 0 0 auto;
    scroll-snap-align: start;
  }

  header nav + div {
    margin-left: auto;
  }

  [style*="grid-template-columns"][style*="repeat(5"],
  [style*="grid-template-columns"][style*="repeat(4"] {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  [style*="gap"][style*="56px"],
  [style*="gap"][style*="64px"],
  [style*="gap"][style*="48px"] {
    gap: 32px !important;
  }
}

@media (max-width: 720px) {
  header {
    position: sticky !important;
  }

  header > div {
    position: relative;
    flex-wrap: nowrap !important;
    min-height: 66px;
  }

  header > div > a:first-child {
    margin-right: auto;
  }

  header nav {
    display: none !important;
  }

  header.dn-mobile-nav-open nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 80;
    display: flex !important;
    width: 100% !important;
    max-height: calc(100vh - 66px);
    margin: 0 !important;
    padding: 14px 20px 20px !important;
    flex-direction: column;
    align-items: stretch !important;
    gap: 2px !important;
    overflow: auto;
    background: var(--color-bg, #fff);
    border-top: 1px solid var(--color-divider, #d9dde4);
    box-shadow: 0 18px 38px rgba(7, 20, 48, .16);
  }

  header.dn-mobile-nav-open nav > a,
  header.dn-mobile-nav-open nav > div > button {
    width: 100% !important;
    padding: 11px 4px !important;
    text-align: left !important;
    border-bottom: 1px solid var(--color-divider, #d9dde4) !important;
  }

  header.dn-mobile-nav-open nav > div {
    position: static !important;
    width: 100%;
  }

  header.dn-mobile-nav-open nav > div > div {
    position: static !important;
    width: 100%;
    margin: 0 !important;
    box-shadow: none !important;
  }

  header nav + div {
    display: none !important;
  }

  .dn-mobile-menu {
    display: inline-flex;
    width: 44px;
    height: 44px;
    padding: 11px;
    flex: 0 0 44px;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    gap: 5px;
    border: 1px solid var(--color-divider, #d9dde4);
    border-radius: 999px;
    background: transparent;
    color: var(--color-text, #111);
    cursor: pointer;
  }

  .dn-mobile-menu span {
    display: block;
    width: 100%;
    height: 1px;
    background: currentColor;
    transition: transform .2s ease, opacity .2s ease;
  }

  header.dn-mobile-nav-open .dn-mobile-menu span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  header.dn-mobile-nav-open .dn-mobile-menu span:nth-child(2) { opacity: 0; }
  header.dn-mobile-nav-open .dn-mobile-menu span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

  [style*="max-width"][style*="1320px"] {
    padding-left: 18px !important;
    padding-right: 18px !important;
  }

  section[style*="padding"][style*="88px"],
  section[style*="padding"][style*="90px"],
  section[style*="padding"][style*="86px"],
  section[style*="padding"][style*="84px"],
  section[style*="padding"][style*="80px"],
  section[style*="padding"][style*="76px"] {
    padding-top: 56px !important;
  }

  section[style*="padding"][style*="64px"],
  section[style*="padding"][style*="60px"],
  section[style*="padding"][style*="58px"],
  section[style*="padding"][style*="56px"] {
    padding-top: 42px !important;
  }

  [style*="grid-template-columns"][style*="minmax"],
  [style*="grid-template-columns"][style*="1fr 1fr"],
  [style*="grid-template-columns"][style*="repeat(2"],
  [style*="grid-template-columns"][style*="repeat(3"] {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  [style*="grid-template-columns"][style*="repeat(4"],
  [style*="grid-template-columns"][style*="repeat(5"] {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  [style*="gap"][style*="72px"],
  [style*="gap"][style*="64px"],
  [style*="gap"][style*="56px"],
  [style*="gap"][style*="48px"],
  [style*="gap"][style*="44px"] {
    gap: 26px !important;
  }

  h1,
  h1[style] {
    max-width: 100% !important;
    font-size: clamp(38px, 11vw, 48px) !important;
    line-height: 1.03 !important;
    overflow-wrap: anywhere;
  }

  h2,
  h2[style] {
    max-width: 100% !important;
    font-size: clamp(30px, 8.5vw, 38px) !important;
    line-height: 1.08 !important;
    overflow-wrap: anywhere;
  }

  h3,
  p,
  a,
  li {
    overflow-wrap: break-word;
  }

  h1,
  h2,
  h3,
  h1 span,
  h2 span,
  h3 span,
  p {
    white-space: normal !important;
  }

  [style*="height"][style*="460px"],
  [style*="height"][style*="440px"] {
    height: 290px !important;
    min-height: 290px !important;
  }

  [style*="height"][style*="380px"],
  [style*="height"][style*="360px"],
  [style*="height"][style*="340px"],
  [style*="height"][style*="320px"] {
    height: 250px !important;
    min-height: 250px !important;
  }

  [style*="height"][style*="280px"],
  [style*="height"][style*="260px"],
  [style*="height"][style*="250px"],
  [style*="height"][style*="240px"],
  [style*="height"][style*="230px"] {
    height: 220px !important;
    min-height: 0 !important;
  }

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

  .input,
  input,
  select,
  textarea {
    min-height: 44px;
    font-size: 16px !important;
  }

  textarea,
  textarea.input {
    min-height: 112px;
  }

  [style*="justify-content"][style*="space-between"] {
    flex-wrap: wrap !important;
  }

  footer [style*="padding"][style*="64px"][style*="44px"] {
    padding-top: 48px !important;
  }

  .dn-partnership-mosaic {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 18px !important;
  }

  .dn-partnership-mark {
    width: 100% !important;
    min-height: 0;
    padding: 18px 20px !important;
    display: grid !important;
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
    column-gap: 16px;
    text-align: left !important;
  }

  .dn-partnership-mark > span {
    grid-row: 1 / 3;
    margin: 0 !important;
  }

  .dn-pricing-layout {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 28px !important;
  }

  .dn-plan-tabs {
    position: static !important;
    display: grid !important;
    grid-auto-flow: column;
    grid-auto-columns: minmax(160px, 72vw);
    gap: 0;
    width: 100%;
    padding-bottom: 8px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-snap-type: inline proximity;
    scrollbar-width: none;
  }

  .dn-plan-tabs::-webkit-scrollbar { display: none; }
  .dn-plan-tabs > button { scroll-snap-align: start; }
  .dn-plan-tabs > p { display: none; }

  .dn-service-list-row {
    display: grid !important;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 12px !important;
    align-items: center !important;
  }

  .dn-service-list-tagline {
    grid-column: 2;
    text-align: left !important;
    margin-top: -5px;
  }

  .dn-service-list-row > .dn-service-list-tagline + span {
    grid-column: 3;
    grid-row: 1 / 3;
  }

  .dn-service-hero-stats {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 14px !important;
  }

  .dn-service-hero-stats > div > div:first-child {
    font-size: clamp(28px, 9vw, 36px) !important;
    white-space: nowrap !important;
  }

  .dn-rail > * {
    flex-basis: min(82vw, 320px) !important;
    min-width: min(82vw, 320px) !important;
  }

  [style*="display:flex"][style*="gap:10px"][style*="font-size:14px"] {
    flex-wrap: wrap !important;
  }
}

@media (max-width: 480px) {
  header > div {
    position: relative;
    padding: 10px 14px !important;
  }

  header > div > a:first-child [style*="letter-spacing"][style*=".2em"] {
    display: none !important;
  }

  header > div > a:first-child [style*="font-size"][style*="19px"] {
    font-size: 16px !important;
  }

  header nav + div { display: none !important; }

  [style*="max-width"][style*="1320px"] {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }

  h1,
  h1[style] {
    font-size: clamp(34px, 10.5vw, 42px) !important;
  }

  h2,
  h2[style] {
    font-size: clamp(28px, 8.5vw, 34px) !important;
  }

  [style*="padding"][style*="30px"],
  [style*="padding"][style*="28px"],
  [style*="padding"][style*="26px"],
  [style*="padding"][style*="24px"] {
    padding-left: 18px !important;
    padding-right: 18px !important;
  }

  .btn {
    white-space: normal !important;
    text-align: center;
  }
}
