:root {
  --mecus-shell-bg: rgba(8, 11, 18, .88);
  --mecus-shell-line: rgba(148, 163, 184, .22);
  --mecus-shell-text: #f8fafc;
  --mecus-shell-muted: #9ca3af;
  --mecus-shell-accent: #ff9900;
  --mecus-shell-discord: #5865f2;
}

body[data-site-shell="document"] {
  padding-top: 82px;
}

.mecus-site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 1000;
  min-height: 58px;
  display: flex;
  justify-content: center;
  border-bottom: 1px solid var(--mecus-shell-line);
  background: var(--mecus-shell-bg);
  color: var(--mecus-shell-text);
  backdrop-filter: blur(16px);
}

.mecus-site-header-inner {
  width: min(1120px, calc(100% - 32px));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 0;
}

.mecus-site-brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--mecus-shell-text);
  text-decoration: none;
  font-weight: 950;
  letter-spacing: 0;
}

.mecus-site-brand-mark {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: var(--mecus-shell-accent);
  color: #111827;
}

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

.mecus-site-nav a {
  color: var(--mecus-shell-muted);
  text-decoration: none;
  font-size: 13px;
  font-weight: 850;
}

.mecus-site-nav a:hover {
  color: var(--mecus-shell-text);
}

.mecus-site-nav .mecus-discord-link {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  border-radius: 8px;
  padding: 0 12px;
  background: var(--mecus-shell-discord);
  color: #fff;
}

.mecus-site-footer {
  width: min(1120px, calc(100% - 32px));
  margin: 46px auto 0;
  padding: 24px 0 34px;
  border-top: 1px solid var(--mecus-shell-line);
  color: var(--mecus-shell-muted);
  font-size: 12px;
  line-height: 1.7;
  text-align: center;
}

.mecus-site-footer-links {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.mecus-site-footer a {
  color: #cbd5e1;
  text-decoration: none;
  font-weight: 800;
}

.mecus-site-footer a:hover {
  color: #fff;
}

.mecus-site-operator {
  max-width: 980px;
  margin: 10px auto 0;
}

.mecus-site-notice {
  max-width: 980px;
  margin: 10px auto 0;
  color: #cbd5e1;
}

@media (max-width: 720px) {
  body[data-site-shell="document"] {
    padding-top: 120px;
  }

  .mecus-site-header-inner {
    align-items: flex-start;
  }

  .mecus-site-nav a:not(.mecus-discord-link) {
    display: none;
  }
}
