/*
 * Pearl Education story on yensjewelry.com: the story fills the window under the site's own header,
 * and the header takes the story's dark glass on this page (as on the Design canvas).
 * html.yens-story-js is set in the page head; without scripts the hub's own content shows instead.
 */

/* The page itself never scrolls: the story scrolls inside its own frame. The header and the story are both
   pinned to the window, below the WordPress toolbar when signed in. --yens-ab is the toolbar's real bottom
   edge, measured by live.js: with many items the toolbar wraps onto a second row. */
html.yens-story-js,
html.yens-story-js body.yens-story { height: 100%; overflow: hidden; overscroll-behavior: none; }
html.yens-story-js .yens-story-fallback { display: none; }
body.yens-story #wpadminbar { height: auto; }
html.yens-story-js body.yens-story .wrapper > header.header { position: fixed; top: var(--yens-ab, var(--wp-admin--admin-bar--height, 0px)); left: 0; right: 0; z-index: 1000; }
body.yens-story #yens-story .ww { position: fixed; top: var(--yens-ab, var(--wp-admin--admin-bar--height, 0px)); left: 0; right: 0; bottom: 0; height: auto; z-index: 1; }

/* ---- The site header in the story's dark glass ---- */
body.yens-story .yens-header { background: rgba(5, 6, 7, .92); -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2); box-shadow: 0 1px 0 rgba(241, 237, 229, .1); }
body.yens-story .yens-header__brand img { filter: drop-shadow(0 4px 14px rgba(0, 0, 0, .7)); }
body.yens-story .yens-header__tagline { color: #cfc8bb; letter-spacing: .26em; }
body.yens-story .yens-header__nav a { color: #f1ede5; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; opacity: .86; transition: opacity .25s, color .25s; }
body.yens-story .yens-header__nav > ul > li > a:hover,
body.yens-story .yens-header__nav > ul > li > a:focus-visible,
body.yens-story .yens-header__nav .current-menu-item > a,
body.yens-story .yens-header__nav .current-menu-ancestor > a { color: #d4b47a; opacity: 1; text-decoration: none; }
body.yens-story .yens-header__nav .sub-menu { min-width: 250px; background: rgba(7, 13, 15, .98); border: 1px solid rgba(241, 237, 229, .12); border-radius: 3px; box-shadow: 0 18px 40px rgba(0, 0, 0, .45); }
body.yens-story .yens-header__nav .sub-menu a { color: #f1ede5; font-size: 14.5px; letter-spacing: 0; text-transform: none; opacity: 1; }
body.yens-story .yens-header__nav .sub-menu a:hover,
body.yens-story .yens-header__nav .sub-menu a:focus-visible { background: rgba(241, 237, 229, .07); color: #d4b47a; }
body.yens-story .yens-header .sub-menu > li.yens-menu-sub > a { color: #bdbdb4; font-size: 13.5px; }
body.yens-story .yens-header .sub-menu > li.yens-menu-sub > a:hover,
body.yens-story .yens-header .sub-menu > li.yens-menu-sub > a:focus-visible { color: #d4b47a; }
body.yens-story .yens-header .sub-menu > li.is-here > a { color: #d4b47a; }
/* A dropdown closed by a click stays shut until the pointer leaves it. */
body.yens-story .yens-header__nav li.is-shut > .sub-menu { opacity: 0; visibility: hidden; }
/* Sign In and Apply as pills */
body.yens-story .yens-header__nav .yens-nav-signin > a,
body.yens-story .yens-header__nav .yens-nav-apply > a { display: inline-flex; align-items: center; min-height: 38px; padding: 0 18px; border: 1px solid rgba(241, 237, 229, .4); border-radius: 999px; background: transparent; color: #f1ede5; font-size: 10.5px; font-weight: 700; letter-spacing: .18em; opacity: 1; }
body.yens-story .yens-header__nav .yens-nav-signin > a:hover,
body.yens-story .yens-header__nav .yens-nav-signin > a:focus-visible { background: transparent; border-color: #d4b47a; color: #d4b47a; }
body.yens-story .yens-header__nav .yens-nav-apply > a { background: #d4b47a; border-color: #d4b47a; color: #141414; }
body.yens-story .yens-header__nav .yens-nav-apply > a:hover,
body.yens-story .yens-header__nav .yens-nav-apply > a:focus-visible { background: #e3c992; border-color: #e3c992; color: #141414; }
/* Phones: the menu button and its panel */
body.yens-story .yens-header__toggle { color: #f1ede5; border-color: rgba(241, 237, 229, .35); border-radius: 999px; }
body.yens-story .yens-header__toggle:hover,
body.yens-story .yens-header__toggle:focus-visible { background: rgba(241, 237, 229, .1); color: #f1ede5; }
body.yens-story .yens-header__mobile { background: #050607; border-top-color: rgba(241, 237, 229, .1); max-height: calc(100vh - var(--yens-hdr, 76px) - var(--yens-ab, 0px)); max-height: calc(100dvh - var(--yens-hdr, 76px) - var(--yens-ab, 0px)); overflow-y: auto; }
body.yens-story .yens-header__mobile a { color: #f1ede5; border-bottom-color: rgba(241, 237, 229, .08); }
body.yens-story .yens-header__mobile .sub-menu a { color: #d9d6ce; }
body.yens-story .yens-header__mobile .sub-menu > li.yens-menu-sub > a { color: #bdbdb4; }
body.yens-story .yens-header__mobile .sub-menu > li.is-here > a { color: #d4b47a; }
body.yens-story .yens-header .yens-header__mobile .yens-subtoggle { color: #f1ede5; }
body.yens-story .yens-header .yens-header__mobile .yens-subtoggle:hover,
body.yens-story .yens-header .yens-header__mobile .yens-subtoggle:focus-visible { background: rgba(241, 237, 229, .08); color: #f1ede5; }
body.yens-story .yens-header__mobile .yens-nav-signin > a,
body.yens-story .yens-header__mobile .yens-nav-apply > a { border-radius: 999px; font-size: 12px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; }
body.yens-story .yens-header__mobile .yens-nav-signin > a { border-color: rgba(241, 237, 229, .4); color: #f1ede5; }
body.yens-story .yens-header__mobile .yens-nav-apply > a { background: #d4b47a; border-color: #d4b47a; color: #141414; }

/* ---- Over the cover film the header and the chapter bar are see-through, as the homepage header is over its hero.
   They turn to dark glass once the story scrolls or a guide or All chapters opens (live.js), and while the header
   is hovered, focused or its phone menu is open (header.js sets .is-solid).
   The see-through blur is blur(0px), not none, so the blur fades with the glass instead of popping in at once. ---- */
body.yens-story .yens-header { transition: background-color .35s ease, box-shadow .35s ease, -webkit-backdrop-filter .35s ease, backdrop-filter .35s ease; }
body.yens-story #yens-story .ww-sec { transition: background-color .35s ease, -webkit-backdrop-filter .35s ease, backdrop-filter .35s ease; }
html.yens-story-top body.yens-story .yens-header:not(.is-solid) { background-color: transparent; -webkit-backdrop-filter: blur(0px) saturate(1); backdrop-filter: blur(0px) saturate(1); box-shadow: none; }
html.yens-story-top body.yens-story .yens-header:not(.is-solid) .yens-header__nav > ul > li > a,
html.yens-story-top body.yens-story .yens-header:not(.is-solid) .yens-header__tagline { text-shadow: 0 1px 12px rgba(0, 0, 0, .6); }
html.yens-story-top body.yens-story #yens-story .ww-sec { background-color: transparent; -webkit-backdrop-filter: blur(0px); backdrop-filter: blur(0px); }

/* Over the photo or film of chapters 5-11 and 13 they are see-through too (html.yens-story-photo, set in live.js).
   A soft dark fade from the top edge, gone a little below the chapter bar, and a light shadow keep the menus
   readable over bright photos such as the white trays. */
html.yens-story-photo body.yens-story .yens-header:not(.is-solid) { background-color: transparent; -webkit-backdrop-filter: blur(0px) saturate(1); backdrop-filter: blur(0px) saturate(1); box-shadow: none; }
html.yens-story-photo body.yens-story .yens-header:not(.is-solid) .yens-header__nav > ul > li > a,
html.yens-story-photo body.yens-story .yens-header:not(.is-solid) .yens-header__tagline,
html.yens-story-photo body.yens-story #yens-story .ww-sec { text-shadow: 0 1px 12px rgba(0, 0, 0, .6); }
html.yens-story-photo body.yens-story #yens-story .ww-sec { background-color: transparent; -webkit-backdrop-filter: blur(0px); backdrop-filter: blur(0px); }
body.yens-story #yens-story .ww::after { content: ""; position: absolute; z-index: 11; top: 0; left: 0; right: 0; height: calc(var(--chrome) + 48px); background: linear-gradient(180deg, rgba(5, 6, 7, .62) 0%, rgba(5, 6, 7, .38) 55%, rgba(5, 6, 7, 0) 100%); opacity: 0; transition: opacity .35s ease; pointer-events: none; }
html.yens-story-photo body.yens-story #yens-story .ww::after { opacity: 1; }

/* ---- The site footer closes the story (live.js moves it to the end of the story's scroller) ---- */
body.yens-story #yens-story .yens-story-foot { scroll-snap-align: end; font-size: 16px; line-height: 1.6; }
body.yens-story #yens-story .ww-rail { transition: opacity .3s, visibility .3s; }
body.yens-story #yens-story.is-foot .ww-rail { opacity: 0; visibility: hidden; }

/* Neve's back-to-top button has nothing to do here: the page itself does not scroll. */
body.yens-story #scroll-to-top { display: none; }
