/* Shared spacing safeguards, loaded after the type scale. */
:root{--nn-content-gap:24px;--nn-panel-inset:clamp(20px,2.5vw,36px)}
/* Product captions belong in the flow: taller type must move the photo down. */
.studio-config .studio-config-photo{display:flex;flex-direction:column;align-items:stretch;justify-content:flex-start;gap:20px;padding:var(--nn-panel-inset);min-width:0}
.studio-config .studio-config-photo>span{position:static;order:-1;display:block;margin:0;line-height:1.6;overflow-wrap:anywhere}
.studio-config-photo .nn-product-zoom,.studio-config-photo .nn-headboard-photo{min-width:0;width:100%}
.studio-config-photo .nn-product-zoom>img{display:block}
.studio-config-photo .nn-gallery-thumbs{margin:0;flex-wrap:wrap}
.studio-config-photo .nn-original-photo{margin:0;align-self:flex-start;white-space:normal}
.studio-config,.nn-product-information,.nn-service-page-grid,.nn-cart-layout{min-width:0}
.studio-config>*,.nn-product-information>*,.nn-service-page-grid>*,.nn-cart-layout>*,.nn-route-heading>*{min-width:0}
.studio-dialog .studio-config-form{padding:60px var(--nn-panel-inset) 32px}
.studio-config-form>label{margin-block:24px 0}
.studio-config-form .studio-meta{display:block;margin-top:12px}
.studio-config-form .nn-colour-options{margin-block:28px 20px}
.studio-config-form .nn-price-summary{margin-block:28px 20px}
.studio-config-form .studio-back{margin-top:24px}
.nn-live-price{gap:20px;flex-wrap:wrap}
.nn-gallery-thumbs button{flex-shrink:0}
.nn-breadcrumb,.nn-shopping-path{flex-wrap:wrap;row-gap:10px}
.nn-cart-item-actions,.nn-summary-timing span,.nn-bag-total{flex-wrap:wrap;row-gap:12px}
.nn-cart-options dd,.nn-product-accordions dd{overflow-wrap:anywhere}
/* Let image captions contribute to section height instead of spilling below it. */
.nn-art-studio .nn-studio-image{display:flex;flex-direction:column;gap:16px;aspect-ratio:auto;max-height:none}
.nn-art-studio .nn-studio-image>img{height:auto;aspect-ratio:4/3;max-height:440px;object-fit:contain}
.nn-art-studio .nn-studio-image>span{margin:0}
.nn-art-products .nn-card-label,.nn-range-copy,.nn-headboard-card{min-width:0}
.nn-text-link,.nn-card-enquire{white-space:normal;line-height:1.6}
.nn-art-home .nn-full-hero-actions{flex-wrap:wrap}
.nn-studio-palette{flex-wrap:wrap;row-gap:12px}
.nn-tool-grid article{min-width:0}
.nn-tool-grid .nn-inline-field{flex-wrap:wrap;gap:8px}
.nn-inline-field input{flex-basis:140px}
.nn-footer-bottom{flex-wrap:wrap;gap:16px}
@media(max-width:1000px){
 .studio-dialog .studio-config{grid-template-columns:1fr}
 .studio-dialog .studio-config-form{padding:32px var(--nn-panel-inset)}
 .studio-dialog .studio-config-photo{padding-top:64px}
 .nn-product-page .studio-config{display:grid;grid-template-columns:1fr;gap:36px}
 .nn-product-page .studio-config-photo{position:static;width:100%}
 .nn-product-page .studio-config-form{width:100%;padding:0}
 .nn-cart-layout,.nn-service-page-grid{grid-template-columns:1fr;gap:36px}
 .nn-cart-summary{position:static}
 .nn-art-range>.nn-centred-title,.nn-art-section-heading{column-gap:32px}
 .nn-art-headboards{grid-template-columns:minmax(0,.9fr) minmax(0,1.3fr);gap:32px}
}
@media(max-width:760px){
 .studio-config .studio-config-photo{padding:24px 16px;gap:18px}
 .studio-dialog .studio-config-photo{padding-top:64px}
 .studio-dialog{max-height:calc(100dvh - 24px)}
 .nn-art-home .nn-art-studio{gap:32px}
 .nn-art-studio .nn-studio-image{max-height:none}
 .nn-art-studio .nn-studio-image>img{max-height:290px}
 .nn-art-headboards{display:block}
 .nn-art-home .nn-story-content{padding-top:0}
 .nn-art-products>.nn-card:not(:first-child){grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
 .nn-art-sale .nn-button{max-width:100%;text-align:center}
 .nn-full-hero-caption{padding-right:0;bottom:24px;line-height:1.6}
 .nn-footer-bottom{display:flex;flex-direction:column;align-items:flex-start}
}
@media(max-width:380px){
 .nn-art-products>.nn-card:not(:first-child){grid-template-columns:1fr;gap:16px}
 .nn-art-products .nn-card-enquire{justify-self:start}
 .nn-colour-grid label{padding:12px 8px;gap:8px}
 .nn-colour-dot{width:22px;height:22px}
 .nn-art-headboards .nn-headboard-highlights{grid-template-columns:1fr}
}

/* A caption in normal flow keeps colour previews clear of the photo. */
.studio-config-photo .nn-colour-preview-note{position:static;margin:0;padding:14px 16px;background:#fff;font-size:14px;line-height:1.7;color:var(--muted);border-left:2px solid var(--gold);max-width:none}
/* Client-supplied collections and headboard length choices. */
.studio-config-form label.nn-xl-option{display:flex;align-items:center;gap:12px;padding:16px;border:1px solid var(--nn-border);background:var(--nn-paper);font-size:16px}
.studio-config-form .nn-xl-option input{display:block;width:20px;height:20px;min-height:0;padding:0;margin:0;flex-shrink:0;accent-color:var(--brand)}
.nn-custom-gallery{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:40px 32px;margin-top:42px}
.nn-custom-gallery figure{margin:0;min-width:0}
.nn-custom-gallery figure>a{display:block;background:var(--nn-paper)}
.nn-custom-gallery img{display:block;aspect-ratio:3/2;width:100%;height:auto;object-fit:contain}
.nn-custom-gallery figcaption{padding-top:18px}
.nn-custom-gallery-end{margin-top:64px;padding:48px 0 12px;border-top:1px solid var(--nn-border)}
.nn-custom-gallery-end h2{font-size:clamp(34px,4vw,52px)}
.nn-custom-gallery-end p{color:var(--muted);line-height:1.8}
.nn-custom-gallery-end .studio-meta{margin-top:24px}
.nn-sleeper-detail .nn-service-page-grid{grid-template-columns:minmax(0,1.2fr) minmax(0,.8fr);gap:48px;align-items:start}
.nn-client-gallery,.nn-client-gallery-main{min-width:0}
.nn-client-gallery-main{display:block;background:var(--nn-paper);padding:16px;color:var(--muted);text-align:center}
.nn-client-gallery-main img{display:block;width:100%;aspect-ratio:3/2;object-fit:contain}
.nn-client-gallery-main>span{display:block;font-size:13px;padding-top:12px}
.nn-client-gallery-caption{margin:16px 0;font-size:14px;color:var(--brand)}
.nn-client-gallery-thumbs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.nn-client-gallery-thumbs button{padding:8px;border:1px solid var(--nn-border);background:var(--nn-paper);color:var(--ink);cursor:pointer;min-width:0}
.nn-client-gallery-thumbs button[aria-pressed=true]{border:2px solid var(--brand);padding:7px}
.nn-client-gallery-thumbs img{display:block;width:100%;height:70px;object-fit:contain}
.nn-client-gallery-thumbs span{display:block;font-size:12px;line-height:1.5;padding-top:8px}
.nn-sleeper-detail .nn-button{margin:16px 0 24px}
.nn-sleeper-detail .studio-meta{margin-bottom:24px}
@media(min-width:761px) and (max-width:1300px){.nn-nav{gap:12px;padding-inline:3vw}.nn-nav a{font-size:13px}.nn-nav .nn-search input{width:110px}}
@media(max-width:1000px){.nn-sleeper-detail .nn-service-page-grid{grid-template-columns:1fr;gap:36px}}
@media(max-width:760px){.nn-custom-gallery{grid-template-columns:1fr;gap:32px;margin-top:30px}.nn-custom-gallery-end{margin-top:40px;padding-top:32px}.nn-client-gallery-main{padding:10px}.nn-client-gallery-thumbs{grid-template-columns:repeat(2,minmax(0,1fr))}.nn-client-gallery-thumbs img{height:80px}}

/* Homepage Custom studio: keep the wide photograph at its natural height. */
.nn-art-home .nn-art-studio{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:clamp(28px,4vw,56px);padding-block:64px;align-items:center}
.nn-art-home .nn-art-studio .nn-studio-image{width:100%;max-width:none;min-height:0;max-height:none;aspect-ratio:auto;align-self:center;gap:12px;padding:0;margin:0;background:transparent}
.nn-art-home .nn-art-studio .nn-studio-image>img{position:static;display:block;width:100%;height:auto;max-width:100%;max-height:none;aspect-ratio:auto;object-fit:contain;padding:0;margin:0}
.nn-art-home .nn-art-studio .nn-studio-image>span{position:static;margin:0;padding:0;line-height:1.6}
.nn-art-home .nn-art-studio .nn-studio-copy{padding:0;margin:0}
.nn-art-home .nn-art-studio .nn-studio-copy>p{margin-bottom:20px}
.nn-art-home .nn-art-studio .nn-studio-palette{margin-block:20px 24px}
.nn-art-home .nn-art-studio .nn-studio-steps{margin-bottom:24px}
.nn-art-home .nn-art-studio .nn-design-step{padding-block:13px}
@media(max-width:1000px){.nn-art-home .nn-art-studio{gap:32px;padding-block:48px}}
@media(max-width:760px){.nn-art-home .nn-art-studio{grid-template-columns:1fr;gap:28px;padding-block:40px}.nn-art-home .nn-art-studio .nn-studio-image{max-width:none;gap:10px}}

/* Collection-wide finishing pass: predictable rhythm and complete photographs. */
:root{--nn-page-gutter:clamp(20px,6vw,104px);--nn-section-rhythm:clamp(48px,6vw,88px)}
.nn-route-main .nn-shop-page,.nn-route-main .nn-product-page,.nn-route-main .nn-service-page,.nn-route-main .nn-contact-page,.nn-buying-guide{max-width:1600px;margin-inline:auto;padding-inline:var(--nn-page-gutter);padding-bottom:var(--nn-section-rhythm)}
.nn-route-heading{gap:20px clamp(28px,5vw,72px);padding-block:28px 36px;margin-bottom:32px}
.nn-route-heading h1{line-height:1.08;text-wrap:balance}
.nn-route-heading p{margin-block:0 12px}
.nn-shop-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:48px 28px;align-items:start}
.nn-shop-card{min-width:0;display:block;padding:0 0 22px;border:0;border-bottom:1px solid var(--nn-border);background:transparent}
.nn-shop-card .nn-shop-photo,.nn-shop-card .nn-headboard-photo{width:100%;height:auto;aspect-ratio:4/3;margin:0;display:flex;align-items:center;justify-content:center;background:var(--nn-paper);overflow:hidden}
.nn-shop-card .nn-shop-photo img{display:block;width:100%;height:100%;object-fit:contain;padding:clamp(12px,1.7vw,24px)}
.nn-shop-card .nn-headboard-photo .nn-headboard-crop{max-width:86%;max-height:88%}
.nn-shop-card h2,.nn-shop-card h3{font-size:clamp(24px,2.2vw,30px);line-height:1.2;margin:20px 0 10px}
.nn-shop-card p{line-height:1.6;margin:0 0 14px}
.nn-shop-card>span:last-child{display:block;color:var(--brand);margin:0;line-height:1.6}
.nn-shop-card:focus-visible{outline:2px solid var(--brand);outline-offset:7px}
.nn-sale-card{position:relative}.nn-sale-card>.nn-sale-badge{z-index:1;top:12px;left:12px;margin:0}
.nn-product-page .studio-config-photo{border:1px solid var(--nn-border);padding:24px;gap:20px}
.nn-product-page .nn-product-zoom>img{aspect-ratio:4/3;object-fit:contain;padding:8px}
.nn-product-page .studio-config-form>p{max-width:62ch}
.nn-product-page .nn-colour-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.nn-product-page .nn-colour-grid label{padding:14px 10px;min-height:72px;gap:10px}
.nn-product-page .nn-product-timing{display:flex;flex-wrap:wrap;gap:16px 32px;border-top:1px solid var(--nn-border);padding-top:24px;margin-top:32px}
.nn-product-help{display:flex;align-items:center;justify-content:space-between;gap:32px;padding:32px;margin-top:48px;background:var(--nn-paper)}
.nn-product-help h2{font-size:32px;margin:12px 0}.nn-product-help p{color:var(--muted);margin:0;max-width:60ch}
.nn-product-help>.nn-text-link{flex-shrink:0}
.nn-art-home .nn-art-range,.nn-art-home .nn-art-collection,.nn-art-home .nn-brand-story,.nn-art-home .nn-service-tools{padding-block:var(--nn-section-rhythm)}
.nn-art-home .nn-art-range .nn-range-copy{padding-top:20px;margin-top:16px}
.nn-art-home .nn-art-section-heading,.nn-art-home .nn-art-range>.nn-centred-title{column-gap:clamp(28px,5vw,72px);row-gap:20px}
.nn-art-home .nn-tool-grid{gap:24px}.nn-art-home .nn-tool-grid article{padding:28px;display:flex;flex-direction:column;align-items:stretch}
.nn-art-home .nn-tool-grid h3{line-height:1.2;margin-block:20px 16px}.nn-art-home .nn-tool-grid .nn-tool-note{margin-block:16px;line-height:1.7}.nn-art-home .nn-tool-grid .nn-text-link{margin-top:16px}
.nn-custom-gallery{gap:48px 32px}.nn-custom-gallery figure>a{background:transparent}.nn-custom-gallery img{aspect-ratio:3/2;object-fit:contain;background:var(--nn-paper);padding:12px}
.nn-custom-gallery figcaption{display:flex;justify-content:space-between;align-items:baseline;gap:16px;flex-wrap:wrap;padding-top:18px}
.nn-client-gallery-main{padding:20px;border:1px solid var(--nn-border)}
.nn-client-gallery-thumbs button{min-height:116px}
.nn-buying-guide{padding-top:44px}.nn-guide-layout{display:grid;grid-template-columns:minmax(210px,.7fr) minmax(0,1.8fr);gap:clamp(32px,6vw,88px)}
.nn-guide-nav{align-self:start;position:sticky;top:24px;display:grid;border-top:1px solid var(--nn-border)}
.nn-guide-nav a{display:flex;gap:16px;padding:16px 0;border-bottom:1px solid var(--nn-border);font-size:14px;line-height:1.6}.nn-guide-nav small{color:var(--brand)}
.nn-guide-section{padding:0 0 40px;margin-bottom:40px;border-bottom:1px solid var(--nn-border);scroll-margin-top:32px}
.nn-guide-section h2{font-size:clamp(28px,3vw,42px);line-height:1.18;margin:16px 0 24px}.nn-guide-section p{font-size:16px;line-height:1.85;color:var(--muted);margin-bottom:24px}
a:focus-visible,button:focus-visible,select:focus-visible,input:focus-visible,textarea:focus-visible{outline:2px solid var(--brand);outline-offset:4px}
@media(max-width:1100px){.nn-shop-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.nn-product-page .nn-colour-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){
 .nn-route-heading{padding-block:20px 28px;margin-bottom:24px}.nn-shop-grid{gap:32px 16px}.nn-shop-card h2,.nn-shop-card h3{font-size:23px}.nn-shop-card .nn-shop-photo img{padding:10px}.nn-shop-card p{font-size:15px}.nn-shop-card>span:last-child{font-size:14px}
 .nn-product-page .studio-config-photo{padding:20px 16px}.nn-product-help{display:block;padding:24px;margin-top:32px}.nn-product-help>.nn-text-link{display:inline-block;margin-top:20px}.nn-product-page .nn-product-timing{display:grid;gap:12px}
 .nn-guide-layout{grid-template-columns:1fr;gap:36px}.nn-guide-nav{position:static;grid-template-columns:1fr 1fr;gap:0 20px}.nn-guide-nav a{font-size:13px}.nn-guide-section{margin-bottom:28px;padding-bottom:28px}
 .nn-art-home .nn-tool-grid article{padding:24px}.nn-custom-gallery{gap:32px}
}
@media(max-width:480px){.nn-shop-grid{grid-template-columns:1fr;gap:32px}.nn-shop-card .nn-shop-photo,.nn-shop-card .nn-headboard-photo{aspect-ratio:4/3}.nn-shop-card h2,.nn-shop-card h3{font-size:28px}.nn-guide-nav{grid-template-columns:1fr}.nn-product-page .nn-colour-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
/* Detail views follow the actual photograph rather than a letterboxed frame. */
.nn-product-page .nn-product-zoom>img{aspect-ratio:auto;height:auto;padding:0}
.nn-product-page .nn-product-zoom>small{margin-top:14px}
.nn-product-page .studio-config-photo{background:transparent}

/* The navigation search has one focus treatment around the whole control. */
.nn-nav .nn-search{align-items:center;align-self:center;gap:8px;min-width:0;max-width:100%;padding:0;border:0;border-bottom:1px solid var(--nn-border);transition:border-color .15s ease,box-shadow .15s ease}
.nn-nav .nn-search:focus-within{border-bottom-color:var(--brand);box-shadow:0 1px 0 var(--brand)}
.nn-nav .nn-search input[type=search]{min-width:0;min-height:40px;padding:8px 0;margin:0;border:0;border-radius:0;background:transparent;box-shadow:none;appearance:none;-webkit-appearance:none;line-height:1.5;color:var(--ink)}
.nn-nav .nn-search input[type=search]:focus,.nn-nav .nn-search input[type=search]:focus-visible{outline:none;outline-offset:0;border:0;box-shadow:none}
.nn-nav .nn-search button{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;width:36px;min-height:40px;padding:4px;margin:0;line-height:1;border:0;background:transparent;color:var(--ink)}
.nn-nav .nn-search button:focus-visible{outline:none;box-shadow:inset 0 0 0 1px var(--brand)}
@media(forced-colors:active){.nn-nav .nn-search:focus-within{outline:1px solid Highlight;outline-offset:2px}}
/* Let the field's height contribute to the navigation instead of crossing its edge. */
.nn-nav{height:auto;min-height:64px}
.nn-art-home .nn-nav{height:auto;min-height:64px}
.nn-header+.nn-nav{height:auto;min-height:66px}
