/* DUNDAA — Unified responsive correction */

html {
  -webkit-text-size-adjust: 100%;
}

body {
  width: 100%;
  max-width: 100%;
  margin: 0;
}

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

.du-shell-header,
.du-shell-footer,
.dundaa-page,
.dundaa-page-header,
.dundaa-page-section {
  max-width: 100%;
}

.du-shell-header {
  position: sticky !important;
  top: 0;
  z-index: 2000;
}

.du-shell-header-inner {
  width: min(1280px,calc(100% - 40px));
  min-height: 72px;
  gap: 12px;
}

.du-shell-brand {
  min-width: 0;
  margin-right: auto;
}

.du-shell-brand img {
  width: clamp(105px,13vw,135px);
  height: auto;
  max-height: 48px;
}

.du-shell-actions {
  margin-left: auto;
  gap: 8px;
}

.du-shell-theme,
.du-shell-menu {
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
}

.dundaa-page-header {
  padding: clamp(38px,6vw,76px) 0;
}

.dundaa-page-header h1 {
  font-size: clamp(30px,4.5vw,60px);
  line-height: 1.12;
  letter-spacing: -.045em;
  margin: 14px 0 16px;
}

.dundaa-page-header p {
  font-size: clamp(13px,1.4vw,16px);
  line-height: 1.75;
  margin: 0;
}

.dundaa-page-section {
  padding: clamp(35px,5vw,70px) 0;
}

.dundaa-card-grid {
  gap: 16px;
  margin-top: 24px;
}

.dundaa-page-card {
  padding: clamp(18px,2.5vw,28px);
}

.dundaa-page-card h3 {
  margin: 14px 0 8px;
}

.dundaa-page-card p {
  margin: 0;
}

.du-shell-footer {
  padding-top: clamp(35px,5vw,65px);
}

@media(max-width:1190px) {
  .du-shell-nav {
    left: 0;
    right: 0;
    top: 100%;
    max-height: calc(100dvh - 72px);
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  .du-shell-nav.is-open {
    display: flex;
  }
}

@media(max-width:768px) {
  .dundaa-container,
  .du-shell-container {
    width: calc(100% - 32px);
    max-width: 100%;
  }

  .du-shell-header-inner {
    width: calc(100% - 32px);
    min-height: 66px;
  }

  .du-shell-brand img {
    width: 112px;
    max-height: 43px;
  }

  .du-shell-theme,
  .du-shell-menu {
    width: 36px;
    height: 36px;
    flex-basis: 36px;
  }

  .dundaa-page-header {
    padding: 42px 0 36px !important;
  }

  .dundaa-page-header h1 {
    font-size: clamp(30px,8vw,42px) !important;
    line-height: 1.12;
    margin: 12px 0 14px;
  }

  .dundaa-page-header p {
    font-size: 13px;
    line-height: 1.7;
    max-width: 100%;
  }

  .dundaa-page-header small {
    font-size: 10px;
    letter-spacing: .11em;
  }

  .dundaa-page-section {
    padding: 34px 0 !important;
  }

  .dundaa-card-grid,
  .dundaa-preview-grid {
    grid-template-columns: 1fr !important;
    gap: 14px;
    margin-top: 20px;
  }

  .dundaa-page-card {
    padding: 20px;
  }

  .dundaa-page-card i {
    font-size: 23px;
  }

  .dundaa-page-card h3 {
    font-size: 15px;
  }

  .dundaa-page-card p {
    font-size: 12px;
    line-height: 1.7;
  }

  .dundaa-home-preview {
    padding: 40px 0;
  }

  .dundaa-home-preview h2 {
    font-size: clamp(25px,7vw,34px);
  }

  .dundaa-preview-tile {
    padding: 22px;
  }

  .du-shell-footer-grid {
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 25px;
  }

  .du-shell-footer-bottom {
    margin-top: 32px;
  }
}

@media(max-width:480px) {
  .du-shell-header-inner {
    min-height: 62px;
  }

  .du-shell-brand img {
    width: 105px;
  }

  .dundaa-page-header {
    padding: 30px 0 28px !important;
  }

  .dundaa-page-header h1 {
    font-size: clamp(29px,8vw,36px) !important;
    margin: 10px 0 12px;
  }

  .dundaa-page-header p {
    font-size: 12.5px;
    line-height: 1.65;
  }

  .dundaa-page-section {
    padding: 26px 0 !important;
  }

  .dundaa-card-grid {
    gap: 12px;
  }

  .dundaa-page-card {
    padding: 18px;
  }

  .du-shell-footer-grid {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .du-shell-footer {
    padding: 36px 0 20px;
  }

  .du-shell-footer-bottom {
    flex-direction: column;
    gap: 7px;
    margin-top: 28px;
  }

  .du-shell-account {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .du-shell-login,
  .du-shell-join {
    padding: 11px 8px;
    font-size: 11px;
  }
}

@media(prefers-reduced-motion:reduce) {
  html {
    scroll-behavior: auto;
  }
}
