/* InStyle: readable type on both light and dark surfaces; original media are untouched. */
html body .ir-text-on-light{color:#20261f!important;text-shadow:none!important}
html body .ir-text-on-dark{color:#f7f6f0!important;text-shadow:none!important}
html body .ir-accent-on-light{color:#315000!important;text-shadow:none!important}
html body .ir-accent-on-dark{color:#b8ef4c!important;text-shadow:none!important}
html body :is(input,textarea).ir-text-on-light::placeholder{color:#515a4e!important;opacity:1}
html body :is(input,textarea).ir-text-on-dark::placeholder{color:#d9ddd3!important;opacity:1}
html body select:is(.ir-text-on-dark,.ir-text-on-light) option{background:#f5f4ef!important;color:#20261f!important}
/* A high-contrast, labelled return control, visible over every brand header. */
html body .inav-brand-group button.inav-back[data-inav-open]{display:inline-flex!important;align-items:center;justify-content:center;min-height:44px!important;padding:10px 15px!important;border:1px solid #f5f4ef!important;border-radius:999px!important;background:#f5f4ef!important;color:#182019!important;-webkit-text-fill-color:#182019!important;font:650 13px/1.25 'Instrument Sans',Arial,sans-serif!important;text-decoration:none!important;white-space:nowrap;box-shadow:0 3px 14px #0003!important;opacity:1!important;gap:7px;cursor:pointer}
html body .inav-brand-group button.inav-back[data-inav-open]:hover{background:#fff!important;border-color:#fff!important;box-shadow:0 4px 18px #0005!important}
html body .inav-brand-group button.inav-back[data-inav-open]:focus-visible{outline:3px solid #97e200!important;outline-offset:4px}
.inav-brand-group{gap:5px}
/* Light curtains and stone in photographs must not wash out navigation. */
#serabed-catalogue>.header,#sbi-root .header,.sa-header,#styled-guide .cover>header,#styled-guide .fabric-opening>.site-header{background:linear-gradient(115deg,#171d1bf2,#252d27e8)!important;backdrop-filter:blur(15px);-webkit-backdrop-filter:blur(15px);border-radius:0 0 14px 14px}
#serabed-catalogue>.header :is(a,button):not(.inav-back),#sbi-root .header :is(.wordmark,.nav>a,.nav>button,.mobile-menu),.sa-header :is(.sa-brand,.sa-nav>a,.sa-menu-open),#styled-guide .cover>header>a{color:#f7f6f0!important;opacity:1}
#instyle-home .site-header,#instyle-category .site-header{background:linear-gradient(180deg,#171d1bf0,#171d1bdb)!important;backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px)}
#instyle-home .site-header :is(a,button),#instyle-category .site-header :is(a,button){color:#f7f6f0!important;opacity:1}
/* Serabed's introductory copy now has its own dark glass reading surface. */
#serabed-catalogue .magazine-hero .magazine-copy{box-sizing:border-box;background:linear-gradient(115deg,#182019f2,#182019e3)!important;padding:25px 27px!important;border-radius:18px;backdrop-filter:blur(9px);-webkit-backdrop-filter:blur(9px);color:#fffdf5!important}
#serabed-catalogue .magazine-hero .magazine-copy :is(h1,p,a,span){color:#fffdf5!important;-webkit-text-fill-color:#fffdf5!important;opacity:1!important;text-shadow:none}
#serabed-catalogue .magazine-hero .magazine-copy>p:not(.eyebrow){font-size:15px;line-height:1.65}
#serabed-catalogue .magazine-hero .magazine-copy .eyebrow{font-size:11px;line-height:1.5}
#serabed-catalogue .magazine-hero .magazine-copy .text-link{border-color:#fffdf5a6!important;font-weight:550;min-height:44px}
#serabed-catalogue .magazine-caption :is(span,a){background:#182019e8!important;color:#fffdf5!important;padding:8px 12px;border-radius:10px;opacity:1;font-size:12px}
/* White copy on image-led panels keeps a dark reading surface throughout gallery changes. */
#sbi-root .intro,#sbi-root .view-meta,#sbi-root .view-nav{background:#282c25eb!important;color:#f7f6f0!important;backdrop-filter:blur(12px)}
#sbi-root :is(.intro,.view-meta,.view-nav) :is(h1,h2,p,a,button,span){color:#f7f6f0!important;opacity:1}
#styled-guide .covercopy,.sa-hero-copy{background:#20281fe8!important;color:#f7f6f0!important}
#styled-guide .covercopy :is(h1,p,a),.sa-hero-copy :is(h1,p,a){color:#f7f6f0!important;opacity:1}
@media(min-width:901px){#instyle-home .hero-heading,#instyle-home .hero-actions{background:#182019e8;border-radius:16px;padding:20px 24px}#instyle-home .hero-actions{width:max-content;max-width:100%}}
/* Diagram and mattress labels stay legible on the catalogue's dark canvas. */
#serabed-catalogue .firmness-scale{color:#eceee5!important}
#serabed-catalogue .firmness-scale :is(p,span,strong){color:#eceee5!important;opacity:1}
#serabed-catalogue .firmness-scale .firmness-bar{border-color:#b7bdb0}
#serabed-catalogue a.skip:focus{background:#f5f4ef!important;color:#20261f!important}
@media(max-width:900px){
 #serabed-catalogue .magazine-hero .magazine-copy{border-radius:0;background:#252d25f2!important;padding:136px 6% 26px!important;backdrop-filter:none}
 #serabed-catalogue .magazine-hero .magazine-copy>p:not(.eyebrow){font-size:15px}
 #serabed-catalogue .magazine-caption{background:#252d25!important;padding-top:12px;padding-bottom:12px}
 #serabed-catalogue .header nav{background:#1b231df5!important}
}
@media(max-width:600px){
 html body .inav-brand-group button.inav-back[data-inav-open]{font-size:12px!important;padding:10px 14px!important;min-height:44px!important}
 /* Keep the existing 106px gallery header: brand/tools above, a clear return below. */
 #sbi-root .header{display:grid!important;grid-template-columns:minmax(0,1fr) auto 44px;grid-template-rows:44px 44px;align-items:center;gap:6px!important;height:106px!important;min-height:106px!important;padding:6px 0!important}
 #sbi-root .header>.inav-brand-group{display:contents}
 #sbi-root .header .inav-brand-group>.wordmark{grid-column:1;grid-row:1;justify-self:start;min-width:0}
 #sbi-root .header .inav-brand-group>.inav-back{grid-column:1/-1;grid-row:2;justify-self:start;margin:0!important}
 #sbi-root .header>.choice-header-tools{grid-column:2;grid-row:1;display:flex;gap:6px;width:auto!important;min-width:0}
 #sbi-root .header .choice-header-tools .choice-button{padding:8px 9px!important;font-size:11px!important;min-width:0;white-space:nowrap}
 #sbi-root .header>.mobile-menu{grid-column:3;grid-row:1;min-width:44px!important;width:44px!important;min-height:44px;padding:0!important}
 #sbi-root .header>.nav{display:none!important}
 #serabed-catalogue>.header{display:grid!important;grid-template-columns:minmax(0,1fr) auto auto;grid-template-rows:44px 44px;gap:6px 12px!important;height:110px!important;min-height:110px!important;padding:8px 0!important}
 #serabed-catalogue>.header>.inav-brand-group{display:contents}
 #serabed-catalogue>.header .inav-brand-group>.brand{grid-row:1;grid-column:1;justify-self:start}
 #serabed-catalogue>.header .inav-brand-group>.inav-back{grid-row:2;grid-column:1/-1;justify-self:start}
 #serabed-catalogue>.header>.saved-link{grid-row:1;grid-column:2;margin:0}
 #serabed-catalogue>.header>.menu-toggle{grid-row:1;grid-column:3;margin:0}
 #serabed-catalogue>.header>#serabed-menu{position:absolute;top:100%;left:0;right:0;width:100%;grid-column:1/-1}
 .sa-header{min-height:110px}
 #styled-guide .cover>header{align-items:center;gap:12px}
}
html body :is(.ir-text-on-light,.ir-text-on-dark,.ir-accent-on-light,.ir-accent-on-dark){transition-property:background-color,border-color,box-shadow,transform,translate,scale!important}
html body .product-labels .product-label.new{background:#315c32!important;color:#fff!important}
@media(max-width:900px){#serabed-catalogue[data-view="model"] .immersive-model .model-copy h1{top:126px!important;background:#182019ed!important;color:#fffdf5!important;padding:8px 12px!important;border-radius:12px;width:max-content;max-width:88%;box-sizing:border-box}}
