
:root {
  --ats-site-font: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

html,
body,
button,
input,
select,
textarea {
  font-family: var(--ats-site-font) !important;
}
/* Shared public-site and auth polish overrides */
main {
  display: block;
}

body > main > *:last-child {
  margin-bottom: 0 !important;
}

body > main > section:last-of-type {
  padding-bottom: 18px !important;
  margin-bottom: 0 !important;
}

body > main > .airflagger-page:last-child,
body > main > .ats-ui-root:last-child {
  margin-bottom: 0 !important;
  padding-bottom: 18px !important;
}

.sitefooter {
  padding: 12px 0 18px !important;
  margin-top: 0 !important;
}

.sitefooter .container {
  margin-top: 0 !important;
}

.sitefooter__panel {
  padding: 22px 28px !important;
}

.sitefooter__grid--compact {
  grid-template-columns: minmax(260px, 1.2fr) minmax(220px, .9fr) auto !important;
  align-items: center;
  gap: 18px !important;
}

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

.sitefooter__links {
  justify-self: center;
}

.sitefooter__links h4 {
  margin-bottom: 10px;
  text-align: center;
}

.sitefooter__group {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px 22px;
}

.sitefooter__group a {
  white-space: nowrap;
}

.sitefooter__bottom {
  margin-top: 14px !important;
  padding-top: 12px !important;
}

.ats-topbar--auth {
  justify-content: space-between;
  align-items: center;
  gap: 14px;
}

.auth-home-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid var(--ats-border-strong);
  background: var(--ats-surface-2);
  color: var(--ats-accent);
  font-weight: 700;
  text-decoration: none;
  box-shadow: none;
}

.auth-home-link:hover {
  text-decoration: none;
  filter: brightness(1.03);
}

.auth-card > .note-box {
  margin-top: 18px !important;
}

.auth-card > .auth-links {
  margin-top: 18px;
}

.auth-card .flash,
.auth-card .error-box {
  margin-bottom: 16px;
}

.auth-card .auth-title + .auth-copy {
  margin-bottom: 18px;
}

.auth-card .auth-form + .note-box + .auth-links {
  margin-top: 20px;
}

@media (max-width: 980px) {
  .sitefooter__grid--compact {
    grid-template-columns: 1fr !important;
    justify-items: flex-start;
  }

  .sitefooter__links {
    justify-self: stretch;
  }

  .sitefooter__links h4 {
    text-align: left;
  }

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

  .sitefooter__actions {
    width: 100%;
    justify-content: flex-start;
  }
}

@media (max-width: 760px) {
  body > main > section:last-of-type,
  body > main > .airflagger-page:last-child,
  body > main > .ats-ui-root:last-child {
    padding-bottom: 12px !important;
  }

  .sitefooter {
    padding: 8px 0 16px !important;
  }

  .sitefooter__panel {
    padding: 20px !important;
  }

  .sitefooter__bottom {
    gap: 8px;
  }

  .sitefooter__bottom .sep {
    display: none;
  }

  .ats-topbar--auth {
    align-items: stretch;
  }

  .ats-topbar--auth > * {
    width: 100%;
  }
}

@media (min-width: 981px) {
  .partner {
    padding-bottom: 46px !important;
  }

  .tdp {
    padding-top: 34px !important;
  }
}