/* ============================================================
   HERO: taustaton hiekkasäkkisuoja ja yön tapahtumaloki
   Loki nousee kuvan alareunan päälle, mutta henkilö ja suojarakenteet jäävät näkyviin.
   ============================================================ */
.hero-page:has(.tt-hero-visual) { padding-bottom: 72px; }
.hero-page-grid:has(.tt-hero-visual) { align-items: center; }
.hero-page-grid:has(.tt-hero-visual) > .hero-page-inner { align-self: center; }
.hero-image:has(.tt-hero-visual) { justify-content: flex-end; }

.tt-hero-visual {
  position: relative;
  width: 100%;
  max-width: 560px;
}
.tt-hero-visual img {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: contain;
  filter: drop-shadow(0 14px 18px rgba(35, 46, 102, 0.12));
}

.night-log {
  position: relative;
  z-index: 2;
  width: calc(100% - 32px);
  margin: -140px auto 0;
  padding: 20px 20px 16px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: var(--sh-lg);
  backdrop-filter: blur(6px);
}
.night-log-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.night-log-title {
  font-size: 17px;
  font-weight: 800;
  color: var(--navy-dark);
  letter-spacing: -0.01em;
}
.night-log-tag {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--surface-2);
}
.night-log-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.night-log-list li {
  display: grid;
  grid-template-columns: 42px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-top: 1px solid var(--border);
}
.nl-time {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}
.nl-text {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.35;
}
.nl-pill {
  font-size: 11px;
  font-weight: 800;
  padding: 4px 9px;
  border-radius: 999px;
  white-space: nowrap;
}
.nl-pill--red { background: #fdecec; color: #c53432; }
.nl-pill--navy { background: var(--navy-50); color: var(--navy); }
.nl-pill--orange { background: var(--orange-50); color: #b85a12; }
.nl-pill--green { background: var(--green-soft); color: var(--green); }
.hero-page .night-log-foot {
  margin: 4px 0 0;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  font-weight: 700;
  color: var(--green);
  max-width: none;
}

@keyframes nightLogFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
@media (prefers-reduced-motion: reduce) {
  .night-log { animation: none; }
}
