/*
 * CONTINUARIUM phone-footer candidate, 2026-11-30.
 *
 * Load after clear-global-template.css. The live mobile template turns the
 * footer into a horizontally scrolling rail, leaving SETTINGS and LEGAL RECORD
 * outside the initial viewport. This candidate lays the same five live controls
 * into one five-column row. No control is removed, and every coarse-
 * pointer target keeps the existing 44px minimum height.
 */
@media (max-width: 640px) {
  :root {
    --clear-footer-height: 44px;
  }

  .clear-global-footer,
  .room-footer.clear-global-footer {
    height: var(--clear-footer-height);
    min-height: var(--clear-footer-height);
  }

  .clear-global-footer__slider {
    inset: 0;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    grid-template-rows: 44px;
    gap: 0;
    padding: 0;
    overflow: visible;
    scroll-snap-type: none;
    touch-action: auto;
  }

  .clear-global-footer__start,
  .clear-global-footer__end,
  .clear-global-footer__links {
    display: contents;
  }

  .clear-global-footer__brand,
  .clear-global-footer__slider > :is(a, button),
  .clear-global-footer__slider nav > :is(a, button) {
    box-sizing: border-box;
    min-width: 0;
    min-height: 44px;
    padding: 2px 4px;
    justify-content: center;
    overflow: hidden;
    font-size: 8px;
    line-height: 1.05;
    letter-spacing: 0.02em;
    text-align: center;
    text-wrap: balance;
    white-space: normal;
  }

  .clear-global-footer__brand {
    gap: 4px;
  }

  .clear-global-footer__brand img {
    width: 14px;
    height: 14px;
    flex: 0 0 14px;
  }

  .clear-global-footer__brand span {
    min-width: 0;
    overflow-wrap: anywhere;
  }

  .clear-global-footer__range {
    display: none !important;
  }
}
/*
 * 1px overlay for footer-fix.css, 2026-11-30. Load AFTER footer-fix.css.
 * Source: SCORE measurement, ESX 1980705 (footer border-top 1px + 44px control row = 45px).
 * footer-fix.css is unchanged; this file only raises the footer-height variable on phones.
 */
@media (max-width: 640px) {
  :root {
    --clear-footer-height: 45px;
  }
}
