/* ============================================================
   MOBILE TEXT MODE
   Applies ONLY when <html> has class "mobile-text-on"
   Default: OFF (no class) → current sizes unchanged
   Opt-in: ON  (class added) → larger, bolder text everywhere
   ============================================================ */

/* Toggle-controlled variables (only inside .mobile-text-on) */
html.mobile-text-on {
    --mt-body: 17px;
    --mt-meta: 13.5px;
    --mt-username: 15px;
    --mt-weight-body: 500;
    --mt-weight-bold: 700;
    --mt-line-height: 22px;
    --mt-input: 16px;      /* iOS won't auto-zoom at >=16px */
}

/* ── POST BODY TEXT ─────────────────────────────────────────── */
html.mobile-text-on .post-content,
html.mobile-text-on .post-content-short,
html.mobile-text-on .post-content-full,
html.mobile-text-on .comment-text,
html.mobile-text-on .notif-message {
    font-size: var(--mt-body) !important;
    line-height: var(--mt-line-height) !important;
    font-weight: var(--mt-weight-body) !important;
}

/* ── USERNAMES (bold) ───────────────────────────────────────── */
html.mobile-text-on .comment-user,
html.mobile-text-on .comment-user .username,
html.mobile-text-on .username-hover,
html.mobile-text-on .post-username,
html.mobile-text-on .notif-message strong {
    font-size: var(--mt-username) !important;
    font-weight: var(--mt-weight-bold) !important;
}

/* ── TIMESTAMPS / META ──────────────────────────────────────── */
html.mobile-text-on .notif-time,
html.mobile-text-on .comment-timestamp,
html.mobile-text-on .post-time,
html.mobile-text-on .notif-time i {
    font-size: var(--mt-meta) !important;
}

/* ── FORM INPUTS (iOS no-zoom) ──────────────────────────────── */
html.mobile-text-on input[type="text"],
html.mobile-text-on input[type="email"],
html.mobile-text-on input[type="url"],
html.mobile-text-on input[type="search"],
html.mobile-text-on input[type="password"],
html.mobile-text-on textarea,
html.mobile-text-on select {
    font-size: var(--mt-input) !important;
}

/* ── VIDEO FEED ─────────────────────────────────────────────── */
html.mobile-text-on .video-caption,
html.mobile-text-on .video-description,
html.mobile-text-on .video-title,
html.mobile-text-on .video-username {
    font-size: var(--mt-body) !important;
    line-height: var(--mt-line-height) !important;
    font-weight: var(--mt-weight-body) !important;
}

/* ── USER PROFILE ───────────────────────────────────────────── */
html.mobile-text-on .profile-bio,
html.mobile-text-on .profile-name,
html.mobile-text-on .profile-stats .stat,
html.mobile-text-on .post-preview-text {
    font-weight: var(--mt-weight-body) !important;
}
html.mobile-text-on .profile-name {
    font-size: calc(var(--mt-body) * 1.2) !important;
    font-weight: var(--mt-weight-bold) !important;
}
html.mobile-text-on .profile-bio {
    font-size: var(--mt-body) !important;
    line-height: var(--mt-line-height) !important;
}

/* ── BASE NATIVE-APP FEEL (always on, not toggle-gated) ─────── */
html { touch-action: manipulation; }
* { -webkit-tap-highlight-color: transparent; }
