/*
 * Shared mobile safeguards for all public pages.
 * This stylesheet changes presentation only; page copy and media stay intact.
 */
/* A clear, consistent reading face across every public page. */
body,
button,
input,
select,
textarea {
    font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

p,
li,
.elementor-widget-text-editor,
.elementor-widget-text-editor p {
    font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.65;
}

/* Shared custom header: keep the school lockup prominent without excess height. */
@media (min-width: 768px) {
    .hpmi-header-inner {
        min-height: 74px;
    }

    .hpmi-logo img {
        width: 244px;
    }

    .hpmi-nav-item > a {
        min-height: 74px;
    }
}

@media (max-width: 767px) {
    html,
    body {
        overflow-x: hidden;
    }

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

    img,
    video,
    iframe,
    embed,
    object {
        max-width: 100%;
    }

    img {
        height: auto;
    }

    h1,
    .entry-title,
    .elementor-widget-heading h1 {
        font-size: clamp(40px, 11vw, 46px);
        line-height: 1.12;
    }

    h2,
    .elementor-widget-heading h2 {
        font-size: clamp(32px, 9.5vw, 42px);
        line-height: 1.15;
    }

    h3,
    .elementor-widget-heading h3 {
        font-size: clamp(22px, 6.5vw, 28px);
        line-height: 1.25;
    }

    p,
    li,
    .elementor-widget-text-editor,
    .elementor-widget-text-editor p {
        font-size: 16px;
        line-height: 1.65;
    }

    small,
    .elementor-widget-container small {
        font-size: 12px;
        line-height: 1.45;
    }

    button,
    input[type="button"],
    input[type="submit"],
    input[type="reset"],
    .elementor-button,
    .wp-block-button__link {
        min-height: 44px;
    }

    input,
    select,
    textarea {
        font-size: 16px;
    }

    .elementor-section.elementor-section-boxed > .elementor-container,
    .elementor-container,
    .ast-container {
        max-width: 100%;
    }

    .elementor-widget-image img,
    .wp-block-image img {
        max-width: 100%;
    }

    .site-footer,
    .elementor-location-footer {
        overflow-wrap: anywhere;
    }

    /* Homepage final action panel: full-width, readable mobile choices. */
    .hpmi-final-cta {
        padding: 72px 16px;
    }

    .hpmi-final-cta-container {
        width: 100%;
    }

    .hpmi-final-cta-eyebrow {
        font-size: 12px;
    }

    .hpmi-final-cta h2 {
        font-size: clamp(40px, 11vw, 46px);
        line-height: 1.08;
    }

    .hpmi-final-cta p {
        font-size: 16px;
        line-height: 1.65;
    }

    .hpmi-final-actions {
        margin-top: 28px;
        gap: 12px;
    }

    .hpmi-final-primary,
    .hpmi-final-secondary {
        min-height: 56px;
        font-size: 12px;
        letter-spacing: .04em;
    }

    /* Admissions journey: expand every step into a readable mobile row. */
    .hpmi-admissions-header {
        margin-bottom: 32px;
    }

    .hpmi-admissions-journey .hpmi-journey {
        gap: 0;
    }

    .hpmi-admissions-journey .hpmi-journey-step {
        padding: 22px 0;
    }

    .hpmi-admissions-journey .hpmi-journey-number {
        width: 34px;
        height: 34px;
        font-size: 12px;
    }

    .hpmi-admissions-journey .hpmi-journey-icon {
        width: 48px;
        height: 48px;
        margin-top: 16px;
        font-size: 20px;
    }

    .hpmi-admissions-journey .hpmi-journey-step h3 {
        margin: 14px 0 8px;
        font-size: 24px;
    }

    .hpmi-admissions-journey .hpmi-journey-step p {
        max-width: 100%;
        font-size: 16px;
        line-height: 1.6;
    }
}

@media (max-width: 420px) {
    h1,
    .entry-title,
    .elementor-widget-heading h1 {
        font-size: 40px;
    }

    h2,
    .elementor-widget-heading h2 {
        font-size: 32px;
    }
}
