/* Shared header styles */
.skip-link {
  position: absolute;
  left: -999px;
  top: auto;
  background: var(--blue);
  color: var(--white);
  padding: 10px 16px;
  border-radius: 999px;
  z-index: 1000;
}

.skip-link:focus {
  left: 16px;
  top: 16px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--gray-200);
  backdrop-filter: blur(12px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 16px;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.logo-mark {
  width: 70px;
  height: 70px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  object-fit: contain;
  margin-left: -4px;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

  .brand-name {
    font-weight: 700;
    font-size: 0.92rem;
    letter-spacing: 0.2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .brand-subtitle {
    font-size: 0.75rem;
    color: var(--blue);
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

.nav-toggle {
  display: none;
  background: var(--gray-100);
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  padding: 10px 12px;
  font-weight: 600;
  cursor: pointer;
}

nav ul {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
  white-space: nowrap;
  list-style: none;
  font-size: 0.82rem;
  font-weight: 500;
}

nav {
  margin-left: auto;
}

nav a {
  display: inline-flex;
  align-items: center;
  padding: 6px 8px;
  border-radius: 10px;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

nav a:hover,
nav a:focus-visible {
  background: var(--gray-100);
  color: var(--red);
  transform: scale(1.06);
  text-shadow: 0 0 10px rgba(198, 40, 40, 0.35);
  outline: none;
}

@media (max-width: 1100px) {
  .header-inner {
    position: relative;
    justify-content: flex-start;
  }

  nav {
    margin-left: 0;
    position: static;
    width: auto;
  }

  nav ul {
    position: absolute;
    top: var(--header-height);
    right: 16px;
    left: 16px;
    background: var(--white);
    flex-direction: column;
    align-items: stretch;
    padding: 16px;
    border-radius: 16px;
    box-shadow: var(--shadow);
    border: 1px solid var(--gray-200);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
    transition: opacity 0.2s ease, transform 0.2s ease;
  }

  nav ul.open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  nav a {
    padding: 12px 14px;
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
  }
}

@media (max-width: 720px) {
  .site-header {
    backdrop-filter: none;
  }

  .header-inner {
    height: 72px;
    padding: 0 16px;
    gap: 12px;
  }

  .brand {
    flex: 1 1 auto;
    min-width: 0;
  }

  .brand-text {
    max-width: 100%;
  }

  .logo-mark {
    width: 58px;
    height: 58px;
    margin-left: -2px;
  }

  .brand-name {
    font-size: clamp(0.84rem, 1.2vw, 0.95rem);
    white-space: nowrap;
  }

  .brand-subtitle {
    display: none;
  }
}
