/* Mobile guided-tour layout: keep navigation controls reachable without browser zoom. */
@media (max-width: 560px) {
  .nf-guide {
    position: fixed;
    inset: 0;
    height: 100vh;
    height: 100dvh;
    box-sizing: border-box;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    overflow: hidden;
    padding: 10px 10px calc(10px + env(safe-area-inset-bottom, 0px));
    -webkit-text-size-adjust: 100%;
  }

  .nf-guide-card {
    box-sizing: border-box;
    width: min(100%, 620px);
    max-height: min(68vh, 560px);
    max-height: min(68dvh, 560px);
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    padding: 15px 16px 12px;
    border-radius: 18px;
    font-size: 14px;
  }

  .nf-guide-top { gap: 8px; margin-bottom: 10px; }
  .nf-guide-close { flex: 0 0 36px; }
  .nf-guide-progress { margin-bottom: 9px; }
  .nf-guide-card h2 { margin: 6px 0 6px; font-size: 18px; line-height: 1.3; }
  .nf-guide-copy { min-height: 0; font-size: 14px; line-height: 1.55; }
  .nf-guide-actions {
    position: sticky;
    bottom: -12px;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 12px -16px -12px;
    padding: 10px 16px calc(8px + env(safe-area-inset-bottom, 0px));
    background: rgba(255,253,248,.98);
    border-top: 1px solid #eee9dc;
  }
  .nf-guide-skip-page, .nf-guide-skip-all {
    font-size: 11px;
    line-height: 1.25;
    white-space: normal;
  }
  .nf-guide-spacer { flex-basis: 100%; height: 0; }
  .nf-guide-actions .btn {
    flex: 1 1 0;
    min-width: 0;
    min-height: 42px;
    justify-content: center;
    padding: 8px 10px;
    white-space: nowrap;
  }
}
@media (max-width: 360px) {
  .nf-guide-card { padding-inline: 12px; }
  .nf-guide-actions { margin-inline: -12px; padding-inline: 12px; }
  .nf-guide-skip-page, .nf-guide-skip-all { font-size: 10px; }
}
