
/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.njdoh-topic-hero {
  position: relative;
  margin-top: -2.5rem;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding: 4rem 0 3.5rem;
  background-color: var(--njdoh-navy);
  background-image: linear-gradient(135deg, var(--njdoh-navy) 0%, var(--njdoh-navy-mid) 60%, var(--njdoh-blue) 100%);
}

.njdoh-topic-hero .container,
.njdoh-topic-hero .container-fluid { position: relative; z-index: 1; }

/* Hero photo: the <img> lives in the page HTML (njdoh-topic-hero__photo).
   Right half on desktop, faded into the navy. Hidden below 992px. */
.njdoh-topic-hero__photo { display: none; }

@media (min-width: 992px) {
  .njdoh-topic-hero--photo { overflow: hidden; }

  .njdoh-topic-hero--photo .njdoh-hero-meta,
  .njdoh-topic-hero--photo .njdoh-topic-hero__heading,
  .njdoh-topic-hero--photo .njdoh-topic-hero__subtext { max-width: 56%; }

  .njdoh-topic-hero__photo {
    display: block;
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 50%;
    z-index: 0;
  }

  .njdoh-topic-hero__photo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.95;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, rgba(0, 0, 0, 0.25) 20%, #000 45%);
    mask-image: linear-gradient(to right, transparent 0%, rgba(0, 0, 0, 0.25) 20%, #000 45%);
  }
}

.njdoh-topic-hero__heading {
  margin-bottom: 1rem;
  font-size: clamp(2rem, 4vw + 0.5rem, 2.75rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--njdoh-white);
  text-wrap: balance;
}

.njdoh-topic-hero__subtext {
  max-width: 700px;
  margin: 0;
  font-size: clamp(1rem, 1.2vw + 0.25rem, 1.2rem);
  line-height: 1.6;
  color: var(--njdoh-text-on-dark);
}

.njdoh-eyebrow--link,
.njdoh-eyebrow--link:visited {
  margin-bottom: 1rem;
  font-size: 0.8125rem;
  color: var(--njdoh-white);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.njdoh-eyebrow--link:hover,
.njdoh-eyebrow--link:focus-visible { color: var(--njdoh-blue-light); }

.njdoh-topic-hero--directory {
  margin-top: -3rem;
}

.njdoh-topic-hero__inner {
  position: relative;
  z-index: 1;
}

@media (max-width: 767.98px) {
  .njdoh-topic-hero__inner {
    padding: 0 1rem;
  }
}

.njdoh-topic-hero__actions {
  margin: 1.5rem 0 0;
}
 
.njdoh-subheading--first {
  margin-top: 0;
}

.njdoh-subheading--minor {
  margin-top: 1.25rem;
  font-size: 1.1rem;
}

.njdoh-topic-content > .clearA:first-child + .njdoh-topic-section {
  border-top: 0;
  padding-top: 0;
}

/* --------------------------------------------------------------------------
   Jump bar, at a glance, layout and content
   -------------------------------------------------------------------------- */
.njdoh-jump {
  position: relative;
  background: var(--njdoh-white);
  box-shadow: 0 0 0 100vmax var(--njdoh-white), 0 1px 0 100vmax var(--njdoh-divider);
  clip-path: inset(0 -100vmax -1px);
}

.njdoh-jump__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
  max-width: var(--njdoh-max-width);
  margin: 0 auto;
  padding: 1rem 2rem;
}

.njdoh-jump__label {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--njdoh-text-slate);
}

.njdoh-jump__links { display: flex; flex-wrap: wrap; gap: 0.5rem; }

.njdoh-jump__link {
  display: inline-block;
  padding: 0.45rem 0.9rem;
  border: 1px solid var(--njdoh-pill-border);
  border-radius: 999px;
  background: var(--njdoh-white);
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1.3;
  color: var(--njdoh-navy);
  text-decoration: none;
}

.njdoh-jump__link:hover {
  background: var(--njdoh-navy);
  border-color: var(--njdoh-navy);
  color: var(--njdoh-white);
  text-decoration: none;
}

.njdoh-jump__link--primary { background: var(--njdoh-navy); border-color: var(--njdoh-navy); color: var(--njdoh-white); }
.njdoh-jump__link--primary:hover { background: var(--njdoh-blue); border-color: var(--njdoh-blue); }

.njdoh-jump__progress { display: none; }

.njdoh-quick {
  background: var(--njdoh-surface-muted);
  box-shadow: 0 0 0 100vmax var(--njdoh-surface-muted);
  clip-path: inset(0 -100vmax);
}

.njdoh-quick__inner { max-width: var(--njdoh-max-width); margin: 0 auto; padding: 2rem; }

.njdoh-quick__panel {
  padding: 1.75rem 2rem 2rem;
  background: var(--njdoh-white);
  border: 1px solid var(--njdoh-divider);
  border-radius: var(--njdoh-radius);
}

/* Same look as njdoh-urgent (core); only the spacing differs */
.njdoh-quick__alert {
  max-width: 62rem;
  margin: 0 0 1.75rem;
  padding: 0.15rem 0 0.15rem 1rem;
  border-left: 4px solid var(--njdoh-danger);
  font-size: 1.125rem;
  line-height: 1.55;
  color: var(--njdoh-ink);
}

.njdoh-quick__alert strong { color: var(--njdoh-danger); }

.njdoh-quick__cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding-top: 1.75rem;
  border-top: 1px solid var(--njdoh-divider);
}

.njdoh-quick__col { padding: 0 2rem; }
.njdoh-quick__col:first-child { padding-left: 0; }
.njdoh-quick__col:last-child { padding-right: 0; }
.njdoh-quick__col + .njdoh-quick__col { border-left: 1px solid var(--njdoh-divider); }

.njdoh-quick__title { margin: 0 0 0.5rem; font-size: 1.125rem; font-weight: 700; line-height: 1.3; color: var(--njdoh-navy); }

.njdoh-quick__text,
.njdoh-quick__list { margin: 0 0 0.75rem; font-size: 1rem; line-height: 1.55; color: var(--njdoh-text); }

.njdoh-quick__list { padding-left: 1.15rem; }
.njdoh-quick__list li + li { margin-top: 0.2rem; }

.njdoh-quick__link { font-size: 1rem; font-weight: 600; color: var(--njdoh-link); text-decoration: underline; text-underline-offset: 3px; }

/* --------------------------------------------------------------------------
   Layout: sidebar menu on the left (desktop), content on the right
   -------------------------------------------------------------------------- */
.njdoh-content-layout { padding: 2.5rem 0 1rem; }

.njdoh-content-layout__inner { max-width: var(--njdoh-max-width); margin: 0 auto; padding: 0 2rem; }

.njdoh-topic-grid {
  display: grid;
  grid-template-columns: 3fr 9fr;
  gap: 3rem;
  align-items: start;
}

.njdoh-topic-sidebar {
  position: sticky;
  top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.njdoh-toc {
  padding: 1.25rem 1.25rem 1.25rem 1.5rem;
  background: var(--njdoh-surface-gray);
  border-left: 4px solid var(--njdoh-blue-light);
  border-radius: 0 var(--njdoh-radius-sm) var(--njdoh-radius-sm) 0;
}

.njdoh-toc__heading--desktop {
  display: block;
  margin: 0 0 0.75rem;
  font-size: 1.25rem !important;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--njdoh-navy);
}

.njdoh-toc__list { display: flex; flex-direction: column; }

.njdoh-toc__list a {
  display: block;
  padding: 0.5rem 0;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--njdoh-navy);
  text-decoration: none;
  transition: color 0.15s;
}

.njdoh-toc__list a:hover { color: var(--njdoh-blue); text-decoration: underline; }

.njdoh-topic-content { min-width: 0; overflow-wrap: break-word; }

.njdoh-topic-section { padding: 2rem 0; border-top: 1px solid var(--njdoh-surface-blue); }
.njdoh-topic-section:first-child { padding-top: 0; border-top: none; }

.njdoh-section-heading {
  margin-bottom: 1.25rem;
  padding-bottom: 0.5rem;
  font-size: clamp(1.5rem, 2vw + 0.25rem, 2rem);
  font-weight: 700;
  line-height: 1.3;
  color: var(--njdoh-navy);
}

.njdoh-subheading {
  margin: 1.5rem 0 0.75rem;
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--njdoh-blue);
}

.njdoh-body-text { margin-bottom: 1rem; font-size: 1rem; line-height: 1.7; color: var(--njdoh-text); }

.njdoh-content-list { margin-bottom: 1rem; padding-left: 1.5rem; }
.njdoh-content-list li { margin-bottom: 0.5rem; font-size: 1rem; line-height: 1.7; color: var(--njdoh-text); }

.njdoh-body-text a,
.njdoh-content-list a { color: var(--njdoh-link); text-decoration: underline; text-underline-offset: 2px; }

.njdoh-body-text a:hover,
.njdoh-content-list a:hover { color: var(--njdoh-blue); }

.njdoh-next-link,
.njdoh-next-link:visited {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--njdoh-link);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.njdoh-next-link::after { content: " \2192"; }
.njdoh-next-link:hover { color: var(--njdoh-blue); }

.njdoh-topic-footnote { max-width: var(--njdoh-max-width); margin: 4.5rem auto 0; padding: 0 2rem; }
.njdoh-topic-footnote p { margin: 0; font-size: 0.875rem; color: var(--njdoh-text-muted); }
.njdoh-topic-footnote a { color: var(--njdoh-link); }

@media (max-width: 991.98px) {
  .njdoh-topic-grid { grid-template-columns: 1fr; }

  .njdoh-topic-sidebar,
  .njdoh-jump ~ .njdoh-content-layout .njdoh-topic-sidebar,
  .njdoh-has-jump .njdoh-topic-sidebar { display: none; }

  .njdoh-jump { position: sticky; top: var(--njdoh-sticky-offset, 0px); z-index: 20; }
  .njdoh-jump.is-fixed { position: fixed; }

  .njdoh-jump.is-stuck {
    box-shadow: 0 0 0 100vmax var(--njdoh-white), 0 1px 0 100vmax var(--njdoh-divider), 0 2px 8px 100vmax rgba(22, 55, 83, 0.1);
    clip-path: inset(0 -100vmax -12px);
  }

  .njdoh-jump__inner { flex-wrap: nowrap; padding: 0.6rem 0 0.6rem 1rem; }
  .njdoh-jump__label { display: none; }

  .njdoh-jump__links {
    position: relative;
    flex-wrap: nowrap;
    min-width: 0;
    overflow-x: auto;
    padding-right: 2.5rem;
    scrollbar-width: none;
    -webkit-mask-image: linear-gradient(to right, #000 82%, transparent);
    mask-image: linear-gradient(to right, #000 82%, transparent);
  }

  .njdoh-jump__links::-webkit-scrollbar { display: none; }
  .njdoh-jump.is-row-end .njdoh-jump__links { -webkit-mask-image: none; mask-image: none; }
  .njdoh-jump__link { flex: 0 0 auto; white-space: nowrap; }

  .njdoh-jump.is-stuck .njdoh-jump__link--primary:not(.is-active) {
    background: var(--njdoh-white);
    border-color: var(--njdoh-pill-border);
    color: var(--njdoh-navy);
  }

  .njdoh-jump__link.is-active { background: var(--njdoh-navy); border-color: var(--njdoh-navy); color: var(--njdoh-white); }

  .njdoh-jump__progress {
    display: block;
    position: absolute;
    left: 0;
    bottom: -1px;
    width: 100%;
    height: 3px;
    opacity: 0;
    transition: opacity 0.2s ease;
  }

  .njdoh-jump.is-stuck .njdoh-jump__progress { opacity: 1; }

  .njdoh-jump__progress-fill {
    display: block;
    height: 100%;
    background: var(--njdoh-blue);
    transform: scaleX(0);
    transform-origin: 0 50%;
  }

  .njdoh-topic-content a[name] { scroll-margin-top: calc(var(--njdoh-sticky-offset, 0px) + 4.5rem); }

  .njdoh-quick__cols { grid-template-columns: 1fr; }

  .njdoh-quick__col,
  .njdoh-quick__col:first-child,
  .njdoh-quick__col:last-child { padding: 0; }

  .njdoh-quick__col + .njdoh-quick__col {
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--njdoh-divider);
    border-left: 0;
  }
}

@media (max-width: 767.98px) {
  .njdoh-topic-hero { padding: 2rem 0; }

  .njdoh-content-layout__inner { padding: 0 1rem; }

  .njdoh-jump__link { padding: 0.4rem 0.75rem; font-size: 0.875rem; }

  .njdoh-quick__inner { padding: 1.25rem 1rem; }
  .njdoh-quick__panel { padding: 1.25rem; }
  .njdoh-quick__alert { margin-bottom: 1.25rem; font-size: 1.0625rem; }
  .njdoh-quick__cols { padding-top: 1.25rem; }

  .njdoh-topic-footnote { padding: 0 1rem; }

}

/* --------------------------------------------------------------------------
   Single column: pages with no sidebar (news releases, short pages). Put it
   in the same container, row and col-xl-10 as the hero so the text lines up.
   -------------------------------------------------------------------------- */
.njdoh-topic-content--single { max-width: 50rem; }

/* Links in the hero subtext: white and underlined (the default link blue
   fails contrast on navy) */
.njdoh-topic-hero__subtext a,
.njdoh-topic-hero__subtext a:visited { color: var(--njdoh-white); text-decoration: underline; text-underline-offset: 2px; }
.njdoh-topic-hero__subtext a:hover { color: var(--njdoh-surface-pale); }
