

:root {
  /* Brand */
  --njdoh-navy:           #163753;
  --njdoh-navy-mid:       #1f4a70;  /* middle stop of the hero gradient */
  --njdoh-blue:           #266091;
  --njdoh-teal:           #45a0c2;  /* decoration only: borders, rules, dots. Not text on white. */
  --njdoh-blue-light:     #88b8e0;
  --njdoh-sky:            #5dade2;  /* text and links on navy only */
  --njdoh-link:           #185fa5;

  /* Status */
  --njdoh-danger:         #720002;
  --njdoh-success:        #56930c;  /* borders and checks only, not text */
  --njdoh-warning:        #f59e0b;  /* rules only, not text */
  --njdoh-myth:           #b3261e;
  --njdoh-fact:           #146c2e;
  --njdoh-alert-surface:  #fff8e1;
  --njdoh-alert-accent:   #92400e;
  --njdoh-alert-text:     #78350f;

  /* Rating scale levels (AQI, UV index). Always paired with a text label. */
  --njdoh-level-1:         #56930c;
  --njdoh-level-1-surface: #f0faf0;
  --njdoh-level-2:         #f59e0b;
  --njdoh-level-2-surface: #fffbeb;
  --njdoh-level-3:         #e07b22;
  --njdoh-level-3-surface: #fff5eb;
  --njdoh-level-4:         #c94f1a;
  --njdoh-level-4-surface: #fff0eb;
  --njdoh-level-5:         #720002;
  --njdoh-level-5-surface: #fde8e8;

  /* Text */
  --njdoh-white:          #ffffff;
  --njdoh-ink:            #1a1c1e;
  --njdoh-text:           #333333;
  --njdoh-text-muted:     #555555;
  --njdoh-text-slate:     #495057;
  --njdoh-text-on-dark:   #f5f5f5;
  --njdoh-hotline-text:   #b5cef0;

  /* Surfaces */
  --njdoh-surface-muted:  #f4f6f9;
  --njdoh-surface-tint:   #f3f8fd;
  --njdoh-surface-cyan:   #dff0f7;
  --njdoh-surface-pale:   #ddeaf7;
  --njdoh-surface-blue:   #e8eef5;
  --njdoh-surface-danger: #fde8e8;
  --njdoh-surface-gray:   #f9f9f9;
  --njdoh-surface-alt:    #f8f9fa;
  --njdoh-surface-panel:  #f5f7f9;

  /* Lines */
  --njdoh-border:         #dde8f5;  /* card and container borders */
  --njdoh-border-strong:  #c5d8ea;  /* list cards that need more edge */
  --njdoh-divider:        #d5dde5;  /* rules between items, table borders */
  --njdoh-pill-border:    #8a9bb0;  /* outlined pills (jump links) */

  /* Landing palette */
  --njdoh-blue-tint:       #eaf5fb;  /* icon chips, split media panel */
  --njdoh-green-dark:      #3d6b08;  /* green text and buttons (white text passes AA) */
  --njdoh-green-darker:    #2f5306;
  --njdoh-green-tint:      #f1f8ea;
  --njdoh-surface-soft:    #f8fbfd;  /* tinted landing bands */
  --njdoh-surface-hover:   #f6f9fb;  /* row and tile hover */
  --njdoh-surface-warning: #fef3dd;  /* highlighted link list item */
  --njdoh-success-surface: #d4edda;
  --njdoh-success-text:    #155724;
  --njdoh-rule:            #edf2f7;  /* hairline inside white panels */
  --njdoh-border-neutral:  #ced4da;  /* neutral button border */
  --njdoh-border-field:    #6c7a89;  /* form field edges: 4.4:1 on white (needs 3:1) */

  /* Layout */
  --njdoh-max-width:      1555px;
  --njdoh-wrap:           1140px;   /* content width of landing bands */
  --njdoh-wrap-wide:      1500px;   /* hero and CTA row on directory pages */
  --njdoh-gutter:         15px;
  --njdoh-gutter-sm:      2rem;     /* phones */
  --njdoh-hero-pull:      2.5rem;   /* how far a hero tucks under the site header */
  --njdoh-hero-overlap:   3rem;     /* how far the CTA row overlaps the hero */
  --njdoh-radius-sm:      6px;
  --njdoh-radius:         8px;
  --njdoh-radius-lg:      10px;
  --njdoh-radius-xl:      10px;     /* deprecated: same as --njdoh-radius-lg. Old page CSS may still use it */
  --njdoh-sticky-offset:  0px;      /* site header height, if it stays pinned on phones */

  /* Elevation: the one shadow family, navy tinted */
  --njdoh-shadow-hover:   0 8px 24px rgba(22, 55, 83, 0.12);  /* linked cards on hover */
  --njdoh-shadow-raised:  0 4px 14px rgba(22, 55, 83, 0.18);  /* at rest, only where a card overlaps a hero or band */
}

/* --------------------------------------------------------------------------
   Template resets
   -------------------------------------------------------------------------- */

/* The template's page title is replaced by each page's own H1 */
.pageTitle { display: none; }

.clearA { margin: 0; padding: 0; height: 0; }

/* Anchor wrapper (<p class="njdoh-anchor"><a name="x"></a></p>) takes no space */
.njdoh-anchor { margin: 0; height: 0; line-height: 0; }

/* Safety net for stray sideways overflow. "clip" (unlike "hidden") does not
   turn body into a scroll container, so sticky and fixed bars keep working. */
body {
  overflow-x: hidden;
  overflow-x: clip;
}

.njdoh-sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* --------------------------------------------------------------------------
   Focus
   -------------------------------------------------------------------------- */

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--njdoh-blue);
  outline-offset: 2px;
  border-radius: 2px;
}

/* Dark surfaces: white ring */
.njdoh-topic-hero a:focus-visible,
.njdoh-landing-hero a:focus-visible,
.njdoh-hotline a:focus-visible,
.njdoh-cta-band a:focus-visible,
.njdoh-cta-card a:focus-visible,
.njdoh-action-card a:focus-visible,
.njdoh-scale-aside a:focus-visible,
.njdoh-provider-card__header a:focus-visible {
  outline-color: var(--njdoh-white);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* --------------------------------------------------------------------------
   Labels
   -------------------------------------------------------------------------- */

.njdoh-eyebrow {
  display: block;
  margin-bottom: 1rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--njdoh-surface-pale);
}

.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); }

/* Eyebrow row in a hero: label plus language toggle */
.njdoh-hero-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem 1.25rem;
  margin: 0 0 0.85rem;
}

.njdoh-hero-meta .njdoh-eyebrow { margin: 0; }

/* Same label on white */
.njdoh-eyebrow--on-light { margin-bottom: 0.5rem; color: var(--njdoh-blue); }
.njdoh-eyebrow--danger { margin-bottom: 0.5rem; color: var(--njdoh-danger); }

/* English / Spanish toggle (on navy) */
.njdoh-lang {
  display: inline-flex;
  overflow: hidden;
  border: 1.5px solid rgba(255, 255, 255, 0.6);
  border-radius: 999px;
  background: rgba(22, 55, 83, 0.7);
  font-size: 0.875rem;
  font-weight: 700;
}

.njdoh-lang__item {
  display: inline-block;
  padding: 0.4rem 0.95rem;
  line-height: 1.2;
  color: var(--njdoh-white);
  text-decoration: none;
}

a.njdoh-lang__item:hover { background: rgba(255, 255, 255, 0.2); color: var(--njdoh-white); }

.njdoh-lang__item:focus-visible { outline: 3px solid var(--njdoh-white); outline-offset: -3px; }

.njdoh-lang__item--current { background: var(--njdoh-white); color: var(--njdoh-navy); }

/* --------------------------------------------------------------------------
   Buttons (anchors only; TeamSite strips <button> classes)
   Uppercase comes from CSS. Source text stays sentence case.
   -------------------------------------------------------------------------- */

.njdoh-btn-primary,
.njdoh-btn-navy {
  display: inline-block;
  padding: 0.7rem 1.4rem;
  border: 2px solid var(--njdoh-teal);
  border-radius: var(--njdoh-radius-sm);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  text-transform: uppercase;
  transition: background 0.2s, color 0.2s;
}

/* On navy or blue */
.njdoh-btn-primary { background: var(--njdoh-white); color: var(--njdoh-navy); }
.njdoh-btn-primary:hover { background: var(--njdoh-surface-pale); color: var(--njdoh-navy); text-decoration: none; }

/* On white */
.njdoh-btn-navy { background: var(--njdoh-navy); color: var(--njdoh-white); }
.njdoh-btn-navy:hover { background: var(--njdoh-white); color: var(--njdoh-navy); text-decoration: none; }

/* Secondary action on white */
.njdoh-btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.65rem 1.25rem;
  border: 2px solid var(--njdoh-navy);
  border-radius: var(--njdoh-radius-sm);
  background: var(--njdoh-white);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--njdoh-navy);
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}

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

/* Yellow: the one urgent action in a hero */
.njdoh-btn-primary--warning { background: var(--njdoh-warning); border-color: var(--njdoh-ink); color: var(--njdoh-ink); }
.njdoh-btn-primary--warning:hover { background: var(--njdoh-white); border-color: var(--njdoh-warning); color: var(--njdoh-ink); }

/* Quieter outlined buttons, same shape as primary */
.njdoh-btn-neutral,
.njdoh-btn-blue {
  display: inline-block;
  padding: 0.7rem 1.4rem;
  border: 2px solid;
  border-radius: var(--njdoh-radius-sm);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

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

.njdoh-btn-blue { background: transparent; border-color: var(--njdoh-link); color: var(--njdoh-link); }
.njdoh-btn-blue:hover { background: var(--njdoh-blue-tint); color: var(--njdoh-link); text-decoration: none; }

/* Green: the one apply or enroll action on a service page (WIC, NJ FamilyCare).
   At most one per page. Everything else uses navy, primary or outline. */
.njdoh-btn-green,
.njdoh-band .njdoh-btn-green {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 52px;
  padding: 0.8rem 1.6rem;
  border-radius: var(--njdoh-radius-lg);
  background: var(--njdoh-green-dark);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--njdoh-white);
  text-decoration: none;
  transition: background 0.18s ease;
}

.njdoh-btn-green:hover,
.njdoh-band .njdoh-btn-green:hover { background: var(--njdoh-green-darker); color: var(--njdoh-white); text-decoration: none; }

.njdoh-btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 0 0 1rem;
}

.njdoh-btn-row > a { padding: 0.6rem 1.1rem; font-size: 0.875rem; }

/* --------------------------------------------------------------------------
   Notice bar: full-width cyan strip under a hero
   -------------------------------------------------------------------------- */

.njdoh-notice-bar {
  padding: 0.65rem 0;
  background: var(--njdoh-surface-cyan);
  box-shadow: 0 0 0 100vmax var(--njdoh-surface-cyan), 0 1px 0 100vmax var(--njdoh-blue-light);
  clip-path: inset(0 -100vmax -1px);
}

.njdoh-notice-bar__inner {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--njdoh-navy);
}

.njdoh-notice-bar__inner p { margin: 0; }

.njdoh-notice-bar__inner a { font-weight: 600; color: var(--njdoh-navy); text-decoration: underline; }

.njdoh-notice-bar__inner img {
  flex-shrink: 0;
  filter: brightness(0) saturate(100%) invert(15%) sepia(50%) saturate(800%) hue-rotate(185deg);
}

/* --------------------------------------------------------------------------
   Callout: "good to know" box
   -------------------------------------------------------------------------- */

.njdoh-callout {
  margin: 1.5rem 0;
  padding: 1.25rem 1.5rem;
  background: var(--njdoh-surface-tint);
  border-left: 4px solid var(--njdoh-teal);
  border-radius: 0 var(--njdoh-radius-sm) var(--njdoh-radius-sm) 0;
}

.njdoh-callout__title {
  margin: 0 0 0.75rem;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.4;
  color: var(--njdoh-navy);
}

.njdoh-callout__text { margin: 0; font-size: 1rem; line-height: 1.7; color: var(--njdoh-navy); }
.njdoh-callout__text + .njdoh-callout__text { margin-top: 0.75rem; }
.njdoh-callout__text a { color: var(--njdoh-link); text-decoration: none; }
.njdoh-callout__text a:hover { text-decoration: underline; }

/* The one thing to remember on a page */
.njdoh-callout--key {
  padding: 1.5rem 1.75rem 1rem;
  border: 2px solid var(--njdoh-navy);
  border-radius: var(--njdoh-radius-sm);
}

.njdoh-callout--key .njdoh-callout__title { font-size: 1.25rem; }
.njdoh-callout--key .njdoh-content-list { margin-bottom: 0; }
.njdoh-callout--key .njdoh-content-list a { color: var(--njdoh-link); text-decoration: underline; text-underline-offset: 2px; }

/* --------------------------------------------------------------------------
   Alert: amber advisory box
   -------------------------------------------------------------------------- */

.njdoh-alert {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin: 1.5rem 0;
  padding: 1.25rem 1.5rem;
  background: var(--njdoh-alert-surface);
  border-left: 5px solid var(--njdoh-warning);
  border-radius: 0 var(--njdoh-radius-sm) var(--njdoh-radius-sm) 0;
}

.njdoh-alert__icon {
  display: flex;
  flex: 0 0 36px;
  align-items: center;
  justify-content: center;
  height: 36px;
  border-radius: 50%;
  background: var(--njdoh-alert-accent);
}

.njdoh-alert__icon img { filter: brightness(0) invert(1); }

.njdoh-alert__content { flex: 1; }

.njdoh-alert__heading { margin: 0 0 0.5rem; font-size: 1rem; font-weight: 700; color: var(--njdoh-alert-accent); }

.njdoh-alert__body { margin: 0; font-size: 1rem; line-height: 1.6; color: var(--njdoh-alert-text); }

/* --------------------------------------------------------------------------
   Blue CTA band: the closing next step. Add --last when it is the final band,
   so it sits flush on the footer. (Was njdoh-resources-callout on topic pages.)
   -------------------------------------------------------------------------- */

.njdoh-cta-band {
  margin-top: 2rem;
  padding: 3rem 0;
  background: var(--njdoh-blue);
  box-shadow: 0 0 0 100vmax var(--njdoh-blue);
  clip-path: inset(0 -100vmax);
}

/* Sits flush on the footer when it is the last band */
.njdoh-cta-band--last { margin-bottom: -3rem; }
.njdoh-cta-band--last + .njdoh-hotline { margin-top: 3rem; }

.njdoh-cta-band__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: var(--njdoh-max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

.njdoh-cta-band__content { max-width: 700px; text-align: center; }

.njdoh-cta-band__heading {
  margin-bottom: 0.75rem;
  font-size: clamp(1.5rem, 2vw + 0.5rem, 2rem);
  font-weight: 700;
  line-height: 1.3;
  color: var(--njdoh-white);
}

.njdoh-cta-band__body { margin-bottom: 1.5rem; font-size: 1rem; line-height: 1.6; color: var(--njdoh-white); }

.njdoh-cta-band__more { margin: 1.25rem 0 0; font-size: 0.9375rem; color: var(--njdoh-white); }
.njdoh-cta-band__more a { font-weight: 600; color: var(--njdoh-white); text-decoration: underline; }

/* --------------------------------------------------------------------------
   Navy hotline band: crisis and help numbers. (Was also njdoh-contact-band.)
   -------------------------------------------------------------------------- */

.njdoh-hotline {
  margin-bottom: -3rem;
  background: var(--njdoh-navy);
  box-shadow: 0 0 0 100vmax var(--njdoh-navy);
  clip-path: inset(0 -100vmax);
}

.njdoh-hotline__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: var(--njdoh-max-width);
  margin: 0 auto;
  padding: 2rem;
}

.njdoh-hotline__inner p {
  margin: 0;
  font-size: clamp(0.9rem, 1vw + 0.25rem, 1.1rem);
  line-height: 1.6;
  text-align: center;
  color: var(--njdoh-hotline-text);
}

.njdoh-hotline__inner a { font-weight: 600; color: var(--njdoh-sky); text-decoration: none; }

.njdoh-hotline__inner a:hover { text-decoration: underline; }

.njdoh-hotline__inner strong { color: var(--njdoh-white); }

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

  .njdoh-hotline__inner { padding: 1.5rem 1rem; }
}

/* --------------------------------------------------------------------------
   Urgent line: when to get care now. Lead with <strong>.
   (njdoh-quick__alert in the at-a-glance panel uses the same look.)
   -------------------------------------------------------------------------- */

.njdoh-urgent {
  margin: 1.5rem 0 0;
  padding: 0.15rem 0 0.15rem 1rem;
  border-left: 4px solid var(--njdoh-danger);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--njdoh-ink);
}

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

/* --------------------------------------------------------------------------
   Tag: short label. --audience marks a section written for one audience.
   (Was njdoh-tag in landing and njdoh-audience-tag in topic.)
   -------------------------------------------------------------------------- */

.njdoh-tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  background: var(--njdoh-surface-pale);
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  vertical-align: middle;
  color: var(--njdoh-navy);
}

/* Inside a title, after the text */
:is(h2, h3, h4, a, span) > .njdoh-tag { margin-left: 0.5rem; }

.njdoh-tag--warning { background: var(--njdoh-warning); color: var(--njdoh-ink); }
.njdoh-tag--success { background: var(--njdoh-success-surface); color: var(--njdoh-success-text); }

.njdoh-tag--audience {
  margin: 0 0 0.5rem;
  padding: 0.2rem 0.7rem;
  border-radius: 999px;
  background: var(--njdoh-surface-blue);
  font-size: 0.8125rem;
  letter-spacing: 0;
  text-transform: none;
}

/* --------------------------------------------------------------------------
   Page meta: last reviewed date, sources and owner. Every public page.
   Last element of the main content (njdoh-topic-content or a band container).
   -------------------------------------------------------------------------- */

.njdoh-page-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 2rem;
  margin: 2rem 0 0;
  padding: 1.25rem 0 0;
  border-top: 1px solid var(--njdoh-divider);
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--njdoh-text-muted);
}

.njdoh-page-meta__item { margin: 0; }
.njdoh-page-meta__label { font-weight: 700; color: var(--njdoh-text-slate); }
.njdoh-page-meta a { color: var(--njdoh-link); text-decoration: underline; text-underline-offset: 2px; }

/* --------------------------------------------------------------------------
   Form fields
   TeamSite removes ids, so each label wraps its control. The label text,
   hint and error are then all read with the field.

   <div class="njdoh-field">
     <label class="njdoh-field__wrap">
       <span class="njdoh-field__label">ZIP code <span class="njdoh-field__req">(required)</span></span>
       <span class="njdoh-field__hint">5 digits, such as 08625</span>
       <input class="njdoh-input njdoh-input--short" type="text" name="zip"
              inputmode="numeric" autocomplete="postal-code" required>
     </label>
   </div>

   Error: add njdoh-field--error, put <span class="njdoh-field__error">Error:
   what to fix</span> after the hint, and aria-invalid="true" on the control.
   Choices: a <fieldset class="njdoh-fieldset"> with a <legend
   class="njdoh-fieldset__legend"> and one <label class="njdoh-choice"> each.
   Submit: <input type="submit" class="njdoh-btn-navy"> inside njdoh-form__actions.
   -------------------------------------------------------------------------- */

.njdoh-field { max-width: 36rem; margin: 0 0 1.5rem; }

.njdoh-field__wrap {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin: 0;
}

.njdoh-field__label { font-size: 1rem; font-weight: 700; line-height: 1.4; color: var(--njdoh-ink); }
.njdoh-field__req { font-weight: 400; color: var(--njdoh-text-slate); }
.njdoh-field__hint { font-size: 0.9375rem; line-height: 1.45; color: var(--njdoh-text-slate); }
.njdoh-field__error { font-size: 0.9375rem; font-weight: 700; line-height: 1.45; color: var(--njdoh-danger); }

.njdoh-field--error { padding-left: 1rem; border-left: 4px solid var(--njdoh-danger); }

.njdoh-input,
.njdoh-select,
.njdoh-textarea {
  display: block;
  width: 100%;
  min-height: 48px;
  margin: 0.15rem 0 0;
  padding: 0.6rem 0.85rem;
  background: var(--njdoh-white);
  border: 1px solid var(--njdoh-border-field);
  border-radius: var(--njdoh-radius-sm);
  font-family: inherit;
  font-size: 1rem;           /* 16px or more stops phones zooming in */
  line-height: 1.5;
  color: var(--njdoh-ink);
}

.njdoh-textarea { min-height: 8rem; resize: vertical; }

/* Width hints: size the box to the answer */
.njdoh-input--short { max-width: 10rem; }
.njdoh-input--medium { max-width: 20rem; }

.njdoh-input:focus-visible,
.njdoh-select:focus-visible,
.njdoh-textarea:focus-visible {
  border-color: var(--njdoh-navy);
  outline: 2px solid var(--njdoh-blue);
  outline-offset: 2px;
}

.njdoh-field--error .njdoh-input,
.njdoh-field--error .njdoh-select,
.njdoh-field--error .njdoh-textarea { border: 2px solid var(--njdoh-danger); }

.njdoh-input:disabled,
.njdoh-select:disabled,
.njdoh-textarea:disabled { background: var(--njdoh-surface-tint); color: var(--njdoh-text-muted); cursor: not-allowed; }

/* Checkboxes and radio buttons */
.njdoh-fieldset { min-width: 0; max-width: 36rem; margin: 0 0 1.5rem; padding: 0; border: 0; }

.njdoh-fieldset__legend {
  width: auto;
  margin: 0 0 0.35rem;
  padding: 0;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.4;
  color: var(--njdoh-ink);
}

.njdoh-fieldset > .njdoh-field__hint,
.njdoh-fieldset > .njdoh-field__error { display: block; margin: 0 0 0.35rem; }

.njdoh-fieldset.njdoh-field--error { padding-left: 1rem; }

.njdoh-choice {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin: 0;
  padding: 0.6rem 0;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--njdoh-ink);
  cursor: pointer;
}

.njdoh-choice__input {
  flex: 0 0 auto;
  width: 1.25rem;
  height: 1.25rem;
  margin: 0.125rem 0 0;
  accent-color: var(--njdoh-navy);
  cursor: pointer;
}

/* Buttons under the fields. Inputs need the font the links get. */
.njdoh-form__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 2rem 0 0; }

input[type="submit"].njdoh-btn-navy,
input[type="reset"].njdoh-btn-outline { font-family: inherit; line-height: 1.5; cursor: pointer; }
