/* INKLYDT Brand Wave 1 // global header appearance on scoped pages only */
body.ixb-reader-wave #inklydtGlobalHeader,body.ixb-author-wave #inklydtGlobalHeader{background:#FFFDF9!important;color:#0F1F24!important;border-bottom:1px solid #E8DED3!important;box-shadow:0 2px 12px rgba(15,31,36,.05)!important}
body.ixb-reader-wave #inklydtGlobalHeader .ix-gh-mark,body.ixb-author-wave #inklydtGlobalHeader .ix-gh-mark{background:url('/assets/inklydt-brand-v1-mark.svg') center / contain no-repeat!important}
body.ixb-reader-wave #inklydtGlobalHeader .ix-gh-mark img,body.ixb-author-wave #inklydtGlobalHeader .ix-gh-mark img{opacity:0}
body.ixb-reader-wave #inklydtGlobalHeader .ix-gh-brand-copy strong,body.ixb-author-wave #inklydtGlobalHeader .ix-gh-brand-copy strong{background-image:url('/assets/inklydt-brand-v1-wordmark.svg')!important;width:136px;height:29px}
body.ixb-reader-wave #inklydtGlobalHeader .ix-gh-brand-copy small,body.ixb-author-wave #inklydtGlobalHeader .ix-gh-brand-copy small{color:#68797B!important}
body.ixb-reader-wave #inklydtGlobalHeader .ix-gh-context,body.ixb-author-wave #inklydtGlobalHeader .ix-gh-context{border-color:#E8DED3!important}
body.ixb-reader-wave #inklydtGlobalHeader .ix-gh-role-pill,body.ixb-author-wave #inklydtGlobalHeader .ix-gh-role-pill{color:#0F1F24!important;border-color:#BDD7D0!important;background:#E6F1ED!important}
body.ixb-reader-wave #inklydtGlobalHeader .ix-gh-context-copy span,body.ixb-author-wave #inklydtGlobalHeader .ix-gh-context-copy span{color:#607477!important}
body.ixb-reader-wave #inklydtGlobalHeaderActions .ix-gh-account-button,body.ixb-author-wave #inklydtGlobalHeaderActions .ix-gh-account-button,body.ixb-reader-wave #inklydtGlobalHeaderActions .ix-book-button,body.ixb-author-wave #inklydtGlobalHeaderActions .ix-book-button{background:#F8F3EA!important;border-color:#E8DED3!important;color:#0F1F24!important;border-radius:11px!important}
body.ixb-reader-wave #inklydtGlobalHeader .ix-gh-reader-menu{background:#F8F3EA!important;color:#0F1F24!important;border-color:#E8DED3!important}
body.ixb-reader-wave #ixGhReaderDrawer{background:#FFFDF9;color:#0F1F24}
body.ixb-reader-wave #ixGhReaderDrawer nav a.active{border-color:#D9EAE4;background:#E6F1ED;box-shadow:inset 3px 0 #C75A45}


/* INKLYDT V2 // PRIMARY MARK AND WORDMARK */

/* Preserve the approved large book/leaf brand mark. */
body.ixb-reader-wave #inklydtGlobalHeader .ix-gh-mark,
body.ixb-author-wave #inklydtGlobalHeader .ix-gh-mark {
  display: grid !important;
  width: 46px !important;
  height: 48px !important;
  background: url('/assets/inklydt-brand-v1-mark.svg') center / contain no-repeat !important;
}

/* The original approved mark is already displayed by the container. */
body.ixb-reader-wave #inklydtGlobalHeader .ix-gh-mark img,
body.ixb-author-wave #inklydtGlobalHeader .ix-gh-mark img {
  opacity: 0 !important;
}

/* Keep the original wordmark but use its lettering after the large icon. */
body.ixb-reader-wave #inklydtGlobalHeader .ix-gh-brand-copy,
body.ixb-author-wave #inklydtGlobalHeader .ix-gh-brand-copy {
  margin-left: -3px !important;
}

body.ixb-reader-wave #inklydtGlobalHeader .ix-gh-brand-copy strong,
body.ixb-author-wave #inklydtGlobalHeader .ix-gh-brand-copy strong {
  width: 122px !important;
  height: 30px !important;
  background-size: auto 25px !important;
  background-position: right center !important;
}


/* INKLYDT UNIVERSAL HEADER V3 // MODERNIZED BRAND HEADER */

body.ixb-reader-wave #inklydtGlobalHeader,
body.ixb-author-wave #inklydtGlobalHeader{
  min-height:72px!important;
  padding:0 18px!important;
  background:rgba(255,253,249,.96)!important;
  color:#0F1F24!important;
  border-bottom:1px solid #E7DDD0!important;
  box-shadow:0 8px 24px rgba(15,31,36,.06)!important;
  backdrop-filter:blur(10px);
  -webkit-backdrop-filter:blur(10px);
}

body.ixb-reader-wave #inklydtGlobalHeader .ix-gh-brand,
body.ixb-author-wave #inklydtGlobalHeader .ix-gh-brand{
  display:flex!important;
  align-items:center!important;
  gap:12px!important;
  min-width:auto!important;
  padding-right:18px!important;
  margin-right:18px!important;
  border-right:1px solid #E9E0D4!important;
  text-decoration:none!important;
}

body.ixb-reader-wave #inklydtGlobalHeader .ix-gh-mark,
body.ixb-author-wave #inklydtGlobalHeader .ix-gh-mark{
  width:44px!important;
  height:44px!important;
  flex:0 0 44px!important;
  border-radius:0!important;
  background:url('/assets/inklydt-brand-v1-mark.svg') center / contain no-repeat!important;
  box-shadow:none!important;
}

body.ixb-reader-wave #inklydtGlobalHeader .ix-gh-mark img,
body.ixb-author-wave #inklydtGlobalHeader .ix-gh-mark img{
  opacity:0!important;
}

body.ixb-reader-wave #inklydtGlobalHeader .ix-gh-brand-copy,
body.ixb-author-wave #inklydtGlobalHeader .ix-gh-brand-copy{
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  min-width:0!important;
  margin-left:0!important;
}

body.ixb-reader-wave #inklydtGlobalHeader .ix-gh-brand-copy strong,
body.ixb-author-wave #inklydtGlobalHeader .ix-gh-brand-copy strong{
  display:block!important;
  width:132px!important;
  height:24px!important;
  background:url('/assets/inklydt-r18-wordmark.png') left center / contain no-repeat!important;
  color:transparent!important;
  overflow:hidden!important;
  text-indent:-9999px!important;
}

body.ixb-reader-wave #inklydtGlobalHeader .ix-gh-brand-copy small,
body.ixb-author-wave #inklydtGlobalHeader .ix-gh-brand-copy small{
  display:none!important;
}

body.ixb-reader-wave #inklydtGlobalHeader .ix-gh-context,
body.ixb-author-wave #inklydtGlobalHeader .ix-gh-context{
  display:flex!important;
  align-items:center!important;
  gap:14px!important;
  padding:0!important;
  border:0!important;
  min-width:0!important;
}

body.ixb-reader-wave #inklydtGlobalHeader .ix-gh-role-pill,
body.ixb-author-wave #inklydtGlobalHeader .ix-gh-role-pill{
  height:30px!important;
  padding:0 12px!important;
  border-radius:999px!important;
  border:1px solid #CFE0DA!important;
  background:#EEF5F2!important;
  color:#36524A!important;
  font:700 11px/30px Inter,system-ui,sans-serif!important;
  letter-spacing:.08em!important;
  text-transform:uppercase!important;
  box-shadow:none!important;
}

body.ixb-reader-wave #inklydtGlobalHeader .ix-gh-context-copy,
body.ixb-author-wave #inklydtGlobalHeader .ix-gh-context-copy{
  min-width:0!important;
  display:flex!important;
  flex-direction:column!important;
  justify-content:center!important;
  gap:1px!important;
}

body.ixb-reader-wave #inklydtGlobalHeader .ix-gh-context-copy span,
body.ixb-author-wave #inklydtGlobalHeader .ix-gh-context-copy span{
  color:#7A8C8A!important;
  font:700 10px/1.1 Inter,system-ui,sans-serif!important;
  letter-spacing:.11em!important;
  text-transform:uppercase!important;
}

body.ixb-reader-wave #inklydtGlobalHeader .ix-gh-context-copy strong,
body.ixb-author-wave #inklydtGlobalHeader .ix-gh-context-copy strong{
  color:#2B3A37!important;
  font:600 14px/1.25 Inter,system-ui,sans-serif!important;
  white-space:nowrap!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  max-width:240px!important;
}

body.ixb-reader-wave #inklydtGlobalHeaderActions,
body.ixb-author-wave #inklydtGlobalHeaderActions{
  display:flex!important;
  align-items:center!important;
  gap:10px!important;
  margin-left:auto!important;
}

body.ixb-reader-wave #inklydtGlobalHeaderActions .ix-gh-help,
body.ixb-author-wave #inklydtGlobalHeaderActions .ix-gh-help{
  height:44px!important;
  padding:0 18px!important;
  border-radius:14px!important;
  background:#123E30!important;
  border:1px solid #C7A96A!important;
  color:#FFFDF8!important;
  box-shadow:0 6px 18px rgba(12,49,37,.12)!important;
  font:600 15px/44px Inter,system-ui,sans-serif!important;
}

body.ixb-reader-wave #inklydtGlobalHeaderActions .ix-gh-help:hover,
body.ixb-author-wave #inklydtGlobalHeaderActions .ix-gh-help:hover{
  filter:brightness(1.03);
}

body.ixb-reader-wave #inklydtGlobalHeaderActions .ix-gh-account-button,
body.ixb-author-wave #inklydtGlobalHeaderActions .ix-gh-account-button,
body.ixb-reader-wave #inklydtGlobalHeaderActions .ix-book-button,
body.ixb-author-wave #inklydtGlobalHeaderActions .ix-book-button{
  width:44px!important;
  height:44px!important;
  display:grid!important;
  place-items:center!important;
  border-radius:14px!important;
  background:#FBF7EF!important;
  border:1px solid #E7DDD0!important;
  color:#21332F!important;
  box-shadow:none!important;
}

body.ixb-reader-wave #inklydtGlobalHeaderActions .ix-gh-account-button:hover,
body.ixb-author-wave #inklydtGlobalHeaderActions .ix-gh-account-button:hover,
body.ixb-reader-wave #inklydtGlobalHeaderActions .ix-book-button:hover,
body.ixb-author-wave #inklydtGlobalHeaderActions .ix-book-button:hover{
  background:#F4EEE2!important;
  border-color:#DCCDB8!important;
}

body.ixb-reader-wave #inklydtGlobalHeader .ix-gh-menu,
body.ixb-author-wave #inklydtGlobalHeader .ix-gh-menu{
  margin-top:10px!important;
  border-radius:18px!important;
  border:1px solid #E7DDD0!important;
  background:#FFFDF9!important;
  box-shadow:0 18px 42px rgba(15,31,36,.12)!important;
}

body[data-inklydt-reader-studio="r3"] #inklydtGlobalHeader{
  position:sticky!important;
  top:0!important;
  z-index:1000!important;
}

body[data-inklydt-reader-studio="r3"] #inklydtGlobalHeader .ix-gh-context-copy strong{
  max-width:180px!important;
}

@media (max-width: 980px){
  body.ixb-reader-wave #inklydtGlobalHeader,
  body.ixb-author-wave #inklydtGlobalHeader{
    padding:0 12px!important;
  }

  body.ixb-reader-wave #inklydtGlobalHeader .ix-gh-brand,
  body.ixb-author-wave #inklydtGlobalHeader .ix-gh-brand{
    padding-right:12px!important;
    margin-right:12px!important;
  }

  body.ixb-reader-wave #inklydtGlobalHeader .ix-gh-context-copy strong,
  body.ixb-author-wave #inklydtGlobalHeader .ix-gh-context-copy strong{
    max-width:140px!important;
  }
}

@media (max-width: 760px){
  body.ixb-reader-wave #inklydtGlobalHeader .ix-gh-context-copy span,
  body.ixb-author-wave #inklydtGlobalHeader .ix-gh-context-copy span{
    display:none!important;
  }

  body.ixb-reader-wave #inklydtGlobalHeader .ix-gh-context-copy strong,
  body.ixb-author-wave #inklydtGlobalHeader .ix-gh-context-copy strong{
    font-size:12px!important;
    max-width:120px!important;
  }

  body.ixb-reader-wave #inklydtGlobalHeader .ix-gh-help,
  body.ixb-author-wave #inklydtGlobalHeader .ix-gh-help{
    padding:0 14px!important;
    font-size:14px!important;
  }
}


/* INKLYDT UNIVERSAL V4 // REFINED HEADER UTILITIES */

body:is(.ixb-reader-wave,.ixb-author-wave)
#inklydtGlobalHeaderActions {
  display:flex!important;
  align-items:center!important;
  gap:8px!important;
  margin-left:auto!important;
}

/* One visual language for messages, reading, and account. */
body:is(.ixb-reader-wave,.ixb-author-wave)
#inklydtGlobalHeaderActions :is(
  .ix-book-button,
  #ix-chat-launch,
  .ix-gh-account-button
) {
  width:42px!important;
  min-width:42px!important;
  height:42px!important;
  flex:0 0 42px!important;
  padding:9px!important;
  border:1px solid #E4DDD1!important;
  border-radius:12px!important;
  background:#FFFDF9!important;
  color:#183F39!important;
  box-shadow:none!important;
  transform:none!important;
  transition:
    background-color .18s ease,
    border-color .18s ease,
    box-shadow .18s ease!important;
}

body:is(.ixb-reader-wave,.ixb-author-wave)
#inklydtGlobalHeaderActions :is(
  .ix-book-button,
  #ix-chat-launch,
  .ix-gh-account-button
) svg {
  width:22px!important;
  height:22px!important;
  stroke-width:1.7;
}

/* Quiet, premium hover treatment. */
body:is(.ixb-reader-wave,.ixb-author-wave)
#inklydtGlobalHeaderActions :is(
  .ix-book-button,
  #ix-chat-launch,
  .ix-gh-account-button
):hover {
  background:#EEF4F0!important;
  border-color:#B8D0C6!important;
  box-shadow:0 3px 9px rgba(20,54,46,.07)!important;
  transform:none!important;
}

/* Help remains discoverable without dominating the header. */
body:is(.ixb-reader-wave,.ixb-author-wave)
#inklydtGlobalHeaderActions :is(
  .ix-gh-help,
  [data-ix-gh-help],
  a[href*="support"]
) {
  min-height:42px!important;
  padding:0 14px!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:8px!important;
  border-radius:12px!important;
  border:1px solid #194D3D!important;
  background:#17483A!important;
  color:#FFFDF8!important;
  font:600 13px/1.2 Inter,system-ui,sans-serif!important;
  box-shadow:none!important;
  white-space:nowrap!important;
}

body:is(.ixb-reader-wave,.ixb-author-wave)
#inklydtGlobalHeaderActions :is(
  .ix-gh-help,
  [data-ix-gh-help],
  a[href*="support"]
):hover {
  background:#205747!important;
}

/* Preserve visible keyboard focus. */
body:is(.ixb-reader-wave,.ixb-author-wave)
#inklydtGlobalHeaderActions :is(button,a):focus-visible {
  outline:2px solid #2B7A78!important;
  outline-offset:3px!important;
}

/* Avoid unnecessary animation for users requesting reduced motion. */
@media(prefers-reduced-motion:reduce){
  body:is(.ixb-reader-wave,.ixb-author-wave)
  #inklydtGlobalHeaderActions * {
    transition:none!important;
  }
}

@media(max-width:760px){
  body:is(.ixb-reader-wave,.ixb-author-wave)
  #inklydtGlobalHeaderActions {
    gap:5px!important;
  }

  body:is(.ixb-reader-wave,.ixb-author-wave)
  #inklydtGlobalHeaderActions :is(
    .ix-book-button,
    #ix-chat-launch,
    .ix-gh-account-button
  ) {
    width:38px!important;
    min-width:38px!important;
    height:38px!important;
    flex-basis:38px!important;
  }
}


/* INKLYDT R16 // UNIVERSAL WORDMARK LAYOUT
   Preserve approved SVG artwork; give complete final T breathing room.
   This replaces the previous V5 wordmark sizing block, not the manuscript style. */
body:is(.ixb-reader-wave,.ixb-author-wave)
#inklydtGlobalHeader .ix-gh-brand-copy strong {
  display:block!important;
  flex:0 0 178px!important;
  width:178px!important;
  min-width:178px!important;
  height:34px!important;
  box-sizing:border-box!important;
  overflow:visible!important;
  background-image:url('/assets/inklydt-r18-wordmark.png')!important;
  background-repeat:no-repeat!important;
  background-position:center!important;
  background-size:contain!important;
  color:transparent!important;
  text-indent:-9999px!important;
}
body:is(.ixb-reader-wave,.ixb-author-wave)
#inklydtGlobalHeader .ix-gh-brand,
body:is(.ixb-reader-wave,.ixb-author-wave)
#inklydtGlobalHeader .ix-gh-brand-copy {
  overflow:visible!important;
  flex-shrink:0!important;
  min-width:max-content!important;
}
@media(max-width:760px){
  body:is(.ixb-reader-wave,.ixb-author-wave)
  #inklydtGlobalHeader .ix-gh-brand-copy strong {
    flex-basis:148px!important;
    width:148px!important;
    min-width:148px!important;
    height:30px!important;
  }
}
@media(max-width:480px){
  body:is(.ixb-reader-wave,.ixb-author-wave)
  #inklydtGlobalHeader .ix-gh-brand-copy strong {
    flex-basis:132px!important;
    width:132px!important;
    min-width:132px!important;
    height:26px!important;
  }
}
