.pd { --pd-g: #151714; --pd-p: #F0F1EC; --pd-o: #F0592A; --pd-m: #9EA39B; --pd-h: #2A2D29; --pd-c: #1B1E1A; width: 100%; font-family: Archivo, system-ui, sans-serif; color: var(--pd-p); container-type: inline-size; overflow-x: clip; }
.pd-frame { position: relative; }
.pd-stage { position: relative; border: 1px solid var(--pd-h); border-radius: 12px; overflow: hidden; background: var(--pd-g); line-height: 0; }
.pd-svg { display: block; width: 100%; height: auto; aspect-ratio: 1200 / 760; }
.pd-svg text { font-family: Archivo, system-ui, sans-serif; font-size: 22px; font-weight: 500; font-stretch: 112%; fill: var(--pd-p); }
.pd-svg .sm { fill: var(--pd-m); font-weight: 400; }
.pd-draw { stroke-dasharray: 1; stroke-dashoffset: 1; }
.pd-note { position: absolute; left: 10px; bottom: 10px; z-index: 3; margin: 0; padding: 3px 8px; border-radius: 6px; background: rgba(21, 23, 20, 0.78); color: var(--pd-m); font-size: 13px; line-height: 1.3; }
.pd-toggle { position: absolute; right: 12px; bottom: 12px; z-index: 3; width: 44px; height: 44px; display: grid; place-items: center; padding: 0; border: 1px solid var(--pd-h); border-radius: 50%; background: rgba(21, 23, 20, 0.85); color: var(--pd-p); cursor: pointer; line-height: 0; }
.pd-toggle:hover { border-color: var(--pd-m); }
.pd-toggle:focus-visible, .pd-step:focus-visible { outline: 2px solid var(--pd-p); outline-offset: 3px; }
/* SVG ignores the hidden attribute without this, so pause and play icons stacked */
.pd-toggle [hidden] { display: none; }

/* overlays: over the map from 640 px, stacked below it under 640 px */
.pd-ov { position: absolute; inset: 0; z-index: 2; pointer-events: none; font-size: clamp(13px, 1.5cqw, 17px); line-height: 1.3; }
.pd-ov > * { position: absolute; }
.pd-stack { display: grid; }
.pd-stack > * { grid-area: 1 / 1; }
.pd-tagp { left: 2.4%; top: 3.4%; width: max-content; padding: 0.3em 0.85em; border: 1px solid var(--pd-h); border-radius: 999px; background: rgba(21, 23, 20, 0.9); font-size: 0.85em; font-weight: 600; font-stretch: 118%; }
.pd-search { left: 2.4%; top: 11%; width: 52%; box-sizing: border-box; display: flex; align-items: center; gap: 0.6em; padding: 0.65em 0.9em; border: 1px solid var(--pd-h); border-radius: 0.8em; background: var(--pd-c); font-weight: 500; font-stretch: 112%; white-space: nowrap; overflow: hidden; }
.pd-search svg { flex: none; }
.pd-caret { display: inline-block; width: 2px; height: 1.1em; margin-left: -0.5em; background: var(--pd-p); }
.pd-chips { left: 2.4%; top: 66%; width: 21%; display: flex; flex-direction: column; align-items: flex-start; gap: 0.5em; }
.pd-chip { display: inline-block; padding: 0.3em 0.75em; border: 1px solid var(--pd-m); border-radius: 999px; background: rgba(21, 23, 20, 0.9); font-size: 0.9em; font-weight: 500; }
.pd-chip.o { border-color: var(--pd-o); color: var(--pd-o); font-weight: 600; }
.pd-scen { left: 2.4%; top: 11%; width: 94%; display: flex; flex-wrap: wrap; align-items: center; gap: 0.5em 0.8em; }
.pd-lbl { padding: 0.4em 0.8em; border: 1px solid var(--pd-h); border-radius: 0.6em; background: rgba(21, 23, 20, 0.9); font-weight: 600; font-stretch: 118%; }
.pd-cnt { align-self: center; }
.pd-card { left: 58.8%; top: 13%; width: 39%; box-sizing: border-box; padding: 0.9em 1.1em 1em; border: 1px solid var(--pd-h); border-radius: 0.9em; background: var(--pd-c); }
.pd-card h3 { margin: 0 0 0.5em; font-size: 1.2em; font-weight: 600; font-stretch: 118%; line-height: 1.2; }
.pd-srow { display: flex; align-items: center; justify-content: space-between; gap: 0.8em; padding: 0.45em 0; border-top: 1px solid var(--pd-h); }
.pd-sn b { display: block; font-weight: 600; font-stretch: 112%; }
.pd-sn small { display: block; color: var(--pd-m); font-size: 0.85em; }
.pd-pill { flex: none; padding: 0.2em 0.8em; border-radius: 999px; background: rgba(240, 241, 236, 0.13); font-size: 0.9em; font-weight: 600; }
.pd-pill.u { background: none; border: 1.5px dashed rgba(240, 241, 236, 0.55); }
.pd-v { padding: 0.6em 0; }
.pd-v b { font-weight: 500; font-stretch: 112%; }
.pd-urow { padding: 0.45em 0; border-top: 1px solid var(--pd-h); }
.pd-rl { display: flex; justify-content: space-between; align-items: baseline; gap: 0.6em; font-weight: 500; font-stretch: 112%; }
.pd-rl em { font-style: normal; font-weight: 400; font-size: 0.9em; color: var(--pd-m); white-space: nowrap; }
.pd-rl em.o { color: var(--pd-o); font-weight: 600; }
.pd-trk { height: 0.65em; margin-top: 0.4em; border-radius: 999px; background: rgba(240, 241, 236, 0.1); overflow: hidden; }
.pd-fill { display: block; width: 100%; height: 100%; border-radius: 999px; background: var(--pd-p); transform-origin: 0 50%; transform: scaleX(0); }
.pd-chart { position: relative; height: 5.4em; margin-top: 0.3em; }
.pd-zero { position: absolute; left: 0; right: 0; top: 60%; height: 1px; background: rgba(240, 241, 236, 0.6); }
.pd-vb { position: absolute; width: 20%; display: block; transform: scaleY(0); }
.pd-vb.neg { left: 20%; top: 60%; height: 14%; background: rgba(240, 241, 236, 0.35); transform-origin: 50% 0; }
.pd-vb.pos { left: 60%; bottom: 40%; height: 55%; background: var(--pd-p); transform-origin: 50% 100%; }
.pd-chart .l1, .pd-chart .l2 { position: absolute; top: 80%; width: 20%; text-align: center; color: var(--pd-m); font-size: 0.8em; }
.pd-chart .l1 { left: 20%; }
.pd-chart .l2 { left: 60%; }
.pd-btn { position: relative; margin-top: 0.5em; padding: 0.65em 0; border: 1.5px solid rgba(240, 241, 236, 0.5); border-radius: 0.6em; text-align: center; font-weight: 600; font-stretch: 112%; }
.pd-lit { position: absolute; inset: -1.5px; display: grid; place-items: center; border-radius: 0.6em; background: var(--pd-o); color: var(--pd-g); }
.pd-rip { position: absolute; left: 50%; top: 50%; width: 3em; height: 3em; margin: -1.5em 0 0 -1.5em; border: 2px solid var(--pd-p); border-radius: 50%; }
.pd-cur { position: absolute; left: 50%; top: 50%; height: auto; }

/* stepper */
.pd-steps { list-style: none; margin: 14px 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.pd-step { position: relative; width: 100%; padding: 14px 10px 4px; display: grid; gap: 2px; align-content: start; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.pd-step::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--pd-h); }
.pd-bar { position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--pd-o); opacity: 0; }
.pd-n { font-size: 13px; font-weight: 500; color: var(--pd-m); }
.pd-name { font-size: 16px; font-weight: 600; font-stretch: 118%; line-height: 1.2; color: var(--pd-p); }
.pd-tag { font-size: 13px; color: var(--pd-m); }
.pd-on { position: absolute; left: 10px; right: 10px; top: 14px; display: grid; gap: 2px; opacity: 0; pointer-events: none; }
.pd-on .pd-n, .pd-on .pd-name { color: var(--pd-o); }
.pd-on .pd-name { background: var(--pd-g); }
@media (max-width: 760px) {
  .pd-steps { grid-template-columns: repeat(2, 1fr); }
  .pd-steps li:last-child:nth-child(odd) { grid-column: 1 / -1; }
}
@media (max-width: 639px) {
  /* overlays stack under the map in a grid: the card row is as tall as the tallest card, nothing more */
  .pd-ov { position: relative; inset: auto; display: grid; grid-template-columns: minmax(0, 1fr); gap: 0.6em; margin-top: 10px; font-size: 14px; overflow-x: clip; }
  .pd-ov > * { position: static; left: auto; top: auto; width: auto; max-width: 100%; box-sizing: border-box; }
  .pd-tagp { grid-row: 1; justify-self: start; }
  .pd-search, .pd-chips { grid-row: 2; grid-column: 1; }
  .pd-card, .pd-scen { grid-row: 3; grid-column: 1; }
  .pd-card, .pd-scen { align-self: start; }
  .pd-scen { align-content: flex-start; }
  .pd-scen { grid-row: 2; }
  .pd-sn small { display: none; }
  .pd-card { padding: 0.7em 0.9em 0.8em; }
  .pd-chart { height: 4.2em; }
  .pd-chips { flex-direction: row; flex-wrap: wrap; }
  .pd-toggle { right: 6px; bottom: 6px; width: 32px; height: 32px; }
  .pd-toggle svg { width: 16px; height: 16px; }
}
