/* appbar.css — header + mobile nav drawer */

.pagehead {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid var(--divider);
}
.pagehead__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 72px;
}
.mark {
  font-family: var(--ff-display);
  font-weight: 800;
  font-size: 1.35rem;
  color: var(--fg);
  text-decoration: none;
  letter-spacing: -0.02em;
}
.mark span { color: var(--accent); }

.pagehead__nav { display: none; }
.pagehead__links { display: flex; align-items: center; gap: 26px; list-style: none; margin: 0; padding: 0; }
.pagehead__links a { color: var(--fg); text-decoration: none; font-weight: 600; font-size: .98rem; }
.pagehead__links a:hover { color: var(--brand); }
.pagehead__cta { display: none; }

.burger-btn {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 48px;
  height: 48px;
  padding: 0 11px;
  background: transparent;
  border: 1px solid var(--divider);
  border-radius: 12px;
  cursor: pointer;
}
.burger-btn span { display: block; height: 2px; background: var(--fg); border-radius: 2px; transition: transform .25s var(--ease), opacity .2s var(--ease); }
.burger-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* mobile overlay — no backdrop-filter/transform/filter on ancestors */
.drawer {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: var(--night);
  color: #fff;
  display: flex;
  flex-direction: column;
  padding: 88px 28px 40px;
  opacity: 0;
  visibility: hidden;
  transition: opacity .26s var(--ease), visibility .26s var(--ease);
}
.drawer.is-open { opacity: 1; visibility: visible; }
.drawer__links { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.drawer__links a {
  display: block;
  padding: 15px 4px;
  font-family: var(--ff-display);
  font-size: 1.5rem;
  color: #fff;
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.drawer__links a:hover { color: var(--accent); }
.drawer__cta { margin-top: 30px; }
.drawer__close {
  position: absolute;
  top: 22px;
  right: 22px;
  width: 48px;
  height: 48px;
  background: transparent;
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 12px;
  color: #fff;
  font-size: 1.6rem;
  cursor: pointer;
}

@media (min-width: 920px) {
  .burger-btn, .drawer { display: none; }
  .pagehead__nav { display: block; }
  .pagehead__cta { display: inline-flex; }
}
