/* Polar Hub: interactive bilingual project map (about pages 29 / 1402). Scoped to .ph-about. */
.ph-about .ph-map { margin-top: 4px; }
/* The dotted map is far wider than the editorial column in the approved design —
   let this section run wide so the dot texture stays crisp instead of compressing. */
.ph-about #about-map .ph-wrap { width: min(1760px, calc(100% - 64px)); max-width: 1760px; }
.ph-about .ph-map-fig { position: relative; }
.ph-about .ph-map-stage { position: relative; width: 100%; aspect-ratio: 1920 / 983; }
.ph-about .ph-map-dots { display: block; width: 100%; height: 100%; user-select: none; -webkit-user-drag: none; }
.ph-about .ph-map-lines { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.ph-about .ph-map-lines path { fill: none; stroke: #a9b2ba; stroke-width: 1; transition: stroke .15s ease, stroke-width .15s ease; }
.ph-about .ph-map-lines path.is-active { stroke: var(--ph-accent); stroke-width: 1.6; }

.ph-about .ph-map-dot {
  position: absolute; left: var(--mx); top: var(--my);
  width: clamp(10px, 0.85%, 17px); height: clamp(10px, 0.85%, 17px);
  transform: translate(-50%, -50%);
  padding: 0; border: 0; border-radius: 50%; cursor: pointer; z-index: 3;
  background: #2e67c8;
  transition: transform .15s ease, box-shadow .15s ease;
}
.ph-about .ph-map-dot.is-key { background: var(--ph-accent); }
.ph-about .ph-map-dot::after { content: ""; position: absolute; inset: -7px; border-radius: 50%; }
.ph-about .ph-map-dot:focus-visible { outline: 2px solid var(--ph-accent); outline-offset: 3px; }
.ph-about .ph-map-dot.is-active { transform: translate(-50%, -50%) scale(1.35); box-shadow: 0 0 0 4px rgba(255, 107, 0, .18); z-index: 4; }
.ph-about .ph-map-dot.is-active::before { content: ""; position: absolute; inset: -6px; border: 1px solid currentColor; border-radius: 50%; opacity: .35; color: inherit; }

.ph-about .ph-map-label {
  position: absolute; left: var(--mx); top: var(--my); z-index: 2;
  font-size: 13px; line-height: 1.45; color: var(--ph-ink); white-space: nowrap;
  transition: color .15s ease;
}
.ph-about .ph-map-label.is-active { color: var(--ph-accent); }
.ph-about .ph-map-label.is-strong { font-weight: 600; font-size: 15px; }
.ph-about .ph-map-label.is-title { font-weight: 600; font-size: 17px; }
.ph-about .ph-map-label.is-center { transform: translate(-50%, -50%); }
.ph-about .ph-map-label.is-left { transform: translate(calc(-100% - 22px), -50%); text-align: right; }
.ph-about .ph-map-label.is-left-far { transform: translate(calc(-100% - 44px), -50%); text-align: right; }
.ph-about .ph-map-label.is-left-above { transform: translate(calc(-100% - 18px), calc(-100% - 4px)); text-align: right; }
.ph-about .ph-map-label.is-left-below { transform: translate(calc(-100% - 26px), 30%); text-align: right; }
.ph-about .ph-map-label.is-above { transform: translate(-50%, calc(-100% - 20px)); text-align: center; }
.ph-about .ph-map-label.is-below { transform: translate(-50%, 20px); text-align: center; }
.ph-about .ph-map-label.is-right { transform: translate(20px, -50%); }

.ph-about .ph-map-label .ph-map-bracket {
  display: inline-block; margin: 0; padding: 0 0 0 12px; border-left: 1px solid #b3bcc3;
  font-size: 12px; line-height: 1.7; color: var(--ph-ink); white-space: nowrap; text-align: left;
}

.ph-about .ph-map-legend {
  position: absolute; left: 79.5%; right: 0; top: 4%; margin: 0; padding: 0; list-style: none; z-index: 2;
}
.ph-about .ph-map-group { margin: 0; padding: 0; }
.ph-about .ph-map-group + .ph-map-group { border-top: 1px solid var(--ph-rule); }
.ph-about .ph-map-group-name {
  display: inline-block; margin: 0; padding: clamp(2px, .35vw, 5px) 0 clamp(1px, .25vw, 3px); border: 0; background: none; cursor: pointer;
  font-family: var(--d-serif, inherit); font-size: clamp(12px, 1.2vw, 15px); font-weight: 600; letter-spacing: 1px; color: var(--ph-ink); text-align: left;
  transition: color .15s ease;
}
.ph-about .ph-map-group-name:focus-visible { outline: 2px solid var(--ph-accent); outline-offset: 3px; }
.ph-about .ph-map-group-name.is-active { color: var(--ph-accent); }
.ph-about .ph-map-sites { margin: 0; padding: 0 0 4px 14px; border-left: 1px solid #b3bcc3; list-style: none; }
.ph-about .ph-map-sites li { font-size: clamp(10px, 1vw, 12px); line-height: 1.55; color: var(--ph-muted); }
@media (min-width: 901px) {
  .ph-about .ph-map-sites li { white-space: nowrap; }
}
.ph-about .ph-map-sites li.is-strong { color: var(--ph-ink); }
.ph-about .ph-map-sites button {
  margin: 0; padding: 0; border: 0; background: none; cursor: pointer;
  font-family: inherit; font-size: inherit; line-height: inherit; font-weight: 600; color: var(--ph-ink); text-align: left;
  transition: color .15s ease;
}
.ph-about .ph-map-sites button:focus-visible { outline: 2px solid var(--ph-accent); outline-offset: 3px; }
.ph-about .ph-map-sites button.is-active { color: var(--ph-accent); }
.ph-about .ph-map-legend .ph-map-mobile-extra { display: none; }

.ph-about .ph-map-tip {
  position: fixed; z-index: 60;
  min-width: 150px; max-width: 240px; padding: 10px 14px;
  background: #ffffff; border: 1px solid var(--ph-rule); border-radius: 4px;
  box-shadow: 0 10px 24px rgba(16, 27, 38, .14);
  text-align: left; pointer-events: none;
}
.ph-about .ph-map-tip[hidden] { display: none; }
.ph-about .ph-map-tip strong { display: block; margin: 0 0 4px; font-size: 13px; line-height: 1.5; color: var(--ph-ink); }
.ph-about .ph-map-tip strong.is-key { color: var(--ph-accent); }
.ph-about .ph-map-tip ul { margin: 0; padding: 0; list-style: none; }
.ph-about .ph-map-tip li { font-size: 12px; line-height: 1.7; color: var(--ph-muted); }
.ph-about .ph-map-tip li::before { content: "·"; margin-right: 6px; color: var(--ph-accent); }

@media (max-width: 1200px) {
  .ph-about .ph-map-label { font-size: 12px; }
  .ph-about .ph-map-label.is-strong { font-size: 13px; }
  .ph-about .ph-map-label.is-title { font-size: 15px; }
}
@media (max-width: 900px) {
  .ph-about .ph-map-lines, .ph-about .ph-map-label { display: none; }
  /* Keep the map at true proportions on small screens: never squeeze the stage,
     let it keep a readable width and scroll horizontally instead. */
  .ph-about .ph-map-fig { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .ph-about .ph-map-stage { width: max(100%, 640px); }
  .ph-about .ph-map-dot { width: 9px; height: 9px; }
  .ph-about .ph-map-dot::after { inset: -4px; }
  .ph-about .ph-map-legend { position: static; margin-top: 20px; }
  .ph-about .ph-map-legend .ph-map-mobile-extra { display: block; }
  .ph-about .ph-map-legend { columns: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .ph-about .ph-map-dot, .ph-about .ph-map-lines path, .ph-about .ph-map-label,
  .ph-about .ph-map-group-name, .ph-about .ph-map-sites button { transition: none; }
}
