/* Public catalogue masthead. Existing search and reader controls retain their handlers. */
html body #landing {
  --kb-grid-gutter:16px;
  --kb-content-inset:28px;
  --kb-grid-max:1680px;
}
@media(min-width:1024px){html body #landing{--kb-grid-max:none}}
@media(max-width:900px){html body #landing{--kb-grid-gutter:8px;--kb-content-inset:14px}}
html body #landing > :is(#library-catalog-header, .global-shell) {
  box-sizing:border-box!important;
  width:calc(100% - 2 * var(--kb-grid-gutter))!important;
  max-width:var(--kb-grid-max)!important;
  margin-inline:auto!important;
}

html body #landing > .global-shell > .global-home {
  padding-inline:var(--kb-content-inset)!important;
}

/* Three units on the same baseline: identity, search and the reader's controls. */
html body #landing > #library-catalog-header {
  --header-ink: #253c32;
  --header-height: 50px;
  position: relative;
  z-index: 5;
  display: grid !important;
  grid-template-columns: max-content minmax(0,1fr) max-content !important;
  grid-template-rows: auto !important;
  align-items: center !important;
  gap: clamp(18px,2.6vw,48px) !important;
  min-height: 0 !important;
  height: auto !important;
  padding: clamp(26px,2.2vw,36px) var(--kb-content-inset) !important;
  margin: 6px auto 0 !important;
  border: 0 !important;
  border-radius: 7px 7px 0 0 !important;
  background: #fff !important;
  color: var(--header-ink);
  box-shadow: none !important;
  overflow: visible !important;
}
html body #landing > #library-catalog-header > .kitapbul-brand-lockup {
  display: grid !important; grid-area: 1 / 1 !important; gap: 4px; padding: 0 !important; min-width: 0;
}
html body #landing > #catalog-notice + #library-catalog-header {
  width:100%!important;
  max-width:none!important;
  border-radius:0!important;
}
html body #landing > #library-catalog-header #kitapbul-header-brand { min-height: 26px !important; }
#landing > #library-catalog-header .kitapbul-brand-search { display: none !important; }
html body #landing > #library-catalog-header .kitapbul-brand-actions > span { color: #405e4e !important; }
html body #landing > #library-catalog-header > .global-search {
  grid-area: 1 / 2 !important;
  display: grid !important;
  grid-template-columns: minmax(0,1fr) 44px max-content !important;
  align-items: center !important;
  gap: 0 !important;
  justify-self: center !important;
  box-sizing: border-box !important;
  width:100%!important; max-width: 62rem !important; min-width: 0 !important;
  height: var(--header-height) !important;
  padding: 2px !important; margin: 0 !important;
  border: 1px solid #d3d9cb !important; border-radius: 7px !important;
  background: #fff !important; overflow: hidden !important; box-shadow: none !important;
}
html body #landing > #library-catalog-header > .global-search:focus-within { outline: 2px solid #987343; outline-offset: 3px; }
html body #landing > #library-catalog-header > .global-search input {
  box-sizing: border-box; width: 100% !important; min-width: 0 !important; height: 44px !important; min-height: 44px !important;
  margin: 0 !important; padding: 0 13px !important;
  border: 0 !important; background: transparent !important; color: #21392b !important;
  font: 400 16px/1.3 system-ui,sans-serif !important;
}
#landing > #library-catalog-header .global-search input::placeholder { color: #596b60; opacity: 1; }
html body #landing > #library-catalog-header > .global-search > button {
  position: static !important; display: inline-flex !important; align-items: center !important; justify-content: center !important;
  height: 44px !important; min-width: 44px !important; min-height: 44px !important; width: auto !important;
  margin: 0 !important; border: 0 !important; box-shadow: none !important;
}
html body #landing > #library-catalog-header > .global-search > .global-photo-search {
  color: #405e4e !important; background: transparent !important; border-radius: 4px !important; padding: 0 !important;
}
html body #landing > #library-catalog-header > .global-search > .global-photo-search:hover { background: #e8ecdf !important; }
html body #landing > #library-catalog-header > .global-search > .global-search-submit {
  padding: 0 15px !important; gap: 7px !important; color: var(--header-ink) !important; background: #f3f4f2 !important;
  border-radius: 0 5px 5px 0 !important; font: 650 .925rem/1 system-ui,sans-serif !important;
}
html body #landing > #library-catalog-header > .global-search > .global-search-submit:hover { background: #e8ebe7 !important; }
html body #landing > #library-catalog-header > .global-search .global-search-submit span { display: inline !important; }
html body #landing > #library-catalog-header .global-photo-search span { display: none !important; }
html body #landing > #library-catalog-header > .global-search button svg,
html body #landing > #library-catalog-header .kb-reader-actions :is(.home-cart-icon,.kb-list-icon) {
  display: block !important; flex: 0 0 19px !important; width: 19px !important; height: 19px !important;
  stroke: currentColor !important; stroke-width: 1.7 !important; stroke-linecap: round; fill: none !important;
}
html body #landing > #library-catalog-header .kb-reader-actions {
  grid-area: 1 / 3 !important; justify-self: end; position: relative;
  display: inline-flex; align-items: center; box-sizing: border-box; padding: 2px;
  height: var(--header-height); gap: 0; border: 1px solid #d3d9cb; border-radius: 7px; background: #fff;
}
html body #landing > #library-catalog-header .kb-reader-actions :is(details, nav) {
  position: static !important; display: block !important; margin: 0 !important; padding: 0 !important;
  width: auto !important; min-width: 0 !important; gap: 0 !important; flex: 0 0 auto !important; order: 0 !important;
  border: 0 !important; background: transparent !important; overflow: visible !important;
}
html body #landing > #library-catalog-header .kb-reader-actions :is(summary,.home-cart-open) {
  display: inline-flex !important; justify-content: center !important; align-items: center !important; gap: 7px !important;
  box-sizing: border-box !important; height: 44px !important; min-height: 44px !important; min-width: 44px !important;
  max-width: none !important; width: auto !important; margin: 0 !important; padding: 0 clamp(8px,.85vw,14px) !important;
  color: var(--header-ink) !important; background: transparent !important; border: 0 !important; box-shadow: none !important;
  border-radius: 4px !important; white-space: nowrap !important; font: 600 .925rem/1.15 Manrope,system-ui,sans-serif !important;
  cursor: pointer; list-style: none;
}
#library-catalog-header .home-cart-open .kb-action-label { padding: 0; background: transparent; color: inherit; }
#library-catalog-header summary::-webkit-details-marker { display: none; }
#library-catalog-header .institution-login-trigger::before { width: 19px !important; height: 19px !important; flex-basis: 19px !important; }
html body #landing > #library-catalog-header .kb-reader-actions :is(summary,.home-cart-open):hover,
html body #landing > #library-catalog-header .kb-reader-actions details[open] > summary { background: #e8eee4 !important; }
html body #landing > #library-catalog-header .kb-reader-actions [data-home-cart-count] {
  position: static !important; display: inline-grid; place-items: center; flex: none;
  box-sizing: border-box; min-width: 18px; height: 18px; padding: 0 4px; border: 0; border-radius: 9px;
  background: #f0e3c4 !important; color: #293d30 !important; font: 750 11px/1 system-ui,sans-serif; font-variant-numeric: tabular-nums;
}
#landing #library-catalog-header .kb-reader-actions [data-home-cart-count][hidden] { display: none; }
html body #landing > #library-catalog-header .kb-reader-actions :is(.kitapbul-account-links,.catalog-lists-options) {
  position: absolute; z-index: 24; inset: calc(100% + 7px) 0 auto auto; box-sizing: border-box;
  width: min(17rem,calc(100vw - 44px)); padding: 5px; border: 1px solid #c9d3c8; border-radius: 8px;
  background: #fffdf7; box-shadow: 0 8px 24px #172d2229; text-align: left;
}
#library-catalog-header details:not([open]) > :is(.kitapbul-account-links,.catalog-lists-options) { display: none !important; }
html body #landing > #library-catalog-header .kb-reader-actions :is(.kitapbul-account-links,.catalog-lists-options) > :is(a,button) {
  display: block !important; box-sizing: border-box; width: 100% !important; min-height: 44px !important; padding: 11px 12px !important;
  color: #254337 !important; border: 0 !important; border-radius: 5px; background: transparent !important; text-align: left !important;
  font: 650 .94rem/1.4 Manrope,system-ui,sans-serif !important; text-decoration: none;
}
#library-catalog-header .kitapbul-account-links small { display: block; margin-top: 2px; color: #5a685c; font-size: .82rem; font-weight: 450; }
html body #landing > #library-catalog-header .kb-reader-actions :is(.kitapbul-account-links,.catalog-lists-options) > :is(a,button):is(:hover,:focus-visible) { background: #e8eee4 !important; }
html body #landing > #library-catalog-header :is(a,button,summary):focus-visible { outline: 2px solid #987343; outline-offset: -3px; }
html body #landing > #library-catalog-header :is(.kitapbul-account-links,.catalog-lists-options,.global-search) :is(a,button):focus-visible { outline-color: #987343; }
html body #landing > #library-catalog-header,
html body #landing > #library-catalog-header > .global-search,
html body #landing > #library-catalog-header > .global-search > :is(input, button) { transition:none!important; animation:none!important; }

@media(max-width:900px) {
  html body #landing > #library-catalog-header {
    grid-template-columns: minmax(0,1fr) max-content !important; grid-template-rows: auto auto !important;
    gap: 12px !important; padding-block: 15px !important; margin-top: 4px !important;
  }
  html body #landing > #library-catalog-header > .global-search { grid-area: 2 / 1 / 3 / -1 !important; }
  html body #landing > #library-catalog-header .kb-reader-actions { grid-area: 1 / 2 !important; }
  html body #landing > #library-catalog-header .kitapbul-brand-actions { display: none !important; }
}
@media(max-width:600px) {
  /* Keep the same accessible control names in the narrow icon row. */
  #library-catalog-header .kb-reader-actions .kb-action-label {
    position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap;
  }
  html body #landing > #library-catalog-header .kb-reader-actions :is(summary,.home-cart-open) { padding: 0 9px !important; gap: 3px !important; }
}

@media(max-width:350px) {
  html body #landing > #library-catalog-header { column-gap: 6px !important; }
}
