/* Shared controls for the public site. */
:root{--ui-gold:#e1c997;--ui-border:#d4b98066;--ui-fill:#142731;--ui-hover:#223b46;--ency-nav-height:24px}
.ui-icon{display:inline-block;width:20px;height:20px;flex:0 0 auto;vertical-align:middle;pointer-events:none}
body button{border-radius:10px;transition:background-color .18s,border-color .18s,color .18s,box-shadow .18s;touch-action:manipulation}
body :is(button,a,select,input):focus-visible{outline:2px solid #efce8e;outline-offset:4px}
body button:disabled{opacity:.4;cursor:default;box-shadow:none}
body .ui-with-icon{display:inline-flex;align-items:center;justify-content:center;gap:9px}
body .news-drawer .ency-nav-strip{width:100%;height:var(--ency-nav-height);gap:12px;align-items:flex-start;background:transparent;border:0;backdrop-filter:none}
body .ency-nav-strip :is(.news-toggle,.ency-toc-toggle){min-height:22px;height:22px;gap:10px;padding:0 20px;border:1px solid #cbb58288;border-top:0;border-radius:0 0 12px 12px;background:linear-gradient(180deg,#192f39,#122630);color:#ecd4a4;box-shadow:0 5px 16px #0003,inset 0 -1px 0 #ffffff05;font:600 14px/1.2 Arial,sans-serif;letter-spacing:0;text-transform:none;white-space:nowrap}
body .ency-nav-strip :is(.news-toggle,.ency-toc-toggle):hover,body .ency-nav-strip :is(.news-toggle,.ency-toc-toggle)[aria-expanded=true]{background:linear-gradient(180deg,#29434e,#1b333e);border-color:#dfc48d;color:#fff0cd;box-shadow:0 7px 22px #0004,inset 0 -1px 0 #e9d1a312}
body:not(.ency-open) .news-panel,body.ency-open .news-panel{order:2}
body .news-chevron{width:8px;height:8px;margin-left:4px}
body .ency-toc-toggle .ui-icon{width:18px;height:18px}
body :is(.library-navigation-row button,.library-contents-tree button,.library-read,.reader-bookmark,.reader-close,.reader-bookmark-list button,.reader-pagination button,.auth-signed-in .auth-submit,.cms-access-dialog button,.cms-truth-notice button,.ency-retry,.simple-links a,.intro-path-links a,.header-crm){border:1px solid var(--ui-border);border-radius:10px;background:linear-gradient(180deg,#1a303b,#122530);color:#ecd6ad;box-shadow:inset 0 1px 0 #ffffff08,0 3px 9px #0002}
body :is(.library-navigation-row button,.library-contents-tree button,.library-read,.reader-bookmark,.reader-close,.reader-bookmark-list button,.reader-pagination button,.auth-signed-in .auth-submit,.cms-access-dialog button,.cms-truth-notice button,.ency-retry,.simple-links a,.intro-path-links a,.header-crm):hover{border-color:#e2c48d;background:linear-gradient(180deg,#2d4651,#1d3440);color:#fff0cf;box-shadow:inset 0 1px 0 #ffffff0b,0 5px 15px #0003}
body :is(.library-navigation-row button[aria-pressed=true],.reader-bookmark[aria-pressed=true]){background:linear-gradient(180deg,#dcc493,#bfa06a);border-color:#e2cb9b;color:#13242e;box-shadow:0 3px 14px #ceb4771a}
body :is(.orbit-account,.auth-submit){background:linear-gradient(180deg,#e4cfa4,#c5a778);color:#172630;border-color:#dec79a;box-shadow:inset 0 1px 0 #fff8,0 3px 12px #0003;border-radius:10px}
body :is(.orbit-account,.auth-submit):hover{background:linear-gradient(180deg,#efdab1,#d6b985);color:#101e27;box-shadow:0 4px 18px #ceb47724}
body :is(.ency-close,.dialog-close,.news-arrow,.reader-arrow,.cms-access-badge,.cms-subscription-icon){display:inline-flex;align-items:center;justify-content:center;border-radius:50%;background:#142934;border:1px solid #cdb78945;color:#e6cfa4;box-shadow:inset 0 1px 0 #ffffff06,0 3px 9px #0002}
body :is(.ency-close,.dialog-close){width:34px;height:34px;padding:0}
body :is(.ency-close,.dialog-close,.news-arrow,.reader-arrow,.cms-access-badge,.cms-subscription-icon):hover{background:#29424e;border-color:#d4b87e;box-shadow:0 4px 15px #0004}
body .cms-access-badge.is-truth{color:#d4b6fc;background:linear-gradient(160deg,#473357,#29223d);border-color:#b095d270}
body .cms-access-badge.is-truth:hover{background:#4a365f;border-color:#ccb0ef}
body .cms-subscription-icon{color:#f0d694;background:linear-gradient(160deg,#423c2a,#202b31);border-color:#d6b77870}
body .reader-arrow .ui-icon{width:26px;height:26px}
body .library-book-access{display:flex;align-items:center;justify-content:center;width:38px;height:38px;border:1px solid #d2b88070;border-radius:50%;background:linear-gradient(145deg,#32434a,#182b34);color:#ead39e;box-shadow:0 3px 12px #0004}
body .library-book-access .ui-icon{width:20px;height:20px}
body .nav-lock{display:inline-flex;margin-left:6px;color:#cdb789;filter:none;opacity:.8;vertical-align:-2px}
body .nav-lock .ui-icon{width:12px;height:12px;stroke-width:1.8}
body .site-material-lock{display:inline-flex;align-items:center;gap:7px}
body .site-material-lock .ui-icon{width:16px;height:16px}
body .site-header .menu-toggle{display:inline-flex;align-items:center;justify-content:center;padding:0;border-radius:10px;background:linear-gradient(180deg,#1c323d,#122530);border-color:#cdb78966}
body .site-header .menu-toggle:hover{background:#29424e;border-color:#d4b87e}
@media(min-width:881px){body .site-header .menu-toggle{display:none}}
body :is(.library-navigation-row select,.reader-bookmark-list select,.reader-pagination input,.library-contents-heading input,.auth-dialog input,.ency-search){border-radius:9px;background:#0b1a24;border-color:#c6b18745;box-shadow:inset 0 2px 7px #0002}
body .ency-toc-panel{border-color:#cdb78945;border-radius:0 0 16px 16px;box-shadow:0 20px 65px #0008}
body .ency-menu-button,body .ency-local-menu a,body .ency-search-results a{border-radius:8px}
body .ency-menu-button:hover,body .ency-menu-button[aria-pressed=true]{background:#cdb78915;color:#f4ddb0}
body .ency-group-tabs button{border-radius:6px 6px 0 0}
body dialog{border-radius:16px;box-shadow:0 24px 85px #0009}
body .auth-actions button{border-radius:4px;text-decoration-color:#cdb78970}
body .footer-socials span{width:34px;height:34px;border:1px solid #cdb78922;border-radius:50%;background:#13232c}
@media(max-width:650px){body .news-drawer .ency-nav-strip{gap:8px!important}body .ency-nav-strip :is(.news-toggle,.ency-toc-toggle){font-size:12px;padding:0 13px;gap:7px}body .ency-toc-toggle .ui-icon{width:16px;height:16px}body .ency-toc-panel{border-radius:0 0 12px 12px}body .reader-close,body .reader-bookmark{gap:5px}body .reader-close .ui-icon,body .reader-bookmark .ui-icon{width:16px;height:16px}}
@media(prefers-reduced-motion:reduce){body button{transition:none}.news-pulse{animation:none}}

body .site-header :is(.orbit-account,.header-crm){border-radius:10px}

body .pdf-reader :is(.reader-header,.reader-footer) button{border-radius:10px;border:1px solid var(--ui-border);background:linear-gradient(180deg,#1a303b,#122530);color:#ecd6ad;box-shadow:inset 0 1px 0 #ffffff08,0 3px 9px #0002}
body .pdf-reader :is(.reader-header,.reader-footer) button:hover{background:linear-gradient(180deg,#2d4651,#1d3440);border-color:#e2c48d;color:#fff0cf}
body .pdf-reader #reader-bookmark[aria-pressed=true]{background:linear-gradient(180deg,#dcc493,#bfa06a);color:#13242e;border-color:#e2cb9b}
body .pdf-reader :is(#reader-prev,#reader-next){height:44px;border:1px solid #cdb78945;border-radius:10px;background:#152b36;box-shadow:0 3px 12px #0003}
body .pdf-reader :is(#reader-prev,#reader-next):hover{background:#29424e;border-color:#d4b87e}
body .pdf-reader :is(#reader-prev,#reader-next) .ui-icon{width:24px;height:24px}
body .ency-menu-expand{border-radius:8px}
body .ency-menu-button>.ui-icon{width:16px;height:16px;opacity:.7}
body .ency-reading-nav .ui-icon{width:14px;height:14px}
@media(max-width:650px){body .ency-menu-column:first-child .ency-menu-button>.ui-icon{display:none}body .pdf-reader #reader-close{gap:5px;padding:9px 8px}body .pdf-reader #reader-close .ui-icon,body .pdf-reader #reader-bookmark .ui-icon{width:16px;height:16px}}

.home-latest-card>span>.ui-icon{width:14px;height:14px;margin-right:6px}

@media(max-width:880px){body .site-header .site-nav.is-open a{display:flex;align-items:center;justify-content:space-between;gap:12px;max-width:none;min-height:44px;padding:12px 14px;border:0;border-radius:9px;margin:2px 0}body .site-header .site-nav.is-open a[aria-current=page]{background:#cdb78914;color:#f4ddb0}body .site-header .site-nav.is-open a:hover{background:#cdb7890c}body .site-header .site-nav .nav-lock{margin:0}}
body .ency-group-tabs{gap:8px;align-items:center;max-width:100%;overflow-x:auto;padding-bottom:12px;scrollbar-width:thin;scrollbar-color:#b9a27355 transparent;overscroll-behavior:contain}
body .ency-group-tabs button{flex:0 0 auto;white-space:nowrap;padding:10px 13px;border:1px solid #cdb78925;border-radius:9px;background:#152b342b;font-size:12px;letter-spacing:.035em}
body .ency-group-tabs button:hover{background:#cdb78910;border-color:#cdb78960;color:#ecd6ad}
body .ency-group-tabs button[aria-pressed=true]{background:#cdb7891b;border-color:#cdb78990;color:#f4ddb0}
body .ency-search:focus-within{outline:2px solid #e2c789;outline-offset:3px}
body .ency-search input:focus-visible{outline:none}
@media(max-width:650px){body .ency-group-tabs{justify-content:flex-start}body .ency-group-tabs button{padding:9px 11px;font-size:11px}}
body .ency-group-tabs button{width:auto;min-width:0}

/* Shorter top controls keep their existing horizontal spacing. */
body .site-header .orbit-account{min-height:22px;height:22px;padding-top:0;padding-bottom:0}
body .site-header .header-crm{height:22px;padding-top:2px;padding-bottom:2px}
body .site-header .menu-toggle{height:22px}
/* Global search sits at the right edge of the shared top strip. */
body .news-drawer .ency-nav-strip{position:relative;padding-inline:145px}
body .ency-nav-strip .site-search-toggle{position:absolute;right:clamp(16px,3vw,42px);top:0}
body .site-search-toggle .ui-icon{width:16px;height:16px}
body .site-search-panel{align-self:flex-end;width:min(620px,calc(100% - 48px));margin-right:24px;padding:22px;color:#d0dbde}
.site-search-head{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:16px}
.site-search-head h2{font:26px/1.2 Georgia,serif;color:#f0dfbb;margin:0}
.site-search-label{display:block;color:#aabcc5;font:12px Arial,sans-serif;margin-bottom:8px}
#site-search-input{width:100%;min-height:44px;padding:11px 13px;border:1px solid #cdb78955;border-radius:9px;background:#0b1a24;color:#f1e5cf;font:16px Arial,sans-serif}
#site-search-status{margin:14px 0;color:#aabcc5;font:13px/1.5 Arial,sans-serif}
#site-search-results{display:grid;gap:7px}
.site-search-result{display:grid;gap:5px;padding:13px 15px;border:1px solid #cdb78920;border-radius:10px;background:#ffffff03}
.site-search-result:hover{background:#cdb78910;border-color:#cdb78960}
.site-search-result strong{font:19px/1.3 Georgia,serif;color:#eed7ab}
.site-search-result small{font:11px/1.5 Arial,sans-serif;color:#95adb8}
.site-search-result>span{font:13px/1.6 Arial,sans-serif;color:#c0ced4;overflow-wrap:anywhere}
body .site-search-toggle[aria-expanded=true]{background:linear-gradient(180deg,#29434e,#1b333e)}
.cms-block,.site-material-card{scroll-margin-top:calc(var(--ency-header-height) + var(--ency-nav-height) + 20px)}
@media(max-width:650px){body .news-drawer .ency-nav-strip{justify-content:center;padding-left:8px;padding-right:92px}body .ency-nav-strip .site-search-toggle{right:8px;padding-inline:8px}body .site-search-panel{width:calc(100% - 16px);margin-right:8px;padding:18px}.site-search-head h2{font-size:23px}}
@media(max-width:380px){body .news-drawer .ency-nav-strip{gap:6px!important;padding-right:76px}body .ency-nav-strip :is(.news-toggle,.ency-toc-toggle){font-size:11px;padding-inline:5px;gap:4px}body .news-chevron{width:6px;height:6px;margin-left:0}body .ency-toc-toggle .ui-icon,body .site-search-toggle .ui-icon{width:14px;height:14px}}

/* The visible controls stay 22px high; their transparent hit area is 44px. */
body .ency-nav-strip :is(.news-toggle,.ency-toc-toggle):not(.site-search-toggle){position:relative;overflow:visible}
body .ency-nav-strip .site-search-toggle{overflow:visible}
body .site-header :is(.orbit-account,.header-crm,.menu-toggle){position:relative;inset:auto;overflow:visible}
body .ency-nav-strip :is(.news-toggle,.ency-toc-toggle)::before,
body .site-header :is(.orbit-account,.header-crm,.menu-toggle)::before{content:"";position:absolute;inset:-11px 0;min-height:44px;background:transparent;pointer-events:auto}

/* Contents stays at the left edge while news stays centred and search stays right. */
body .news-drawer .ency-nav-strip .ency-toc-toggle{position:absolute;left:clamp(16px,3vw,42px);top:0}
@media(max-width:650px){body .news-drawer .ency-nav-strip{padding-inline:100px}body .news-drawer .ency-nav-strip .ency-toc-toggle{left:8px}}
@media(max-width:380px){body .news-drawer .ency-nav-strip .ency-toc-toggle{left:4px;font-size:10px;padding-inline:5px;gap:4px}}
