/* Approved scheme 1: materials are bitmap slots; CSS places and lights them. */
@font-face{font-family:NavLibrarySerif;src:url('/assets/nav-library/serif-regular.woff2') format('woff2');font-style:normal;font-weight:400;font-display:swap}
@font-face{font-family:NavLibrarySerif;src:url('/assets/nav-library/serif-semibold.woff2') format('woff2');font-style:normal;font-weight:600 900;font-display:swap}
:root{--nl-serif:NavLibrarySerif,'Songti SC','SimSun',serif;--nl-ink:#3e2c20;--nl-gold:#78532d;--nl-paper:#ecdbc9;--nl-edge:12px}
:root[data-theme=dark]{--nl-ink:#f3e6cf;--nl-gold:#e4bc86;--nl-paper:#29241f}
.nl-material{display:block;pointer-events:none}
.nl-material>img{display:block;width:100%;height:100%;max-width:none;object-fit:fill}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}

/* Each of the eight edge/corner images retains the reference's nine-slice cuts. */
.nl-frame{position:absolute;inset:0;z-index:3;pointer-events:none;display:block}
.nl-frame>img{position:absolute;display:block;max-width:none;object-fit:fill;pointer-events:none}
.nl-frame-tl,.nl-frame-tr,.nl-frame-bl,.nl-frame-br{width:var(--nl-edge);height:var(--nl-edge)}
.nl-frame-tl{left:0;top:0}.nl-frame-tr{right:0;top:0}.nl-frame-bl{left:0;bottom:0}.nl-frame-br{right:0;bottom:0}
.nl-frame-t,.nl-frame-b{left:var(--nl-edge);right:var(--nl-edge);width:calc(100% - var(--nl-edge)*2);height:var(--nl-edge)}
.nl-frame-t{top:0}.nl-frame-b{bottom:0}
.nl-frame-l,.nl-frame-r{top:var(--nl-edge);bottom:var(--nl-edge);height:calc(100% - var(--nl-edge)*2);width:var(--nl-edge)}
.nl-frame-l{left:0}.nl-frame-r{right:0}

html:root:root[data-theme] .exhibit-floor .nl-card{
 min-width:0;padding:0;margin:0;border:0;border-radius:0;background:none;box-shadow:none;overflow:visible;position:relative;isolation:isolate;display:block;transform:none;translate:none;scale:none;
 & .nl-card-frame{position:relative;isolation:isolate;width:100%;aspect-ratio:16/9;overflow:hidden;background:#172023}
 & .nl-card-picture{position:absolute;inset:0;width:auto;height:auto;overflow:hidden;mask:none;clip-path:none;z-index:0}
 & .nl-card-picture :is(img,video){display:block;position:absolute;inset:0;width:100%;height:100%;max-width:none;object-fit:cover;transform:scale(1)!important;transition:transform 400ms ease;opacity:1;filter:none}
 & .nl-card-shade{position:absolute;inset:auto 0 0;height:138px;max-height:75%;background:linear-gradient(transparent,#0d1517e6);pointer-events:none;z-index:1}
 & .nl-card-caption{position:absolute;left:20px;right:20px;bottom:30px;z-index:2;pointer-events:none;transition:transform 300ms ease}
 & .nl-card-identity{display:flex;align-items:baseline;gap:16px;min-width:0}
 & h3{margin:0!important;padding:0;min-width:0;max-width:75%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font:600 28px/1.3 var(--nl-serif)!important;color:#fff2d9!important;text-shadow:1px 1px 2px #251b17;letter-spacing:0}
 & .nl-category{position:relative;flex:none;display:inline-flex;align-items:center;justify-content:center;min-width:58px;height:29px;color:#f2d59b;font:400 14px/1.2 var(--nl-serif);text-shadow:0 1px 2px #251b17}
 & .nl-category>.nl-material{position:absolute;inset:0}
 & .nl-category>span{position:relative;padding:0 12px;white-space:nowrap}
 & .nl-card-meta{display:block;margin-top:2px;color:#f3e6cf;font:400 15px/22px 'PingFang SC','Microsoft YaHei',sans-serif;text-shadow:1px 1px 2px #251b17}
 & .nl-feature-label{position:absolute;left:18px;top:18px;width:154px;height:44px;display:flex;align-items:center;justify-content:center;z-index:3;pointer-events:none;font:400 16px/1.4 var(--nl-serif);color:#f2d59b}
 & .nl-feature-label>.nl-material{position:absolute;inset:0}
 & .nl-feature-label>span{position:relative}
 & .version-main-link{position:absolute;inset:0;z-index:4;clip-path:none;border:0;border-radius:0}
 & .nl-card-actions{position:absolute;left:20px;right:20px;bottom:20px;display:flex;gap:10px;z-index:5;opacity:0;transform:translateY(20px);transition:transform 300ms ease,opacity 300ms ease;pointer-events:none}
 & .nl-card-actions>a{position:relative;display:flex;align-items:center;justify-content:center;height:46px;min-height:44px;min-width:44px;max-width:calc((100% - 10px)/2);padding:0;margin:0;text-decoration:none;font:400 16px/1.2 var(--nl-serif)!important;color:#fff2d9;background:#171b1978;border:0;border-radius:0;box-shadow:none;pointer-events:auto;white-space:nowrap}
 & .nl-card-primary{width:174px;color:#3e2c20!important;background:none!important}
 & .nl-card-primary>.nl-material{position:absolute;inset:0}
 & .nl-primary-mobile{display:none}
 & .nl-card-inquiry{width:132px;--nl-edge:5px}
 & .nl-card-actions>a>span:last-child{position:relative}
 & .nl-card-glint{position:absolute;inset:0;z-index:6;pointer-events:none;opacity:0;mask:linear-gradient(#000 0 0) top/100% 3px no-repeat,linear-gradient(#000 0 0) bottom/100% 3px no-repeat,linear-gradient(#000 0 0) left/3px 100% no-repeat,linear-gradient(#000 0 0) right/3px 100% no-repeat;background:linear-gradient(110deg,transparent 38%,#fff4ce 49%,transparent 59%) 160% 0/250% 100% no-repeat}
 & :is(.version-main-link,.nl-card-actions a):focus-visible{outline:3px solid #edc782;outline-offset:-6px}
 &.nl-featured .nl-card-shade{height:260px}
 &.nl-featured .nl-card-caption{left:28px;right:28px;bottom:28px}
 &.nl-featured h3{font-size:46px!important}
 &.nl-featured .nl-card-meta{margin-top:4px}
 &.nl-featured .nl-card-actions{left:28px;right:28px}
 & .card-positioning{position:static;margin:10px 4px 0!important;padding:0;line-height:1.55;text-align:left;overflow-wrap:anywhere}
 &.library-card .nl-card-frame{aspect-ratio:1/.845;isolation:auto}
}
html:root:root[data-theme] .exhibit-floor .nl-card:focus-within .nl-card-actions{opacity:1;transform:none}
html:root:root[data-theme] .exhibit-floor .nl-card:focus-within .nl-card-caption{transform:translateY(-55px)}
@media(hover:hover) and (pointer:fine){
 html:root:root[data-theme] .exhibit-floor .nl-card:hover{
  & .nl-card-picture :is(img,video){transform:scale(1.04)!important;transition:transform 400ms ease}
  & .nl-card-actions{opacity:1;transform:none}
  & .nl-card-caption{transform:translateY(-55px)}
  & .nl-card-glint{opacity:1;animation:nl-card-sheen 700ms ease-out both}
 }
}
@keyframes nl-card-sheen{from{background-position:160% 0}to{background-position:-60% 0}}

html:root:root[data-theme] .exhibit-floor .nl-catalog{
 position:relative;isolation:isolate;width:100%;margin:0;padding:30px 0 24px;background:var(--nl-paper);color:var(--nl-ink);text-align:center;
 & .nl-catalog-stone{position:absolute;inset:0;z-index:-1;overflow:hidden;pointer-events:none}
 & .nl-catalog-stone>.nl-material{width:100%;height:100%}
 & .nl-catalog-stone img{object-fit:fill}
 & .nl-catalog-wrap{width:87.5%;margin-inline:auto}
 & .nl-catalog-heading{position:relative;display:flex;align-items:center;justify-content:center;height:58px}
 & .nl-catalog-heading h2{font:600 48px/58px var(--nl-serif)!important;color:var(--nl-ink);margin:0;padding:0}
 & .nl-heading-rule-left,& .nl-heading-rule-right{position:absolute;top:40px;height:2px;width:calc(50% - 165px)}
 & .nl-heading-rule-left{left:0}& .nl-heading-rule-right{right:0}
 & .nl-catalog-month{margin:4px 0 0!important;font:400 16px/24px 'PingFang SC','Microsoft YaHei',sans-serif!important;color:var(--nl-gold)!important}
 & .nl-home-filters{display:flex;justify-content:center;align-items:center;gap:18px;margin:12px 0 0;min-height:44px;overflow:auto;scrollbar-width:none}
 & .nl-home-filters::-webkit-scrollbar{display:none}
 & .nl-home-filters>button{position:relative;flex:none;display:flex;align-items:center;justify-content:center;min-width:80px;min-height:44px;padding:0 20px;border:0;border-radius:0;background:none;color:var(--nl-ink);font:400 18px/1.4 var(--nl-serif);cursor:pointer;white-space:nowrap}
 & .nl-filter-face{position:absolute;inset:2px 0;height:40px;opacity:0;transition:opacity 160ms ease;filter:sepia(.15) saturate(1.15)}
 & .nl-home-filters>button[aria-pressed=true] .nl-filter-face{opacity:1}
 & .nl-home-filters>button>span:last-child{position:relative}
 & .nl-home-filters>button:focus-visible{outline:2px solid #a97930;outline-offset:-2px}
 & .nl-home-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1.25vw;margin:16px 0 0;text-align:left}
 & .nl-home-grid>.nl-featured{grid-column:span 2;grid-row:span 2;height:100%}
 & .nl-home-grid>.nl-featured .nl-card-frame{height:100%;aspect-ratio:16/9}
 & .nl-more,& .nl-rail{display:contents}
 & .nl-more-heading,& .nl-rail-dots{display:none}
 & .nl-rail>.nl-card:nth-child(n+3) .nl-card-frame{aspect-ratio:16/7}
 & .nl-filtered .nl-card-frame{aspect-ratio:16/9}
 & .nl-library-link{display:flex;justify-content:flex-end;align-items:center;width:100%;max-width:none;height:52px;margin:14px 0 0;padding:0;color:var(--nl-ink);font:400 18px/1.5 var(--nl-serif)!important;text-align:right;text-decoration:none}
 & .nl-library-link:focus-visible{outline:2px solid #a97930;outline-offset:3px}
}
:root[data-theme=dark] .nl-catalog-stone{background:var(--gallery-wall-texture);background-size:cover}
:root[data-theme=dark] .nl-catalog-stone>.nl-material{visibility:hidden}
@media(min-width:2400px){html:root:root[data-theme] .exhibit-floor .nl-catalog .nl-home-grid{margin-top:28px}}
@media(min-width:768px) and (max-width:1023px){
 html:root:root[data-theme] .exhibit-floor .nl-catalog{
  & .nl-catalog-wrap{width:90%}
  & .nl-home-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}
  & .nl-home-grid>.nl-featured{grid-column:1/-1;grid-row:auto}
  & .nl-home-grid>.nl-featured .nl-card-frame{aspect-ratio:16/9;height:auto}
  & .nl-rail>.nl-card:nth-child(n+3) .nl-card-frame{aspect-ratio:16/9}
  & .nl-home-filters{justify-content:flex-start;gap:8px}
 }
}
@media(hover:none),(pointer:coarse),(any-pointer:coarse){
 html:root:root[data-theme] .exhibit-floor .nl-card{
  & .nl-card-caption{transform:translateY(-55px)}
  & .nl-card-actions{opacity:1;transform:none}
 }
}
@media(max-width:767px){
 html:root:root[data-theme] .exhibit-floor .nl-catalog{
  padding:42px 0 7px;text-align:left;
  & .nl-catalog-wrap{width:calc(100% - 36px)}
  & .nl-catalog-heading{justify-content:flex-start;height:52px}
  & .nl-catalog-heading h2{font-size:34px!important;line-height:52px!important}
  & .nl-heading-rule-left,& .nl-heading-rule-right{display:none}
  & .nl-catalog-month{position:absolute;right:18px;top:59px;margin:0!important;font-size:14px!important;line-height:22px}
  & .nl-home-filters{justify-content:flex-start;gap:12px;margin:12px -18px 0 0;padding-right:18px;min-height:44px}
  & .nl-home-filters>button{min-width:66px;min-height:44px;padding:0 17px;font-size:16px}
  & .nl-filter-face{display:none}
  & .nl-pill-face{position:absolute;left:19px;right:19px;top:3px;height:38px;background:image-set(url('/assets/nav-library/pill-middle-2.webp') 1x,url('/assets/nav-library/pill-middle-4.webp') 2x,url('/assets/nav-library/pill-middle-8.webp') 4x) center/100% 100% no-repeat}
  & .nl-pill-face::before,& .nl-pill-face::after{content:'';position:absolute;top:0;bottom:0;width:19px;background-size:100% 100%}
  & .nl-pill-face::before{right:100%;background-image:image-set(url('/assets/nav-library/pill-left-19.webp') 1x,url('/assets/nav-library/pill-left-38.webp') 2x,url('/assets/nav-library/pill-left-76.webp') 4x)}
  & .nl-pill-face::after{left:100%;background-image:image-set(url('/assets/nav-library/pill-right-19.webp') 1x,url('/assets/nav-library/pill-right-38.webp') 2x,url('/assets/nav-library/pill-right-76.webp') 4x)}
  & .nl-home-filters>button[aria-pressed=true] .nl-pill-face{filter:sepia(.42) saturate(1.8)}
  & .nl-home-grid{display:block;margin:15px 0 0}
  & .nl-featured .nl-card-frame{height:auto!important;aspect-ratio:354/348!important}
  & .nl-more{display:block;margin-top:24px}
  & .nl-more-heading{display:flex;justify-content:space-between;align-items:center;margin:0 0 18px;height:32px}
  & .nl-more-heading h3{font:600 22px/32px var(--nl-serif)!important}
  & .nl-more-heading>span{font:400 14px/1.5 'PingFang SC',sans-serif;color:var(--nl-gold)}
  & .nl-rail{display:flex;position:relative;gap:12px;overflow-x:auto;overflow-y:hidden;scroll-snap-type:x mandatory;scroll-padding-inline:0;width:calc(100% + 18px);padding-right:18px;scrollbar-width:none;overscroll-behavior-x:contain}
  & .nl-rail::-webkit-scrollbar{display:none}
  & .nl-rail>.nl-card{flex:0 0 calc((100vw - 36px)*2/3);scroll-snap-align:start}
  & .nl-rail>.nl-card:nth-child(n) .nl-card-frame{aspect-ratio:236/292}
  & .nl-rail-dots{display:flex;justify-content:center;align-items:center;gap:10px;height:44px;margin:0}
  & .nl-rail-dots>span{width:6px;height:6px;display:block;border-radius:50%;background:#c8b69e}
  & .nl-rail-dots>span[aria-current=true]{background:#9a703c}
  & .nl-library-link{font-size:16px!important;height:44px;margin:2px 0 0}
  & .nl-filtered{display:grid;grid-template-columns:minmax(0,1fr);gap:16px}
 }
 html:root:root[data-theme] .exhibit-floor .nl-card{
  --nl-edge:9px;
  & .nl-card-caption,&:focus-within .nl-card-caption{left:10px;right:10px;bottom:58px;transform:none}
  & h3{font-size:28px!important;line-height:36px!important}
  & .nl-card-meta{margin-top:0}
  & .nl-card-identity{gap:12px}
  & .nl-category>span{padding-inline:10px}
  & .nl-card-actions{left:10px;right:10px;bottom:12px;gap:8px;opacity:1;transform:none}
  & .nl-card-actions>a{font-size:14px!important;height:44px;min-height:44px;max-width:none}
  & .nl-card-primary{width:128px;flex-shrink:0}
  & .nl-primary-gold{display:none}
  & .nl-primary-mobile{display:block}
  & .nl-card-inquiry{width:calc(100% - 136px);min-width:80px}
  & .nl-card-inquiry:only-child{width:122px}
  &.nl-featured .nl-card-caption{left:18px;right:18px;bottom:86px}
  &.nl-featured h3{font-size:40px!important;line-height:52px!important}
  &.nl-featured .nl-card-meta{margin-top:4px}
  &.nl-featured .nl-card-actions{left:18px;right:18px;bottom:20px;gap:10px}
  &.nl-featured .nl-card-primary{width:148px}
  &.nl-featured .nl-card-inquiry{width:122px}
  & .nl-feature-label{left:12px;top:18px;width:134px;height:38px;font-size:14px}
  & .nl-card-shade{height:116px}
  &.nl-featured .nl-card-shade{height:260px}
 }
}
@media(max-width:767px){
 :root[data-theme=dark] .nl-catalog .nl-pill-face{background-image:image-set(url('/assets/nav-library/pill-middle-dark-2.webp') 1x,url('/assets/nav-library/pill-middle-dark-4.webp') 2x,url('/assets/nav-library/pill-middle-dark-8.webp') 4x)!important}
 :root[data-theme=dark] .nl-catalog .nl-pill-face::before{background-image:image-set(url('/assets/nav-library/pill-left-dark-19.webp') 1x,url('/assets/nav-library/pill-left-dark-38.webp') 2x,url('/assets/nav-library/pill-left-dark-76.webp') 4x)!important}
 :root[data-theme=dark] .nl-catalog .nl-pill-face::after{background-image:image-set(url('/assets/nav-library/pill-right-dark-19.webp') 1x,url('/assets/nav-library/pill-right-dark-38.webp') 2x,url('/assets/nav-library/pill-right-dark-76.webp') 4x)!important}
}
/* Transparent target extensions do not change the existing hero/footer artwork. */
@media(max-width:1023px){
 html:root:root[data-theme] :is(.hero-featured,.exhibit-footer a){position:relative}
 html:root:root[data-theme] .hero .hero-featured{position:absolute}
 html:root:root[data-theme] :is(.hero-featured,.exhibit-footer a)::after{content:'';position:absolute;inset:auto 0;top:50%;height:44px;min-width:44px;transform:translateY(-50%);background:none;border:0;box-shadow:none;pointer-events:auto}
 html:root:root[data-theme] .skip:focus{display:inline-flex;align-items:center;min-height:44px;min-width:44px}
 html:root:root[data-theme] :is(.v8-enter,.v8-browse){position:relative}
 html:root:root[data-theme] :is(.v8-enter,.v8-browse,.v8-featured)::after{content:'';position:absolute;inset:auto 0;top:50%;height:44px;min-width:44px;transform:translateY(-50%);background:none;border:0;box-shadow:none;pointer-events:auto}
}
html:root:root[data-theme] .stage-selector-label{font-size:14px}
@media(prefers-reduced-motion:reduce){
 .nl-nav *,.nl-nav,.nl-card *,.nl-card,.nl-catalog *{animation:none!important;transition:none!important;scroll-behavior:auto!important}
 html:root:root[data-theme] .exhibit-floor .nl-card .nl-card-picture :is(img,video){transform:none!important}
}
