/**
 * Gramo 全站頂欄 — 分隔線緊貼 Logo 列，主內容唔重複留白
 */
:root {
  --gramo-header-h: 56px;
}

.gramo-site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 20;
  height: var(--gramo-header-h);
  background: linear-gradient(180deg, rgba(9, 10, 16, 0.92), rgba(9, 10, 16, 0.68));
  backdrop-filter: blur(18px);
}

.gramo-site-header > nav.shell {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  height: var(--gramo-header-h) !important;
  min-height: var(--gramo-header-h) !important;
  padding: 2px 22px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.gramo-site-header .brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  margin-right: auto;
  font-size: 22px;
  font-weight: 680;
  letter-spacing: -0.02em;
  color: var(--gramo-text);
  text-decoration: none;
}

.gramo-site-header .brand img {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: block;
  box-shadow: 0 0 32px rgba(var(--gramo-accent-rgb), 0.28);
}

.gramo-site-header .nav-end {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  margin-left: auto;
}

.gramo-site-header .nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  color: var(--muted);
  font-size: 14px;
}

.gramo-site-header .nav-links a {
  padding: 4px 2px;
  border-radius: 6px;
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

.gramo-site-header .nav-links a:hover {
  color: var(--gramo-text);
}

.gramo-site-header .nav-links a.is-active {
  color: var(--gramo-text);
  font-weight: 650;
  box-shadow: inset 0 -2px 0 var(--gramo-accent);
}

/* 主內容：只留頂欄高度，線下唔再多一截空白 */
body.has-gramo-header > main,
body.has-gramo-header > .page-main {
  padding-top: var(--gramo-header-h);
}

body.has-gramo-header > main#top {
  padding-top: 0;
}

@media (min-width: 768px) {
  .gramo-site-header > nav.shell {
    padding: 2px 32px;
  }
}

@media (min-width: 1200px) {
  .gramo-site-header > nav.shell {
    padding: 2px 44px;
  }
}

@media (max-width: 920px) {
  .gramo-site-header .nav-links {
    display: none;
  }
}
