#map { height: 100vh; width: 100vw; }
body { margin: 0; -webkit-text-size-adjust: 100%; }

#context-box {
  position: absolute;
  top: 30px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(255,255,255,0.95);
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  border-radius: 12px;
  padding: 24px 32px;
  max-width: 480px;
  width: 90%;
  z-index: 1000;
  font-family: 'Segoe UI', 'Arial', sans-serif;
  color: #222;
  text-align: center;
  box-sizing: border-box;
}

#context-box h1 {
  font-size: clamp(1.2em, 4vw, 1.4em);
  margin: 0 0 0.5em 0;
  font-weight: 600;
}

#context-box p {
  font-size: clamp(0.9em, 3.5vw, 1em);
  margin: 0;
  line-height: 1.6;
}

#close-context {
  position: absolute;
  top: 10px;
  right: 14px;
  background: none;
  border: none;
  font-size: 1.3em;
  color: #888;
  cursor: pointer;
  padding: 8px;
  line-height: 1;
  z-index: 1100;
  transition: color 0.2s;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
#close-context:hover {
  color: #d00;
}

details > summary {
  color: #0074d9;
  text-decoration: underline;
  cursor: pointer;
  padding: 8px 0;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

/* Mobile optimizations */
@media (max-width: 480px) {
  #context-box {
    padding: 20px;
  }
  
  #context-box p {
    text-align: left;
  }
  
  details > summary {
    display: inline-block;
    min-height: 44px;
    line-height: 44px;
  }
  
  a {
    padding: 4px 0;
    display: inline-block;
  }
} 