/* Nostot (assets/js/labona-nostot.js): pieni ilmoitus vasemmassa alakulmassa uusimmista referensseistä
   ja palveluista. Kipinä on oikeassa alakulmassa, joten nosto ei peitä sitä. Mobiilissa alareunassa
   ovat alapalkit ja Kipinä, joten nosto tulee yläreunaan navigaation alle. */
.nosto {
  position: fixed; left: 24px; bottom: 24px; z-index: 140;
  display: flex; align-items: stretch;
  width: min(360px, calc(100vw - 48px));
  background: #fff; color: #1a2452; border-radius: 16px;
  border: 1px solid rgba(26,36,82,0.08);
  box-shadow: 0 1px 2px rgba(9,14,36,0.06), 0 18px 44px -16px rgba(9,14,36,0.38);
  font-family: 'Figtree', system-ui, sans-serif;
  opacity: 0; transform: translateY(12px);
  transition: opacity 0.35s ease, transform 0.35s cubic-bezier(0.22,1,0.36,1);
}
.nosto--in { opacity: 1; transform: none; }
.nosto-link {
  flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px;
  padding: 12px 8px 12px 12px; color: inherit; text-decoration: none; border-radius: 16px;
}
.nosto-link:focus-visible { outline: 3px solid #fcb549; outline-offset: 2px; }
.nosto-media {
  width: 64px; height: 48px; flex-shrink: 0; border-radius: 10px; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  background: #f3f5fb;
}
.nosto-media img { width: 100%; height: 100%; object-fit: contain; display: block; }
.nosto-media--icon { background: linear-gradient(135deg, #1a2452 0%, #232e66 100%); color: #fcb549; }
.nosto-media--icon svg { width: 26px; height: 26px; }
.nosto-text { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.nosto-tag {
  align-self: flex-start; margin-bottom: 2px; padding: 2px 8px; border-radius: 999px;
  font-size: 11px; font-weight: 800; letter-spacing: 0.02em; line-height: 1.5;
  background: #eef1f8; color: #1a2452;
}
.nosto-tag--palvelu { background: #f58024; color: #fff; }
.nosto-title { font-size: 14.5px; font-weight: 800; line-height: 1.25; letter-spacing: -0.01em; }
.nosto-line {
  font-size: 12.5px; line-height: 1.4; color: rgba(26,36,82,0.72);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.nosto-link:hover .nosto-title { text-decoration: underline; text-underline-offset: 2px; }
.nosto-close {
  align-self: flex-start; flex-shrink: 0; margin: 6px 6px 0 0;
  width: 28px; height: 28px; border: 0; border-radius: 50%; padding: 0; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  background: transparent; color: rgba(26,36,82,0.5); transition: background 0.15s, color 0.15s;
}
.nosto-close svg { width: 14px; height: 14px; }
.nosto-close:hover, .nosto-close:focus-visible { background: #eef1f8; color: #1a2452; outline: none; }

@media (max-width: 767px) {
  .nosto {
    left: 12px; right: 12px; bottom: auto; top: calc(88px + env(safe-area-inset-top, 0px));
    width: auto; transform: translateY(-12px);
  }
  .nosto--in { transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .nosto { transition: opacity 0.2s ease; transform: none; }
}
