/*
 * H11.6-HDR2 Desktop Navigation & Account Experience
 * Desktop-first; mobile/tablet keep the established navigation behavior.
 */
:root {
  --hdr2-blue: #1769ff;
  --hdr2-blue-strong: #0755e8;
  --hdr2-blue-soft: #eef5ff;
  --hdr2-ink: #101a2d;
  --hdr2-muted: #66748c;
  --hdr2-border: #dce6f4;
  --hdr2-surface: #ffffff;
  --hdr2-success: #169b62;
  --hdr2-danger: #e43232;
  --hdr2-shadow: 0 26px 80px rgba(25, 45, 84, .16);
}

.hdr2-desktop-header svg,
.hdr2-jobs-mega svg,
.hdr2-account-menu svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hdr2-desktop-header .sr-only {
  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;
}

@media (min-width: 1100px) {
  header.site-header.hdr2-desktop-header {
    --h-height: 82px;
    height: 82px;
    border-top: 3px solid transparent;
    border-image: linear-gradient(90deg,#2a6df5,#19b88a) 1;
    border-bottom: 1px solid rgba(208,221,239,.9);
    background: rgba(255,255,255,.98);
    box-shadow: 0 8px 28px rgba(30,58,105,.07);
    overflow: visible !important;
  }

  .hdr2-header-inner {
    max-width: 1480px;
    margin-inline: auto;
    padding-inline: 24px;
    gap: 22px;
    overflow: visible !important;
  }

  .hdr2-brand {
    margin-inline-end: 20px;
    gap: 12px;
  }

  .hdr2-brand-mark {
    width: 52px;
    height: 52px;
    border-radius: 17px;
    font-size: 20px;
    background: linear-gradient(145deg,#254ddd 0%,#1377e8 62%,#17b697 100%);
    box-shadow: 0 12px 28px rgba(31,89,222,.22);
  }

  .hdr2-brand-copy .brand-text {
    font-size: 22px;
    line-height: 1.05;
    font-weight: 950;
    letter-spacing: -.5px;
  }

  .hdr2-brand-copy .brand-sub {
    margin-top: 4px;
    font-size: 11.5px;
    font-weight: 700;
    color: #64718a;
  }

  .hdr2-main-nav {
    min-width: 0;
    gap: 18px;
  }

  .hdr2-primary-links {
    gap: 3px;
    flex-shrink: 0;
  }

  .hdr2-nav-link {
    min-height: 44px;
    padding: 9px 14px;
    border-radius: 14px;
    font-size: 14px;
    font-weight: 800;
    color: var(--hdr2-ink);
  }

  .hdr2-nav-link:hover,
  .hdr2-nav-link:focus-visible,
  .hdr2-mega-trigger[aria-expanded="true"] {
    color: var(--hdr2-blue);
    background: var(--hdr2-blue-soft);
    outline: none;
  }

  .hdr2-mega-trigger {
    border: 0;
    font-family: inherit;
  }

  .hdr2-mega-trigger > svg {
    width: 16px;
    height: 16px;
    transition: transform .2s ease;
  }

  .hdr2-mega-trigger[aria-expanded="true"] > svg {
    transform: rotate(180deg);
  }

  .hdr2-mobile-jobs-menu {
    display: none !important;
  }

  .hdr2-nav-actions {
    min-width: 0;
    gap: 9px;
    margin-inline-start: auto;
    flex-wrap: nowrap;
  }

  .hdr2-header-search {
    width: clamp(190px,18vw,300px);
    min-height: 48px;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 5px 6px 5px 14px;
    border: 1px solid var(--hdr2-border);
    border-radius: 999px;
    background: #fbfdff;
    box-shadow: 0 8px 24px rgba(52,79,122,.05);
    transition: border-color .2s,box-shadow .2s,background .2s;
  }

  [dir="rtl"] .hdr2-header-search {
    padding: 5px 14px 5px 6px;
  }

  .hdr2-header-search:focus-within {
    border-color: rgba(23,105,255,.65);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(23,105,255,.1);
  }

  .hdr2-header-search input {
    min-width: 0;
    flex: 1;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--hdr2-ink);
    font: inherit;
    font-size: 13px;
    font-weight: 700;
  }

  .hdr2-header-search input::placeholder {
    color: #7b879b;
  }

  .hdr2-header-search button {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    flex: 0 0 36px;
    border: 0;
    border-radius: 50%;
    background: var(--hdr2-blue-soft);
    color: var(--hdr2-blue);
    cursor: pointer;
  }

  .hdr2-user-menu {
    overflow: visible !important;
  }

  .hdr2-user-trigger {
    min-width: 212px;
    min-height: 52px;
    gap: 10px;
    padding: 5px 8px 5px 6px;
    border: 1px solid var(--hdr2-border);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(45,70,111,.06);
  }

  [dir="rtl"] .hdr2-user-trigger {
    padding: 5px 6px 5px 8px;
  }

  .hdr2-user-trigger:hover,
  .hdr2-user-trigger:focus-visible,
  .hdr2-user-trigger[aria-expanded="true"] {
    border-color: rgba(23,105,255,.5);
    background: #f9fbff;
    box-shadow: 0 0 0 4px rgba(23,105,255,.08),0 12px 26px rgba(45,70,111,.08);
    outline: none;
  }

  .hdr2-avatar {
    width: 40px;
    height: 40px;
    font-size: 15px;
    background: linear-gradient(145deg,#2b67f6,#1769ff);
    box-shadow: 0 8px 18px rgba(23,105,255,.25);
  }

  .hdr2-user-copy {
    max-width: 132px;
    flex: 1;
  }

  .hdr2-user-copy .header-user-name {
    font-size: 14px;
    font-weight: 900;
  }

  .hdr2-user-copy small {
    margin-top: 3px;
    font-size: 10.5px;
    font-weight: 700;
    color: #67758c;
  }

  .hdr2-user-caret {
    width: 24px;
    height: 24px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    color: #64748b;
  }

  .hdr2-user-caret svg {
    width: 15px;
    height: 15px;
  }

  .hdr2-lang-switch {
    min-height: 48px;
    gap: 7px;
    padding: 8px 13px;
    border-radius: 16px;
    font-size: 13px;
    letter-spacing: 0;
    color: #34445f;
  }

  .hdr2-lang-switch svg {
    width: 19px;
    height: 19px;
  }

  .hdr2-post-btn {
    min-height: 48px;
    gap: 8px;
    padding: 10px 17px;
    border-radius: 15px;
    font-size: 13.5px;
    background: linear-gradient(135deg,#245be9,#0c7fe8);
    box-shadow: 0 12px 24px rgba(23,105,255,.22);
  }

  .hdr2-post-btn svg {
    width: 19px;
    height: 19px;
  }

  .hdr2-auth-actions {
    min-height: 48px;
    padding: 4px;
    border: 1px solid var(--hdr2-border);
    border-radius: 16px;
    background: #fff;
  }

  .hdr2-auth-actions .login-link,
  .hdr2-auth-actions .register-link {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    border-radius: 12px;
    font-weight: 800;
  }

  .hdr2-jobs-mega {
    position: fixed !important;
    inset: auto !important;
    top: var(--hdr2-mega-top,90px) !important;
    left: 50% !important;
    width: min(1220px,calc(100vw - 44px)) !important;
    max-height: calc(100vh - var(--hdr2-mega-top,90px) - 24px) !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 1px solid rgba(211,224,241,.95) !important;
    border-radius: 26px !important;
    background: rgba(255,255,255,.99) !important;
    color: var(--hdr2-ink) !important;
    box-shadow: 0 36px 100px rgba(20,42,82,.22) !important;
    overflow: auto !important;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translate(-50%,-8px);
    transition: opacity .18s ease,transform .18s ease,visibility .18s;
    z-index: 2147483500 !important;
  }

  .hdr2-jobs-mega:popover-open,
  .hdr2-jobs-mega.is-fallback-open {
    display: block !important;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translate(-50%,0);
  }

  .hdr2-jobs-mega:not(:popover-open):not(.is-fallback-open) {
    display: none;
  }

  .hdr2-mega-head {
    position: sticky;
    top: 0;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 22px 26px 18px;
    border-bottom: 1px solid #e9eff7;
    background: rgba(255,255,255,.97);
    backdrop-filter: blur(12px);
  }

  .hdr2-eyebrow {
    display: block;
    margin-bottom: 5px;
    color: var(--hdr2-blue);
    font-size: 11px;
    font-weight: 900;
  }

  .hdr2-mega-head h2 {
    margin: 0;
    font-size: 20px;
    line-height: 1.25;
    color: var(--hdr2-ink);
  }

  .hdr2-mega-close {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    flex: 0 0 40px;
    border: 1px solid var(--hdr2-border);
    border-radius: 13px;
    background: #fff;
    color: #526078;
    cursor: pointer;
  }

  .hdr2-mega-close:hover {
    border-color: #f0aaaa;
    color: var(--hdr2-danger);
    background: #fff5f5;
  }

  .hdr2-mega-grid {
    display: grid;
    grid-template-columns: repeat(4,minmax(0,1fr));
  }

  .hdr2-mega-section {
    min-width: 0;
    padding: 22px 22px 24px;
    border-inline-end: 1px solid #e9eff7;
  }

  .hdr2-mega-section:last-child {
    border-inline-end: 0;
  }

  .hdr2-mega-section h3 {
    margin: 0 0 14px;
    font-size: 15px;
    font-weight: 950;
    color: var(--hdr2-ink);
  }

  .hdr2-mega-search {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 48px;
    margin-bottom: 14px;
    padding: 5px 6px 5px 12px;
    border: 1px solid var(--hdr2-border);
    border-radius: 14px;
    background: #f8fbff;
  }

  [dir="rtl"] .hdr2-mega-search {
    padding: 5px 12px 5px 6px;
  }

  .hdr2-mega-search:focus-within {
    border-color: rgba(23,105,255,.65);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(23,105,255,.09);
  }

  .hdr2-mega-search input {
    flex: 1;
    min-width: 0;
    border: 0;
    outline: 0;
    background: transparent;
    font: inherit;
    font-size: 12.5px;
    font-weight: 700;
  }

  .hdr2-mega-search button {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 11px;
    background: #eaf2ff;
    color: var(--hdr2-blue);
    cursor: pointer;
  }

  .hdr2-mega-link {
    min-height: 46px;
    display: flex;
    align-items: center;
    gap: 11px;
    margin: 2px 0;
    padding: 8px 9px;
    border-radius: 12px;
    color: #33425b;
    text-decoration: none;
    font-size: 12.8px;
    font-weight: 800;
    transition: background .14s,color .14s,transform .14s;
  }

  .hdr2-mega-link:hover {
    color: var(--hdr2-blue);
    background: #f1f6ff;
    transform: translateY(-1px);
  }

  .hdr2-mega-link-featured {
    min-height: 58px;
    margin-bottom: 5px;
    background: linear-gradient(135deg,#edf4ff,#f7fbff);
    border: 1px solid #d8e7ff;
  }

  .hdr2-mega-link > span:last-child {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
  }

  .hdr2-mega-link small {
    color: #738198;
    font-size: 10px;
    font-weight: 700;
  }

  .hdr2-mega-icon {
    width: 34px;
    height: 34px;
    display: grid !important;
    place-items: center;
    flex: 0 0 34px;
    border-radius: 11px;
    background: #f1f5fb;
    color: #354c6e;
  }

  .hdr2-mega-link:hover .hdr2-mega-icon,
  .hdr2-mega-link-featured .hdr2-mega-icon {
    color: var(--hdr2-blue);
    background: #e3eeff;
  }

  .hdr2-mega-icon svg {
    width: 18px;
    height: 18px;
  }

  .hdr2-mega-all {
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: 12px;
    padding: 9px 12px;
    border: 1px solid #bdd4ff;
    border-radius: 12px;
    color: var(--hdr2-blue);
    font-size: 12.5px;
    font-weight: 900;
    text-decoration: none;
  }

  [dir="rtl"] .hdr2-mega-all svg,
  [dir="rtl"] .hdr2-employer-cta > svg,
  [dir="rtl"] .hdr2-profile-prompt-arrow {
    transform: rotate(180deg);
  }

  .hdr2-mega-promo {
    margin-top: 16px;
    padding: 14px;
    border: 1px solid #d4e4ff;
    border-radius: 16px;
    background: linear-gradient(145deg,#edf5ff,#f9fcff);
  }

  .hdr2-mega-promo-icon {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    margin-bottom: 10px;
    border-radius: 12px;
    color: var(--hdr2-blue);
    background: #dceaff;
  }

  .hdr2-mega-promo strong,
  .hdr2-mega-promo small {
    display: block;
  }

  .hdr2-mega-promo strong {
    font-size: 13px;
    color: var(--hdr2-ink);
  }

  .hdr2-mega-promo small {
    margin-top: 4px;
    color: #697891;
    font-size: 10.5px;
    line-height: 1.6;
    font-weight: 700;
  }

  .hdr2-mega-promo a {
    min-height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 12px;
    border: 1px solid #b9d1ff;
    border-radius: 11px;
    color: var(--hdr2-blue);
    text-decoration: none;
    font-size: 12px;
    font-weight: 900;
    background: #fff;
  }

  .hdr2-employer-cta {
    min-height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 16px;
    padding: 13px 14px;
    border-radius: 16px;
    color: #fff;
    text-decoration: none;
    background: linear-gradient(135deg,#2260ef,#0784e8);
    box-shadow: 0 14px 30px rgba(23,105,255,.2);
  }

  .hdr2-employer-cta span {
    display: flex;
    flex-direction: column;
    gap: 3px;
  }

  .hdr2-employer-cta strong {
    font-size: 13px;
  }

  .hdr2-employer-cta small {
    font-size: 10px;
    color: rgba(255,255,255,.82);
  }

  .hdr2-employer-cta > svg {
    flex: 0 0 20px;
  }

  .header-user-dropdown.hdr1-r15-popover.hdr2-account-menu,
  .premium-user-dropdown.hdr1-r15-popover.hdr2-account-menu {
    width: min(320px,calc(100vw - 24px)) !important;
    min-width: 300px !important;
    max-width: 320px !important;
    max-height: min(650px,calc(100vh - 24px)) !important;
    padding: 0 !important;
    border: 1px solid rgba(211,224,241,.95) !important;
    border-radius: 24px !important;
    background: #fff !important;
    box-shadow: var(--hdr2-shadow) !important;
  }

  .hdr2-account-summary {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 18px 18px 14px;
  }

  .hdr2-account-avatar {
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    flex: 0 0 52px;
    border-radius: 50%;
    background: linear-gradient(145deg,#2a68f7,#1769ff);
    color: #fff;
    font-size: 19px;
    font-weight: 950;
    box-shadow: 0 10px 24px rgba(23,105,255,.25);
  }

  .hdr2-account-summary-copy {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
  }

  .hdr2-account-summary-copy > strong {
    overflow: hidden;
    color: var(--hdr2-ink);
    font-size: 16px;
    font-weight: 950;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .hdr2-account-summary-copy > span {
    color: #67758d;
    font-size: 11px;
    font-weight: 750;
  }

  .hdr2-account-status {
    width: fit-content;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: 3px;
    padding: 4px 8px;
    border-radius: 999px;
    color: #138455;
    background: #e9f9f1;
    font-size: 9.5px;
    font-weight: 900;
  }

  .hdr2-account-status svg {
    width: 13px;
    height: 13px;
  }

  .hdr2-profile-prompt {
    min-height: 74px !important;
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    margin: 0 12px 12px !important;
    padding: 11px 12px !important;
    border: 1px solid #d3e3ff !important;
    border-radius: 15px !important;
    color: var(--hdr2-ink) !important;
    background: linear-gradient(145deg,#eef5ff,#f9fcff) !important;
  }

  .hdr2-profile-prompt-icon {
    width: 38px;
    height: 38px;
    display: grid !important;
    place-items: center;
    flex: 0 0 38px;
    border-radius: 12px;
    color: var(--hdr2-blue);
    background: #dceaff;
  }

  .hdr2-profile-prompt-icon svg {
    width: 20px;
    height: 20px;
  }

  .hdr2-profile-prompt > span:nth-child(2) {
    min-width: 0;
    flex: 1;
    display: flex !important;
    flex-direction: column;
    gap: 3px;
  }

  .hdr2-profile-prompt strong {
    font-size: 12px;
    font-weight: 950;
  }

  .hdr2-profile-prompt small {
    color: #6e7d94;
    font-size: 9.5px;
    line-height: 1.5;
    font-weight: 700;
  }

  .hdr2-profile-prompt-arrow {
    width: 17px !important;
    height: 17px !important;
    flex: 0 0 17px;
    color: var(--hdr2-blue);
  }

  .hdr2-account-list {
    padding: 10px 12px 8px;
    border-top: 1px solid #e9eff7;
  }

  .hdr2-account-item {
    min-height: 45px !important;
    display: flex !important;
    align-items: center !important;
    gap: 11px !important;
    margin: 2px 0 !important;
    padding: 9px 10px !important;
    border-radius: 12px !important;
    color: #2e3d56 !important;
    font-size: 12.5px !important;
    font-weight: 850 !important;
  }

  .hdr2-account-item:hover {
    color: var(--hdr2-blue) !important;
    background: #f1f6ff !important;
  }

  .hdr2-account-item.is-primary {
    color: var(--hdr2-blue) !important;
    background: linear-gradient(135deg,#eaf2ff,#f4f8ff) !important;
  }

  .hdr2-account-item-icon {
    width: 29px;
    height: 29px;
    display: grid !important;
    place-items: center;
    flex: 0 0 29px;
    border-radius: 9px;
    color: #52647f;
    background: #f2f5fa;
  }

  .hdr2-account-item.is-primary .hdr2-account-item-icon,
  .hdr2-account-item:hover .hdr2-account-item-icon {
    color: var(--hdr2-blue);
    background: #dceaff;
  }

  .hdr2-account-item-icon svg {
    width: 17px;
    height: 17px;
  }

  .hdr2-account-settings {
    margin-top: 8px !important;
    padding-top: 12px !important;
    border-top: 1px solid #e9eff7;
    border-radius: 0 !important;
  }

  .hdr2-account-logout {
    margin: 0 !important;
    padding: 9px 12px 12px !important;
    border-top: 1px solid #e9eff7 !important;
  }

  .hdr2-account-logout button {
    min-height: 44px !important;
    display: flex !important;
    align-items: center !important;
    gap: 11px !important;
    padding: 9px 10px !important;
    border-radius: 12px !important;
    color: var(--hdr2-danger) !important;
    font-size: 12.5px !important;
    font-weight: 900 !important;
  }

  .hdr2-account-logout button:hover {
    background: #fff0f0 !important;
  }

  .hdr2-account-logout .hdr2-account-item-icon {
    color: var(--hdr2-danger);
    background: #fff0f0;
  }
}

@media (min-width: 1100px) and (max-width: 1320px) {
  .hdr2-header-search {
    width: 180px;
  }

  .hdr2-user-trigger {
    min-width: 185px;
  }

  .hdr2-user-copy {
    max-width: 106px;
  }

  .hdr2-employer-link {
    display: none;
  }

  .hdr2-mega-grid {
    grid-template-columns: repeat(4,minmax(220px,1fr));
  }
}

@media (max-width: 1099px) {
  .hdr2-jobs-mega {
    display: none !important;
  }

  .hdr2-mega-trigger > svg {
    display: none;
  }

  .hdr2-header-search {
    display: none;
  }

  .hdr2-post-btn svg,
  .hdr2-lang-switch svg {
    display: none;
  }

  .hdr2-account-summary,
  .hdr2-profile-prompt {
    display: none !important;
  }

  .hdr2-account-item-icon {
    display: none !important;
  }
}
