/* ==========================================================
   Scam-Less — mobile-nav.css
   Shared across all pages. Loads AFTER each page's inline
   <style>, so equal-specificity rules here win; higher
   specificity used where needed to beat existing mobile rules.
   ========================================================== */

/* Hamburger button — hidden on desktop */
.sl-menu-btn { display: none; }

/* Compact stats strip (mobile only, under the hero on checker pages) */
.sl-stats-strip { display: none; }
@media (max-width: 768px) {
  .sl-stats-strip {
    display: flex;
    justify-content: center;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 4px 8px;
    margin-top: 16px;
    font-size: 13px;
    font-weight: 600;
    color: #8a909c;
  }
  .sl-stats-strip[hidden] { display: none; }
  .sl-stats-strip .ss-teal { color: #20C997; }
  .sl-stats-strip .ss-red { color: #E24B4A; }
  .sl-stats-strip .ss-mint { color: #6EE7B7; }
}

/* Two-column card grid (used by the Scam alerts section) */
.grid.grid-two { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 768px) {
  .grid.grid-two { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {

  /* ---------- Restore a tidy single-row header ---------- */
  header .nav {
    height: 60px;            /* beats .nav{height:auto} from inline mobile CSS */
    padding: 0 16px;
    flex-wrap: nowrap;
    gap: 0;
  }
  header .nav .brand { font-size: 19px; }
  header .nav .brand svg { width: 28px; height: 28px; }

  /* ---------- Hamburger ---------- */
  .sl-menu-btn {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 10px;
    background: none;
    border: none;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }
  .sl-menu-bar {
    display: block;
    width: 100%;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: transform 0.2s ease, opacity 0.2s ease;
  }
  .sl-menu-btn[aria-expanded="true"] .sl-menu-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .sl-menu-btn[aria-expanded="true"] .sl-menu-bar:nth-child(2) { opacity: 0; }
  .sl-menu-btn[aria-expanded="true"] .sl-menu-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  /* ---------- Nav links become a drawer ---------- */
  header .nav .navlinks {
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    z-index: 30;
    display: flex;
    flex-direction: column;
    background: #141d31;
    border-bottom: 1px solid rgba(110, 231, 183, 0.18);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.45);
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: transform 0.18s ease, opacity 0.18s ease, visibility 0.18s;
  }
  header .nav .navlinks.sl-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
  header .nav .navlinks a.link {
    display: block;
    margin: 0;
    padding: 15px 22px;              /* big tap rows */
    font-size: 16px;
    color: #e9eef6;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }
  header .nav .navlinks a.link:last-child { border-bottom: none; }
  header .nav .navlinks a.link:hover,
  header .nav .navlinks a.link:focus-visible { color: #6EE7B7; }

  /* ---------- Index hero compression ---------- */
  /* (These classes only exist on the homepage; harmless elsewhere.) */
  .hero { padding: 30px 0 56px; }
  .hero h1 { font-size: clamp(30px, 8.5vw, 38px); }
  .hero p.sub { font-size: 15px; margin-top: 12px; }

  /* Chips → one compact line */
  .chips { gap: 6px; margin-top: 16px; }
  .chip { font-size: 12px; padding: 5px 11px; gap: 5px; }

  /* Live stats bar — solid dark bg so it stays readable when the
     JS moves it below the checker (onto the light page background) */
  .live-bar {
    background: #0B1220;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    margin-top: 22px;
  }
  /* When moved below the checker on mobile */
  .live-bar.sl-moved {
    margin: 24px auto 0;
    box-shadow: 0 14px 40px rgba(8, 14, 28, 0.18);
  }

  /* Checker sits closer to the hero now that stats moved out */
  .checker { margin-top: -40px; }
}

/* Keyboard focus visibility (all screen sizes) */
.sl-menu-btn:focus-visible,
header .nav .navlinks a.link:focus-visible {
  outline: 2px solid #20C997;
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  header .nav .navlinks, .sl-menu-bar { transition: none; }
}
