/* ==========================================================
   Navigation : barre collante + course du soleil au défilement
   ========================================================== */
.nav {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: color-mix(in srgb, var(--hanji) 86%, transparent);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex; align-items: center; gap: 18px;
  max-width: var(--max); margin-inline: auto; padding: 10px var(--gutter) 8px;
}
.brand {
  flex: none; display: inline-flex; align-items: baseline; gap: 8px;
  font-family: var(--f-display); font-weight: 700; font-size: 1.15rem; color: var(--ink); text-decoration: none;
}
.brand span { font-weight: 300; color: var(--sun); font-size: .95rem; }

.stations { flex: 1; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.stations::-webkit-scrollbar { display: none; }
.stations ol { display: flex; justify-content: center; gap: 4px; list-style: none; margin: 0; padding: 0; min-width: max-content; }
.stations a {
  display: grid; justify-items: center; gap: 0;
  padding: 4px 10px; border-radius: 999px;
  text-decoration: none; color: var(--ink-soft); font-size: .78rem; white-space: nowrap;
  transition: background .3s, color .3s;
}
.stations a .ko { font-family: var(--f-display); font-size: .72rem; opacity: .7; letter-spacing: .08em; }
.stations a:hover { color: var(--ink); }
.stations a.here { background: var(--glow); color: var(--ink); }
.stations a.here .ko { color: var(--sun); opacity: 1; }

.theme-btn {
  flex: none; appearance: none; cursor: pointer;
  width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid var(--line); background: var(--card); color: var(--ink);
  display: grid; place-items: center;
}
.theme-btn svg { width: 20px; height: 20px; }
.theme-btn .moon { display: none; }
:root[data-theme="dark"] .theme-btn .sunico { display: none; }
:root[data-theme="dark"] .theme-btn .moon { display: block; }

/* Course du soleil : un petit soleil se lève puis se couche avec le défilement */
.sunpath { position: relative; height: 16px; max-width: var(--max); margin-inline: auto; }
.sunpath::before {
  content: ""; position: absolute; left: var(--gutter); right: var(--gutter); bottom: 3px; height: 2px; border-radius: 1px;
  background: linear-gradient(90deg, var(--rose), var(--honey) 45%, var(--honey) 55%, var(--sun));
  opacity: .35;
}
.sunpath .trail {
  position: absolute; left: var(--gutter); bottom: 3px; height: 2px; width: 0; border-radius: 1px;
  background: linear-gradient(90deg, var(--rose), var(--honey));
}
.sunpath .dot {
  position: absolute; left: var(--gutter); bottom: 0; width: 12px; height: 12px; margin-left: -6px; border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, #fff3c4, var(--honey) 45%, var(--sun));
  box-shadow: 0 0 10px var(--honey), 0 0 calc(4px + var(--beat) * 14px) var(--sun);
}

@media (max-width: 720px) {
  .brand span { display: none; }
  .stations ol { justify-content: flex-start; }
}
