/* Navigation System: dark/#areas route, scoped to this page's navy band. */
#navsys-route {
  background: var(--brand-navy);
  color: var(--bg);
  padding-block: clamp(36px, 5vw, 64px);
  overflow: clip;
}
#navsys-route::before { display: none; }
#navsys-route > .shell { min-width: 0; }
#navsys-route .navsys-route-head {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  align-items: end;
  gap: clamp(24px, 4vw, 56px);
  margin-bottom: 20px;
}
#navsys-route .eyebrow { color: var(--accent); margin: 0 0 14px; }
#navsys-route h2 {
  color: var(--bg);
  font-family: var(--display);
  font-size: clamp(2rem, 4.2vw, 4rem);
  line-height: 1.08;
  letter-spacing: -.04em;
  font-weight: 500;
  max-width: 19ch;
  margin: 0;
}
#navsys-route .navsys-route-lede {
  color: var(--bg);
  opacity: .8;
  font-size: 1rem;
  line-height: 1.6;
  margin: 0 0 16px;
}
#navsys-route .navsys-route-depth {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--accent);
  font-size: .84rem;
  font-weight: 600;
  min-height: 44px;
}
#navsys-route a svg {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
#navsys-route .route-box {
  position: relative;
  margin: 0 24px 20px;
  padding: 12px 0 28px;
}
#navsys-route .route-svg { width: 100%; height: 140px; display: block; overflow: visible; }
#navsys-route .road {
  fill: none;
  stroke: rgba(255,255,255,.25);
  stroke-width: 1.5;
  stroke-dasharray: 7 9;
  stroke-linecap: round;
}
#navsys-route .road-lit {
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.5;
  stroke-linecap: round;
  filter: drop-shadow(0 0 6px var(--accent-glow));
}
#navsys-route .navsys-waypoint {
  position: absolute;
  width: 144px;
  height: 76px;
  transform: translate(-50%, -22px);
}
#navsys-route .wp {
  appearance: none;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--bg);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 14px 0 0;
  width: 100%;
  min-height: 76px;
  line-height: 1.4;
}
#navsys-route .wp__dot {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  border-radius: 50%;
  background: var(--brand-navy);
  border: 1.5px solid var(--accent);
  transition: background .25s, box-shadow .25s;
}
#navsys-route .wp[aria-selected="true"] .wp__dot {
  background: var(--accent);
  box-shadow: 0 0 0 5px var(--accent-glow), 0 0 26px var(--accent-glow);
}
#navsys-route .wp__label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding-right: 14px;
  margin-top: 12px;
  font-size: 10px;
  letter-spacing: .08em;
  text-transform: uppercase;
  white-space: nowrap;
  writing-mode: horizontal-tb;
  transform: none;
}
#navsys-route .wp__label b { color: var(--accent); font-weight: 600; }
#navsys-route .wp[aria-selected="true"] .wp__label { color: var(--accent); }
#navsys-route .navsys-route-jump {
  position: absolute;
  right: -9px;
  top: 29px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--accent);
}
#navsys-route .navsys-route-jump:hover { background: var(--accent-glow); }
#navsys-route .marker {
  position: absolute;
  width: 34px;
  height: 34px;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 2;
}
#navsys-route .marker::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent-glow), transparent 66%);
}
#navsys-route .marker__tag {
  position: absolute;
  left: 50%;
  top: -20px;
  transform: translateX(-50%);
  color: var(--accent);
  font-size: 9px;
  letter-spacing: .16em;
  text-transform: uppercase;
  white-space: nowrap;
}
#navsys-route .area-panel {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: clamp(16px, 2vw, 28px);
  min-width: 0;
}
#navsys-route .area-panel[hidden] { display: none; }
#navsys-route .navsys-route-card {
  min-width: 0;
  padding: clamp(22px, 3vw, 36px);
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(255,255,255,.07), rgba(255,255,255,.025));
  backdrop-filter: blur(12px);
  overflow-wrap: anywhere;
}
#navsys-route .area-num {
  color: var(--accent);
  opacity: .65;
  font-family: var(--display);
  font-size: 3.4rem;
  line-height: 1;
  letter-spacing: -.04em;
  font-variant-numeric: tabular-nums;
  margin: 0 0 12px;
}
#navsys-route .area-title {
  color: var(--bg);
  font-family: var(--display);
  font-size: clamp(1.7rem, 2.5vw, 2.4rem);
  line-height: 1.1;
  font-weight: 500;
  margin: 0;
}
#navsys-route .area-short {
  font-family: var(--display);
  font-size: clamp(1.15rem, 1.7vw, 1.55rem);
  color: var(--bg);
  letter-spacing: -.03em;
  line-height: 1.3;
  margin: 14px 0 16px;
}
#navsys-route .area-desc { color: var(--bg); opacity: .8; font-size: .96rem; line-height: 1.6; margin: 0; }
#navsys-route .navsys-route-card-label {
  color: var(--accent);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  margin: 0 0 20px;
}
#navsys-route .chips { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 0; }
#navsys-route .chip {
  max-width: 100%;
  min-width: 0;
  white-space: normal;
  overflow-wrap: anywhere;
  color: var(--bg);
  font-size: .8rem;
  line-height: 1.55;
  padding: 10px 16px;
  border-radius: 24px;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.03);
}
#navsys-route :is(button, a, [role="tabpanel"]):focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }

/* One set of controls stays horizontal on desktop and becomes scrollable pills. */
@media (max-width: 819px) {
  #navsys-route > .shell { width: calc(100% - 40px); }
  #navsys-route .navsys-route-head { grid-template-columns: minmax(0, 1fr); gap: 20px; margin-bottom: 12px; }
  #navsys-route .route-box { margin: 0 0 16px; padding: 0; min-width: 0; }
  #navsys-route .route-svg, #navsys-route .marker { display: none; }
  #navsys-route .navsys-route-stops {
    display: flex;
    gap: 10px;
    width: 100%;
    max-width: 100%;
    /* 2026-10-07: wrap like the homepage pills instead of a sideways scroller. */
    flex-wrap: wrap;
    padding: 8px 0 12px;
  }
  #navsys-route .navsys-waypoint {
    position: relative;
    inset: auto !important;
    transform: none;
    flex: 0 0 auto;
    width: auto;
    height: auto;
    display: flex;
    align-items: center;
    gap: 2px;
  }
  #navsys-route .wp {
    min-height: 44px;
    width: auto;
    padding: 12px 16px;
    border: 1px solid rgba(255,255,255,.25);
    border-radius: 999px;
    justify-content: center;
  }
  #navsys-route .wp[aria-selected="true"] { background: var(--accent); border-color: var(--accent); color: var(--brand-navy); }
  #navsys-route .wp__dot { display: none; }
  #navsys-route .wp__label { padding: 0; margin: 0; font-size: 11px; }
  #navsys-route .wp[aria-selected="true"] .wp__label,
  #navsys-route .wp[aria-selected="true"] .wp__label b { color: var(--brand-navy); }
  /* Phones: pills only, like the homepage; "Each checkpoint in depth" above still jumps down. */
  #navsys-route .navsys-route-jump { display: none; }
  #navsys-route .navsys-route-stops { gap: 8px; }
  #navsys-route .area-panel { grid-template-columns: minmax(0, 1fr); gap: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  #navsys-route .wp__dot { transition: none; }
}

/* Go-live 2026-09-30 · Khaled 6.1: each tab shows the checkpoint's question and
   headline. The gap bullets are no longer repeated here; they sit in the
   checkpoint section below. */
#navsys-route .area-q {
  font-family: var(--display);
  font-size: clamp(1.1rem, 1.55vw, 1.4rem);
  color: var(--bg);
  opacity: .88;
  letter-spacing: -.02em;
  line-height: 1.35;
  margin: 16px 0 0;
}
#navsys-route .navsys-route-card-lead { display: flex; flex-direction: column; justify-content: center; }
#navsys-route .navsys-route-card-lead .area-short {
  margin: 0;
  font-size: clamp(1.3rem, 2vw, 1.85rem);
  color: var(--accent);
}
