/* KODEANDKISS — direct EPUB access / cyan, cold blue, crimson and white. */
.site-header[data-site-header] {
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-header .container {
  column-gap: 12px;
}

.site-header .container > .kk-epub-access,
.home-actions > .home-btn.kk-epub-hero {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-block-size: 44px;
  border: 1px solid transparent;
  color: #f5fcff;
  background:
    linear-gradient(115deg, #071a2b, #10152b 58%, #2d1424) padding-box,
    linear-gradient(108deg, #ff426a, #e7faff 24%, #48deff 48%, #578bff 75%, #f5fcff) border-box;
  text-decoration: none;
  text-shadow: 0 1px 2px #020810;
  box-shadow:
    -3px 0 17px rgb(56 215 255 / .2),
    4px 0 17px rgb(255 51 96 / .15),
    inset 0 1px 0 rgb(255 255 255 / .15);
}

.site-header .container > .kk-epub-access {
  flex: 0 0 auto;
  padding: 9px 13px;
  border-radius: 999px;
  font: 800 .76rem/1.2 system-ui, sans-serif;
  letter-spacing: .09em;
  white-space: nowrap;
}

.kk-epub-access::before {
  content: "";
  inline-size: 5px;
  block-size: 5px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #dcfbff;
  box-shadow: 0 0 7px #48deff, -2px 0 9px rgb(255 66 106 / .65);
}

.kk-epub-access__arrow {
  color: #a7e9ff;
  font-size: 1rem;
  line-height: 1;
}

.home-actions > .home-btn.kk-epub-hero {
  border-radius: 18px;
}

.site-header .container > .kk-epub-access:hover,
.home-actions > .home-btn.kk-epub-hero:hover {
  color: #fff;
  box-shadow:
    -4px 0 23px rgb(56 215 255 / .34),
    5px 0 23px rgb(255 51 96 / .25),
    inset 0 1px 0 rgb(255 255 255 / .32);
}

.site-header .container > .kk-epub-access:focus-visible,
.home-actions > .home-btn.kk-epub-hero:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 4px;
}

#editions-title {
  scroll-margin-top: 108px;
}

@media (min-width: 1280px) {
  .site-header .container > .main-nav {
    margin-inline: auto;
  }
}

@media (max-width: 1279px) {
  .js .site-header .container {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto auto;
    gap: 8px;
  }

  .js .site-header .container > .logo {
    grid-column: 1;
    grid-row: 1;
  }

  .js .site-header .container > .kk-epub-access {
    grid-column: 2;
    grid-row: 1;
  }

  .js .site-header .container > .kk-language-switch {
    grid-column: 3;
    grid-row: 1;
    margin-left: 0;
  }

  .js .site-header .container > .nav-toggle {
    grid-column: 4;
    grid-row: 1;
    margin-left: 0;
  }
}

@media (max-width: 479px) {
  .js .site-header .container {
    grid-template-columns: minmax(0, 1fr) auto auto;
  }

  .js .site-header .container > .kk-language-switch {
    grid-column: 2;
  }

  .js .site-header .container > .nav-toggle {
    grid-column: 3;
  }

  .js .site-header .container > .kk-epub-access {
    grid-column: 1 / -1;
    grid-row: 2;
    inline-size: 100%;
  }

  .js .main-nav {
    max-height: calc(100vh - 148px);
    max-height: calc(100svh - 148px);
  }

  #editions-title {
    scroll-margin-top: 150px;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .site-header .container > .kk-epub-access {
    transition: box-shadow .2s ease, color .2s ease;
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-header .container > .kk-epub-access,
  .home-actions > .home-btn.kk-epub-hero {
    animation: none;
    transition: none;
  }

  .home-actions > .home-btn.kk-epub-hero:hover {
    transform: none;
  }
}

@media (forced-colors: active) {
  .site-header .container > .kk-epub-access,
  .home-actions > .home-btn.kk-epub-hero {
    color: LinkText;
    background: Canvas;
    border-color: LinkText;
    box-shadow: none;
    text-shadow: none;
  }

  .kk-epub-access::before {
    display: none;
  }

  .kk-epub-access__arrow {
    color: inherit;
  }

  .site-header .container > .kk-epub-access:focus-visible,
  .home-actions > .home-btn.kk-epub-hero:focus-visible {
    outline-color: Highlight;
  }
}
