/* =====================================================================
   SHARED NAVBAR (the "dock" component) + brand logo swap.
   Identical across every page of the site — pulled out of each page's
   inline <style> into one file. Colors/fonts still come from each
   page's own custom properties (--ease, --card, --bg/--paper, etc.),
   so this file stays visually correct across the different token sets.
   Rules that genuinely differ per page (colors, sizing, z-index) stay
   inline on that page — only byte-identical rules live here.
   ===================================================================== */

.dock__burger {
  position: relative;
  width: 15px;
  height: 12px;
  flex: none;
}
.dock__burger i {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 1.6px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.45s cubic-bezier(0.34, 1.5, 0.5, 1);
}
.dock__burger i:nth-child(1) {
  transform: translateY(-4px);
}
.dock__burger i:nth-child(2) {
  transform: translateY(4px);
}
.dock.is-open .dock__burger i:nth-child(1) {
  transform: translateY(0) rotate(45deg);
}
.dock.is-open .dock__burger i:nth-child(2) {
  transform: translateY(0) rotate(-45deg);
}
.dock__triggerLabel {
  min-width: 34px;
  text-align: left;
}
.dock__headRight {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 6px;
}
.dock__mobileUtil {
  display: none;
}
@media (max-width: 560px) {
  .dock__head .dock__lang,
  .dock__head .dock__theme {
    display: none;
  }
  .dock__mobileUtil {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 2px 8px 14px;
    margin: 0 0 8px;
    border-bottom: 1px solid var(--line);
  }
}
.dock__theme {
  background: none;
  border: none;
  color: inherit;
  cursor: pointer;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  transition: background-color 0.25s var(--ease);
}
.dock__theme:hover {
  background: rgba(255, 255, 255, 0.14);
}
.dock__theme svg {
  width: 15px;
  height: 15px;
}
.dock__lang {
  display: flex;
  align-items: center;
  gap: 2px;
  background: rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  padding: 3px;
}
.dock__langBtn {
  border: none;
  background: none;
  color: inherit;
  cursor: pointer;
  font-size: 0.95rem;
  line-height: 1;
  padding: 4px 6px;
  border-radius: 999px;
  opacity: 0.7;
  transition:
    background-color 0.25s var(--ease),
    opacity 0.25s var(--ease);
}
.dock__langBtn:hover {
  opacity: 1;
}
.dock__prog span:last-child {
  position: relative;
  z-index: 1;
}
.dock__progFill {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 0%;
  background: rgba(255, 255, 255, 0.3);
  transition: width 0.1s linear;
}
.dock__gap {
  height: 10px;
}
.dock__grp {
  margin-bottom: 6px;
}
.dock__body::-webkit-scrollbar {
  width: 6px;
}
.dock.is-open .dock__body {
  opacity: 1;
  transform: none;
  transition-delay: 0.12s;
}
.dock__scrim.is-open {
  opacity: 1;
  visibility: visible;
}

/* Brand logo — swaps the light/dark logo asset with the theme.
   Compound class selectors (.brand__logo.brand__logo--dark) keep these
   at higher specificity than the plain ".brand__logo { display: block }"
   base rule each page still keeps inline, so the override always wins
   regardless of which stylesheet loads first. */
.brand__logo.brand__logo--dark {
  display: none;
}
:root[data-theme="dark"] .brand__logo.brand__logo--dark {
  display: block;
}
:root[data-theme="dark"] .brand__logo.brand__logo--light {
  display: none;
}
.footer__logo .brand__logo {
  height: 32px;
}
