/* Shared header structure and content-driven overflow, used by every page. */
:root{--header-gradient:linear-gradient(110deg,#071c30,#102c43);--header-ink:#f5f1e9;--header-muted:#b8c1c8;--header-line:#887b5b;--header-control:#10293d;--header-accent:#d0ba87}
body>header{background:var(--header-gradient)!important}
body>header.shared-header{display:block!important;box-sizing:border-box;width:100%;max-width:none;min-height:0!important;margin:0!important;padding:0!important;background:var(--header-gradient)!important;color:var(--header-ink);border-bottom:1px solid var(--header-line)!important}
body>header.shared-header>.shared-header-content{display:flex!important;flex-flow:row wrap!important;align-items:center;box-sizing:border-box;width:100%;max-width:1600px;min-height:68px!important;margin:auto;padding:12px 20px!important;gap:12px 16px!important}
.shared-header .shared-header-legacy,.shared-header .staff-navigation-duplicate{display:none!important}
.shared-header .shared-brand{display:block;flex:0 0 auto;order:0;margin:0!important;padding:0!important}
body>header .neway-flights-logo{display:block;width:190px!important;aspect-ratio:6148.5487060546875 / 947;background:transparent!important;margin:0!important}
body>header .neway-flights-logo img{position:static!important;display:block;width:100%!important;height:100%!important;max-width:none;object-fit:contain;padding:0;border:0}
body>header.shared-header a{color:var(--header-ink)!important;text-decoration:none!important;font-size:13px!important;font-weight:600;line-height:1.4}
body>header.shared-header a:hover{color:var(--header-accent)!important}
.shared-header #public-navigation{display:flex!important;flex:0 0 auto;flex-flow:row nowrap;align-items:center;order:1;gap:16px;margin:0;padding:0;border:0;width:auto}
.shared-header #public-navigation>a{display:block;white-space:nowrap;padding:12px 0;border:0;border-bottom:2px solid transparent}
.shared-header #public-navigation>a[aria-current=page]{border-bottom-color:var(--header-accent)}
.shared-header .header-menu-toggle{display:flex;align-items:center;justify-content:center;order:2;flex:0 0 44px;width:44px;height:44px;min-height:44px;margin:0 0 0 auto;padding:10px;border:1px solid var(--header-line);border-radius:2px;background:transparent!important;color:var(--header-ink)!important;cursor:pointer}
.header-menu-toggle>span{display:grid;gap:5px;width:20px}.header-menu-toggle i{display:block;height:2px;background:currentColor}
.shared-header .shared-header-controls{display:none;order:3;flex:0 0 100%;min-width:0;align-items:center;justify-content:flex-end;gap:20px;flex-wrap:wrap;padding:16px 0 0;border-top:1px solid var(--header-line)}
.shared-header.header-menu-open .shared-header-controls{display:flex}
.shared-header.header-controls-inline .shared-header-controls{display:flex;flex:0 0 auto;flex-wrap:nowrap;margin-left:auto;padding:0;border:0}
.shared-header.header-controls-inline .header-menu-toggle{display:none}
.shared-header.public-links-overflow #public-navigation{display:none!important;order:3;flex:0 0 100%;flex-wrap:wrap}
.shared-header.public-links-overflow.header-menu-open #public-navigation{display:flex!important}
.shared-header:has(#staff-navigation) .shared-join{display:none!important}
.shared-header .shared-join{order:0;margin-right:auto}
.shared-header .display-settings{order:1;display:flex!important;align-items:center;gap:14px;margin:0!important;padding:0!important;background:transparent!important;flex:none;width:auto}
.shared-header .display-settings label{display:grid;gap:4px;color:var(--header-muted)!important;font-size:10px}
.shared-header select{display:block;width:110px;min-width:0;height:36px;margin:0;padding:4px;border:0;border-bottom:1px solid var(--header-line);border-radius:0;background:transparent!important;color:var(--header-ink)!important;-webkit-text-fill-color:var(--header-ink);font-size:12px}
.shared-header select option{background:var(--header-control);color:var(--header-ink)}
.shared-header .app-login{order:2;position:relative;flex:none;margin:0;padding:0;z-index:50}
.shared-header .app-login summary,.shared-header #account-header button{display:flex;align-items:center;gap:12px;box-sizing:border-box;min-height:44px;margin:0;padding:10px 14px;list-style:none;border:1px solid var(--header-line);border-radius:2px;background:transparent!important;color:var(--header-ink)!important;font:inherit;font-size:12px;cursor:pointer}
.shared-header .app-login summary::-webkit-details-marker{display:none}
.shared-header .app-login summary:after{content:'';width:7px;height:7px;border-right:1px solid;border-bottom:1px solid;transform:rotate(45deg)}
.shared-header .login-menu-links{position:absolute;top:calc(100% + 8px);right:0;min-width:230px;padding:6px;border:1px solid var(--header-line);background:var(--header-control);box-shadow:0 8px 24px #00102030}
.shared-header .login-menu-links a{display:block;padding:12px}
.shared-header .app-login:not([open]) .login-menu-links{display:none}
.shared-header:has(#account-header) .app-login,.shared-header:has(#identity:not(:empty)) .app-login{display:none}
.shared-header #account-header,.shared-header #identity{order:2;margin:0!important;padding:0!important;border:0!important;min-width:0}
.shared-header .account-session{display:flex;justify-content:flex-end;text-align:right;align-items:center;gap:12px;margin:0;padding:0;border:0;color:var(--header-ink)}
.shared-header .account-session>div{display:grid;gap:4px}.shared-header .account-session span{font-size:10px;color:var(--header-muted)}.shared-header .account-session strong{font-size:12px;overflow-wrap:anywhere}
.shared-header .account-session .account-actions{display:inline-flex;align-items:center;gap:8px;flex-shrink:0}
.shared-header .account-settings{display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px}
.shared-header #staff-navigation{display:flex!important;flex-flow:row nowrap!important;flex:0 0 auto;width:auto;gap:16px;margin:0!important;padding:0!important;border:0}
.shared-header #staff-navigation>a{display:block;box-sizing:border-box;min-height:44px;padding:12px 0 10px;border-bottom:2px solid transparent}
.shared-header #staff-navigation>a[aria-current=page]{color:var(--header-accent)!important;border-bottom-color:var(--header-accent)}
.shared-header :focus-visible{outline:2px solid var(--header-accent);outline-offset:3px}
/* Measure natural content widths even while the overflow panel is closed. */
.shared-header.header-measuring .shared-header-controls,.shared-header.header-measuring #public-navigation{display:flex!important;position:absolute!important;visibility:hidden!important;width:max-content!important;max-width:none!important;flex-wrap:nowrap!important;flex:none!important;padding:0!important;border:0!important}
@media(max-width:600px){.shared-header #staff-navigation{display:flex!important;flex-flow:row nowrap!important;flex:0 0 auto;width:auto;gap:16px;margin:0!important;padding:0!important;border:0}.shared-header .shared-header-controls{gap:16px}.shared-header .shared-join{flex-basis:100%}.shared-header .account-session{flex-wrap:wrap}.shared-header .login-menu-links{position:static;max-width:100%;margin-top:8px}}

/* Primary links occupy one row; overflow is shown only after opening the menu. */
.shared-header .primary-links{display:flex;flex:0 0 auto;order:1;align-items:center;gap:16px;white-space:nowrap}
.shared-header.public-links-overflow .primary-links{display:none;order:3;flex:0 0 100%;flex-wrap:wrap}
.shared-header.public-links-overflow.header-menu-open .primary-links{display:flex}
.shared-header.public-links-overflow:not(.header-measuring) #staff-navigation{flex:0 1 100%;flex-wrap:wrap!important;white-space:normal;min-width:0}
.shared-header.public-links-overflow #public-navigation{flex:0 0 auto!important}
.shared-header.header-measuring .primary-links{display:flex!important;position:absolute!important;visibility:hidden!important;width:max-content!important;flex-wrap:nowrap!important}
.shared-header.header-measuring .primary-links #public-navigation{position:static!important}
.dev-mail-launch{position:fixed;right:16px;bottom:12px;z-index:1000;background:#17384c;color:#fff;padding:10px 16px;border:1px solid #bfa77e;border-radius:24px;font:600 12px system-ui;box-shadow:0 4px 18px #0003;text-decoration:none}
body:has(.dev-mail-launch){padding-bottom:56px}

.software-version{display:block;flex-basis:100%;width:100%;margin-top:12px;text-align:right;font:12px/1.5 Arial,sans-serif;color:inherit;overflow-wrap:anywhere}.version-footer{padding:16px 24px}
