/* Shared header matching the JustHR home page navigation. */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: 68px;
  margin-bottom: -68px;
  color: #fff;
  font-family: Manrope, Arial, sans-serif;
}

.site-header__bar {
  position: relative;
  inset: auto;
  display: flex;
  width: 100%;
  height: 68px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 40px;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, .07);
  background: rgba(10, 10, 10, .96);
  box-shadow: none;
  box-sizing: border-box;
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.site-header__logo {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  text-decoration: none;
}

.site-header__logo img {
  display: block;
  width: auto;
  height: 42px;
  max-width: none;
  object-fit: contain;
}

.site-header__links,
.site-header__mobile-links {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-header__links a,
.site-header__mobile-links a {
  color: rgba(255, 255, 255, .68);
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: .01em;
  text-decoration: none;
  white-space: nowrap;
  transition: color .2s ease;
}

.site-header__links a:hover,
.site-header__links a[aria-current="page"],
.site-header__mobile-links a:hover,
.site-header__mobile-links a[aria-current="page"] {
  color: #fff;
}

.site-header__links .site-header__cta,
.site-header__mobile-links .site-header__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 0 18px;
  border-radius: 4px;
  background: #c2ff00;
  color: #0c0c0b;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: .04em;
}

.site-header__links .site-header__cta:hover,
.site-header__mobile-links .site-header__cta:hover {
  background: #d0ff32;
  color: #0c0c0b;
}

.site-header__toggle {
  display: none;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  padding: 7px;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.site-header__toggle span {
  display: block;
  width: 24px;
  height: 1.5px;
  border-radius: 2px;
  background: rgba(255, 255, 255, .9);
  transition: transform .2s ease, opacity .2s ease;
}

.site-header__toggle.is-open span:nth-child(1),
.site-header__toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}

.site-header__toggle.is-open span:nth-child(2),
.site-header__toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.site-header__toggle.is-open span:nth-child(3),
.site-header__toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

.site-header__mobile {
  position: absolute;
  top: 68px;
  left: 0;
  right: 0;
  display: none;
  max-height: calc(100vh - 68px);
  overflow-y: auto;
  padding: 14px 24px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  background: #0c0c0b;
  box-sizing: border-box;
}

.site-header__mobile.is-open,
.site-header__mobile.open {
  display: block;
}

.site-header__mobile-links {
  display: flex;
  align-items: stretch;
  flex-direction: column;
  gap: 0;
}

.site-header__mobile-links li {
  border-bottom: 1px solid rgba(255, 255, 255, .07);
}

.site-header__mobile-links a {
  display: block;
  padding: 12px 0;
  font-size: 14px;
  white-space: normal;
}

.site-header__mobile-links .site-header__cta {
  display: inline-flex;
  margin-top: 14px;
  padding: 9px 18px;
}

/* Related articles shared by landing pages and blog posts. */
.related-reading,
.article-related {
  color: #171815;
}

.related-reading {
  width: min(1120px, calc(100% - 48px));
  margin: 64px auto;
  padding: clamp(24px, 4vw, 48px);
  border-top: 2px solid #c2ff00;
  background: #f4f4f1;
  box-sizing: border-box;
}

.related-reading__inner {
  max-width: 1000px;
  margin: 0 auto;
}

.related-reading__eyebrow {
  margin: 0 0 8px;
  color: #68705b;
  font: 700 11px/1.4 Manrope, Arial, sans-serif;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.related-reading h2,
.article-related h2 {
  margin: 0 0 20px;
  color: #171815;
  font: 500 clamp(26px, 3vw, 36px)/1.2 Manrope, Arial, sans-serif;
}

.related-reading ul,
.article-related ul {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.related-reading li a,
.article-related li a {
  display: block;
  height: 100%;
  padding: 16px 18px;
  border: 1px solid rgba(23, 24, 21, .14);
  background: #fff;
  color: #171815;
  font: 600 14px/1.5 Manrope, Arial, sans-serif;
  text-decoration: none;
  transition: border-color .2s ease, transform .2s ease;
}

.related-reading li a:hover,
.article-related li a:hover {
  border-color: #9bbf00;
  transform: translateY(-2px);
}

.related-reading__all {
  display: inline-block;
  margin-top: 20px;
  color: #24271b;
  font: 700 13px/1.4 Manrope, Arial, sans-serif;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.article-related {
  margin: 44px 0 0;
  padding-top: 12px;
  border-top: 1px solid rgba(23, 24, 21, .16);
}

.article-related h2 {
  margin-top: 24px;
  font-size: clamp(23px, 3vw, 30px);
}

.article-related p {
  margin-bottom: 16px;
}

.article-related > p a {
  color: #202414;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.article-related li a {
  font-size: 13px;
}

@media (max-width: 620px) {
  .related-reading {
    width: calc(100% - 32px);
    margin: 40px auto;
    padding: 24px 18px;
  }
}

.site-header__toggle:focus-visible,
.site-header a:focus-visible {
  outline: 2px solid #c2ff00;
  outline-offset: 4px;
}

@media (max-width: 1180px) {
  .site-header__bar { padding-right: 24px; padding-left: 24px; }
  .site-header__links { gap: 13px; }
  .site-header__links a { font-size: 11.5px; }
}

@media (max-width: 980px) {
  .site-header__bar { padding-right: 20px; padding-left: 20px; }
  .site-header__links { display: none; }
  .site-header__toggle { display: inline-flex; }
}

@media (prefers-reduced-motion: reduce) {
  .site-header *, .site-header *::before, .site-header *::after { transition-duration: .01ms; }
}
