/* Seven standard Polish headers only. The book landing and quiz do not mount it. */
.header .nav.an-book-nav-host {
  gap: 16px;
}
.an-book-nav-brand {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 16px;
  min-width: 0;
}
.an-book-nav-brand > a:first-child {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
}
.an-book-nav {
  box-sizing: border-box;
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  padding: 4px 12px;
  border: 1px solid #96c7cc66;
  border-radius: 8px;
  background: radial-gradient(ellipse at 10% 0%, #98d8ef20, transparent 70%),
              linear-gradient(115deg, #173034, #1d2926);
  color: #c0e7ef;
  box-shadow: inset 0 1px 0 #ffffff0b, 0 0 18px #83ceff0b;
  font-family: var(--body, "DM Sans", sans-serif);
  line-height: 1.15;
  text-decoration: none;
  white-space: nowrap;
  animation: an-book-nav-glow 4.8s ease-in-out infinite;
  transition: border-color .18s ease, background-color .18s ease, box-shadow .18s ease;
}
@keyframes an-book-nav-glow {
  0%, 100% { border-color: #96c7cc66; box-shadow: inset 0 1px 0 #ffffff0b, 0 0 12px #83ceff08; }
  50% { border-color: #dab38599; box-shadow: inset 0 1px 0 #ffffff12, 0 0 18px #e3a46718; }
}
.an-book-nav-cover {
  display: block;
  flex: 0 0 24px;
  width: 24px;
  height: 34px;
  max-width: none;
  object-fit: contain;
  border-radius: 1px;
  box-shadow: 1px 0 0 #b9c9ce, 3px 2px 6px #0008;
}
.an-book-nav-copy { display: grid; gap: 3px; }
.an-book-nav-label {
  color: #efc293;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.an-book-nav-title {
  color: #f0f6ef;
  font-size: 12px;
  font-weight: 650;
}
@media (hover: hover) {
  .an-book-nav:hover {
    animation: none;
    border-color: #a8dde5;
    box-shadow: inset 0 1px 0 #ffffff15, 0 0 20px #83ceff20;
  }
}
.an-book-nav:focus-visible {
  outline: 2px solid #d8fa70;
  outline-offset: 4px;
}
@media (max-width: 900px) {
  .an-book-nav-brand { gap: 10px; }
  .an-book-nav {
    flex-direction: column;
    justify-content: center;
    gap: 2px;
    width: 48px;
    height: 44px;
    padding: 3px 2px;
    border-radius: 7px;
  }
  .an-book-nav-cover { flex: 0 0 24px; width: 17px; height: 24px; }
  .an-book-nav-copy { display: block; }
  .an-book-nav-label { display: block; font-size: 8px; line-height: 1.2; letter-spacing: .025em; }
  .an-book-nav-title { display: none; }
  .header .nav.an-book-nav-host { gap: 10px; }
}
@media (max-width: 540px) {
  /* One row at 320px, including the cart bridge's visible bag and count badge. */
  .header .wrap.nav.an-book-nav-host { width: calc(100% - 24px); gap: 6px; }
  .an-book-nav-brand { gap: 6px; }
  .an-book-nav-brand .brand { font-size: 1.5rem; }
  .an-book-nav-brand .brand i { font-size: 2rem; }
  .an-book-nav { width: 44px; }
  .header .an-book-nav-host .nav-right { flex: 0 0 auto; gap: 6px; }
  .header .an-book-nav-host .language-menu > summary {
    box-sizing: border-box;
    min-width: 44px;
    width: 44px;
    min-height: 44px;
    padding: 8px 5px;
    gap: 4px;
    justify-content: center;
  }
  .header .an-book-nav-host .language-menu > summary > svg:first-child { display: none; }
  .header .an-book-nav-host .language-menu > summary > .language-chevron { width: 10px; }
  .header .an-book-nav-host .menu-button { padding: 5px; min-width: 30px; min-height: 44px; }
}
@media (prefers-reduced-motion: reduce) {
  .an-book-nav { animation: none; transition: none; }
}
