/*
 * Paddle Point accessibility typography pass.
 * Loaded last on every HTML page so legacy 9–12px UI text remains readable
 * without changing the underlying page structure or feature behavior.
 */

html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    font-size: 17px;
    line-height: 1.6;
}

/* Primary reading text */
body p,
body li,
body dd,
body dt,
body td,
body th,
body .auth-subtitle,
body .section-note,
body .empty-state,
body .card-muted,
body .schedule-summary,
body .history-results,
body .events-results,
body .admin-settings-intro,
body .payment-status,
body .payment-method-unavailable,
body .notification-message,
body .notification-item p {
    font-size: 16px !important;
    line-height: 1.6 !important;
}

/* Secondary/helper copy should remain clearly readable. */
body small,
body .password-hint,
body .booking-time-note,
body .booking-payment-footnote,
body .payment-method-note,
body .payment-method-picker-field small,
body .payment-method-row-status,
body #paymentMethodCreateStatus,
body .signup-retention-notice,
body .signup-status-subtext,
body .auth-footer,
body .auth-forgot,
body .auth-back,
body .error-message,
body .success-message {
    font-size: 14px !important;
    line-height: 1.55 !important;
}

/* Labels and form controls: larger labels and 16px+ fields are easier to read
 * and prevent mobile browsers from zooming tiny inputs on focus. */
body label,
body .form-label {
    font-size: 15px !important;
    line-height: 1.4 !important;
}

body input,
body select,
body textarea {
    font-size: 17px !important;
    line-height: 1.4 !important;
}

body button,
body .btn-primary,
body .back-btn,
body .logout-text-btn,
body .text-link,
body .nav-item,
body .admin-section-tab,
body .schedule-filter,
body .history-filter,
body .events-filter,
body .payment-method-action-btn,
body .payment-method-file-button,
body .theme-toggle {
    font-size: 15px !important;
    line-height: 1.3 !important;
}

/* Keep interactive controls comfortably tappable as text grows. */
body button,
body input,
body select,
body textarea,
body .btn-primary,
body .back-btn,
body .logout-text-btn,
body .nav-item,
body .admin-section-tab,
body .schedule-filter,
body .history-filter,
body .events-filter {
    min-height: 44px;
}

/* Compact metadata and status pills: still visually secondary, but never tiny. */
body .eyebrow,
body .card-label,
body .auth-card-top,
body .payment-summary-label,
body .payment-methods-label,
body .step-number,
body .booking-meta,
body .activity-status,
body .admin-setting-row > span,
body .booking-availability-label,
body .schedule-filter-count,
body .history-filter span,
body .events-filter span,
body .admin-payment-age,
body .notification-time,
body .notification-meta {
    font-size: 13px !important;
    line-height: 1.35 !important;
}

/* Readability audit: compact booking, payment, event, history and admin labels. */
body .intro-pills span,
body .booking-workspace .time-slot-btn .slot-state,
body .booking-slot-legend > span,
body .activity-date span,
body .activity-kind,
body .home-payment-count,
body .home-payment-type,
body .home-payment-request-status,
body .home-payment-mini-timer-label,
body .event-date-tile > span,
body .event-type-label,
body .event-status-pill,
body .event-capacity-copy > span,
body .event-entry-price > span,
body .history-date-tile > span,
body .history-item-kind,
body .history-item-status,
body .transaction-schedule-label,
body .booking-review-kicker,
body .booking-review-date-label,
body .booking-review-date-count,
body .booking-review-court-badge,
body .booking-review-hours,
body .booking-review-stat span,
body .booking-review-total span,
body .event-participant-number,
body .event-participant-status,
body .payment-request-type,
body .admin-schedule-summary span,
body .admin-today-time span,
body .admin-today-type,
body .admin-today-status,
body .admin-search-field span,
body .admin-filter-field span,
body .admin-booking-date span,
body .admin-live-badge,
body .admin-date-field span,
body .admin-schedule-header span,
body .admin-schedule-open,
body .admin-event-date span,
body .admin-event-status,
body .admin-player-meta,
body .admin-player-badge,
body .placeholder-badge {
    font-size: 12px !important;
    line-height: 1.35 !important;
}

/* Structured summaries should be easy to scan without becoming oversized. */
body .home-payment-booking-overview > span,
body .home-payment-booking-date-label,
body .home-payment-booking-row,
body .home-payment-request-total span,
body .event-capacity-copy > strong,
body .admin-payment-email,
body .admin-schedule-time,
body .admin-schedule-entry strong,
body .admin-event-subline,
body .admin-event-meta,
body .admin-booking-subline {
    font-size: 13px !important;
    line-height: 1.45 !important;
}

body .transaction-schedule-date,
body .transaction-schedule-court,
body .transaction-schedule-time,
body .transaction-schedule-empty,
body .transaction-confirmation-reference,
body .transaction-lifecycle-note,
body .transaction-event-date,
body .transaction-admin-note,
body .booking-review-time,
body .event-participant-main strong,
body .admin-payment-meta {
    font-size: 14px !important;
    line-height: 1.5 !important;
}

body .home-payment-request-total strong {
    font-size: 16px !important;
    line-height: 1.35 !important;
}

/* Frequently used compact component copy that was previously 10–12px. */
body .activity-main small,
body .admin-setting-row small,
body .booking-guideline small,
body .booking-hours-note small,
body .booking-hours-note span:not(.booking-note-icon),
body .booking-hours-note strong,
body .payment-method-option span,
body .payment-final-notice p,
body .receipt-upload-box .password-hint,
body .home-hero-note span,
body .home-hero-note small,
body .quick-action small,
body .next-activity-card small,
body .home-info-card p,
body .transaction-meta,
body .account-notification-time {
    font-size: 14px !important;
    line-height: 1.5 !important;
}

/* Important compact titles should not remain at 11–12px. */
body .booking-guideline strong,
body .booking-hours-note strong,
body .admin-setting-row strong,
body .payment-method-option strong,
body .payment-final-notice strong,
body .activity-main strong {
    font-size: 15px !important;
    line-height: 1.4 !important;
}

/* Header/location copy can stay compact, but should not drop below 14px. */
body .brand-lockup p {
    font-size: 14px !important;
}

/* Preserve icon-only controls that intentionally suppress visible text. */
@media (max-width: 650px) {
    body .back-btn {
        font-size: 0 !important;
    }

    body .back-btn::before {
        font-size: 20px !important;
    }
}

/* Slightly roomier text on narrow touch screens. */
@media (max-width: 760px) {
    body {
        line-height: 1.65;
    }

    body p,
    body li,
    body dd,
    body dt {
        line-height: 1.65 !important;
    }

    body .theme-toggle {
        font-size: 0 !important;
    }

    body .theme-toggle span {
        font-size: 17px !important;
    }
}
