/* ══════════════════════════════════════════════════════════════════════════════
   neomorph-patch.css — Targeted fixes
   ══════════════════════════════════════════════════════════════════════════════ */

/* ── FIX 1: Browser tap highlight — must be on html element, not just * ───── */
html {
  -webkit-tap-highlight-color: rgba(0,0,0,0) !important;
}
*, *::before, *::after {
  -webkit-tap-highlight-color: inherit !important;
}

/* ── FIX 2: Hero code block overflow ─────────────────────────────────────── */

/* hero-inner has no overflow:hidden — content leaks through it */
.hero-inner {
  overflow: hidden !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

/* hero-code: clamp to parent, never exceed viewport */
.hero-code {
  max-width: 100% !important;
  width: 100% !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
}

/* The pre scrolls internally — the long URL won't push the page */
.hero-code pre {
  overflow-x: auto !important;
  overflow-y: visible !important;
  max-width: 100% !important;
  white-space: pre !important;
  word-break: normal !important;
  -webkit-overflow-scrolling: touch !important;
  box-sizing: border-box !important;
}

@media (max-width: 520px) {
  .hero-code {
    margin-left: 0 !important;
    margin-right: 0 !important;
    border-radius: 12px !important;
  }
  .hero-code pre {
    font-size: 0.65rem !important;
    padding: 0.85rem 0.9rem !important;
    line-height: 1.7 !important;
  }
}
