/* INKLYDT // R17 // GLOBAL AUTHENTICATED HEADER // R19 FUNCTIONAL RECOVERY */
:root{--ix-gh-height:68px;--ix-gh-bg:#102d28;--ix-gh-ink:#fffaf0;--ix-gh-muted:#b9c8bc;--ix-gh-line:#345348;--ix-gh-gold:#b69a63;--ix-gh-paper:#fffdf7;--ix-gh-green:#174f52}
#inklydtGlobalHeader{position:sticky;top:0;z-index:2147480000;height:var(--ix-gh-height);display:flex;align-items:center;gap:18px;padding:0 clamp(14px,2.4vw,30px);background:linear-gradient(180deg,#12332d,#102b27);border-bottom:1px solid var(--ix-gh-line);box-shadow:0 7px 24px rgba(8,31,25,.16);color:var(--ix-gh-ink);font-family:"DM Sans",Inter,system-ui,-apple-system,"Segoe UI",sans-serif;box-sizing:border-box}
#inklydtGlobalHeader *{box-sizing:border-box}
#inklydtGlobalHeader a{color:inherit;text-decoration:none}
.ix-gh-brand{display:flex;align-items:center;gap:11px;min-width:max-content}
.ix-gh-mark{width:37px;height:39px;display:grid;place-items:center;border:1px solid rgba(190,162,105,.75);border-radius:10px;font:26px/1 Georgia,serif;color:#fffaf0;background:rgba(255,255,255,.025)}
.ix-gh-brand-copy{display:grid;gap:3px}.ix-gh-brand-copy strong{font-size:13px;line-height:1;letter-spacing:.16em}.ix-gh-brand-copy small{font-size:7px;line-height:1;letter-spacing:.18em;color:var(--ix-gh-muted)}
.ix-gh-context{min-width:0;display:flex;align-items:center;gap:11px;padding-left:18px;border-left:1px solid rgba(255,255,255,.13)}
.ix-gh-context-copy{min-width:0;display:grid;gap:3px}.ix-gh-context-copy span{font-size:8px;line-height:1;letter-spacing:.16em;text-transform:uppercase;color:#cfb677;font-weight:700}.ix-gh-context-copy strong{max-width:min(42vw,520px);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px;line-height:1.15;font-weight:600;color:#f2f0e8}
.ix-gh-role-pill{display:inline-flex;align-items:center;min-height:25px;padding:0 9px;border:1px solid rgba(255,255,255,.16);border-radius:999px;color:#d6ded5;font-size:9px;letter-spacing:.09em;text-transform:uppercase;white-space:nowrap}
#inklydtGlobalHeaderActions{margin-left:auto;display:flex;align-items:center;gap:7px;min-width:max-content}
#inklydtGlobalHeaderActions .ix-book-wrap{margin-left:0!important}
#inklydtGlobalHeaderActions .ix-book-button,#inklydtGlobalHeaderActions #ix-chat-launch,.ix-gh-account-button{width:42px!important;height:42px!important;min-width:42px!important;flex:0 0 42px!important;margin:0!important;padding:8px!important;display:grid!important;place-items:center;border:1px solid rgba(203,214,201,.36)!important;border-radius:11px!important;background:#fffdf7!important;color:#174f52!important;box-shadow:none!important;cursor:pointer}
#inklydtGlobalHeaderActions .ix-book-button svg,#inklydtGlobalHeaderActions #ix-chat-launch svg,.ix-gh-account-button svg{width:25px;height:25px}
#inklydtGlobalHeaderActions .ix-book-button:focus-visible,#inklydtGlobalHeaderActions #ix-chat-launch:focus-visible,.ix-gh-account-button:focus-visible,.ix-gh-menu a:focus-visible,.ix-gh-menu button:focus-visible{outline:3px solid #cfb377;outline-offset:2px}
.ix-gh-account{position:relative}.ix-gh-account-button[aria-expanded="true"]{border-color:#b49352!important;background:#f4eddc!important}
.ix-gh-menu{position:absolute;right:0;top:50px;width:260px;padding:8px;background:#fffdf8;color:#173e37;border:1px solid #cbd5c8;border-radius:13px;box-shadow:0 18px 55px rgba(13,48,39,.22);z-index:2147483200}.ix-gh-menu[hidden]{display:none!important}.ix-gh-menu-head{padding:10px 11px 9px;border-bottom:1px solid #e4e8df;margin-bottom:5px}.ix-gh-menu-head span{display:block;font-size:8px;letter-spacing:.15em;text-transform:uppercase;color:#987b4d;font-weight:700}.ix-gh-menu-head strong{display:block;margin-top:5px;font-size:13px}.ix-gh-menu a,.ix-gh-menu button{width:100%;min-height:39px;display:flex;align-items:center;gap:10px;padding:9px 11px;border:0;border-radius:8px;background:transparent;color:#173e37;text-align:left;font:600 11px/1.2 "DM Sans",Inter,system-ui,sans-serif;cursor:pointer}.ix-gh-menu a:hover,.ix-gh-menu button:hover{background:#edf1e8}.ix-gh-menu-sep{height:1px;background:#e1e6dc;margin:5px 4px}.ix-gh-menu .ix-gh-danger{color:#7f423e}.ix-gh-admin-only[hidden]{display:none!important}
html[data-inklydt-global-header="r17"] .ix-gh-retired{display:none!important}
html[data-inklydt-global-header="r17"] body > header.top,
html[data-inklydt-global-header="r17"] body > header.system-bar,
html[data-inklydt-global-header="r17"] .ecr-author-main > .ecr-author-topbar,
html[data-inklydt-global-header="r17"] body > .admin-header{display:none!important}
html[data-inklydt-global-header="r17"] #inklydtCanonicalShell{display:none!important}
html[data-inklydt-global-header="r17"] #adminLink{display:none!important}
html[data-inklydt-global-header="r17"] body[data-ecr-reader-build] #app{padding-top:0!important}
html[data-inklydt-global-header="r17"] .navigation,html[data-inklydt-global-header="r17"] .circle-navigation{top:calc(var(--ix-gh-height) + 28px)}
html[data-inklydt-global-header="r17"] .ecr-author-rail{top:var(--ix-gh-height);height:calc(100vh - var(--ix-gh-height))}
html[data-inklydt-global-header="r17"] .ecr-role-shell{padding-top:22px}
html[data-inklydt-global-header="r17"] body.ix-gh-immersive #inklydtGlobalHeader{height:58px;--ix-gh-height:58px}
html[data-inklydt-global-header="r17"] body.ix-gh-immersive .ix-gh-brand-copy small{display:none}
@media(max-width:760px){:root{--ix-gh-height:58px}#inklydtGlobalHeader{gap:9px;padding:0 10px}.ix-gh-mark{width:34px;height:36px;font-size:23px}.ix-gh-brand-copy strong{font-size:11px}.ix-gh-brand-copy small{display:none}.ix-gh-context{padding-left:10px;gap:6px}.ix-gh-role-pill{display:none}.ix-gh-context-copy strong{max-width:34vw;font-size:10px}.ix-gh-context-copy span{font-size:7px}#inklydtGlobalHeaderActions{gap:5px}#inklydtGlobalHeaderActions .ix-book-button,#inklydtGlobalHeaderActions #ix-chat-launch,.ix-gh-account-button{width:38px!important;height:38px!important;min-width:38px!important;flex-basis:38px!important}.ix-gh-menu{position:fixed;top:64px;right:8px;left:8px;width:auto}}
@media(max-width:480px){.ix-gh-brand-copy{display:none}.ix-gh-context{border-left:0;padding-left:0}.ix-gh-context-copy strong{max-width:34vw}.ix-gh-context-copy span{display:none}}
html[data-inklydt-global-header="r17"] .ix-gh-local-record-header #signOutButton{display:none!important}
html[data-inklydt-global-header="r17"] #authorAdminNav{display:none!important}
body.ix-gh-immersive{--ix-gh-height:58px}
#inklydtGlobalHeader .ix-gh-reader-menu{min-height:36px;display:inline-flex;align-items:center;gap:7px;padding:7px 10px;border:1px solid rgba(203,214,201,.3);border-radius:9px;background:rgba(255,255,255,.045);color:#f4f1e8;font:600 11px/1 system-ui,sans-serif;cursor:pointer;white-space:nowrap}
#inklydtGlobalHeader .ix-gh-reader-menu:hover{background:rgba(255,255,255,.09)}
#inklydtGlobalHeader .ix-gh-reader-menu:focus-visible{outline:3px solid #cfb377;outline-offset:2px}
#inklydtGlobalHeaderActions #resetAdminSandbox{min-height:36px!important;margin:0!important;padding:0 10px!important;border:1px solid rgba(203,214,201,.3)!important;border-radius:9px!important;background:transparent!important;color:#f4f1e8!important;font:700 9px/1 system-ui,sans-serif!important;letter-spacing:.06em!important}
@media(max-width:620px){#inklydtGlobalHeader .ix-gh-reader-menu span{display:none}#inklydtGlobalHeader .ix-gh-reader-menu{width:38px;min-width:38px;justify-content:center;padding:0}}
html[data-inklydt-global-header="r17"] .ecr-author-rail > .ecr-author-brand{display:none!important}


/* R19 // PERSISTENT READER HEADER MENU
   This drawer is independent of page-owned navigation DOM so Reader Home,
   Library and Reading Circle controllers keep their IDs/listeners intact. */
#ixGhReaderScrim{position:fixed;inset:var(--ix-gh-height) 0 0;z-index:2147482100;border:0;padding:0;background:rgba(24,42,34,.26);backdrop-filter:blur(1px);cursor:default}
#ixGhReaderScrim[hidden],#ixGhReaderDrawer[hidden]{display:none!important}
#ixGhReaderDrawer{position:fixed;z-index:2147482200;left:0;top:var(--ix-gh-height);bottom:0;width:min(320px,88vw);padding:0 14px 20px;overflow:auto;background:#fffdf7;color:#173e37;border-right:1px solid #d7ddd2;box-shadow:18px 0 58px rgba(12,42,33,.18);font-family:"DM Sans",Inter,system-ui,-apple-system,"Segoe UI",sans-serif}
.ix-gh-reader-drawer-head{position:sticky;top:0;z-index:2;display:flex;align-items:center;justify-content:space-between;gap:16px;margin:0 -14px 10px;padding:17px 16px 14px;background:#fffdf7;border-bottom:1px solid #e0e5dc}.ix-gh-reader-drawer-head div{display:grid;gap:3px}.ix-gh-reader-drawer-head span{font-size:8px;letter-spacing:.16em;text-transform:uppercase;color:#967d4f;font-weight:800}.ix-gh-reader-drawer-head strong{font:600 18px/1 Georgia,serif;color:#173e37}.ix-gh-reader-drawer-head button{min-height:34px;padding:0 10px;border:1px solid #d2d9ce;border-radius:8px;background:#f6f3e9;color:#355649;font:700 9px/1 system-ui;letter-spacing:.05em;cursor:pointer}
#ixGhReaderDrawer nav{display:grid;gap:4px}#ixGhReaderDrawer nav a{min-height:44px;display:grid;grid-template-columns:24px 1fr;align-items:center;gap:7px;padding:0 11px;border:1px solid transparent;border-radius:8px;color:#36564a;text-decoration:none;font:600 12px/1.15 "DM Sans",Inter,system-ui,sans-serif}#ixGhReaderDrawer nav a:hover{background:#f2f2e9}#ixGhReaderDrawer nav a.active{background:#e8eee1;border-color:#d7dfd2;color:#173e37;box-shadow:inset 3px 0 #a68d56}#ixGhReaderDrawer nav a:focus-visible,.ix-gh-reader-drawer-head button:focus-visible{outline:3px solid #cfb377;outline-offset:2px}.ix-gh-reader-drawer-note{display:grid;gap:7px;margin:18px 5px 0;padding:16px 8px 0;border-top:1px solid #e2e6dd}.ix-gh-reader-drawer-note strong{font:500 17px/1.25 Georgia,serif}.ix-gh-reader-drawer-note span{font:11px/1.6 "DM Sans",Inter,system-ui,sans-serif;color:#738278}
body.ix-gh-reader-menu-open{overflow:hidden}
@media(max-width:620px){#ixGhReaderDrawer{width:min(300px,92vw)}}

/* INKLYDT B1 // heritage editorial icons; existing chat-with-quill art remains intact */
#inklydtGlobalHeaderActions .ix-book-button,
#inklydtGlobalHeaderActions #ix-chat-launch,
#inklydtGlobalHeaderActions .ix-gh-account-button{border-color:#c9d1c6!important;transition:border-color .16s,background-color .16s,transform .16s}
#inklydtGlobalHeaderActions .ix-book-button:hover,
#inklydtGlobalHeaderActions #ix-chat-launch:hover,
#inklydtGlobalHeaderActions .ix-gh-account-button:hover{background:#f4efe2!important;border-color:#a7854f!important;transform:translateY(-1px)}
#inklydtGlobalHeaderActions .ix-book-button svg,
#inklydtGlobalHeaderActions #ix-chat-launch svg,
#inklydtGlobalHeaderActions .ix-gh-account-button svg{width:26px;height:26px;stroke-linecap:round;stroke-linejoin:round}
#inklydtGlobalHeaderActions .ix-book-button[aria-expanded="true"]{background:#f3ebd9!important;border-color:#a7854f!important}
@media(prefers-reduced-motion:reduce){#inklydtGlobalHeaderActions .ix-book-button,#inklydtGlobalHeaderActions #ix-chat-launch,#inklydtGlobalHeaderActions .ix-gh-account-button{transition:none;transform:none!important}}

/* INKLYDT B2 // Approved literary-heritage identity across all global headers. */
:root{--ix-gh-bg:#0F3D2E;--ix-gh-gold:#C9A96B;--ix-gh-paper:#FDF9EF;--ix-gh-muted:#DAE1D0;--ix-gh-line:#3D604D;}
#inklydtGlobalHeader{background:#0F3D2E!important;border-bottom:2px solid #C9A96B;box-shadow:0 3px 12px rgba(10,37,27,.14);}
#inklydtGlobalHeader .ix-gh-brand{gap:10px;}
#inklydtGlobalHeader .ix-gh-mark{width:42px;height:48px;padding:0;display:grid;place-items:center;border:0;border-radius:0;background:transparent;overflow:visible;}
#inklydtGlobalHeader .ix-gh-mark img{display:block;width:38px;height:44px;object-fit:contain;}
#inklydtGlobalHeader .ix-gh-brand-copy strong{display:block;width:174px;min-width:174px;height:32px;overflow:visible;font-size:0;line-height:0;color:transparent;background:url('/assets/inklydt-r18-wordmark.png?v=heritage-b2') center/contain no-repeat;}
#inklydtGlobalHeader .ix-gh-brand-copy small{font:600 8px/1.3 system-ui,-apple-system,'Segoe UI',sans-serif;letter-spacing:.145em;color:#E0C38A;white-space:nowrap;}
#inklydtGlobalHeader .ix-gh-context{border-color:rgba(201,169,107,.45);}
#inklydtGlobalHeader .ix-gh-role-pill{border-color:rgba(201,169,107,.45);color:#FDF9EF;}
#inklydtGlobalHeader .ix-gh-context-copy span{color:#E0C38A;}
#inklydtGlobalHeaderActions .ix-book-button,#inklydtGlobalHeaderActions #ix-chat-launch,#inklydtGlobalHeaderActions .ix-gh-account-button{background:#FDF9EF!important;color:#0F3D2E!important;border-color:#D2BF99!important;border-radius:8px!important;}
#inklydtGlobalHeaderActions .ix-book-button:hover,#inklydtGlobalHeaderActions #ix-chat-launch:hover,#inklydtGlobalHeaderActions .ix-gh-account-button:hover{background:#F5ECD8!important;border-color:#C9A96B!important;}
#inklydtGlobalHeader .ix-gh-menu{background:#FFFCF7;border-color:#C9B891;border-radius:9px;}
@media(max-width:800px){#inklydtGlobalHeader{gap:8px}#inklydtGlobalHeader .ix-gh-mark{width:33px;height:39px}#inklydtGlobalHeader .ix-gh-mark img{width:31px;height:36px}#inklydtGlobalHeader .ix-gh-brand-copy strong{width:144px;min-width:144px;height:28px;overflow:visible}#inklydtGlobalHeader .ix-gh-brand-copy small{font-size:6px}}
@media(forced-colors:active){#inklydtGlobalHeader .ix-gh-brand-copy strong{background:none;color:CanvasText;font:500 18px Georgia,serif}}
@media(max-width:480px){#inklydtGlobalHeader .ix-gh-brand-copy{display:grid}#inklydtGlobalHeader .ix-gh-brand-copy strong{width:132px;min-width:132px;height:26px;overflow:visible}#inklydtGlobalHeader .ix-gh-brand-copy small{display:none}#inklydtGlobalHeader .ix-gh-context{display:none}}
