/* Climber-only additions to the home page (home.css stays as on greenpath.pl).
   The account link in the top-right corner, deliberately quiet (plain muted text).
   Colours come from home.css, which switches --muted / --ink at night. */
.home-account {
  position: fixed; top: 14px; right: 18px; z-index: 2;
  margin: 0; font-size: .85rem; color: var(--muted);
}
a.home-account, .home-account button {
  color: var(--muted); text-decoration: none;
  border-bottom: 1px solid transparent; transition: border-color .2s, color .2s;
}
a.home-account:hover, a.home-account:focus-visible,
.home-account button:hover, .home-account button:focus-visible { color: var(--ink); border-bottom-color: currentColor; }
.home-account button { font: inherit; background: none; border-top: 0; border-left: 0; border-right: 0; padding: 0; cursor: pointer; }
.home-account span { color: var(--ink); }

/* Tooltip of a protection point on the season route (route.js) */
.route-tip {
  position: fixed; z-index: 3; pointer-events: none;
  display: flex; flex-direction: column; gap: 1px;
  max-width: 260px; padding: 6px 9px; border-radius: 8px;
  background: rgba(255, 255, 255, .92); color: #1a1a1a;
  box-shadow: 0 2px 8px rgba(20, 40, 60, .18);
  font-size: .8rem; line-height: 1.3;
}
.route-tip[hidden] { display: none; }
.route-tip strong { font-weight: 600; }
.route-tip span { color: #56606a; }

/* Phones: the two main links as a bottom bar, as in mobile apps. It is the ground under the
   campsite's meadow: the campsite stands on it (moved up by the bar's height). */
@media (max-width: 800px) {
  :root { --bar: 60px; }
  ul.links {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 2;
    margin: 0; padding: 6px 8px calc(6px + env(safe-area-inset-bottom));
    border-top: 0; gap: 0; flex-wrap: nowrap; justify-content: space-around;
    background: #8c9e81;
  }
  ul.links li { flex: 1; display: flex; }
  .links a {
    flex: 1; flex-direction: column; justify-content: center; gap: 3px; min-height: 48px;
    border-radius: 10px; border-bottom: 0; color: #22301d; font-size: .8rem; font-weight: 600;
    -webkit-tap-highlight-color: transparent;
  }
  .links a:active { background: rgba(255, 255, 255, .18); }
  .links svg { width: 20px; height: 20px; }
  /* a bigger campsite than on greenpath.pl (70vw there) */
  .camp { width: 85vw; bottom: calc(var(--bar) + env(safe-area-inset-bottom)); }
  /* at night the campsite is dimmed (home.css), so is its ground */
  body.night ul.links { background: #3f473b; }
  body.night .links a { color: #e6ece2; }
}

/* Dusk (the sun 1.5° to 6° below the horizon, mountain.js): the sky is already too dark for the dark
   text, so it turns light before the night mode, with a soft shadow while the sky is still bright */
body.dusk:not(.night) {
  --ink: #f4f6fa;
  --muted: #dde3ea;
  --line: rgba(220, 230, 240, .26);
}
body.dusk:not(.night) main, body.dusk:not(.night) .home-account { text-shadow: 0 1px 3px rgba(20, 30, 60, .45); }
