/* Interactive project map (assets/js/project-map.js) — dark, square, monochrome (Nordstar-based system). */
.pm-root {
  --ink: #FFFFFF; --muted: #A1A1A1; --card: #0A0A0A; --bg-soft: #0F0F0F;
  --line: #1F1F1F; --line-strong: #2E2E2E;
  --green: #FFFFFF; --green-ink: #FFFFFF; --blue: #A1A1A1; --blue-ink: #FFFFFF; --teal: #FFFFFF;
  --btn-bg: #FFFFFF; --btn-ink: #000004; --focus: #FFFFFF;
  --font-head: "Libre Caslon Condensed", Georgia, serif;
  --pm-ocean-a: #05060A; --pm-ocean-b: #0A0D14; --pm-land: #262A34; --pm-border: #3F4552;
  --pm-hl-1: #1D5A78; --pm-hl-2: #2FA24C; --pm-st-kesz: #7BD08F; --pm-st-folyamatban: #62BCE0; --pm-st-elokeszites: #E6E6E6;
  --pm-muted: #8A8F99; --pm-text-2: #FFFFFF;
  position: relative; width: 100%; color: var(--ink); font-family: "Inter", system-ui, sans-serif;
}
.pm-root *, .pm-root *::before, .pm-root *::after { box-sizing: border-box; }
.pm-kpis { display: flex; flex-wrap: wrap; gap: 40px; }
.pm-kpi .v { font-family: var(--font-head); font-size: 56px; font-weight: 400; line-height: 1; font-variant-numeric: tabular-nums; }
.pm-kpi .l { margin-top: 6px; font-family: "DM Mono", monospace; font-weight: 300; font-size: 13px; letter-spacing: 2px; text-transform: uppercase; color: var(--muted); }
.pm-chip { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px; border: 0; border-radius: 0; background: rgba(194,194,194,.10); color: var(--ink); font: 400 14px/1.2 "Inter", sans-serif; cursor: pointer; transition: opacity .35s cubic-bezier(.16,1,.3,1); }
.pm-chip .sw { width: 8px; height: 8px; }
.pm-chip .n { color: var(--muted); font-variant-numeric: tabular-nums; }
.pm-chip[aria-pressed="false"] { opacity: .4; }
.pm-chip[aria-pressed="false"] .sw { background: transparent !important; box-shadow: inset 0 0 0 1px var(--muted); }
.pm-phases .lbl { margin-right: 8px; font-family: "DM Mono", monospace; font-weight: 300; font-size: 13px; letter-spacing: 2px; text-transform: uppercase; color: var(--muted); }
.pm-pchip { height: 32px; padding: 0 12px; border: 1px solid var(--line); border-radius: 0; background: transparent; color: var(--muted); font: 400 13px/1.2 "Inter", sans-serif; cursor: pointer; transition: color .35s, background .35s, border-color .35s; }
.pm-pchip .n { margin-left: 6px; font-variant-numeric: tabular-nums; opacity: .7; }
.pm-pchip:hover { color: var(--ink); border-color: var(--line-strong); }
.pm-pchip[aria-pressed="true"] { background: #1F1F1F; border-color: #1F1F1F; color: var(--ink); }
.pm-chip:focus-visible, .pm-pchip:focus-visible, .pm-zoom button:focus-visible, .pm-tip a:focus-visible, .pm-marker:focus-visible { outline: 1px solid #fff; outline-offset: 2px; }
#pm-svg { display: block; width: 100%; height: 100%; cursor: grab; touch-action: pan-y; }
#pm-svg:active { cursor: grabbing; }
.pm-country { fill: var(--pm-land); stroke: var(--pm-border); stroke-width: .5; vector-effect: non-scaling-stroke; transition: fill .35s; }
.pm-country.has { cursor: pointer; stroke: rgba(255,255,255,.35); filter: drop-shadow(0 0 10px rgba(47,162,76,.35)); }
.pm-country.has.nolink, .pm-marker.nolink { cursor: default; }
.pm-country.has:hover, .pm-country.active { stroke: #FFFFFF; stroke-width: 1.4; filter: drop-shadow(0 0 14px rgba(98,188,224,.55)); }
.pm-marker { cursor: pointer; outline: none; }
.pm-sphere-line { fill: none; stroke: #2A3140; stroke-width: 1; vector-effect: non-scaling-stroke; pointer-events: none; }
.pm-grat { fill: none; stroke: rgba(98,188,224,.09); stroke-width: .6; vector-effect: non-scaling-stroke; pointer-events: none; }
.pm-marker .pulse { fill: none; stroke: var(--pm-st-kesz); stroke-width: 1.5; transform-box: fill-box; transform-origin: center; animation: pm-pulse 2.8s cubic-bezier(.16,1,.3,1) infinite; pointer-events: none; }
@keyframes pm-pulse { 0% { transform: scale(1); opacity: .7; } 100% { transform: scale(2.2); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .pm-marker .pulse { animation: none; opacity: 0; } }
.pm-marker .ring { fill: #FFFFFF; filter: drop-shadow(0 0 8px rgba(0,0,0,.6)); }
.pm-marker .hole { fill: #000004; }
.pm-marker text { font-family: "Inter", sans-serif; font-weight: 400; fill: var(--ink); text-anchor: middle; dominant-baseline: central; pointer-events: none; font-variant-numeric: tabular-nums; }
.pm-zoom { position: absolute; right: 16px; top: 16px; display: flex; flex-direction: column; gap: 1px; }
.pm-zoom button { width: 34px; height: 34px; border: 0; border-radius: 0; background: rgba(194,194,194,.10); color: var(--ink); font-size: 15px; line-height: 1; cursor: pointer; transition: background .35s; }
.pm-zoom button:hover { background: rgba(194,194,194,.2); }
.pm-legend { position: absolute; left: 16px; bottom: 16px; display: flex; flex-direction: column; gap: 4px; padding: 10px 12px; background: rgba(0,0,4,.85); border: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.pm-legend .row { display: flex; align-items: center; gap: 6px; }
.pm-legend .sq { width: 14px; height: 10px; }
.pm-strip { flex: none; display: inline-flex; gap: 2px; margin-left: auto; padding-left: 8px; align-self: center; }
.pm-strip i { width: 7px; height: 7px; background: #2E2E2E; }
.pm-strip i.on { background: var(--pm-st-kesz); }
.pm-tip { position: absolute; z-index: 5; min-width: 240px; max-width: 340px; padding: 16px; background: #0F0F0F; border: 1px solid var(--line-strong); border-radius: 0; font-size: 13px; opacity: 0; visibility: hidden; pointer-events: none; transform: translate(-50%, calc(-100% - 10px)); transition: opacity .2s; max-height: calc(100% - 12px); overflow-y: auto; overscroll-behavior: contain; }
.pm-tip.show { opacity: 1; visibility: visible; pointer-events: auto; }
.pm-tip h4 { margin: 0 0 6px; font-family: var(--font-head); font-size: 22px; font-weight: 400; }
.pm-tip .tot { font-family: "Inter", sans-serif; font-size: 13px; color: var(--muted); }
.pm-tip .pm-bar { display: flex; height: 4px; gap: 2px; margin: 8px 0 10px; }
.pm-tip .r { display: flex; justify-content: space-between; gap: 12px; color: var(--muted); }
.pm-tip .r b { color: var(--ink); font-weight: 400; font-variant-numeric: tabular-nums; }
.pm-tip .r .k { display: flex; align-items: center; gap: 6px; }
.pm-tip .r .d { width: 7px; height: 7px; }
.pm-tip .pm-ph { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); }
.pm-tip .pm-ph .cap { margin-bottom: 4px; font-family: "DM Mono", monospace; font-weight: 300; font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted); }
.pm-tip .pr { display: grid; grid-template-columns: 110px 1fr 18px; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); }
.pm-tip .pr .b { height: 3px; background: linear-gradient(90deg, var(--pm-st-folyamatban), var(--pm-st-kesz)); }
.pm-tip .pr b { text-align: right; color: var(--ink); font-weight: 400; }
.pm-tip ul { margin: 10px 0 0; padding: 10px 0 0; border-top: 1px solid var(--line); list-style: none; color: var(--ink); }
.pm-tip li { display: flex; width: 100%; gap: 6px; align-items: baseline; padding: 2px 0; min-width: 0; }
.pm-tip li .t { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pm-tip li .y, .pm-tip li.more { color: var(--muted); }
.pm-tip li .d { flex: none; width: 6px; height: 6px; transform: translateY(-1px); }
.pm-tip .lk { display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 2px 0 10px; }
.pm-tip .lk a { font-size: 13px; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.pm-loading { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: var(--muted); font-family: "DM Mono", monospace; font-weight: 300; font-size: 13px; letter-spacing: 2px; text-transform: uppercase; }
.pm-tablewrap { margin-top: 20px; font-size: 14px; color: var(--muted); }
.pm-tablewrap summary { cursor: pointer; font-family: "DM Mono", monospace; font-weight: 300; font-size: 13px; letter-spacing: 2px; text-transform: uppercase; }
.pm-tablewrap #pm-table { overflow-x: auto; }
.pm-tablewrap table { width: 100%; min-width: 520px; margin-top: 12px; border-collapse: collapse; }
.pm-tablewrap th, .pm-tablewrap td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.pm-tablewrap th { font-weight: 400; color: var(--ink); }
.pm-tablewrap td { color: var(--muted); }
.pm-tablewrap .sd { display: inline-block; width: 7px; height: 7px; margin-right: 6px; }
@media (max-width: 809px) {
  .pm-kpi .v { font-size: 40px; }
  #pm-mapwrap { aspect-ratio: auto !important; min-height: 0 !important; }
  #pm-svg { height: auto; aspect-ratio: 2 / 1; }
  .pm-legend { position: static; background: transparent; border: 0; padding: 10px 0; }
  .pm-zoom { right: 8px; top: 8px; }
  .pm-zoom button { width: 30px; height: 30px; }
}

/* v3 (muted navy) — readability */
.pm-v3 { --muted: #B4B9C9; --line: #262B3D; --line-strong: #3A4058; --font-head: "Manrope", system-ui, sans-serif; font-family: "Manrope", system-ui, sans-serif; }
.pm-v3 .pm-kpi .v { letter-spacing: -.04em; }
.pm-v3 .pm-kpi .l { color: #AEB3C4; }
.pm-v3 .pm-chip { height: 40px; padding: 0 16px; background: rgba(150,160,200,.12); font: 500 14px/1.2 "Manrope", sans-serif; }
.pm-v3 .pm-chip[aria-pressed="false"] { opacity: .6; }
.pm-v3 .pm-pchip { height: 36px; padding: 0 14px; border-color: #2B3146; color: #C9CDD8; font: 500 14px/1.2 "Manrope", sans-serif; }
.pm-v3 .pm-pchip:hover { border-color: #4A5170; color: #FFFFFF; }
.pm-v3 .pm-pchip[aria-pressed="true"] { background: #C4EFA0; border-color: #C4EFA0; color: #07080E; }
.pm-v3 .pm-phases .lbl { color: #AEB3C4; }
.pm-v3 .pm-marker text { font-family: "Manrope", sans-serif; font-weight: 700; }
.pm-v3 .pm-marker .hole { fill: #07080E; }
.pm-v3 .pm-grat { stroke: rgba(160,175,255,.06); }
.pm-v3 .pm-sphere-line { stroke: #262B3D; }
.pm-v3 .pm-zoom button { background: rgba(150,160,200,.14); }
.pm-v3 .pm-legend { gap: 7px; padding: 14px 16px; background: rgba(7,8,14,.92); border-color: #2B3146; font-size: 13px; color: #D5D8E2; }
.pm-v3 .pm-legend .sq { width: 16px; height: 12px; }
.pm-v3 .pm-strip i { background: #2B3146; }
.pm-v3 .pm-tip { padding: 20px; background: #0F121D; border-color: #3A4058; font-size: 14px; box-shadow: 0 24px 48px rgba(0,0,0,.55); }
.pm-v3 .pm-tip h4 { font-size: 24px; font-weight: 500; letter-spacing: -.02em; }
.pm-v3 .pm-tip .tot, .pm-v3 .pm-tip .r, .pm-v3 .pm-tip .pr { color: #B4B9C9; font-family: "Manrope", sans-serif; }
.pm-v3 .pm-tip .pr { font-size: 13px; }
.pm-v3 .pm-tablewrap { color: #B4B9C9; }
