/* NJP-2505 sample page. Existing Encap navigation, typography and brand tokens remain in use. */
body.njp-family-page .njp-tagline{font-size:clamp(1.35rem,2.1vw,1.85rem);line-height:1.22;letter-spacing:-.025em;margin-top:24px;max-width:510px}
body.njp-family-page .category-hero h1{font-size:clamp(2.35rem,4.1vw,3.8rem);max-width:650px}
body.njp-family-page .category-hero .lead{margin-top:18px;font-size:1rem;line-height:1.75}
body.njp-family-page .category-visual .pv-image-open{height:490px}
/* The shared video gallery adds a ratio-constrained stage. Keep its photograph inside it. */
body.njp-family-page .category-visual .hero-media-stage{aspect-ratio:1/1}
body.njp-family-page .category-visual .hero-media-stage .pv-image-open{height:100%}
body.njp-family-page .pv-quick-facts strong{font-size:clamp(1.2rem,1.8vw,1.65rem)}
body.njp-family-page .njp-section{border-bottom:1px solid var(--line)}
body.njp-family-page .njp-section h2{font-size:var(--encap-type-section);line-height:1.14;max-width:760px}
body.njp-family-page .njp-section h3{font-size:1.35rem;line-height:1.25;letter-spacing:-.025em}
body.njp-family-page .njp-section p:not(.eyebrow){font-size:1rem;line-height:1.75;color:var(--muted)}
body.njp-family-page .njp-section .eyebrow{margin-bottom:16px}
.njp-split{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:54px;align-items:start}
.njp-split>*{min-width:0}
.njp-engineering-media{background:#f5f5f3;padding:26px;border:1px solid var(--line)}
.njp-photo{min-width:0;margin:0}
.njp-photo button{display:block;position:relative;border:0;padding:0;background:#fff;width:100%;color:var(--ink)}
.njp-photo button>img{display:block;width:100%;height:auto;object-fit:contain}
.njp-photo figcaption{margin-top:14px;font-size:.875rem;line-height:1.6;color:var(--muted)}
.njp-engineering-media .njp-photo button>img{aspect-ratio:492/338;object-fit:contain}
.njp-engineering-media .njp-photo figcaption{margin-top:18px}
.njp-feature-list{list-style:none;padding:0;margin:0}
.njp-feature-list li{padding:0 0 24px;margin-bottom:24px;border-bottom:1px solid var(--line)}
.njp-feature-list li:last-child{border-bottom:0;margin-bottom:0;padding-bottom:0}
.njp-feature-list h3{margin-bottom:10px}
.njp-practical-note{margin-top:26px;padding:22px 24px;border-left:3px solid var(--red);background:var(--paper)}
.njp-controls-media .njp-photo button{border:1px solid var(--line)}
.njp-controls-media .njp-photo img{height:auto;object-fit:contain}
.njp-controls-media>p{margin-top:24px}
.njp-components{width:100%;border-collapse:collapse;table-layout:fixed;font-size:1rem;line-height:1.55}
.njp-components caption{text-align:left;font-size:.875rem;color:var(--muted);padding-bottom:14px}
.njp-components th,.njp-components td{text-align:left;vertical-align:top;padding:17px 14px;border-bottom:1px solid var(--line);overflow-wrap:anywhere}
.njp-components thead th{border-top:2px solid var(--red);background:var(--paper);font-size:.875rem}
.njp-components th:first-child{width:36%}
.njp-components td strong{display:block;line-height:1.4}
.njp-components td span{display:block;color:var(--muted);font-size:.875rem;margin-top:5px}
.njp-detail-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:42px 26px}
.njp-detail-grid article{min-width:0;border-top:1px solid var(--line);padding-top:12px}
.njp-detail-grid .njp-photo button{background:#f5f5f3}
.njp-detail-grid .njp-photo img{height:240px;object-fit:contain;padding:12px}
.njp-detail-grid h3{margin-top:22px;margin-bottom:12px}
.njp-detail-grid p{margin:0}
.njp-package-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:26px}
.njp-package-grid>article{border:1px solid var(--line);border-top:3px solid var(--red);padding:28px 30px;min-width:0}
.njp-package-grid h3{margin-bottom:18px}
.njp-package-grid ul{padding-left:21px;margin:0;color:var(--muted);font-size:1rem;line-height:1.75}
.njp-package-grid li+li{margin-top:9px}
.njp-application{display:flex;align-items:center;justify-content:space-between;gap:35px;padding:26px 0;margin-top:26px;border-block:1px solid var(--line)}
.njp-application>div{max-width:790px}
.njp-application h3{margin-bottom:12px}
.njp-application .button{flex-shrink:0;font-size:1rem}
.njp-trial-strip{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:0;border:1px solid var(--line);margin-top:26px}
.njp-trial-strip>div{padding:20px 22px;min-width:0}
.njp-trial-strip>div+div{border-left:1px solid var(--line)}
.njp-trial-strip strong{display:block;font-size:1rem;line-height:1.4}
.njp-trial-strip span{display:block;color:var(--muted);font-size:.875rem;line-height:1.6;margin-top:8px}
body.njp-family-page .pv-spec-table{font-size:1rem}
body.njp-family-page .pv-spec-table th,body.njp-family-page .pv-spec-table td{overflow-wrap:anywhere}
body.njp-family-page .pv-spec-table td small{display:block;color:var(--muted);font-size:.875rem;margin-top:5px}
body.njp-family-page .pv-model-label{font-size:.875rem}
body.njp-family-page .pv-spec-layout{gap:50px}
body.njp-family-page .pv-spec-layout h2{max-width:500px}
body.njp-family-page .pv-spec-layout .pv-copy{margin-top:24px}
body.njp-family-page .pv-documents{font-size:.875rem;line-height:1.7}
body.njp-family-page .pv-section-nav .wrap{gap:26px}
.njp-detail-dialog{width:min(1060px,calc(100% - 32px));max-height:92dvh;padding:20px;border:1px solid var(--line);background:#fff;color:var(--ink)}
.njp-detail-dialog::backdrop{background:#101010d9}
.njp-detail-dialog header{display:flex;align-items:center;justify-content:space-between;gap:24px;margin-bottom:20px}
.njp-detail-dialog h2{font-size:1.15rem;line-height:1.4;letter-spacing:0}
.njp-detail-dialog header button{background:white;border:1px solid var(--line);padding:10px 16px;min-height:44px;flex-shrink:0}
.njp-dialog-stage>img{width:100%;max-height:70dvh;object-fit:contain;background:#f5f5f3}
.njp-detail-dialog>p{font-size:.875rem;line-height:1.6;color:var(--muted);margin-top:15px}
/* Pixel-preserving crop of the authentic photograph: (620,80) to (4000,2440)
   on the 4032 x 3024 original. The same viewport is used in the lightbox. */
.njp-photo button.njp-cabinet-crop{position:relative;overflow:hidden;aspect-ratio:3380/2360}
.njp-photo button.njp-cabinet-crop>img{position:absolute;left:-18.343195%;top:-3.389831%;width:119.289941%;max-width:none;height:auto;object-fit:initial}
.njp-detail-dialog[data-njp-crop="cabinet"] .njp-dialog-stage{position:relative;overflow:hidden;aspect-ratio:3380/2360;width:min(100%,100.254237dvh);margin-inline:auto}
.njp-detail-dialog[data-njp-crop="cabinet"] .njp-dialog-stage>img{position:absolute;left:-18.343195%;top:-3.389831%;width:119.289941%;max-width:none;max-height:none;height:auto;object-fit:initial}
@media(max-width:1000px){
 .njp-split{gap:32px}
 .njp-detail-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 .njp-components th,.njp-components td{padding:14px 10px}
 .njp-application{align-items:flex-start;flex-direction:column;gap:22px}
}
@media(max-width:760px){
 body.njp-family-page .category-visual .pv-image-open{height:380px}
 body.njp-family-page .category-visual .hero-media-stage .pv-image-open{height:100%}
 .njp-split{grid-template-columns:minmax(0,1fr);gap:30px}
 .njp-engineering-media{padding:18px}
 .njp-controls-media .njp-photo img{height:auto}
 .njp-package-grid{grid-template-columns:minmax(0,1fr)}
 .njp-package-grid>article{padding:24px}
 .njp-trial-strip{grid-template-columns:repeat(2,minmax(0,1fr))}
 .njp-trial-strip>div:nth-child(3){border-left:0;border-top:1px solid var(--line)}
 .njp-trial-strip>div:nth-child(4){border-top:1px solid var(--line)}
 body.njp-family-page .pv-spec-layout{grid-template-columns:minmax(0,1fr);gap:30px}
}
@media(max-width:520px){
 body.njp-family-page .category-hero h1{font-size:2.35rem}
 body.njp-family-page .njp-tagline{font-size:1.5rem}
 body.njp-family-page .njp-section .pv-heading{gap:22px}
 .njp-detail-grid{grid-template-columns:minmax(0,1fr);gap:34px}
 .njp-detail-grid .njp-photo img{height:auto;max-height:320px;padding:14px}
 .njp-feature-list li{padding-bottom:20px;margin-bottom:20px}
 .njp-practical-note{padding:18px}
 .njp-components th,.njp-components td{padding:15px 9px}
 .njp-components th:first-child{width:38%}
 .njp-trial-strip>div{padding:18px 15px}
 .njp-detail-dialog{padding:15px}
}

/* NJP-2505 only. Keep the site's existing typography, color and controls. */
body.njp-family-page .category-hero{grid-template-columns:minmax(0,1fr) minmax(0,1.03fr);grid-template-rows:auto auto;column-gap:56px;row-gap:24px;align-items:start}
body.njp-family-page .category-hero>.njp-hero-intro{grid-column:1;grid-row:1;padding-top:0}
body.njp-family-page .category-hero>.njp-hero-summary{grid-column:1;grid-row:2;padding-top:0}
body.njp-family-page .category-hero>.hero-media-gallery{grid-column:2;grid-row:1 / span 2;align-self:start}
body.njp-family-page .category-hero .njp-tagline{margin-top:20px}
body.njp-family-page .njp-hero-intro .actions{margin-top:24px;gap:14px 22px}
body.njp-family-page .njp-hero-summary .lead{margin-top:18px}
body.njp-family-page .njp-hero-links{display:flex;flex-wrap:wrap;gap:20px;margin-top:20px}
body.njp-family-page .hero-media-gallery .hero-media-stage{aspect-ratio:16/9;min-height:0}
body.njp-family-page .hero-media-gallery[data-hero-media-mode="photo"] .hero-media-stage{aspect-ratio:1/1}
body.njp-family-page .hero-media-gallery .hero-media-meta{font-size:13px}
body.njp-family-page .hero-media-gallery figcaption[data-gallery-caption]{font-size:13px;margin-top:8px;padding-top:10px}
body.njp-family-page .njp-package-note{margin-top:24px;color:var(--muted);font-size:15px;line-height:1.7}
body.njp-family-page .njp-utility-note{margin-top:18px;font-size:14px;line-height:1.7;color:var(--muted)}
body.njp-family-page .njp-spec-download{margin-top:22px}
body.njp-family-page .njp-detail-grid img{image-rendering:auto}
@media(max-width:1000px){body.njp-family-page .category-hero{column-gap:30px}}
@media(max-width:760px){
 body.njp-family-page .category-hero{grid-template-columns:minmax(0,1fr);grid-template-rows:auto auto auto;gap:26px;padding-block:26px 32px}
 body.njp-family-page .category-hero>.njp-hero-intro{grid-column:1;grid-row:1}
 body.njp-family-page .category-hero>.hero-media-gallery{grid-column:1;grid-row:2;min-width:0}
 body.njp-family-page .category-hero>.njp-hero-summary{grid-column:1;grid-row:3}
 body.njp-family-page .category-hero h1{font-size:clamp(29px,8.2vw,38px);line-height:1.08}
 body.njp-family-page .category-hero .eyebrow{margin-bottom:12px}
 body.njp-family-page .category-hero .njp-tagline{font-size:1.35rem;line-height:1.3;margin-top:16px}
 body.njp-family-page .njp-hero-intro .actions{margin-top:19px;gap:12px;align-items:stretch}
 body.njp-family-page .njp-hero-intro .actions>a{justify-content:center;min-height:46px;font-size:14px;flex:1;white-space:nowrap;padding:12px 10px}
 body.njp-family-page .hero-media-gallery .pv-thumbs{padding-block:10px;gap:8px}
 body.njp-family-page .hero-media-gallery .pv-thumb{flex-basis:60px;width:60px;height:52px;min-height:52px}
 body.njp-family-page .hero-media-gallery .hero-media-meta{font-size:12px;gap:12px}
 body.njp-family-page .hero-media-gallery figcaption[data-gallery-caption]{font-size:12px}
 body.njp-family-page .site-trail li:nth-child(2),body.njp-family-page .site-trail li:nth-child(4){display:none}
 body.njp-family-page .site-trail{font-size:11px}
 body.njp-family-page .site-trail ol{flex-wrap:nowrap;overflow:hidden;white-space:nowrap}
 body.njp-family-page .site-trail li{flex-shrink:0}
 body.njp-family-page .pv-quick-facts span{font-size:12px;line-height:1.5}
}

body.njp-family-page .category-hero>.category-visual{grid-column:2;grid-row:1 / span 2}
@media(max-width:760px){body.njp-family-page .category-hero>.category-visual{grid-column:1;grid-row:2}}
