/*
 * Responsive guardrails for the imported Makan bundle.
 * The original artwork keeps its inline visual rules; these declarations only
 * make the page use the available viewport and reflow cleanly at narrow widths.
 */
html,
body,
#root {
  width: 100%;
  max-width: none;
  min-width: 0;
  overflow-x: hidden;
}

body {
  min-width: 320px;
}

[dir="rtl"] {
  width: 100%;
  max-width: none;
}

[dir="rtl"] > div,
[dir="rtl"] header > div,
[dir="rtl"] main > section {
  width: 100%;
}

[dir="rtl"] main > section:first-child {
  padding-inline: clamp(16px, 5vw, 64px) !important;
}

[dir="rtl"] main > section:first-child > div {
  width: min(100%, 1120px);
}

[dir="rtl"] main > section:first-child > div:first-of-type,
[dir="rtl"] main > section:first-child > div:last-of-type {
  margin-inline: auto;
}

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

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

@media (max-width: 720px) {
  [dir="rtl"] header > div {
    align-items: stretch !important;
  }

  [dir="rtl"] header nav {
    justify-content: center !important;
    width: 100%;
  }

  [dir="rtl"] main > section {
    padding-inline: clamp(16px, 5vw, 28px) !important;
  }

  [dir="rtl"] main > section:first-child {
    padding-top: clamp(32px, 10vw, 58px) !important;
  }

  [dir="rtl"] main > section:first-child h1 {
    font-size: clamp(48px, 18vw, 82px) !important;
  }

  [dir="rtl"] main > section article > div {
    grid-template-columns: 1fr !important;
  }

  [dir="rtl"] main > section article > div > div {
    order: initial !important;
  }
}

@media (min-width: 721px) and (max-width: 1100px) {
  [dir="rtl"] main > section {
    padding-inline: clamp(24px, 4vw, 48px) !important;
  }
}