/* Shared Public Emergency Codes logo button. Keep identical on every page. */
.site-mark {
  position: fixed !important;
  top: 16px !important;
  left: 20px !important;
  z-index: 2147483646 !important;
  display: flex !important;
  align-items: center !important;
  gap: 7px !important;
  padding: 7px !important;
  border: 1px solid #CBD5E1 !important;
  border-radius: 100px !important;
  color: #C8102E !important;
  background: rgba(255, 255, 255, 0.95) !important;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.08) !important;
  backdrop-filter: blur(20px);
  text-decoration: none !important;
  transform: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease !important;
}

.site-mark:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12) !important;
}

.site-mark:focus-visible {
  outline: 3px solid rgba(200, 16, 46, 0.3);
  outline-offset: 3px;
}

.site-mark .home-planet {
  width: 1.92rem !important;
  height: 1.92rem !important;
  flex: 0 0 1.92rem !important;
}

.site-mark .home-planet img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 50%;
}

.site-mark .home-logo-text {
  position: relative;
  display: flex;
  flex-direction: column;
  margin: 0;
  transform: none;
}

.site-mark .home-logo-text > span {
  display: block;
  color: #0F172A !important;
  font-size: 0.68rem !important;
  font-weight: 900 !important;
  line-height: 0.94 !important;
  letter-spacing: 0.02em !important;
  text-transform: uppercase;
  white-space: nowrap;
}

.site-mark .home-logo-text > .logo-emergency {
  color: #C8102E !important;
}

@media (max-width: 900px),
  (orientation: landscape) and (max-width: 1100px) and (max-height: 650px) {
  .site-mark {
    top: max(14px, env(safe-area-inset-top)) !important;
    left: max(14px, env(safe-area-inset-left)) !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-mark {
    transition-duration: 0.01ms !important;
  }
}
