/* Shared surfaces for menus, search, notices, collections and modal dialogs. */
:root{--overlay-border:#cdb78980;--overlay-surface:linear-gradient(145deg,#142c36fc,#0a1923fc);--overlay-shadow:0 20px 50px #0008,0 4px 12px #0004,inset 0 1px #f0dfbb0a}
body .elmus-flyout{position:fixed!important;z-index:120!important;left:var(--flyout-left)!important;right:auto!important;top:var(--flyout-top)!important;bottom:auto!important;width:var(--flyout-width)!important;max-width:calc(100vw - 24px)!important;max-height:var(--flyout-height)!important;height:auto!important;box-sizing:border-box;margin:0!important;padding:20px;border:1px solid var(--overlay-border)!important;border-radius:14px!important;background:var(--overlay-surface)!important;box-shadow:var(--overlay-shadow)!important;color:#d0dbde;backdrop-filter:blur(24px);overflow:auto;overscroll-behavior:contain;pointer-events:auto;transform-origin:var(--flyout-origin,50%) top;transition:none;scrollbar-width:thin;scrollbar-color:#9a8965 #10212b}
body .elmus-flyout.is-opening{animation:site-flyout-open .28s cubic-bezier(.2,.75,.2,1) both}
body .elmus-flyout.is-closing{pointer-events:none;animation:site-flyout-close .18s ease-in both}
body .elmus-flyout :is(.ency-toc-head,.site-search-head,.library-contents-heading){position:sticky;top:-20px;z-index:2;margin:-20px -20px 14px;padding:20px 20px 16px;background:#132a34fc;border-bottom:1px solid #cdb78929;display:grid;grid-template-columns:minmax(0,1fr) 32px;gap:14px 10px;align-items:start}
body .elmus-flyout :is(.ency-toc-head,.site-search-head,.library-contents-heading) h2{margin:0;color:#f0dfbb;font:400 23px/1.25 Georgia,serif;letter-spacing:-.015em}
body .elmus-flyout :is(.ency-search,.library-contents-heading label){grid-column:1/-1;grid-row:2;display:flex;gap:8px;align-items:center;min-width:0;width:100%;box-sizing:border-box;margin:0;padding:0 12px;background:#07151c80;border:1px solid #b5c5cb30;border-radius:9px}
body .elmus-flyout .library-contents-heading label>span{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
body .elmus-flyout :is(.ency-close,#site-search-close){grid-column:2;grid-row:1;width:32px;height:32px;padding:0;border:1px solid #cdb78940;border-radius:8px;background:#07131b38;color:#cdb789;cursor:pointer}
body .elmus-flyout :is(.ency-close,#site-search-close):hover{background:#cdb78915;color:#fff0ce;border-color:#cdb78988}
body .elmus-flyout :is(input:not([type=checkbox]):not([type=radio]),textarea,select),body dialog :is(input:not([type=checkbox]):not([type=radio]),textarea,select){box-sizing:border-box;border:1px solid #b5c5cb35;border-radius:9px;background:#07151c80;color:#f0e5cf;transition:border-color .18s,box-shadow .18s}
body .elmus-flyout .ency-search input,body .elmus-flyout .library-contents-heading input{width:100%;min-width:0;border:0;background:transparent;padding:12px 0;font:14px/1.4 Arial,sans-serif}
body .elmus-flyout :is(input,textarea):focus,body dialog :is(input,textarea):focus{border-color:#cdb7898c;box-shadow:0 0 0 3px #cdb7890a;outline-offset:2px}
body .elmus-flyout :is(button,a,input,select):focus-visible{outline:2px solid #d6bd85;outline-offset:3px}
body .elmus-flyout .contents-tree-row{border-bottom:0;margin:2px 0}
body .elmus-flyout .contents-tree-label{padding:10px 9px;border-radius:8px}
body .elmus-flyout :is(.site-search-result,.ency-bookmarks-row){border:1px solid #cdb78924;border-radius:10px;background:#ffffff03;padding:12px;margin-block:6px}
body .elmus-flyout .site-search-result:hover{background:#cdb78910;border-color:#cdb78960}
body .elmus-flyout.account-menu{padding:8px;border-radius:14px!important}
body .elmus-flyout.account-menu [role=menuitem]{border-radius:9px;padding:12px 13px;color:#e5d4b3}
body .elmus-flyout.account-menu [role=menuitem]:hover{background:#cdb78912;color:#fff0ce}
body .elmus-flyout.news-panel{padding:0;overflow:auto}
body .elmus-flyout .news-panel-inner{padding:22px;max-height:none;overflow:visible}
body .elmus-flyout .news-heading{margin-bottom:20px;gap:16px;align-items:center}
body .elmus-flyout .news-heading h2{font:400 25px/1.25 Georgia,serif;margin-bottom:8px}
body .elmus-flyout .news-heading .eyebrow{font-size:10px;letter-spacing:.12em;color:#cdb789}
body .elmus-flyout .home-latest-card{border:1px solid #cdb78930;border-radius:11px;background:#07151c70;box-shadow:0 5px 15px #0002}
body .elmus-flyout .home-latest-card:hover{border-color:#d6bd8580;background:#18313c}
body dialog,body .etalon-popup,body [popover],body .home-banner-panel{border:1px solid var(--overlay-border);border-radius:16px;background:var(--overlay-surface);box-shadow:var(--overlay-shadow);color:#d0dbde;scrollbar-width:thin;scrollbar-color:#9a8965 #10212b}
body dialog::backdrop{background:#020910bc;backdrop-filter:blur(6px)}
body dialog[open]{animation:site-modal-open .22s cubic-bezier(.2,.75,.2,1)}
body dialog :is(h1,h2){color:#f0dfbb;letter-spacing:-.015em}
body dialog :is(.dialog-close,.etalon-popup-close,#account-collection-close){border:1px solid #cdb78940;border-radius:8px;background:#07131b38;color:#cdb789}
body dialog :is(.secondary-action,.auth-submit,.ency-bookmark-save),body .elmus-flyout .ency-bookmark-save{border:1px solid #cdb78966;border-radius:9px;background:#233d47;color:#f0dfbb;padding:10px 15px;cursor:pointer}
body .etalon-popup{backdrop-filter:blur(20px);animation:site-modal-open .16s ease-out}
body .etalon-popup a{border-color:#cdb78929;border-radius:5px}
@keyframes site-flyout-open{from{opacity:0;clip-path:inset(0 var(--flyout-clip-right,25%) 100% var(--flyout-clip-left,25%) round 12px);transform:translateY(-4px) scale(.98)}to{opacity:1;clip-path:inset(0 0 0 0 round 14px);transform:translateY(0) scale(1)}}
@keyframes site-flyout-close{from{opacity:1;clip-path:inset(0 0 0 0);transform:translateY(0)}to{opacity:0;clip-path:inset(0 18% 100% 18%);transform:translateY(-4px)}}
@keyframes site-modal-open{from{opacity:0;transform:translateY(10px) scale(.985)}to{opacity:1;transform:translateY(0) scale(1)}}
@media(max-width:650px){body .elmus-flyout{padding:16px;border-radius:12px!important}body .elmus-flyout :is(.ency-toc-head,.site-search-head,.library-contents-heading){top:-16px;margin:-16px -16px 12px;padding:16px 16px 14px}body .elmus-flyout :is(.ency-toc-head,.site-search-head,.library-contents-heading) h2{font-size:21px}body .elmus-flyout .news-panel-inner{padding:18px}body .elmus-flyout .news-heading{align-items:flex-start}body .elmus-flyout .news-heading h2{font-size:23px}body dialog{border-radius:13px}}
@media(prefers-reduced-motion:reduce){body .elmus-flyout:is(.is-opening,.is-closing),body dialog[open],body .etalon-popup{animation:none}body .elmus-flyout :is(input,textarea),body dialog :is(input,textarea){transition:none}}

body .elmus-flyout[data-flyout-align=start]{border-top-left-radius:0!important}body .elmus-flyout[data-flyout-align=end]{border-top-right-radius:0!important}
body .elmus-flyout .overlay-close{width:32px;height:32px;flex:0 0 32px;padding:0;border:1px solid #cdb78940;border-radius:8px;background:#07131b38;color:#cdb789;font:22px/1 Arial,sans-serif;cursor:pointer}body .elmus-flyout .overlay-close:hover{background:#cdb78915;color:#fff0ce}
body .elmus-flyout.news-panel{border-radius:0 0 14px 14px!important;border-left:0;border-right:0}body .elmus-flyout.news-panel .news-panel-inner{padding:16px 24px}body .elmus-flyout.news-panel .news-heading,body .elmus-flyout.news-panel .home-latest-list{max-width:none}body .elmus-flyout.news-panel .news-heading{margin-bottom:12px}body .elmus-flyout.news-panel .news-heading h2{font-size:25px}body .elmus-flyout.news-panel .home-latest-card{flex-basis:260px;padding-bottom:10px}body .elmus-flyout.news-panel .home-latest-card img{height:88px}body .elmus-flyout.news-panel .home-latest-card strong{font-size:19px}body .elmus-flyout.news-panel .home-latest-card span{-webkit-line-clamp:1}

body .elmus-flyout.news-panel{max-width:100vw!important}
