/* NPAV Design Lab: base element styles, section rhythm and layout primitives (on Bootstrap Reboot). */
body {
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "kern";
}
body.is-locked { overflow: hidden; }

/* The hidden attribute must win over Bootstrap display utilities (d-flex etc. use !important). */
[hidden] { display: none !important; }

/* ---------- Type: editorial, controlled sizes ---------- */
h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
  font-family: var(--np-font-display);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--np-ink);
}
/* Page titles at 700, the Plex Sans bold that is loaded (owner, 2026-10-16); section and card headings stay 600, so
   the title stands out from them. Plex has no 800. */
h1, .h1 { font-size: var(--np-fs-3xl); font-weight: 700; line-height: 1.12; letter-spacing: -0.02em; }
h2, .h2 { font-size: var(--np-fs-2xl); line-height: 1.18; letter-spacing: -0.015em; }
h3, .h3 { font-size: var(--np-fs-xl); }
h4, .h4 { font-size: var(--np-fs-lg); }
h5, .h5 { font-size: var(--np-fs-md); }

p { max-width: 70ch; }
.lead { font-size: var(--np-fs-md); font-weight: 400; line-height: 1.6; color: var(--np-ink-2); }
small, .small { font-size: var(--np-fs-sm); }
strong, b { font-weight: 600; }

img { max-width: 100%; height: auto; }

a { text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }

/* Focus: navy ring on light surfaces, green ring on navy surfaces. */
:focus-visible { outline: 2px solid var(--np-focus-color); outline-offset: 2px; }
.np-topbar, .np-header, .np-hero, .np-dark, .np-footer, .np-section--dark, .np-band, .np-solhero, .np-dl-head, .np-page-head, .np-quick {
  --np-focus-color: var(--np-focus-color-on-dark);
  --np-focus-gap: var(--np-ink-900);
}
/* White menu panels inside the navy header go back to the navy ring */
.np-header .dropdown-menu {
  --np-focus-color: var(--np-ink-900);
  --np-focus-gap: var(--np-surface);
}

/* Plex Mono ships one weight (500); bold contexts (dd, strong) use it instead of a synthetic bold. */
.np-mono { font-family: var(--np-font-mono); font-synthesis-weight: none; }
.np-num { font-variant-numeric: tabular-nums; }

/* ---------- Sections ---------- */
.np-section { padding-block: var(--np-section-y); }
.np-section--tight { padding-block: calc(var(--np-section-y) * 0.6); }
.np-section--white { background: var(--np-surface); }
.np-section--tint { background: var(--np-surface-alt); }
.np-section--line { border-top: 1px solid var(--np-line); }

/* Navy sections: major security / product statements */
.np-section--dark,
.np-dark { background: var(--np-ink-900); color: var(--np-on-dark); }
.np-section--dark h2, .np-section--dark h3, .np-section--dark h4,
.np-dark h2, .np-dark h3, .np-dark h4 { color: #fff; }
.np-section--dark a:not(.btn), .np-dark a:not(.btn) { color: var(--np-brand-200); }
.np-section--dark a:not(.btn):hover, .np-dark a:not(.btn):hover { color: #fff; }

/* Section heading block */
.np-section-head { max-width: 46rem; margin-bottom: 2rem; }
.np-section-head h2 { margin-bottom: 0.5rem; }
.np-section-head p:not(.np-eyebrow) { margin: 0; color: var(--np-muted); font-size: var(--np-fs-md); }
.np-section-head--center { margin-inline: auto; text-align: center; }
.np-section-head--center p:not(.np-eyebrow) { margin-inline: auto; }
/* Heading left, action right, both on the heading block's last line */
.np-section-head--split {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 1rem 2rem;
  max-width: none;
}
.np-section-head--split > div { max-width: 46rem; }
.np-section--dark .np-section-head p:not(.np-eyebrow),
.np-dark .np-section-head p:not(.np-eyebrow) { color: var(--np-on-dark-muted); }

/* Eyebrow: small uppercase label. No decorative rule. */
.np-eyebrow {
  display: block;
  margin-bottom: 0.625rem;
  font-size: var(--np-fs-2xs);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--np-brand-700);
}
.np-section--dark .np-eyebrow, .np-dark .np-eyebrow, .np-hero .np-eyebrow, .np-band .np-eyebrow, .np-solhero .np-eyebrow, .np-dl-head .np-eyebrow, .np-page-head .np-eyebrow { color: var(--np-brand-500); }

.np-divider { border: 0; border-top: 1px solid var(--np-line); margin: 1.25rem 0; opacity: 1; }

/* Text link with arrow ("View all products ->") */
.np-more { display: inline-flex; align-items: center; gap: 0.375rem; font-size: var(--np-fs-sm); font-weight: 600; color: var(--np-brand-700); text-decoration: none; }
.np-more:hover { color: var(--np-brand-800); text-decoration: underline; }
.np-more .np-icon { width: 1rem; height: 1rem; }
.np-section--dark .np-more, .np-dark .np-more, .np-page-head .np-more { color: var(--np-brand-200); }
