.instructions-page :focus-visible { outline: 3px solid var(--purple); outline-offset: 5px; }
.navigation a[aria-current="page"] { color: var(--purple-light); }
.instructions-hero { padding-block: 65px 48px; }
.instructions-hero h1 { max-width: 900px; font-size: clamp(3.4rem,6.5vw,5.8rem); font-weight: 700; line-height: 1.12; letter-spacing: -.025em; }
.intro { max-width: 650px; color: #bfbbc7; font-size: 18px; line-height: 1.75; }
.guide-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.guide-links a,.outline-button { display: inline-flex; align-items: center; justify-content: center; gap: 24px; min-height: 44px; padding: 10px 19px; border: 1px solid rgba(192,168,255,.3); border-radius: 999px; background: rgba(142,103,221,.1); color: #e6dcff; font-size: 13px; font-weight: 700; }
.guide-links a:hover,.outline-button:hover { background: rgba(142,103,221,.22); }
.guide-links a span,.outline-button span { color: var(--purple-light); }
.guide-heading { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 26px; }
.guide-heading .eyebrow { margin-bottom: 10px; }
.guide-heading h2 { margin: 0; font-size: clamp(1.8rem,3.1vw,2.55rem); line-height: 1.22; font-weight: 700; }
.guide-heading p:not(.eyebrow) { margin: 10px 0 0; max-width: 660px; color: #aaa6b4; font-size: 14px; }
.status-pill { padding: 8px 14px; flex-shrink: 0; border: 1px solid rgba(192,168,255,.25); border-radius: 999px; color: var(--purple-light); font-size: 12px; }
.video-section { padding-bottom: 68px; }
.video-placeholder { height: clamp(260px,32vw,430px); position: relative; overflow: hidden; isolation: isolate; border: 1px solid var(--line); border-radius: 28px; background: #241c35; }
.video-placeholder > img { height: 100%; object-fit: cover; opacity: .43; }
.video-placeholder::after { content: ""; position: absolute; inset: 0; z-index: 0; background: linear-gradient(0deg,rgba(18,13,30,.87),rgba(37,22,63,.22)); }
.video-placeholder-copy { position: absolute; inset: 0; z-index: 1; display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 28px; text-align: center; }
.video-symbol { display: grid; place-items: center; width: 62px; height: 62px; margin-bottom: 18px; border: 1px solid rgba(214,190,255,.6); border-radius: 22px; background: rgba(161,122,255,.19); color: #eee5ff; font-size: 35px; }
.video-placeholder h3 { margin-bottom: 8px; font-size: 25px; }
.video-placeholder p { margin: 0; color: #d2c9df; font-size: 14px; }
.wiring-section { padding-block: 60px; background: #eee9f7; color: #201827; scroll-margin-top: 25px; }
.wiring-section .eyebrow { color: #736480; }
.wiring-section .guide-heading p:not(.eyebrow) { color: #756b80; }
.wiring-section .outline-button { color: #5f3c96; background: #f9f5ff; border-color: #d3c3e8; flex-shrink: 0; }
.wiring-section .outline-button span { color: #8054c5; }
.wiring-layout { display: grid; grid-template-columns: 1.3fr 1fr; align-items: start; gap: 25px; }
.diagram-card { margin: 0; padding: 8px; overflow: hidden; background: #fff; border: 1px solid #ded5e7; border-radius: 26px; }
.diagram-card img { height: auto; border-radius: 20px; }
.diagram-card figcaption { padding: 10px 15px 12px; color: #7a7084; font-size: 12px; text-align: center; }
.wiring-details { display: grid; gap: 15px; }
.connection-card,.pad-note,.small-note { padding: 24px; border: 1px solid #dfd6e9; border-radius: 24px; background: #fbf9ff; }
.wiring-details h3 { margin: 0 0 15px; font-size: 20px; line-height: 1.3; }
.connection-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 15px; }
.connection-list li { display: flex; align-items: start; gap: 11px; }
.wire-dot { flex: 0 0 10px; width: 10px; height: 10px; border-radius: 50%; margin-top: 6px; }
.blue { background: #3569dc; }.green { background: #159954; }.brown { background: #97613d; }.purple { background: #843ec3; }.red { background: #e0474a; }
.connection-list strong { font-size: 13px; }
.connection-list p { margin: 2px 0 0; font-size: 13px; color: #756a80; line-height: 1.55; }
.capacitor-note { padding-top: 16px; margin: 18px 0 0; border-top: 1px solid #e6dfee; font-size: 13px; color: #756a80; }
.capacitor-note strong { color: #47334e; }
.pad-note { background: #e8dff6; border-color: #d3bee9; }
.note-kicker { display: block; color: #8054b4; font-size: 10px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 8px; }
.pad-note h3 { color: #5e368c; margin-bottom: 10px; }
.pad-note p,.small-note p { margin: 0 0 12px; font-size: 13px; line-height: 1.65; color: #6e5d7d; }
.pad-note p:last-child,.small-note p:last-child { margin-bottom: 0; }
.pad-warning { border-top: 1px solid #d3c3e6; padding-top: 12px; font-weight: 700; }
.small-note h3 { font-size: 16px; margin-bottom: 8px; }
.small-note a { color: #7853a5; font-size: 12px; text-decoration: underline; text-underline-offset: 3px; }
.before-power { margin-top: 25px; padding: 20px 24px; border: 1px solid #d5c5e7; border-radius: 22px; background: #f6f1fc; }
.before-power p { margin: 0; font-size: 13px; color: #6e5d7d; }
.app-setup { padding-block: 66px 75px; }
.guide-steps { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 15px; padding: 0; margin: 0; list-style: none; }
.guide-steps li { padding: 25px; border: 1px solid var(--line); border-radius: 25px; background: radial-gradient(ellipse at 95% 0%,rgba(142,103,221,.13),transparent 70%),var(--surface); }
.guide-steps li > span { display: inline-block; margin-bottom: 18px; font-size: 13px; color: var(--purple-light); }
.guide-steps h3 { margin-bottom: 10px; font-size: 20px; }
.guide-steps p { margin: 0; color: #aaa6b4; font-size: 14px; line-height: 1.7; }
.guide-steps strong { color: #d3c8e3; font-weight: 700; }
@media(max-width:1050px) { .wiring-layout { grid-template-columns: 1fr; }.diagram-card { max-width: 800px; margin-inline: auto; }.wiring-details { grid-template-columns: 1fr 1fr; }.connection-card { grid-row: span 2; } }
@media(max-width:680px) {
  .instructions-hero { padding-block: 40px 34px; }.instructions-hero h1 { font-size: clamp(3.2rem,12vw,4.2rem); }.intro { font-size: 16px; }.guide-links { gap: 8px; }.guide-links a { padding-inline: 13px; gap: 12px; font-size: 12px; }
  .guide-heading { flex-direction: column; align-items: flex-start; gap: 15px; }.guide-heading h2 { font-size: 1.9rem; }.video-section { padding-bottom: 40px; }.video-placeholder { height: 270px; }.video-placeholder h3 { font-size: 21px; }
  .wiring-section { padding-block: 40px; }.wiring-layout { gap: 18px; }.wiring-details { grid-template-columns: 1fr; }.connection-card { grid-row: auto; }.connection-card,.pad-note,.small-note { padding: 21px; }.diagram-card { padding: 4px; border-radius: 20px; }.before-power { padding: 19px 21px; }
  .app-setup { padding-block: 43px 50px; }.guide-steps { grid-template-columns: 1fr; }.guide-steps li { padding: 22px; }.guide-steps li > span { margin-bottom: 10px; }
}

/* Download the diagram or print only its artwork. */
.wiring-section .guide-heading { flex-wrap: wrap; }
.wiring-downloads { flex: 1 1 100%; }
.wiring-download-buttons { display: flex; flex-wrap: wrap; gap: 10px; }
.wiring-download-buttons .outline-button { cursor: pointer; font-family: inherit; }
.wiring-section .guide-heading .wiring-print-hint { margin: 10px 0 0; max-width: none; font-size: 13px; }
@media (max-width: 480px) {
  .wiring-download-buttons { flex-direction: column; align-items: stretch; }
}
@media print {
  @page { size: portrait; margin: 10mm; }
  html,body,main,#wiring,#wiring > .section-wrap,.wiring-layout {
    display: block !important; width: 100% !important; max-width: none !important;
    margin: 0 !important; padding: 0 !important; background: white !important;
  }
  .site-header,.site-footer,main > section:not(#wiring),#wiring .guide-heading,
  .wiring-details,.before-power,.diagram-card figcaption,.diagram-header { display: none !important; }
  .diagram-card { display: block !important; margin: 0 !important; padding: 0 !important;
    max-width: none !important; width: 100% !important; border: 0 !important;
    border-radius: 0 !important; box-shadow: none !important; break-inside: avoid; }
  .diagram-card a { display: block; }
  .diagram-card img { width: 100% !important; height: auto !important;
    max-height: 240mm !important; object-fit: contain; border-radius: 0 !important; }
}
