/* Shared navigation and keyboard access for every public page. */
.skip-link {
  position: absolute;
  left: 12px;
  top: 12px;
  padding: 10px 12px;
  background: #fff;
  border: 1px solid var(--color-divider, #e8e8e8);
  border-radius: 10px;
  box-shadow: var(--shadow-soft);
  transform: translateY(-160%);
  transition: transform 160ms ease;
  z-index: 1000;
}

.skip-link:focus {
  transform: translateY(0);
  outline: 3px solid rgba(0, 242, 255, 0.55);
  outline-offset: 2px;
}

header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(20px);
  background: var(--glass-bg);
  border-bottom: 1px solid var(--glass-border);
}

.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-width: 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: 0.2px;
  white-space: nowrap;
}

.logo {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: url("icons/icon-512.png") center/cover no-repeat;
  box-shadow: 0 4px 12px rgba(5, 103, 108, 0.2);
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: flex-end;
}

nav a {
  display: inline-flex;
  align-items: center;
  padding: 10px 14px;
  border-radius: 14px;
  color: var(--color-text-2);
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(229, 229, 231, 0.9);
  box-shadow: var(--shadow-soft);
  font-weight: 600;
  font-size: 14px;
}

nav a:hover {
  background: rgba(245, 245, 247, 0.9);
  text-decoration: none;
  color: var(--color-primary);
}

nav a:focus-visible {
  outline: 3px solid rgba(0, 242, 255, 0.55);
  outline-offset: 2px;
}

@media (max-width: 520px) {
  .container.header-inner {
    height: auto;
    min-height: var(--header-h);
    padding-top: 12px;
    padding-bottom: 12px;
    flex-wrap: wrap;
  }

  nav {
    gap: 8px;
    justify-content: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  .skip-link {
    transition: none;
  }
}
