/* J9 Fly Accessibility Foundation + Panel v2.20 */

.j9-skip-link {
    position: fixed;
    top: 10px;
    left: 12px;
    z-index: 100000;
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    padding: 10px 16px;
    border: 2px solid #ffffff;
    border-radius: 6px;
    background: #031024;
    color: #ffffff !important;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.25;
    text-decoration: none !important;
    box-shadow: 0 0 0 2px #111827, 0 10px 28px rgba(0, 0, 0, .28);
    transform: translateY(calc(-100% - 24px));
    transition: transform 160ms ease;
}

.j9-skip-link:focus,
.j9-skip-link:focus-visible {
    outline: none !important;
    transform: translateY(0);
}

#main-content {
    scroll-margin-top: 96px;
}

#main-content:focus {
    outline: none;
}

/*
 * A dual light/dark focus indicator stays visible on both the dark aviation
 * surfaces and the white/light content cards. This block intentionally comes
 * after the legacy J9 styles and overrides old outline:0 / outline:none rules.
 */
body :is(
    a[href],
    button,
    input:not([type="hidden"]),
    select,
    textarea,
    summary,
    [role="button"],
    [role="link"],
    [tabindex]:not([tabindex="-1"])
):focus-visible {
    outline: 2px solid #ffffff !important;
    outline-offset: 2px !important;
    box-shadow: 0 0 0 5px #111827 !important;
}

/* WCAG 2.2 target-size floor for non-inline controls. */
button,
input[type="button"],
input[type="submit"],
input[type="reset"],
select,
[role="button"] {
    min-height: 24px;
}

@media (pointer: coarse) {
    .j9-header__toggle,
    .j9-header__contact,
    .j9-scroll-top,
    .j9fv2-filter button,
    .j9fv2-button,
    .j9-careers-form__submit,
    .j9-contact-form-panel .contact-button {
        min-width: 44px;
        min-height: 44px;
    }
}

/*
 * System-level reduced motion is respected globally. The same class is also
 * the hook used by the forthcoming J9 Accessibility panel, so the foundation
 * and user-controlled setting share one implementation.
 */
html.j9-a11y-reduce-motion {
    scroll-behavior: auto !important;
}

html.j9-a11y-reduce-motion *,
html.j9-a11y-reduce-motion *::before,
html.j9-a11y-reduce-motion *::after {
    scroll-behavior: auto !important;
    animation-duration: .001ms !important;
    animation-delay: 0ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    transition-delay: 0ms !important;
}

html.j9-a11y-reduce-motion .j9-scroll-top__plane,
html.j9-a11y-reduce-motion [data-j9fv2-map],
html.j9-a11y-reduce-motion [data-j9fv2-aircraft],
html.j9-a11y-reduce-motion [data-j9fv2-card-plane] {
    transform: none !important;
}

@media (prefers-reduced-motion: reduce) {
    .j9-skip-link {
        transition: none !important;
    }
}

/* J9 Fly Accessibility Panel v2.20.2 */
.j9-header__accessibility {
    display: inline-flex;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 1px solid color-mix(in srgb, var(--j9-white, #ffffff) 28%, transparent);
    border-radius: 50%;
    background: color-mix(in srgb, var(--j9-navy-deep, #031024) 78%, transparent);
    color: var(--j9-white, #ffffff);
    cursor: pointer;
    transition: border-color 180ms ease, background-color 180ms ease, color 180ms ease, transform 180ms ease;
    -webkit-tap-highlight-color: transparent;
}

.j9-header__accessibility:hover,
.j9-header__accessibility[aria-expanded="true"] {
    border-color: var(--j9-accent, #a61c00);
    background: color-mix(in srgb, var(--j9-accent, #a61c00) 16%, var(--j9-navy-deep, #031024));
    color: var(--j9-accent, #a61c00);
}

.j9-header__accessibility:active {
    transform: scale(.96);
}

.j9-header__accessibility svg {
    width: 23px;
    height: 23px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    pointer-events: none;
}

.j9-a11y-overlay {
    position: fixed;
    inset: 0;
    z-index: 100180;
    background: rgba(1, 8, 19, .56);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
}

.j9-a11y-panel {
    position: fixed;
    z-index: 100190;
    top: max(74px, calc(env(safe-area-inset-top, 0px) + 18px));
    right: max(18px, env(safe-area-inset-right, 0px));
    width: min(390px, calc(100vw - 36px));
    max-height: calc(100dvh - 96px - env(safe-area-inset-bottom, 0px));
    overflow: auto;
    overscroll-behavior: contain;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 18px;
    background: var(--j9-navy-deep, #031024);
    color: var(--j9-white, #ffffff);
    box-shadow: 0 28px 80px rgba(0, 0, 0, .38);
    -webkit-overflow-scrolling: touch;
}

.j9-a11y-panel[hidden],
.j9-a11y-overlay[hidden] {
    display: none !important;
}

body.j9-a11y-panel-open {
    overflow: hidden;
}

.j9-a11y-panel__inner {
    padding: 22px;
}

.j9-a11y-panel__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    padding-bottom: 18px;
    border-bottom: 1px solid rgba(255, 255, 255, .14);
}

.j9-a11y-panel__eyebrow {
    display: block;
    margin-bottom: 5px;
    color: var(--j9-accent, #a61c00);
    font-size: 11px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: .18em;
    text-transform: uppercase;
}

.j9-a11y-panel__title {
    margin: 0;
    color: var(--j9-white, #ffffff);
    font-size: 24px;
    font-weight: 700;
    line-height: 1.18;
}

.j9-a11y-panel__close {
    display: inline-flex;
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 50%;
    background: transparent;
    color: var(--j9-white, #ffffff);
    cursor: pointer;
}

.j9-a11y-panel__close svg {
    width: 19px;
    height: 19px;
    stroke: currentColor;
    stroke-width: 1.8;
}

.j9-a11y-panel__intro {
    margin: 16px 0 20px;
    color: rgba(255, 255, 255, .76);
    font-size: 14px;
    line-height: 1.55;
}

.j9-a11y-panel__group + .j9-a11y-panel__group {
    margin-top: 20px;
}

.j9-a11y-panel__label {
    display: block;
    margin-bottom: 9px;
    color: var(--j9-white, #ffffff);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.35;
}

.j9-a11y-text-size {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.j9-a11y-text-size button,
.j9-a11y-setting {
    min-height: 48px;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 10px;
    background: rgba(255, 255, 255, .055);
    color: var(--j9-white, #ffffff);
    cursor: pointer;
    transition: border-color 160ms ease, background-color 160ms ease, color 160ms ease;
}

.j9-a11y-text-size button {
    display: grid;
    place-items: center;
    gap: 1px;
    padding: 9px 7px;
}

.j9-a11y-text-size button[aria-pressed="true"],
.j9-a11y-setting[aria-pressed="true"] {
    border-color: var(--j9-accent, #a61c00);
    background: color-mix(in srgb, var(--j9-accent, #a61c00) 18%, transparent);
}

.j9-a11y-text-size__a {
    font-weight: 800;
    line-height: 1;
}

.j9-a11y-text-size button:nth-child(1) .j9-a11y-text-size__a { font-size: 15px; }
.j9-a11y-text-size button:nth-child(2) .j9-a11y-text-size__a { font-size: 18px; }
.j9-a11y-text-size button:nth-child(3) .j9-a11y-text-size__a { font-size: 21px; }

.j9-a11y-text-size__value {
    color: rgba(255, 255, 255, .66);
    font-size: 10px;
    font-weight: 600;
}

.j9-a11y-settings {
    display: grid;
    gap: 8px;
}

.j9-a11y-setting {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 12px 13px;
    text-align: left;
}

.j9-a11y-setting__name {
    font-size: 13px;
    font-weight: 700;
    line-height: 1.35;
}

.j9-a11y-setting__state {
    flex: 0 0 auto;
    min-width: 64px;
    padding: 5px 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .08);
    color: rgba(255, 255, 255, .72);
    font-size: 10px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: .05em;
    text-align: center;
    text-transform: uppercase;
}

.j9-a11y-setting[aria-pressed="true"] .j9-a11y-setting__state {
    background: var(--j9-accent, #a61c00);
    color: #ffffff;
}

.j9-a11y-panel__system-note {
    margin: 12px 0 0;
    padding: 10px 12px;
    border-left: 3px solid var(--j9-accent, #a61c00);
    background: rgba(255, 255, 255, .055);
    color: rgba(255, 255, 255, .74);
    font-size: 12px;
    line-height: 1.5;
}

.j9-a11y-panel__footer {
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, .14);
}

.j9-a11y-reset {
    display: inline-flex;
    width: 100%;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    padding: 11px 16px;
    border: 1px solid rgba(255, 255, 255, .28);
    border-radius: 10px;
    background: transparent;
    color: var(--j9-white, #ffffff);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
    cursor: pointer;
}

.j9-a11y-status {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* User display preferences. These are optional aids, not a substitute for WCAG conformance. */
html[data-j9-a11y-text-scale="112"] {
    font-size: 112.5%;
}

html[data-j9-a11y-text-scale="125"] {
    font-size: 125%;
}

html.j9-a11y-high-contrast {
    --j9-accent: #ffcc00 !important;
    --j9-accent-hover: #ffe066 !important;
    --j9-navy: #000000 !important;
    --j9-navy-deep: #000000 !important;
    --j9-blue: #111111 !important;
    --j9-ink: #000000 !important;
    --j9-white: #ffffff !important;
    --j9-sand: #ffffff !important;
    --j9-mist: #ffffff !important;
    --j9-line: #000000 !important;
    --j9fv2-accent: #ffcc00 !important;
    --j9fv2-accent-hover: #ffe066 !important;
    --j9fv2-ink: #000000 !important;
    --j9fv2-navy: #000000 !important;
    --j9fv2-navy-2: #111111 !important;
    --j9fv2-navy-3: #111111 !important;
    --j9fv2-line: #000000 !important;
}

html.j9-a11y-high-contrast body {
    text-rendering: optimizeLegibility;
}

html.j9-a11y-high-contrast :is(input, select, textarea, button) {
    border-width: 2px;
}

html.j9-a11y-underline-links body a[href] {
    text-decoration: underline !important;
    text-decoration-thickness: .11em !important;
    text-underline-offset: .18em !important;
}

html.j9-a11y-enhanced-focus body :is(
    a[href],
    button,
    input:not([type="hidden"]),
    select,
    textarea,
    summary,
    [role="button"],
    [role="link"],
    [tabindex]:not([tabindex="-1"])
):focus-visible {
    outline: 4px solid #ffffff !important;
    outline-offset: 3px !important;
    box-shadow: 0 0 0 8px #000000 !important;
}

@media (max-width: 767px) {
    .j9-header__accessibility {
        width: 44px;
        height: 44px;
        flex-basis: 44px;
    }

    .j9-a11y-panel {
        top: max(66px, calc(env(safe-area-inset-top, 0px) + 12px));
        right: 10px;
        left: 10px;
        width: auto;
        max-height: calc(100dvh - 78px - env(safe-area-inset-bottom, 0px));
        border-radius: 16px;
    }

    .j9-a11y-panel__inner {
        padding: 18px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .j9-header__accessibility,
    .j9-a11y-text-size button,
    .j9-a11y-setting {
        transition: none !important;
    }
}


/* J9 Fly Forms & Media Accessibility v2.21 */
.j9-a11y-form-status {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.j9-careers-form [aria-invalid="true"],
.j9-contact-form-panel [aria-invalid="true"] {
    border-color: var(--j9-accent, #a61c00) !important;
}

.j9-careers-form [aria-invalid="true"]:focus-visible,
.j9-contact-form-panel [aria-invalid="true"]:focus-visible {
    outline-color: var(--j9-accent, #a61c00) !important;
}

.j9-careers-form__honeypot[aria-hidden="true"] {
    pointer-events: none;
}


/* J9 Fly Accessibility QA fixes v2.22 */
.j9-a11y-main-target {
    display: block;
    width: 1px;
    height: 0;
    overflow: hidden;
    scroll-margin-top: 96px;
}

.j9-a11y-main-target:focus {
    outline: none;
}


/* J9 A11Y PAUSE V2
 * Pause running CSS animations without converting them
 * into reduced-motion one-frame animations.
 */
html.j9-a11y-pause-animations,
html.j9-a11y-pause-animations body {
    scroll-behavior: auto !important;
}

html.j9-a11y-pause-animations *,
html.j9-a11y-pause-animations *::before,
html.j9-a11y-pause-animations *::after {
    animation-play-state: paused !important;
}

