/* home-phone.css: the shorter tanimawoai.com homepage for phones (founder 2026-11-17, "Do it. But make sure desktop
   users see the full website without anything removed").
   PHONES ONLY. index.html links this file with media="(max-width: 700px)" and every rule below also sits inside the
   same media query, so a desktop or tablet window never applies one line of it. home-phone.js adds the three small
   pieces (headline, "see all" button, closing button) under the same test.
   What a phone no longer shows: the travelling robot guide, the "Take the tour" button, the Sunday class seats, the
   3D city, the learning road, "Just published" (it repeated "Who is building near you?"). Lists are cut to two. */
@media (max-width: 700px) {
  .rg-box, .hm-tour-btn, #hm-room, #hm-fresh, #hm-road,
  #featured-sites .hm-city, #featured-sites .hm-city + .hm-note { display: none !important; }

  /* order: websites, a site like mine, near you, videos, all user websites, closing button */
  #main { display: flex; flex-direction: column; }
  #main > #featured-sites { order: 1; }
  #main > #hm-like { order: 2; }
  #main > #hm-near { order: 3; }
  #main > #replays { order: 4; }
  #main > #student-sites { order: 5; }
  #main > .hp-end { order: 6; }

  /* two of each, not three or four */
  #vtList > .vt-item:nth-of-type(n+3) { display: none !important; }
  #hm-like .hm-row > a:nth-of-type(n+3), #hm-near .hm-row > a:nth-of-type(n+3) { display: none !important; }

  /* videos: no tall "Watch & Learn" tag above the title, one button below */
  #replays .rp-head .nv-lines, #replays .replay-more .rp-cta2 { display: none !important; }

  /* no floating buttons on a phone: the WhatsApp button and the chat robot are hidden (founder 2026-11-17) */
  a#waFloat.wa-float, #chatLauncher { display: none !important; }

  /* the live line never says "Someone from Unknown" */
  .hl-arrive.hp-unknown { display: none !important; }

  /* headline above the map */
  .hero-grid > .hp-top { order: -5; width: 100%; padding: 20px 4px 4px; text-align: center; }
  .hp-top h2 { margin: 0 0 16px; font: 800 28px/1.18 Manrope, Inter, system-ui, sans-serif; color: #fff; letter-spacing: -.01em; }
  .hp-top h2 b { color: #ffd60a; font-weight: 800; }
  .hp-top h2 span { display: block; margin-top: 8px; font: 500 16px/1.4 Inter, system-ui, sans-serif; color: #cfe0ff; letter-spacing: 0; }
  .hp-go { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 56px; padding: 0 18px; background: linear-gradient(#ffd60a, #ffb300); color: #0a1430 !important; font: 800 18px Manrope, Inter, system-ui, sans-serif; text-decoration: none !important; }
  .hp-go svg { width: 20px; height: 20px; flex: none; }
  .hp-all { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; margin: 4px 16px 0; padding: 0 16px; border: 1px solid rgba(47,134,255,.7); background: #0d2a6e; color: #fff !important; font: 800 16px Manrope, Inter, system-ui, sans-serif; text-align: center; text-decoration: none !important; }
  .hp-all svg { width: 18px; height: 18px; flex: none; }
  .hp-end { padding: 6px 16px 44px; text-align: center; }
  .hp-end h2 { margin: 0 0 14px; font: 800 26px/1.2 Manrope, Inter, system-ui, sans-serif; color: #fff; }

  /* ---- EVERYTHING FITS THE PHONE (founder 2026-11-17: "Make everything responsive on the mobile version") ----
     Measured at 320px, 360px and 412px. Three things ran off the screen; the rest is text that was cut short. */
  /* 1. Dr. Daniel's Websites: the one column could not shrink below its widest child (the nowrap yellow button),
        so at 320px both boxes ran off the right edge. */
  #vtList > .vt-item { grid-template-columns: minmax(0, 1fr); }
  #vtList .vt-card, #vtList .vt-text { min-width: 0; max-width: 100%; }
  #vtList .vt-btns { display: flex; flex-direction: column; align-items: stretch; gap: 10px; }
  #vtList .vt-btns > a { white-space: normal; text-align: center; margin: 0; }
  #vtList .vt-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  #vtList .vt-stats b { overflow-wrap: anywhere; }
  #vtList .vt-url { font-size: 10px; letter-spacing: 0; }
  #vtList .vt-text h3 { overflow-wrap: anywhere; }
  /* 2. Videos: the strip was sized calc(100vw - 32px), and vw ignores site-scale.css's 125% zoom, so it was wider
        than the phone and its cards were cut on both sides. Cards also carried an 11 degree tilt (home-wow.css). */
  #replays .rc-wrap { width: 100%; left: 0; transform: none; }
  #replays #replayGrid { perspective: none; grid-auto-columns: 84%; scroll-snap-type: x proximity; }
  #replays #replayGrid .replay-card { rotate: none !important; scroll-snap-align: center; }
  /* 3. text that was cut with "..." now wraps */
  #hm-like .ss-title, #hm-near .ss-title, #student-sites .ss-title { white-space: normal !important; overflow: visible !important; text-overflow: clip !important; overflow-wrap: anywhere; }
  #hm-like .ss-byt, #hm-near .ss-byt, #student-sites .ss-byt, #student-sites .ss-more { white-space: normal !important; overflow: visible !important; text-overflow: clip !important; overflow-wrap: anywhere; }
  #student-sites .ss-more { min-height: 34px; height: auto; padding-top: 6px; padding-bottom: 6px; line-height: 1.25; }
  #student-sites small { font-size: 11px !important; }
  /* 4. no map on a phone (founder 2026-11-17: "Remove the map from the mobile version as well"): the map, its
        Map / Globe / full-screen bar and the line under it go; the live numbers below stay. */
  .hero .hero-map .map-panel, .hero .hero-map .map-phonebar { display: none !important; }
  /* 5. polish: the address in each website box's little browser bar gets the room the three window dots took;
        the "New replay" line wraps and is tall enough to tap; the swipe row's cards are wide enough to read */
  #vtList .vt-bar > :not(.vt-url):not(.vt-live):not(.vt-new) { display: none; }
  #vtList .vt-url { flex: 1 1 auto; min-width: 0; }
  .hero .wow-replay { min-height: 36px; height: auto; white-space: normal; padding-top: 6px; padding-bottom: 6px; }
  .hero .wow-replay span { white-space: normal !important; overflow: visible !important; text-overflow: clip !important; }
  #student-sites .ss-grid > li { flex: 0 0 76% !important; width: 76% !important; max-width: 300px; }
  #featured-sites { padding-top: 8px; }
  #hm-like, #hm-near { padding-top: 26px; }
  /* narrow phones */
  @media (max-width: 360px) {
    .hp-top h2 { font-size: 24px; }
    .hp-end h2 { font-size: 22px; }
    #vtList { padding-left: 40px; }
    #vtList .vt-text { padding: 18px 14px; }
    #hm-like .hm-chip, #hm-near .hm-btn { font-size: 13px; }
  }

  /* ---- CLEAN-UP (founder 2026-11-17: "clean it up and fix it. Use your best design") ----
     One idea per screen, one yellow button, even spacing. */
  /* a. each of Dr. Daniel's websites is a picture, its three facts, its name, one line and one button.
        The tags, the "online since" badge, the second visitor count and the "built by" line repeated what the
        picture and the facts already say; they stay on desktop. */
  #vtList .vt-text > .vt-tags, #vtList .vt-text > .vt-since, #vtList .vt-text > .vt-seen, #vtList .vt-text > .vt-by,
  #vtList .vt-btns > .vt-make { display: none !important; }
  #vtList .vt-text { padding: 16px 16px 18px; }
  #vtList .vt-text h3 { font-size: 22px; margin: 0 0 6px; }
  #vtList .vt-line { font-size: 14px; line-height: 1.45; margin: 0 0 14px; }
  #vtList .vt-btns { margin: 0; }
  #vtList .vt-btns > .vt-go { min-height: 40px; padding: 9px 14px; font-size: 14px; display: flex; align-items: center; justify-content: center; }
  #vtList > .vt-item { gap: 12px; margin-bottom: 30px; }
  #vtList > .vt-item:nth-of-type(2) { margin-bottom: 14px; }
  /* b. one list of other people's websites less: "near you" repeated "a site like mine" */
  #hm-near { display: none !important; }
  /* c. yellow means one thing, Start free. Every other button is a quiet blue outline. */
  #hm-like .hm-like-go { background: transparent !important; border: 1px solid rgba(47,134,255,.7) !important; color: #fff !important; box-shadow: none !important; }
  #hm-like .hm-chip.on { background: #1d4ed8 !important; border-color: #3b82f6 !important; color: #fff !important; }
  /* d. the empty stretches: under the live numbers, around the Showcase heading, under "See all" */
  .hero.hero-top { padding-bottom: 14px; }
  #featured-sites { padding-top: 22px; padding-bottom: 22px; }
  #featured-sites .section-head .nv-lines { display: none !important; }
  #featured-sites .section-head { margin-bottom: 22px; }
  .hp-all { margin-top: 0; }
  #hm-like { padding-top: 22px; padding-bottom: 22px; }
  #replays { padding-top: 26px; padding-bottom: 26px; }
  #student-sites { padding-top: 26px; padding-bottom: 26px; }
  /* e. videos: one row to swipe, not two */
  #replays #replayGrid { grid-template-rows: auto !important; }
  /* f. no sky on phones: the star dots, the sky tint and the glow at the top are off; plain navy */
  .hw-sky, .hm-sky { display: none !important; }
  body { background-image: none !important; }
}
