/*
 * TMC SINGLE EVENT VIEW — THE STANDARD (codified by Terry, Nov 25, 2026).
 * The ONLY approved mobile treatment for event pages: on a ticketed
 * tmc_event page, mobile shows only the Zeffy embed (header, footer,
 * venue strip, and the template's text columns hidden; the embed column
 * and its iframe sized to 95dvh so Zeffy's Continue bar rides ~5% above
 * the bottom edge). Scoped to body.single-tmc_event inside
 * max-width:767px; enqueued by tmc-single-event-view.php only when the
 * event has a tmc_event_ticket_url. Template element IDs are those of
 * the Single Event Template 28657, the only template for tmc_event.
 * Proven on the Matthew Payne page (post 30348) through V1–V9 below;
 * generalized from postid-30348 to single-tmc_event on Nov 25, 2026.
 * Rollback: delete the tmc-single-event-view pair and restore the
 * Payne pair from ~/tmc-backups/single-event-standard-20261125/.
 */
/*
 * PAYNE-MOBILE-IFRAME-001 — Matthew Payne event page (post 30348, canonical
 * slug /event/matthew-payne-band-2027-01-23/), mobile only.
 * V9 (Nov 25, 2026, Terry: "turn up to 5%"): iframe 95dvh — the Continue
 * bar now sits ~5% of the screen height above the bottom edge. V8 file
 * backed up at ~/tmc-backups/payne-mobile-view-20261125/tmc-payne-mobile-view.css.v8.
 * V8 (Nov 25, 2026, Terry's pick after testing V7): the iframe is 96dvh,
 * not 100dvh. Zeffy pins its Continue bar to the bottom of the iframe's
 * viewport, so shortening the iframe lifts the bar ~4% of the screen
 * height off the bottom edge, where it was crowding the phone's home
 * indicator area. A slim band of the page's dark background shows beneath
 * the form. The iframe's contents cannot be styled (cross-origin) — the
 * box is the only lever, and it is enough. V7 file backed up on HostGator
 * at ~/tmc-backups/payne-mobile-view-20261125/tmc-payne-mobile-view.css.v7.
 * V7 (Nov 25, 2026, Terry's direction after testing V6): NO footer at all.
 * The whole footer template is hidden on this page's mobile view and the
 * Zeffy iframe takes the full screen height (100dvh). The minimal footer
 * V4–V6 kept (footer 110's bottom bar: copyright/EIN line + Privacy /
 * Cookie / Contact links) is preserved as a reusable global element in the
 * Elementor library: "Minimal Footer - Bottom Bar", ID 31355, in case it is
 * wanted in a different capacity. V6 file backed up on HostGator at
 * ~/tmc-backups/payne-mobile-view-20261125/tmc-payne-mobile-view.css.v6.
 * V6 (Nov 25, 2026, Terry approved in chat for his iPhone test): the iframe
 * itself is sized to the screen instead of the V4 scroll-window. V4 made
 * the embed column a screen-height window panned across Zeffy's fixed
 * 1000px iframe; it worked, but Zeffy's floating bars anchor to the bottom
 * of the 1000px iframe viewport, not the phone screen. V6 gave the iframe
 * a true phone-sized viewport (100dvh - 110px) with the column no longer
 * scrolling — Zeffy's page scrolls inside the iframe (scrolling="yes" is
 * already on the embed), one scroller total. Terry: "that helped."
 * V5 (Nov 24, 2026): Terry confirmed on his iPhone that the form scrolls
 * properly; the temporary ?tmc_diag diagnostic block was removed from the
 * companion PHP the same evening. No rule changes in V5.
 * Terry's design (Nov 24, 2026, as corrected 19:16 CST): on mobile the page
 * shows the Zeffy embed iframe with the header hidden and the footer
 * abbreviated to its bottom line only. Scoped by body.single-tmc_event inside a
 * max-width:767px media query; tablet and desktop are untouched.
 * Structure verified from the live page Nov 24, 2026: single template 28657
 * has two top-level containers (fbe49e6 holds title col 9d03cd5, description
 * col bf04e09, details col rec0c01, embed col 58a9f73; 8c47580 is a venue
 * strip). Footer 110's main inner section is 2ba0c617; its bottom bar
 * (copyright line + policy links) is inner section 5fd41d7a.
 * V3 (Nov 24, 2026): removed flex-basis:100% from the embed column — on
 * iOS the percentage flex-basis in the stacked (column-direction) flex
 * container clipped the column, so the page could not scroll to the
 * bottom of the 1000px iframe (Terry's phone test). Width rules remain.
 * V4 (Nov 24, 2026): V3 was not enough on Terry's iPhone — with the form
 * filling the whole screen, swipes land on the iframe, which swallows
 * them, so the page never scrolls. The embed column became a
 * screen-height scroll window (overflow-y auto + momentum scrolling)
 * with the iframe pinned at 1000px. Superseded by V6 above.
 * Rollback: delete the two plugin files.
 */
@media (max-width: 767px) {
  body.single-tmc_event [data-elementor-type="header"] {
    display: none !important;
  }
  body.single-tmc_event [data-elementor-type="footer"] {
    display: none !important;
  }
  body.single-tmc_event .elementor-28657 > [data-id="8c47580"] {
    display: none !important;
  }
  body.single-tmc_event .elementor-element-fbe49e6 > .e-con-inner > *:not(.elementor-element-58a9f73) {
    display: none !important;
  }
  body.single-tmc_event .elementor-element-58a9f73 {
    width: 100% !important;
    max-width: 100% !important;
    height: 95vh;
    height: 95dvh;
    overflow: hidden;
  }
  body.single-tmc_event .elementor-element-58a9f73 iframe {
    width: 100% !important;
    height: 95vh !important;
    height: 95dvh !important;
    border: 0;
    display: block;
  }
}
