/* Public exploration navigation, shared by every public page. */
.explore-nav {
  box-sizing: border-box;
  max-width: 1360px;
  margin: 0 auto 24px;
  padding: 16px 24px 0;
}
.explore-nav-inner {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 6px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--mp-line-strong, #cfd8e6);
  border-radius: var(--mp-radius, 16px);
  box-shadow: var(--mp-shadow-sm, 0 2px 8px rgba(18, 35, 63, 0.04));
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.explore-nav-inner::-webkit-scrollbar { display: none; }
.explore-nav-track { position: relative; }
.explore-nav-edge {
  position: absolute;
  top: 1px;
  bottom: 1px;
  z-index: 1;
  width: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  border-radius: 14px;
}
.explore-nav-edge[hidden] { display: none; }
.explore-nav-edge-left { left: 1px; background: linear-gradient(to right, #f8faff 30%, transparent); }
.explore-nav-edge-right { right: 1px; background: linear-gradient(to left, #f8faff 30%, transparent); }
.explore-nav-arrow {
  width: 32px;
  height: 32px;
  padding: 0;
  border: 1px solid #cfd8e6;
  border-radius: 50%;
  background: #fff;
  color: var(--mp-primary, #2b59c3);
  box-shadow: 0 2px 6px #12233f14;
  cursor: pointer;
  pointer-events: auto;
}
.explore-nav-arrow:hover { background: #edf3fe; }
.explore-nav-arrow:focus-visible { outline: 2px solid #2b59c3; outline-offset: 2px; }
@media (hover: hover) and (pointer: fine) {
  .explore-nav-inner { cursor: grab; user-select: none; }
  .explore-nav-inner .explore-nav-link { cursor: inherit; }
  .explore-nav-inner.is-dragging, .explore-nav-inner.is-dragging a { cursor: grabbing; }
  .explore-nav-arrow { opacity: 0; pointer-events: none; transition: opacity .15s ease; }
  .explore-nav-track:hover .explore-nav-arrow,
  .explore-nav-track:focus-within .explore-nav-arrow { opacity: 1; pointer-events: auto; }
}
@media (pointer: coarse) {
  .explore-nav-edge { width: 18px; }
  .explore-nav-arrow { display: none; }
}
.explore-nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  border-radius: 12px;
  text-decoration: none;
  color: var(--mp-ink-soft, #43536b);
  background: transparent;
  transition: all 0.2s ease;
  white-space: nowrap;
  position: relative;
  border: 1px solid transparent;
}
.explore-nav-link:hover {
  background: #f1f5fd;
  color: var(--mp-primary, #2b59c3);
}
.explore-nav-link.is-active {
  background: var(--mp-surface, #ffffff);
  color: var(--mp-primary, #2b59c3);
  border-color: #cbdcfc;
  box-shadow: 0 2px 10px rgba(43, 89, 195, 0.12);
}
.explore-nav-icon {
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: #edf3fe;
  color: var(--mp-primary, #2b59c3);
  font-size: 1.05rem;
  transition: all 0.2s ease;
}
.explore-nav-link.is-active .explore-nav-icon {
  background: linear-gradient(135deg, var(--mp-primary, #2b59c3), #1f449c);
  color: #ffffff;
}
.explore-nav-text {
  display: flex;
  flex-direction: column;
}
.explore-nav-title {
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.25;
}
.explore-nav-desc {
  font-size: 0.76rem;
  color: var(--mp-muted, #6b7a90);
  line-height: 1.2;
}
.explore-nav-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 20px;
  background: linear-gradient(135deg, #0ea5e9, #194685);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 700;
  margin-inline-start: 4px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  box-shadow: 0 2px 6px rgba(14, 165, 233, 0.3);
}

.explore-nav-link:focus-visible {
  outline: 2px solid var(--mp-primary, #2b59c3);
  outline-offset: -2px;
}

/* The navigation now sits outside the page containers. */
.app-main-content > .explore-nav + :is(.catalog-container, .blog-container) {
  padding-top: 0 !important;
}

@media (max-width: 768px) and (min-width: 641px) {
  .explore-nav { padding-inline: 12px; }
}

@media (max-width: 640px) {
  /* Navigation inter-sections */
  .explore-nav {
    margin-bottom: 14px;
    padding: 8px 6px 0;
  }
  .explore-nav-inner {
    padding: 3px;
    border-radius: 12px;
    gap: 6px;
  }
  .explore-nav-link {
    padding: 7px 10px;
    border-radius: 8px;
    gap: 8px;
  }
  .explore-nav-icon {
    flex-basis: 32px;
    width: 32px;
    height: 32px;
    font-size: 0.9rem;
    border-radius: 8px;
  }
  .explore-nav-title {
    font-size: 0.85rem;
  }
  .explore-nav-desc {
    font-size: 0.7rem;
  }

}

html[lang="ar"] .explore-nav-title {
  font-family: var(--mp-font-ar-heading);
  font-size: .8rem;
  font-weight: 600;
  line-height: 1.8;
  letter-spacing: 0;
}
@media (max-width: 640px) {
  html[lang="ar"] .explore-nav-title { font-size: .72rem; }
}
