/**
 * Phone layout. Sections 65 and 66.
 *
 * The desktop measure stays. What changes under 720px is the touch size,
 * the notch, and the width of a photograph. Methodology can be folded.
 * Corrections cannot: they stay a normal block.
 */

@supports (padding: env(safe-area-inset-top)) {
  #theme-header {
    padding-top: env(safe-area-inset-top);
  }

  #footer {
    padding-bottom: env(safe-area-inset-bottom);
  }
}

.ai-progress {
  position: fixed;
  top: env(safe-area-inset-top, 0px);
  inset-inline: 0;
  z-index: var(--ai-z-sticky);
  height: 3px;
  pointer-events: none;
}

.ai-progress__bar {
  display: block;
  height: 100%;
  background: var(--ai-brand);
  transform: scaleX(0);
  transform-origin: right center;
}

@media (prefers-reduced-motion: no-preference) {
  .ai-progress__bar {
    transition: transform 80ms linear;
  }
}

.ai-fold > summary {
  min-height: 44px;
  display: flex;
  align-items: center;
  cursor: pointer;
  font-weight: var(--ai-fw-semibold);
}

.mea-pwa-prefs__kinds {
  display: grid;
  gap: 0.25rem;
}

.mea-pwa-prefs__kinds label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 44px;
}

@media (max-width: 720px) {
  #main-nav .main-menu > ul > li > a,
  #theme-header #main-nav .menu > li > a,
  .mea-search input[type="search"],
  .mea-search button,
  .ai-btn {
    min-height: 44px;
  }

  .mea-search input[type="search"] {
    width: 100%;
    font-size: 1rem;
  }

  .ai-article__title {
    max-width: none;
    font-size: var(--ai-fs-2xl);
  }

  .ai-article__figure,
  .ai-article__figure img,
  .ai-card__img {
    width: 100%;
    height: auto;
  }

  .ai-article__figure {
    margin-inline: calc(var(--ai-space-4) * -1);
  }
}
