/* Anasayfa Context Nav — module-page.css'ten ayrıştırıldı. global/inject.mjs
   marker bloğunun DIŞINDA yüklenir (index.html). */
body.qrmo-home-ctx {
  --qrmo-mod-ctx-h: 42px;
  --qm-gold: #C9A84C;
  --qm-gold-ink: #7F6419;
  --qm-muted: #56625B;
  --qm-ink: #0D2B22;
  --qm-ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- anasayfa modül context nav (yalnızca .qrmo-home-mod-zone) ---------- */

.qrmo-home-mod-zone {
  position: relative;
  min-width: 0;
  max-width: 100%;
  overflow-x: clip;
}

.qrmo-mod-ctx--home {
  display: block;
  position: sticky;
  top: var(--qrmo-mod-ctx-sticky-top, var(--qrmo-gh-h, 76px));
  z-index: 40;
  left: 0;
  right: 0;
  width: 100%;
  min-width: 0;
  max-width: none;
  height: var(--qrmo-mod-ctx-h);
  margin: 0;
  padding: 0;
  border: 0;
  border-bottom: 1px solid rgba(13, 43, 34, .06);
  box-sizing: border-box;
  background: rgba(248, 246, 240, .94);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  box-shadow: none;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  overflow: hidden;
  touch-action: pan-y;
  --qm-ctx-window: min(34rem, 40vw);
  --qm-ctx-fade: 3.25rem;
  transition: opacity .14s var(--qm-ease), visibility .14s var(--qm-ease);
}

.qrmo-mod-ctx--home.is-zone-live {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.qrmo-mod-ctx--home .qrmo-mod-ctx-scroll {
  display: flex;
  align-items: center;
  width: 100%;
  max-width: none;
  height: calc(var(--qrmo-mod-ctx-h) - 1px);
  min-height: calc(var(--qrmo-mod-ctx-h) - 1px);
  max-height: calc(var(--qrmo-mod-ctx-h) - 1px);
  min-width: 0;
  box-sizing: border-box;
  overflow: hidden;
  overscroll-behavior-x: none;
  scrollbar-width: none;
  touch-action: pan-y;
  -webkit-mask-image: linear-gradient(
    90deg,
    transparent 0,
    transparent calc(50% - (var(--qm-ctx-window) / 2) - var(--qm-ctx-fade)),
    #000 calc(50% - (var(--qm-ctx-window) / 2)),
    #000 calc(50% + (var(--qm-ctx-window) / 2)),
    transparent calc(50% + (var(--qm-ctx-window) / 2) + var(--qm-ctx-fade)),
    transparent 100%
  );
  mask-image: linear-gradient(
    90deg,
    transparent 0,
    transparent calc(50% - (var(--qm-ctx-window) / 2) - var(--qm-ctx-fade)),
    #000 calc(50% - (var(--qm-ctx-window) / 2)),
    #000 calc(50% + (var(--qm-ctx-window) / 2)),
    transparent calc(50% + (var(--qm-ctx-window) / 2) + var(--qm-ctx-fade)),
    transparent 100%
  );
}

.qrmo-mod-ctx--home .qrmo-mod-ctx-scroll::-webkit-scrollbar {
  display: none;
}

.qrmo-mod-ctx--home .qrmo-mod-ctx-links {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0;
  min-width: min-content;
  width: max-content;
  margin: 0;
  padding: 0;
  list-style: none;
  will-change: transform;
}

@media (max-width: 560px) {
  .qrmo-mod-ctx--home .qrmo-mod-ctx-links {
    padding-inline: 0;
  }
}

.qrmo-mod-ctx--home .qrmo-mod-ctx-links > li {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
}

.qrmo-mod-ctx--home .qrmo-mod-ctx-links > li + li::before {
  content: "•";
  margin: 0 .65rem;
  color: rgba(201, 168, 76, .45);
  font-size: 9px;
  line-height: 1;
  pointer-events: none;
  user-select: none;
}

.qrmo-mod-ctx--home .qrmo-mod-ctx-link {
  display: inline-flex;
  align-items: center;
  box-sizing: border-box;
  min-height: calc(var(--qrmo-mod-ctx-h) - 1px);
  height: calc(var(--qrmo-mod-ctx-h) - 1px);
  max-height: calc(var(--qrmo-mod-ctx-h) - 1px);
  padding: 0 10px 1px;
  color: var(--qm-muted);
  font-family: "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: .1em;
  line-height: 1.2;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
  border-bottom: 0;
  box-shadow: inset 0 -1px 0 transparent;
  transition: color .16s var(--qm-ease), box-shadow .16s var(--qm-ease);
}

/* Bold width is always reserved, so weight 500 → 600 does not shift the row. */
.qrmo-mod-ctx--home .qrmo-mod-ctx-link-t {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
}

.qrmo-mod-ctx--home .qrmo-mod-ctx-link-t::after {
  content: attr(data-text);
  font-weight: 600;
  height: 0;
  min-height: 0;
  line-height: 0;
  overflow: hidden;
  visibility: hidden;
  pointer-events: none;
  user-select: none;
}

.qrmo-mod-ctx--home .qrmo-mod-ctx-link:hover {
  color: var(--qm-ink);
}

.qrmo-mod-ctx--home .qrmo-mod-ctx-link.is-active,
.qrmo-mod-ctx--home .qrmo-mod-ctx-link[aria-current="location"] {
  color: var(--qm-gold-ink);
  box-shadow: inset 0 -1px 0 var(--qm-gold);
  font-weight: 600;
}

.qrmo-mod-ctx--home .qrmo-mod-ctx-link:focus-visible {
  outline: 2px solid var(--qm-gold);
  outline-offset: 2px;
}

@media (max-width: 767px) {
  .qrmo-mod-ctx--home {
    --qm-ctx-window: min(15.5rem, 56vw);
    --qm-ctx-fade: 2.5rem;
  }
}

@media (max-width: 390px) {
  .qrmo-mod-ctx--home {
    --qm-ctx-window: min(11.25rem, 50vw);
    --qm-ctx-fade: 2.1rem;
  }

  .qrmo-mod-ctx--home .qrmo-mod-ctx-link {
    font-size: 10px;
    letter-spacing: .08em;
    padding: 0 8px 1px;
  }

  .qrmo-mod-ctx--home .qrmo-mod-ctx-links > li + li::before {
    margin: 0 .45rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .qrmo-mod-ctx--home {
    transition: none;
  }

  .qrmo-mod-ctx--home .qrmo-mod-ctx-link {
    transition: none;
  }

  .qrmo-mod-ctx--home .qrmo-mod-ctx-links {
    transition: none !important;
  }
}

