/* =========================================================================
   Public job pages (browse-jobs, job_detail, apply, thank_you): phone header.
   Linked after each page's own <style>, so these rules win on small screens.

   tri-m-logo.png is 422×98 and holds the mark + "TRI-M GLOBAL" (x 7–178)
   followed by a divider and "Merchandising Management System". On phones the
   whole image squeezed the actions off the screen, so only the mark + name
   (left 44%) is shown there and the actions get compact.
   ========================================================================= */

@media (max-width: 640px) {
    .public-header {
        min-height: 60px;
        padding: 0 16px;
        gap: 12px;
    }

    /* Show only the mark + company name part of the logo image. */
    .public-header .brand {
        flex: 0 0 auto;
        width: calc(48px * 422 / 98 * 0.445);  /* ≈ 92px */
        height: 48px;
        overflow: hidden;
    }
    .public-header .brand img {
        height: 48px;
        width: auto;
        max-width: none;
    }

    .public-header .header-actions {
        gap: 10px;
        flex: 0 1 auto;
        min-width: 0;
    }

    /* "All Jobs" repeats the "Browse Jobs" link right under the header. */
    .public-header .back-inline { display: none; }

    .public-header .btn-login {
        height: 36px;
        padding: 0 16px;
        font-size: 13.5px;
        border-radius: 8px;
        white-space: nowrap;
    }
    .public-header .btn-login:hover { transform: none; box-shadow: none; }
}
