/*
 * Phone layout refinements for the public site (Elementor pages styled by phase-one.css).
 * Enqueued after phase-one, the orange theme and the member entry. Every rule sits inside the
 * Elementor mobile breakpoint, so desktop and tablet are untouched. CSS only.
 */

@media (max-width: 767px) {
  /* Headings: avoid a single orphaned character on the last line ("掌握目前位 / 置"). */
  body.yvt-phase-one-active :is(h1, h2, h3, .elementor-heading-title) { text-wrap: balance; }

  /* iOS Safari zooms the page when a focused field is under 16px (blog and FAQ search were 13–14px). */
  body.yvt-phase-one-active :is(input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=hidden]):not([type=submit]):not([type=button]), select, textarea) { font-size: 16px; }

  /* Legibility floor. Content text to at least 12px, small labels and indexes to at least 11px.
     Decorative illustration scenes (.yvt-e-scene__*) are left as they are. */
  body.yvt-phase-one-active .yvt-e-notice-summary { font-size: 13px; }
  body.yvt-phase-one-active :is(.yvt-e-footer-bottom, .yvt-site-footer__bottom, .yvt-e-faq-help-links small, .yvt-mini-journey small, .yvt-result-comparison span),
  body.yvt-phase-one-active .yvt-embed-calculator--compact .yvt-result-comparison span { font-size: 12px; }
  body.yvt-phase-one-active .yvt-e-footer-social-title .elementor-heading-title { font-size: 12px !important; }
  body.yvt-phase-one-active :is(.yvt-e-notice-token b, .yvt-e-notice-kind, .yvt-e-formula > span small, .yvt-e-formula > span em, .yvt-e-partner-rail small, .yvt-card-kicker, .yvt-e-faq-tab small, .yvt-e-metric-card__index, .yvt-e-metric-card__rule span, .yvt-e-partner-controls output),
  body.yvt-phase-one-active .yvt-public-tracking .yvt-ot-step label { font-size: 11px; }

  /* Touch targets: 44px minimum. */
  body.yvt-phase-one-active .yvt-e-partner-controls button { width: 44px; height: 44px; }
  body.yvt-phase-one-active .elementor-button.elementor-size-sm { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; }
  /* Footer link lists: taller tap area, same visual spacing (padding offset by negative margin). */
  body.yvt-phase-one-active .elementor-location-footer .elementor-icon-list-item > a { padding-block: 8px; margin-block: -8px; }

  /* The floating LINE button sits over the bottom-right corner; leave room so the last footer line
     can scroll clear of it. */
  body.yvt-phase-one-active.cht-in-mobile .elementor-location-footer { padding-bottom: 76px; }
}
