/* CSP-safe navigation helpers */

/* Legacy top navigation row with a Home button */
.top-nav {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
}

.home-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border: 1px solid #cfcfcf;
  border-radius: 10px;
  background: #fff;
  color: #111;
  text-decoration: none;
  font-weight: 600;
  line-height: 1;
}

.home-btn:hover { background: #f4f4f4; }
.home-btn:active { transform: translateY(1px); }

/* Inline nav row (Back + Home icon on same line) */
.nav-inline {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
}

.nav-icon-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 1px solid #cfcfcf;
  border-radius: 10px;
  background: #fff;
  color: #111;
  text-decoration: none;
  line-height: 1;
}

.nav-icon-link:hover { background: #f4f4f4; }
.nav-icon-link:active { transform: translateY(1px); }

.nav-icon-link img {
  width: 18px;
  height: 18px;
  display: block;
}

.back-icon-link {
  font-size: 20px;
  font-weight: 700;
}

/* For pages that want the icon at the very top */
.page-topbar {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 10px 14px;
}

/* Optional: keep existing back arrows from overlapping (legacy) */
.back-arrow {
  position: fixed;
  left: 12px;
  top: 58px;
}
