:root {
  --ats-shell-container: 1180px;
  --ats-shell-radius: 22px;
  --ats-shell-border: rgba(11, 18, 32, 0.08);
  --ats-shell-header-bg: #ffffff;
  --ats-shell-surface: #ffffff;
  --ats-shell-text: #0b1220;
  --ats-shell-muted: rgba(11, 18, 32, 0.68);
  --ats-shell-accent: #0b2f66;
  --ats-shell-accent-soft: #dbeafe;
  --ats-shell-shadow: 0 18px 50px rgba(0, 0, 0, 0.12);
  --ats-shell-pill: linear-gradient(135deg, rgba(11, 47, 102, 0.96), rgba(29, 78, 216, 0.92));
  --ats-shell-footer-bg: #07111d;
  --ats-shell-footer-panel: rgba(255, 255, 255, 0.04);
  --ats-shell-footer-border: rgba(255, 255, 255, 0.12);
  --ats-shell-footer-text: rgba(255, 255, 255, 0.86);
  --ats-shell-footer-muted: rgba(255, 255, 255, 0.64);
  --ats-shell-footer-link: #8fd0ff;
}

html[data-theme="dark"] {
  --ats-shell-border: rgba(255, 255, 255, 0.1);
  --ats-shell-header-bg: #07111d;
  --ats-shell-surface: #0b1624;
  --ats-shell-text: rgba(255, 255, 255, 0.92);
  --ats-shell-muted: rgba(255, 255, 255, 0.72);
  --ats-shell-accent: #8fd0ff;
  --ats-shell-accent-soft: rgba(143, 208, 255, 0.12);
  --ats-shell-shadow: 0 24px 70px rgba(0, 0, 0, 0.42);
  --ats-shell-pill: linear-gradient(135deg, rgba(143, 208, 255, 0.2), rgba(29, 78, 216, 0.34));
}

* {
  box-sizing: border-box;
}

html {
  background: #07111d;
}

body {
  margin: 0;
}

img {
  display: block;
  max-width: 100%;
}

.container {
  margin: 0 auto;
  width: min(var(--ats-shell-container), calc(100% - 36px));
}

.announcement-banner {
  position: relative;
  z-index: 42;
}

.header {
  background: var(--ats-shell-header-bg);
  position: sticky;
  top: 0;
  z-index: 40;
  padding: 16px 18px;
  box-shadow: 0 1px 0 rgba(125, 178, 225, 0.12);
}

.header__bar {
  max-width: var(--ats-shell-container);
  margin: 0 auto;
  min-height: 78px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
  padding: 14px 18px;
  border-radius: 999px;
  border: 1px solid var(--ats-shell-border);
  background: var(--ats-shell-surface);
  box-shadow: var(--ats-shell-shadow);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.logo__text {
  font-size: 1.65rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.nav a,
.actions a,
.actions button,
.searchclose {
  color: var(--ats-shell-text);
}

.nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  transition: background-color .2s ease, color .2s ease;
}

.nav a:hover,
.nav a:focus-visible {
  background: var(--ats-shell-accent-soft);
  color: var(--ats-shell-accent);
  text-decoration: none;
}

.actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.actions__group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: var(--ats-shell-pill);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 14px 28px rgba(11, 47, 102, 0.2);
}

.iconbtn,
.searchclose {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid var(--ats-shell-border);
  background: transparent;
  cursor: pointer;
}

.searchwrap {
  display: none;
  align-items: center;
  gap: 8px;
}

.header.search-open .searchwrap {
  display: flex;
}

.header.search-open .actions__group {
  display: none;
}

.search {
  width: min(320px, 42vw);
  min-height: 42px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--ats-shell-border);
  background: rgba(255, 255, 255, 0.66);
  color: var(--ats-shell-text);
}

html[data-theme="dark"] .search {
  background: rgba(255, 255, 255, 0.06);
}

.search::placeholder {
  color: var(--ats-shell-muted);
}

.navbtn,
.nav__overlay {
  display: none;
}

@media (max-width: 980px) {
  .header {
    padding: 14px 14px 0;
  }

  .header__bar {
    grid-template-columns: auto 1fr auto;
    gap: 10px;
    min-height: 70px;
    padding: 12px 14px;
  }

  .nav {
    display: none;
  }

  .navbtn,
  .nav__overlay {
    display: inline-flex;
  }

  .header.nav-open #primaryNav {
    position: fixed;
    top: 96px;
    left: 14px;
    right: 14px;
    z-index: 45;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 14px;
    border-radius: 24px;
    border: 1px solid var(--ats-shell-border);
    background: var(--ats-shell-surface);
    box-shadow: var(--ats-shell-shadow);
  }

  .header.nav-open #primaryNav a {
    justify-content: flex-start;
  }

  .nav__overlay {
    position: fixed;
    inset: 0;
    z-index: 44;
    background: transparent;
  }

  .actions .pill {
    display: none;
  }

  .search {
    width: min(220px, 50vw);
  }
}
.logo,
.logo__text {
  color: var(--ats-shell-text) !important;
}

.pill {
  color: #ffffff !important;
}

html[data-theme="dark"] .logo,
html[data-theme="dark"] .logo__text {
  color: rgba(255, 255, 255, 0.92) !important;
}

.cta-mini {
  align-items: center;
  background: var(--ats-shell-pill);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  color: #fff;
  display: inline-flex;
  font-size: 0.9rem;
  gap: 10px;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  text-decoration: none;
  white-space: nowrap;
}

.cta-mini:hover {
  text-decoration: none;
}

.cta-mini .icon {
  height: 16px;
  width: 16px;
}

.sitefooter {
  background: var(--ats-shell-footer-bg);
  color: var(--ats-shell-footer-text);
  padding: 32px 0 18px;
}

.sitefooter__panel {
  background: var(--ats-shell-footer-panel);
  border: 1px solid var(--ats-shell-footer-border);
  border-radius: var(--ats-shell-radius);
  padding: 24px 28px;
}

.sitefooter__grid {
  align-items: center;
  display: grid;
  gap: 22px;
  grid-template-columns: minmax(260px, 1.2fr) minmax(220px, 0.9fr) auto;
}

.sitefooter__brand {
  min-width: 0;
}

.sitefooter__logo {
  align-items: center;
  color: inherit;
  display: inline-flex;
  gap: 12px;
  min-width: 0;
  text-decoration: none;
}

.sitefooter__logo:hover {
  text-decoration: none;
}

.sitefooter__brandtext {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.sitefooter__brandtext strong {
  color: #fff;
  font-size: 0.98rem;
  line-height: 1.2;
}

.sitefooter__brandtext span {
  color: var(--ats-shell-footer-muted);
  font-size: 0.86rem;
  line-height: 1.35;
}

.sitefooter__links {
  justify-self: center;
  text-align: center;
}

.sitefooter__links h4 {
  color: var(--ats-shell-footer-muted);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  margin: 0 0 10px;
  text-transform: uppercase;
}

.sitefooter__group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  justify-content: center;
}

.sitefooter__group a,
.sitefooter__bottom a {
  color: var(--ats-shell-footer-link);
  text-decoration: none;
}

.sitefooter__group a:hover,
.sitefooter__bottom a:hover {
  text-decoration: underline;
}

.sitefooter__actions {
  display: flex;
  justify-content: flex-end;
}

.sitefooter__bottom {
  align-items: center;
  border-top: 1px solid var(--ats-shell-footer-border);
  color: var(--ats-shell-footer-muted);
  display: flex;
  flex-wrap: wrap;
  font-size: 0.84rem;
  gap: 8px 14px;
  justify-content: center;
  margin-top: 18px;
  padding-top: 14px;
}

.sitefooter__bottom address {
  font-style: normal;
  margin: 0;
}

@media (max-width: 980px) {
  .sitefooter__grid {
    grid-template-columns: 1fr;
  }

  .sitefooter__links {
    justify-self: start;
    text-align: left;
  }

  .sitefooter__group {
    justify-content: flex-start;
  }

  .sitefooter__actions {
    justify-content: flex-start;
  }
}

@media (max-width: 700px) {
  .container {
    width: min(var(--ats-shell-container), calc(100% - 28px));
  }

  .sitefooter__panel {
    padding: 22px;
  }

  .sitefooter__bottom {
    justify-content: flex-start;
  }

  .sitefooter__bottom .sep {
    display: none;
  }
}

/* Mobile navigation fallback: keep links visible and tappable without the hamburger. */
@media (max-width: 980px) {
  .header__bar {
    align-items: center;
    flex-wrap: wrap;
    overflow: visible !important;
  }

  .logo {
    flex: 1 1 auto;
    min-width: 0 !important;
  }

  .actions,
  .actions__group,
  .navbtn,
  .nav__overlay,
  #navOverlay {
    display: none !important;
  }

  #primaryNav,
  .header.nav-open #primaryNav {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    color: inherit !important;
    display: grid !important;
    flex: 0 0 100%;
    gap: 6px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    left: auto !important;
    margin-top: 8px;
    order: 3;
    padding: 0 !important;
    position: static !important;
    right: auto !important;
    top: auto !important;
    z-index: auto !important;
  }

  #primaryNav a {
    align-items: center;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    display: flex;
    font-size: 13px;
    font-weight: 850;
    justify-content: center;
    min-height: 38px;
    padding: 8px 10px;
    text-align: center;
  }

  html[data-theme="light"] #primaryNav a {
    background: rgba(11, 47, 102, 0.08);
    border-color: rgba(11, 47, 102, 0.12);
  }

  body.nav-locked {
    overflow: auto !important;
  }
}

/* Mobile menu: simple dropdown, no search/hamburger icons. */
.menu-toggle {
  display: none;
}

@media (max-width: 980px) {
  .header__bar {
    align-items: center;
    display: flex !important;
    flex-wrap: wrap;
    gap: 10px;
    overflow: visible !important;
  }

  .logo {
    flex: 1 1 auto;
    min-width: 0 !important;
  }

  .logo__text {
    display: inline-block;
  }

  .actions {
    display: flex !important;
    flex: 0 0 auto;
    margin-left: auto;
  }

  .actions__group,
  .iconbtn,
  .navbtn,
  .searchwrap,
  .nav__overlay,
  #navOverlay {
    display: none !important;
  }

  .menu-toggle {
    align-items: center;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 999px;
    color: inherit;
    cursor: pointer;
    display: inline-flex;
    font: inherit;
    font-size: 14px;
    font-weight: 850;
    justify-content: center;
    min-height: 42px;
    padding: 0 16px;
  }

  #primaryNav,
  .header.nav-open #primaryNav {
    background: rgba(5, 7, 13, 0.96) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    border-radius: 16px;
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.35) !important;
    color: inherit !important;
    display: none !important;
    flex: 0 0 100%;
    gap: 6px;
    grid-template-columns: 1fr;
    left: auto !important;
    margin-top: 8px;
    order: 3;
    padding: 10px !important;
    position: static !important;
    right: auto !important;
    top: auto !important;
    width: 100%;
    z-index: auto !important;
  }

  .header.nav-open #primaryNav {
    display: grid !important;
  }

  #primaryNav a {
    align-items: center;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    display: flex;
    font-size: 15px;
    font-weight: 850;
    justify-content: flex-start;
    min-height: 44px;
    padding: 10px 12px;
    text-align: left;
  }

  html[data-theme="light"] #primaryNav,
  html[data-theme="light"] .header.nav-open #primaryNav {
    background: rgba(255, 255, 255, 0.96) !important;
    border-color: rgba(11, 47, 102, 0.14) !important;
  }

  html[data-theme="light"] #primaryNav a {
    background: rgba(11, 47, 102, 0.08);
    border-color: rgba(11, 47, 102, 0.12);
  }
}

/* Native mobile menu: no JavaScript dependency. */
.mobile-menu {
  display: none;
}

@media (max-width: 980px) {
  .header__bar {
    align-items: center;
    display: flex !important;
    flex-wrap: wrap;
    gap: 10px;
    overflow: visible !important;
  }

  .logo {
    flex: 1 1 auto;
    min-width: 0 !important;
  }

  .actions {
    display: flex !important;
    flex: 0 0 auto;
    margin-left: auto;
    position: static;
  }

  .menu-toggle,
  .iconbtn,
  .navbtn,
  .searchwrap,
  .nav__overlay,
  #navOverlay,
  #primaryNav {
    display: none !important;
  }

  .mobile-menu {
    display: block;
    position: relative;
  }

  .mobile-menu > summary {
    align-items: center;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 999px;
    color: inherit;
    cursor: pointer;
    display: inline-flex;
    font-size: 14px;
    font-weight: 850;
    justify-content: center;
    list-style: none;
    min-height: 42px;
    padding: 0 16px;
    user-select: none;
  }

  .mobile-menu > summary::-webkit-details-marker {
    display: none;
  }

  .mobile-menu__nav {
    background: rgba(5, 7, 13, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.35);
    display: grid;
    gap: 6px;
    min-width: min(280px, calc(100vw - 28px));
    padding: 10px;
    position: absolute;
    right: 0;
    top: calc(100% + 10px);
    z-index: 10050;
  }

  .mobile-menu__nav a {
    align-items: center;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: inherit;
    display: flex;
    font-size: 15px;
    font-weight: 850;
    min-height: 44px;
    padding: 10px 12px;
    text-decoration: none;
  }

  html[data-theme="light"] .mobile-menu__nav {
    background: rgba(255, 255, 255, 0.98);
    border-color: rgba(11, 47, 102, 0.14);
  }

  html[data-theme="light"] .mobile-menu__nav a {
    background: rgba(11, 47, 102, 0.08);
    border-color: rgba(11, 47, 102, 0.12);
  }
}

@media (max-width: 980px) {
  details.mobile-menu:not([open]) .mobile-menu__nav {
    display: none !important;
  }
}
