/* Hiring Rate: tokens for the shared niche skin (/niche/base.css), plus its nameplate. */
.np-root {
  --np-ink: #0f1420;
  --np-ink-soft: #232a38;
  --np-muted: #5d6472;
  --np-paper: #fbfaf7;
  --np-shade: #f1efe9;
  --np-rule: #dddad2;
  --np-accent: #14213d;
  --np-accent-hover: #0b1426;
  --np-headline-weight: 700;

  --np-wordmark-font: var(--np-serif);
  --np-wordmark-weight: 600;
  --np-wordmark-case: uppercase;
  --np-wordmark-tracking: 0.14em;
  --np-masthead-align: center;
  --np-masthead-title-size: clamp(2rem, 4.8vw, 3.3rem);

  --np-footer-bg: #0f1420;
  --np-footer-color: #ffffff;
}

/* Nameplate: the navy H block beside spaced serif capitals, between rules. */
.np-root .np-brand {
  gap: calc(var(--np-masthead-title-size) * 0.4);
}

.np-root .np-logo {
  width: calc(var(--np-masthead-title-size) * 1.05);
}

.np-root .np-masthead {
  border-top: 6px solid var(--np-ink);
}

.np-root .np-masthead-brand {
  padding-block: 1.8rem 1.1rem;
}

/* Balances the trailing letter spacing so the name sits centered. */
.np-root .np-wordmark {
  padding-left: 0.14em;
}

.np-root .np-masthead-brand::after {
  content: "Independent reporting on the cost of hiring";
  display: block;
  margin-top: 0.75rem;
  font-family: var(--np-sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--np-muted);
}

.np-root .np-nav {
  border-top: 1px solid var(--np-ink);
  border-bottom: 3px double var(--np-ink);
}

.np-root .np-nav-link {
  font-size: 0.76rem;
  letter-spacing: 0.1em;
}

.np-root .np-nav-link.is-active {
  border-bottom-color: var(--np-ink);
}

/* Sections never show a scrollbar. Wide screens fit them on one line; mid
   widths set them in two even rows of four; phones keep one swipeable row
   that fades out at the edge. */
@media (min-width: 720px) and (max-width: 1279px) {
  .np-root .np-nav-inner {
    justify-content: center;
    padding-block: 0.35rem;
  }

  .np-root .np-nav-row {
    display: grid;
    grid-template-columns: repeat(4, auto);
    justify-content: center;
    column-gap: 2.4rem;
    row-gap: 0;
    overflow: visible;
  }

  .np-root .np-nav-link {
    padding: 0.45rem 0 0.4rem;
    justify-self: center;
  }

  .np-root .np-nav-date {
    display: none;
  }
}

@media (max-width: 719px) {
  .np-root .np-nav-row {
    scrollbar-width: none;
  }

  .np-root .np-nav-row::-webkit-scrollbar {
    display: none;
  }
}

@media (max-width: 479px) {
  .np-root {
    --np-masthead-title-size: clamp(1.5rem, 7.6vw, 2rem);
    --np-wordmark-tracking: 0.1em;
  }

  .np-root .np-wordmark {
    padding-left: 0.1em;
  }

  .np-root .np-masthead-brand::after {
    font-size: 0.62rem;
    letter-spacing: 0.16em;
  }
}
