/* Adawaty Pro — Global Mobile-First Responsive Architecture */
*, *::before, *::after {
  box-sizing: border-box;
}

html, body {
  max-width: 100%;
  overflow-x: clip;
  -webkit-text-size-adjust: 100%;
}

/* Prevent flex/grid children from forcing horizontal overflow */
main, section, article, aside, .saas-card, .glass-card, .app-container {
  min-width: 0;
  max-width: 100%;
}

.grid > *, .flex > * {
  min-width: 0;
}

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

code, pre, a, p, li, h1, h2, h3, span, div {
  overflow-wrap: break-word;
  word-wrap: break-word;
}

/* Prevent sticky navbar from overlapping anchored headings */
[id], h1, h2, h3 {
  scroll-margin-top: 84px;
}

/* Hide scrollbars cleanly on horizontally scrollable category pill strips */
.no-scrollbar::-webkit-scrollbar {
  display: none;
}
.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* Responsive table & code wrappers */
.table-scroll-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* Mobile-First Tap Targets & Anti-Zoom (< 768px) */
@media (max-width: 767px) {
  button,
  a.btn-emerald,
  a.btn-slate,
  .hero-upload-btn,
  .conv-primary-btn,
  select,
  input[type="text"],
  input[type="search"],
  input[type="number"],
  input[type="email"] {
    min-height: 44px;
  }

  input[type="text"],
  input[type="search"],
  input[type="number"],
  input[type="email"],
  select,
  textarea {
    font-size: 16px !important;
  }

  .hero-dropzone {
    min-height: 180px !important;
    padding: 24px 16px !important;
  }

  .hero-upload-btn {
    width: 100%;
    justify-content: center;
    padding: 14px 20px !important;
    font-size: 1rem !important;
  }

  .conv-control-bar {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 10px !important;
    padding: 14px !important;
  }

  .conv-format-select,
  .conv-primary-btn {
    width: 100% !important;
    justify-content: center;
  }
}

/* CLS-safe AdSense placeholder container (collapsed until ad code is activated) */
.ad-slot-placeholder {
  width: 100%;
  min-height: 0;
  margin: 1rem auto;
}
