/* Installation guide: the same palette, type and section heads as Packing Details, with a line
   illustration for every step. Small text stays navy on white (gold is for rules, numbers on
   large type and the drawings). */
.nv-install { font-family: var(--nv-font-text); color: var(--nv-navy); }

.nv-install__intro { display: flex; justify-content: space-between; align-items: flex-end; gap: 2rem; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.nv-install__title { margin: 0; font-family: var(--nv-font-display); font-size: clamp(2.5rem, 4vw, 4rem); font-weight: 400; line-height: 1.15; }
.nv-install__title em { font-style: normal; color: var(--nv-gold); }
.nv-install__intro .nv-page-body__text { max-width: 28rem; margin: 0; }

/* Section shortcuts */
.nv-install__toc { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); margin-bottom: clamp(3.5rem, 7vw, 6rem); border-top: 1px solid var(--nv-line); border-bottom: 1px solid var(--nv-line); }
.nv-install__toc a { display: flex; gap: .75rem; align-items: baseline; padding: 1.25rem 1rem; color: var(--nv-navy); font-size: .875rem; text-decoration: none; transition: background-color .25s ease; }
.nv-install__toc a + a { border-left: 1px solid var(--nv-line); }
.nv-install__toc a span { color: var(--nv-muted); font-size: .75rem; letter-spacing: .12em; }
.nv-install__toc a:hover, .nv-install__toc a:focus-visible { background: var(--nv-stone); }
.nv-install__toc a:focus-visible { outline: 2px solid var(--nv-gold); outline-offset: -2px; }

/* Section heads, as on Packing Details */
.nv-install__part { margin-bottom: clamp(4rem, 8vw, 6.5rem); scroll-margin-top: 8rem; }
.nv-install__head { display: flex; align-items: center; gap: 1.25rem; padding: 0 0 1.25rem; margin-bottom: clamp(2rem, 4vw, 3rem); border-bottom: 2px solid var(--nv-gold); }
.nv-install__index { color: var(--nv-muted); font-size: .75rem; letter-spacing: .12em; }
.nv-install__head h3 { margin: 0; font-family: var(--nv-font-display); font-size: clamp(1.75rem, 3vw, 2.5rem); font-weight: 400; line-height: 1.2; }
.nv-install__label { margin-left: auto; color: var(--nv-ink); font-size: .625rem; letter-spacing: .2em; text-transform: uppercase; }
.nv-install__sub { margin: 0 0 1.5rem; font-size: .75rem; font-weight: 400; letter-spacing: .2em; text-transform: uppercase; }
.nv-install__steps + .nv-install__sub { margin-top: clamp(2.5rem, 5vw, 3.5rem); }

/* Step cards: illustration panel, then the step */
.nv-install__steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.5rem, 3vw, 2.5rem) clamp(1.25rem, 2.5vw, 2rem); margin: 0; padding: 0; list-style: none; }
.nv-install__step { display: flex; flex-direction: column; }
.nv-install__figure { display: grid; place-items: center; aspect-ratio: 4 / 3; margin: 0 0 1.25rem; background: var(--nv-stone); border-bottom: 2px solid var(--nv-gold); }
.nv-install__art { width: 62%; height: auto; overflow: visible; }
.nv-install__num { display: block; margin-bottom: .5rem; color: var(--nv-muted); font-size: .6875rem; letter-spacing: .2em; text-transform: uppercase; }
.nv-install__step-title { margin: 0 0 .5rem; font-family: var(--nv-font-display); font-size: 1.375rem; font-weight: 400; line-height: 1.25; }
.nv-install__step-text { margin: 0; color: var(--nv-ink); font-size: .9375rem; line-height: 1.7; }

/* Drawing strokes: n = navy line, g = gold line, gs = heavy gold line, gf = gold fill, w = white tick, t/ts = labels */
.nv-install__art * { vector-effect: non-scaling-stroke; }
.nv-install__art .n { fill: none; stroke: var(--nv-navy); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.nv-install__art .g { fill: none; stroke: var(--nv-gold); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.nv-install__art .gs { fill: none; stroke: var(--nv-gold); stroke-width: 3; stroke-linecap: round; }
.nv-install__art .gf { fill: var(--nv-gold); stroke: none; }
.nv-install__art .w { fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.nv-install__art .t { fill: var(--nv-gold); font-family: var(--nv-font-display); font-size: 20px; }
.nv-install__art .ts { fill: var(--nv-navy); font-family: var(--nv-font-text); font-size: 7px; letter-spacing: .12em; }

/* Callouts */
.nv-install__note { margin-top: clamp(2rem, 4vw, 3rem); padding: clamp(1.5rem, 3vw, 2rem) clamp(1.5rem, 3vw, 2.5rem); border-left: 2px solid var(--nv-gold); background: var(--nv-stone); }
.nv-install__note h4 { margin: 0 0 .5rem; font-family: var(--nv-font-display); font-size: 1.375rem; font-weight: 400; }
.nv-install__note p { max-width: 52rem; margin: 0; color: var(--nv-ink); font-size: .9375rem; line-height: 1.7; }

/* Practices to avoid: a navy panel */
.nv-install__avoid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 5vw, 5rem); padding: clamp(2.5rem, 6vw, 5rem); background: var(--nv-navy); color: #fff; }
.nv-install__avoid .nv-install__index { color: var(--nv-on-navy-muted); }
.nv-install__avoid-head h3 { margin: .75rem 0 1rem; font-family: var(--nv-font-display); font-size: clamp(1.75rem, 3vw, 2.5rem); font-weight: 400; line-height: 1.2; }
.nv-install__avoid-head p { margin: 0; color: var(--nv-on-navy-muted); font-size: .9375rem; line-height: 1.7; }
.nv-install__avoid-art { display: flex; gap: 1.5rem; margin-top: 2rem; }
.nv-install__avoid-art .nv-install__art { width: 7.5rem; }
.nv-install__avoid .nv-install__art .n { stroke: #fff; }
.nv-install__avoid-list { margin: 0; padding: 0; list-style: none; }
.nv-install__avoid-list li { display: flex; gap: 1rem; align-items: flex-start; padding: 1rem 0; border-bottom: 1px solid var(--nv-on-navy-line); font-size: .9375rem; line-height: 1.6; }
.nv-install__avoid-list li:first-child { padding-top: 0; }
.nv-install__avoid-list svg { flex: none; width: 1.1rem; height: 1.1rem; margin-top: .2rem; fill: none; stroke: var(--nv-gold); stroke-width: 2; stroke-linecap: round; }

/* Closing prompt */
.nv-install__cta { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1.5rem; padding-top: 2rem; border-top: 1px solid var(--nv-line); }
.nv-install__cta p { margin: 0; font-family: var(--nv-font-display); font-size: clamp(1.375rem, 2vw, 1.75rem); line-height: 1.3; }

@media (max-width: 991px) {
  .nv-install__steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nv-install__toc { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .nv-install__toc a:nth-child(4) { border-left: 0; }
  .nv-install__toc a:nth-child(n + 4) { border-top: 1px solid var(--nv-line); }
  .nv-install__avoid { grid-template-columns: 1fr; }
}

@media (max-width: 767px) {
  .nv-install__intro { flex-direction: column; align-items: flex-start; }
  .nv-install__label { display: none; }
  .nv-install__toc { grid-template-columns: 1fr; }
  .nv-install__toc a:nth-child(n) { padding: 1rem 0; border-left: 0; border-top: 1px solid var(--nv-line); }
  .nv-install__toc a:first-child { border-top: 0; }
}

@media (max-width: 575px) {
  .nv-install__steps { grid-template-columns: 1fr; }
  .nv-install__figure { aspect-ratio: 16 / 9; }
  .nv-install__art { width: 44%; }
}
