/*
 * Minimum touch and text sizes on phones and tablets.
 * Loaded last on every page so it can lift sizes set in the page stylesheets.
 * - Links and buttons: at least 24px tall (WCAG 2.2 target size).
 * - Text: at least 12px.
 * Selectors are doubled (.a.a) to win over page rules like ".card .a".
 */

@media (max-width: 1024px), (pointer: coarse) {

    /* Small links and buttons: 24px tall, text centred */
    .footer-bottom-links.footer-bottom-links a,
    .vt-video-tool-badge.vt-video-tool-badge,
    .vt-video-channel-link.vt-video-channel-link,
    .vt-video-bookmark-btn.vt-video-bookmark-btn,
    .video-bookmark-btn.video-bookmark-btn,
    .course-grid-view.course-grid-view,
    .project-grid-view.project-grid-view,
    .blog-grid-read-more.blog-grid-read-more,
    .prompt-source-creator.prompt-source-creator,
    .news-author.news-author,
    .watch-section-tool.watch-section-tool,
    .watch-section-watch-link.watch-section-watch-link,
    .auth-switch.auth-switch a,
    .auth-inline-link.auth-inline-link {
        display: inline-flex;
        align-items: center;
        min-height: 24px;
    }

    /* Title and breadcrumb links: a taller tap area without moving the layout */
    .project-title.project-title a,
    .project-grid-title.project-grid-title a,
    .course-grid-title.course-grid-title a,
    .news-card-title.news-card-title a,
    .watch-section-title-btn.watch-section-title-btn,
    .breadcrumbs.breadcrumbs a,
    .hero-breadcrumb.hero-breadcrumb a,
    .blog-post-breadcrumb.blog-post-breadcrumb a,
    .terms-row.terms-row label a {
        display: inline-block;
        padding-block: 3px;
        margin-block: -3px;
    }

    /* Sign-up terms checkbox (was 13px) */
    #signup_terms {
        width: 20px;
        min-width: 20px;
        height: 20px;
        flex-shrink: 0;
    }

    /* Form labels */
    .auth-form.auth-form .form-group > label {
        min-height: 24px;
        display: inline-flex;
        align-items: center;
    }
}

/* Badges, tags and small labels: at least 12px (they were 10.4-11.7px).
   All widths: they were just as small on desktop. */
.fsw-mb-toggle.fsw-mb-toggle,
.pill-count.pill-count,
.bookmark-label.bookmark-label,
.prompts-filter-label.prompts-filter-label,
.watch-section-level.watch-section-level,
.support-note.support-note,
.video-level-badge.video-level-badge,
.course-type-badge.course-type-badge,
.course-meta-item.course-meta-item,
.course-grid-platform.course-grid-platform,
.project-pricing-badge.project-pricing-badge,
.project-meta-item.project-meta-item,
.project-grid-owner.project-grid-owner,
.badge.badge-opensource,
.badge.open,
.badge.badge-blog-topic,
.badge.badge-blog-category,
.prompt-badge.prompt-badge,
.prompt-tag.prompt-tag,
.vt-pill-count.vt-pill-count,
.vt-video-tool-badge.vt-video-tool-badge,
.vt-video-level-badge.vt-video-level-badge,
.vt-video-channel-link.vt-video-channel-link,
.tool-badge-icon.tool-badge-icon {
    font-size: 0.75rem;
}

/* Hero tile labels are 13px on larger screens; only lift the small-screen size */
@media (max-width: 768px) {
    .news-hero-card-label.news-hero-card-label,
    .blog-hero-card-label.blog-hero-card-label,
    .vt-hero-card-label.vt-hero-card-label {
        font-size: 0.75rem;
    }
}
