/* Meshnet.info — Minimal custom styles complementing Tailwind CDN */

/* Sticky header subtle shrink on scroll */
.site-header.is-scrolled {
  box-shadow: 0 8px 24px -14px rgba(31, 42, 38, 0.16);
  background-color: rgba(245, 243, 238, 0.98);
}

.site-header.is-scrolled .site-header-inner {
  padding-top: 0.55rem;
  padding-bottom: 0.55rem;
}

/* Interactive Poland SVG map — clickable Lubelskie region */
.map-region-lubelskie:hover,
.map-region-lubelskie:focus-visible {
  fill: #B6DCCB;
  outline: none;
}

/* Unzoomed view: show only featured nodes; zoomed view: show all Lubelskie nodes */
.mesh-map-card .map-node--extra,
.mesh-map-card .map-zoom-only {
  display: none;
}

.mesh-map-card.is-zoomed .map-node--extra,
.mesh-map-card.is-zoomed .map-zoom-only,
.mesh-map-card.show-all-nodes .map-node--extra,
.mesh-map-card.show-all-nodes .map-zoom-only {
  display: inline;
}

/* Interactive Poland SVG map nodes */
.map-node {
  transition: transform 0.18s ease, opacity 0.18s ease;
  transform-box: fill-box;
  transform-origin: center;
}

.map-node:hover,
.map-node:focus-visible {
  transform: scale(1.28);
}

/* Scale markers cleanly when zoomed ~3.5x into Lubelskie */
.mesh-map-card.is-zoomed .map-node {
  transform: scale(0.62);
}

.mesh-map-card.is-zoomed .map-node:hover,
.mesh-map-card.is-zoomed .map-node:focus-visible {
  transform: scale(0.86);
}

.map-node:focus-visible circle,
.map-node:focus-visible rect {
  stroke: #1F2A26;
  stroke-width: 2;
}

/* Floating tooltip arrow */
.map-tooltip {
  transform: translate(-50%, calc(-100% - 10px));
}

.map-tooltip::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 100%;
  transform: translateX(-50%);
  border-width: 5px;
  border-style: solid;
  border-color: #1F2A26 transparent transparent transparent;
}

@keyframes rfPulse {
  0%, 100% {
    opacity: 0.2;
  }
  50% {
    opacity: 0.45;
  }
}

.map-node-ring {
  animation: rfPulse 3.2s ease-in-out infinite;
}

/* Hardware catalog active device selection & photo/graphic mode toggle */
.hw-list-btn.is-active {
  background-color: #E8F4EE;
  border-color: #2E6B5A;
}

.hw-mode-btn.is-active {
  background-color: #2E6B5A;
  color: #FFFFFF;
}

/* Remove default disclosure triangle on FAQ summaries */
details > summary::-webkit-details-marker {
  display: none;
}

@media (prefers-reduced-motion: reduce) {
  .map-node-ring {
    animation: none;
  }
  html {
    scroll-behavior: auto;
  }
}
