/* Shared top bar. Loaded on every public page. */

.site-nav {
  display: block;
  padding: 0;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  min-height: 72px;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border: 0;
  font-family: Inter, -apple-system, BlinkMacSystemFont, sans-serif;
}

.site-nav a {
  color: #a1a1a6;
  text-decoration: none;
}

.site-bar {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 24px;
  position: relative;
  width: 100%;
  min-height: 72px;
  padding: 0 32px 0 28px;
}

.site-bar::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(10, 10, 10, 0.92);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #f5f5f7;
  font-weight: 600;
  letter-spacing: -0.02em;
  flex: 0 0 auto;
}

.site-logo:hover { color: #f5f5f7; }

.site-logo-mark {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  background: #d4722c;
  color: #0a0a0a;
  display: grid;
  place-items: center;
  font-size: 0.85rem;
  font-weight: 700;
}

.site-links {
  display: flex;
  align-items: stretch;
  gap: 4px;
  margin-left: auto;
}

.site-links > a,
.site-drop-btn {
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  background: none;
  border: 0;
  color: #a1a1a6;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
}

.site-links > a:hover,
.site-drop-btn:hover,
.site-drop.is-open > .site-drop-btn {
  color: #f5f5f7;
}

.site-drop {
  position: static;
  display: flex;
  align-items: center;
}

.site-drop-btn::after {
  content: "";
  width: 6px;
  height: 6px;
  margin-left: 7px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-1px) rotate(45deg);
}

.site-cta {
  align-self: center;
  margin-left: 10px;
  padding: 9px 16px;
  border-radius: 980px;
  background: #f5f5f7;
  color: #0a0a0a;
  font-size: 0.88rem;
  font-weight: 600;
}

.site-cta:hover {
  color: #0a0a0a;
  transform: translateY(-1px);
}

.site-burger {
  display: none;
  align-self: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.site-burger span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: #f5f5f7;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.site-burger[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}

.site-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }

.site-burger[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

.site-nav a:focus-visible,
.site-nav button:focus-visible {
  outline: 2px solid #f0a050;
  outline-offset: 3px;
  border-radius: 6px;
}

/* Panels */

.site-panel {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  width: min(980px, calc(100vw - 48px));
  padding-top: 10px;
  z-index: 1001;
}

.site-drop.is-open > .site-panel { display: block; }

.site-panel-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 20px;
  padding: 16px;
  background: #121212;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.5);
}

.site-panel-list {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.site-item {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 7px 8px;
  border-radius: 12px;
  color: #f5f5f7;
}

.site-item:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #f5f5f7;
}

.site-item strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.site-item small {
  display: block;
  margin-top: 2px;
  color: #86868b;
  font-size: 0.8rem;
  line-height: 1.35;
}

.site-icon {
  width: 44px;
  height: 44px;
  padding: 9px;
  box-sizing: border-box;
  border-radius: 12px;
  color: #f0c9a0;
  background:
    linear-gradient(#161311, #161311) padding-box,
    linear-gradient(160deg, #f0c088, #d4722c 46%, #6e3a16) border-box;
  border: 1px solid transparent;
}

.site-all {
  display: inline-flex;
  margin: 6px 8px 4px;
  color: #f0a050;
  font-size: 0.88rem;
  font-weight: 600;
}

.site-all:hover { color: #ffd7ad; }

.site-feature-wrap {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.site-feature {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #101010;
  border: 1px solid #2a2a2a;
  border-radius: 12px;
  overflow: hidden;
  color: #f5f5f7;
}

.site-feature:hover { color: #f5f5f7; }

.site-feature img,
.site-feature-art {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1200 / 630;
  object-fit: cover;
  object-position: center;
  background: #0a0a0a;
}

.site-feature-art {
  display: grid;
  place-items: center;
  background:
    radial-gradient(80% 70% at 50% 42%, rgba(212, 114, 44, 0.16), transparent 62%),
    #0c0c0c;
  color: #e8c4a0;
}

.site-feature-art svg {
  width: 78%;
  height: auto;
}

.site-feature-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 14px 16px;
}

.site-kicker {
  color: #f0a050;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.site-feature strong {
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.site-feature small {
  color: #86868b;
  font-size: 0.82rem;
  line-height: 1.4;
}

.site-more {
  color: #f0a050;
  font-size: 0.84rem;
  font-weight: 600;
}

.site-more:hover { color: #ffd7ad; }

.footer-links { flex-wrap: wrap; }

@media (max-width: 1040px) {
  .site-bar { padding: 0 16px; }

  .site-burger { display: flex; }

  .site-links {
    display: none;
    position: fixed;
    top: 72px;
    right: 0;
    bottom: 0;
    left: 0;
    height: auto;
    margin: 0;
    padding: 8px 16px 32px;
    background: #0a0a0a;
    flex-direction: column;
    align-items: stretch;
    align-self: auto;
    gap: 0;
    overflow: auto;
    z-index: 1001;
  }

  .site-links.is-open { display: flex; }

  .site-links > a,
  .site-drop-btn {
    min-height: 48px;
    padding: 0 8px;
    font-size: 1.05rem;
    justify-content: space-between;
  }

  .site-drop { flex-direction: column; align-items: stretch; }

  .site-cta {
    margin: 16px 8px 0;
    justify-content: center;
    min-height: 48px;
  }

  .site-panel {
    position: static;
    transform: none;
    width: auto;
    padding: 0 0 8px;
  }

  .site-panel-card {
    grid-template-columns: 1fr;
    box-shadow: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-cta:hover { transform: none; }
  .site-burger span { transition: none; }
}
