/* â”€â”€ Mythos Mobile Fixes â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */

/* Prevent any horizontal overflow site-wide */
html, body {
  overflow-x: hidden;
  max-width: 100vw;
}

@media (max-width: 767px) {

  /* â”€â”€ Hero heading â€“ scale down on small screens â”€â”€ */
  h1 {
    font-size: clamp(2rem, 10vw, 3rem) !important;
    line-height: 1.15 !important;
    word-break: break-word;
  }

  /* â”€â”€ Terminal / code block â”€â”€ */
  /* Allow the outer terminal panel to scroll rather than blow out */
  [class*="font-mono"] {
    overflow-x: auto;
    max-width: 100%;
  }

  /* Override whitespace-nowrap on command lines so they wrap on mobile */
  [class*="whitespace-nowrap"] {
    white-space: pre-wrap !important;
    word-break: break-all !important;
    overflow-wrap: anywhere !important;
  }

  /* â”€â”€ Nav bar â”€â”€ make sure it doesn't overflow */
  header, header > * {
    max-width: 100vw;
    overflow: hidden;
  }

  /* â”€â”€ Buttons row in hero â”€â”€ stack vertically on very small screens */
  .flex.flex-col.sm\:flex-row,
  .flex.flex-row {
    flex-wrap: wrap;
  }

  /* â”€â”€ General container safety â”€â”€ */
  main, section, div {
    max-width: 100%;
    box-sizing: border-box;
  }

  /* â”€â”€ Padding adjustments for small screens â”€â”€ */
  .px-4 { padding-left: 1rem; padding-right: 1rem; }

  /* â”€â”€ Footer grid â€“ already stacks via md: breakpoint, but ensure it â”€â”€ */
  footer {
    overflow-x: hidden;
  }
}
