/* NameCard single shared header; loaded after page styles. */
body.nc-home > .nc-site-header,
body.nc-public > .nc-site-header,
body.nc-admin > .nc-site-header {
  display: block !important;
  position: static !important;
  width: min(calc(100% - 32px), 1200px) !important;
  max-width: 1200px !important;
  min-height: 94px !important;
  height: auto !important;
  padding: 10px 0 !important;
  margin: 0 auto 12px !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  box-sizing: border-box !important;
  font-family: var(--nc-ds-font, system-ui, sans-serif);
  font-size: 13px;
  line-height: 1.5;
}
.nc-site-header > div:first-child,
.nc-site-header .nc-header-account {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  flex-wrap: wrap;
  gap: 8px;
  min-height: 34px !important;
  margin: 0 0 7px !important;
}
.nc-site-header > div:last-child,
.nc-site-header .nc-header-links {
  display: flex !important;
  align-items: center !important;
  flex-wrap: wrap !important;
  gap: 3px;
  min-height: 32px !important;
  margin: 0 !important;
}
.nc-site-header button {
  width: auto !important;
  min-width: 0 !important;
  max-width: max-content !important;
  margin: 0 !important;
  padding: 7px 10px !important;
  border: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
  font-size: 12px !important;
}
.nc-site-header a, .nc-site-header span { line-height: 1.5; }
body.nc-admin .nc-account-bar { display: none !important; }
@media (max-width: 599px) {
  body.nc-home > .nc-site-header,
  body.nc-public > .nc-site-header,
  body.nc-admin > .nc-site-header {
    width: calc(100% - 24px) !important;
    min-height: 94px !important;
  }
}

/* NameCard shared header geometry v2 */

/* Same top origin on all pages. */
body.nc-home,
body.nc-public,
body.nc-admin {
  padding-top: 24px !important;
}

/* A single header size and position. */
body.nc-home .nc-site-header,
body.nc-public .nc-site-header,
body.nc-admin .nc-site-header {
  width: min(calc(100% - 32px), 1200px) !important;
  max-width: 1200px !important;
  margin: 0 auto 16px !important;
  min-height: 80px;
  box-sizing: border-box;
}

/* The administrator gate is an error notice, not a loading screen. */
body.nc-admin #authGate[hidden] {
  display: none !important;
}

body.nc-admin #authGate:not([hidden]) {
  width: min(calc(100% - 32px), 1200px);
  max-width: 1200px;
  margin: 0 auto 16px !important;
  padding: 12px 16px;
  box-sizing: border-box;
  text-align: left;
  border-radius: 10px;
  box-shadow: none;
}

@media (max-width: 599px) {
  body.nc-home,
  body.nc-public,
  body.nc-admin {
    padding-top: 12px !important;
  }

  body.nc-home .nc-site-header,
  body.nc-public .nc-site-header,
  body.nc-admin .nc-site-header {
    width: calc(100% - 24px) !important;
  }

  body.nc-admin #authGate:not([hidden]) {
    width: calc(100% - 24px);
  }
}
