.ml-app {
  min-height: 100dvh;
  display: grid;
  grid-template-rows: auto 1fr auto;
}

.ml-header {
  position: sticky;
  top: 0;
  z-index: var(--ml-z-index-sticky);
  padding: var(--ml-space-4) var(--ml-space-6);
  background: rgba(250, 246, 239, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--ml-color-surface-line);
}

.ml-header__inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--ml-space-4);
}

.ml-header__brand {
  display: flex;
  align-items: center;
  gap: var(--ml-space-3);
  min-width: 0;
}

.ml-header__nav {
  display: none;
  align-items: center;
  gap: var(--ml-space-8);
}

@media (min-width: 900px) {
  .ml-header__nav {
    display: flex;
  }
}

.ml-header__actions {
  display: flex;
  align-items: center;
  gap: var(--ml-space-4);
}

.ml-nav-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--ml-radius-md);
  border: 1px solid var(--ml-color-surface-line);
  background: var(--ml-color-surface-cream);
  color: var(--ml-color-text-primary);
}

@media (min-width: 900px) {
  .ml-nav-toggle {
    display: none;
  }
}

.ml-mobile-nav {
  display: none;
  flex-direction: column;
  gap: var(--ml-space-3);
  padding: var(--ml-space-4) var(--ml-space-6) var(--ml-space-6);
  border-bottom: 1px solid var(--ml-color-surface-line);
  background: rgba(250, 246, 239, 0.98);
}

.ml-mobile-nav--open {
  display: flex;
}

@media (min-width: 900px) {
  .ml-mobile-nav {
    display: none !important;
  }
}

.ml-main {
  min-height: calc(100dvh - 200px);
  padding-top: var(--ml-space-8);
  padding-bottom: var(--ml-space-12);
}

.ml-footer {
  background: var(--ml-color-surface-paper);
  padding: var(--ml-space-16) var(--ml-space-6) var(--ml-space-8);
  border-top: 1px solid var(--ml-color-surface-line);
}

.ml-footer__inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  gap: var(--ml-space-10);
  grid-template-columns: 1fr;
}

@media (min-width: 900px) {
  .ml-footer__inner {
    grid-template-columns: repeat(4, 1fr);
  }
}

.ml-footer__col h3 {
  font-size: var(--ml-font-size-sm);
  letter-spacing: var(--ml-font-letter-spacing-wide);
  text-transform: uppercase;
  color: var(--ml-color-text-secondary);
  margin-bottom: var(--ml-space-4);
}

.ml-footer__col a {
  display: block;
  margin-bottom: var(--ml-space-2);
  color: var(--ml-color-text-secondary);
}

.ml-footer__bottom {
  max-width: 1280px;
  margin: var(--ml-space-10) auto 0;
  padding-top: var(--ml-space-6);
  border-top: 1px solid var(--ml-color-surface-line);
  font-size: var(--ml-font-size-sm);
  color: var(--ml-color-text-tertiary);
  text-align: center;
}

.ml-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--ml-space-6);
}

.ml-placeholder {
  padding: var(--ml-space-12);
  text-align: center;
  color: var(--ml-color-text-secondary);
}

[dir="rtl"] .ml-header__inner {
  flex-direction: row-reverse;
}

[dir="rtl"] .ml-header__nav {
  flex-direction: row-reverse;
}

[dir="rtl"] .ml-header__actions {
  flex-direction: row-reverse;
}
