/* Public headings: keep a margin at 360–390px without a Tailwind rebuild. */
.page-title {
    font-size: clamp(1.5rem, 0.85rem + 3.4vw, 3rem);
    line-height: 1.1;
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: normal;
}


/* Header mark: slightly larger so WORK ABROAD LLC in the circle stays readable. */
.portal-brand-logo {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

/* Logo lockup is a link: visible focus ring and hover cue. */
.portal-brand { border-radius: 12px; }
.portal-brand:focus-visible { outline: 3px solid #fff; outline-offset: 4px; }
.portal-brand:hover span.uppercase, .portal-brand:focus-visible span.uppercase { text-decoration: underline; text-underline-offset: 4px; }

/* UX pass: comfortable tap targets and no iOS zoom-on-focus. */
.field { font-size: 16px; min-height: 44px; }
textarea.field { min-height: 7rem; }
.lang-pill button { min-height: 36px; padding: 0 14px; font-size: 12px; }
@media (pointer: coarse) {
    .lang-pill button { min-height: 40px; }
    main form button[type="submit"] { min-height: 44px; }
    header .bg-sea { min-height: 44px; display: inline-flex; align-items: center; }
}


/* Phones: show the website link as an icon so the guest header stays to two rows. */
.portal-site-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border-radius: 8px;
}
.portal-site-link:focus-visible {
    outline: 3px solid #fff;
    outline-offset: 3px;
}
.portal-site-icon {
    display: none;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}
@media (max-width: 639px) {
    .portal-nav-guest {
        flex-wrap: nowrap;
        gap: 8px;
    }
    .portal-nav-guest > a,
    .portal-nav-guest form {
        flex-shrink: 0;
        white-space: nowrap;
    }
    .portal-site-link {
        position: relative;
        min-width: 40px;
        min-height: 44px;
        padding: 0 6px;
    }
    .portal-site-icon { display: block; }
    .portal-site-label {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        margin: -1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
        border: 0;
    }
    .lang-pill button { padding: 0 10px; }
    header .bg-sea { padding-left: 10px; padding-right: 10px; white-space: nowrap; }
}
