/* Dinos.info - Discovery Map: the opening globe (world-globe.js; Ben's evening review 2026-10-13, item 9).
   The look of the approved globe boards (design/discovery-map/source/globe.css: gl-stage, gl-label, gl-ctrls,
   gl-pcredit, gl-tourbtn and the 760 px phone layout), on the Discovery Map's dm- classes and the design system's
   tokens. The markers and the card are the shared ones (shared/dn-fossil-map.css); clusters are discovery-map.css. */

/* Map type switch (also styled by ../globe/discovery-globe.css when the 3D globe is on) */
.dm-maptype { display: inline-flex; align-items: center; gap: 10px; }
.dm-maptype-label { font-family: var(--font-heading); font-weight: 700; font-size: 11px; line-height: 16px; letter-spacing: .08em; text-transform: uppercase; color: var(--text-muted-on-dark); }
.dm-maptype .dn-tabs { display: inline-flex; }
.dm-maptype .dn-tab[aria-pressed="true"] { background-color: var(--action); border-color: var(--action); color: var(--on-action); }

/* The stage: same box as the 2D map */
.dm-wg { isolation: isolate; position: relative; height: 620px; border: 1px solid var(--line-dark); border-radius: var(--radius-lg); overflow: hidden; background: radial-gradient(120% 90% at 50% 45%, #10161d 0%, #0a0c0f 70%); cursor: grab; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.dm-wg.is-dragging { cursor: grabbing; }
.dm-wg:focus-visible { outline: 2px solid transparent; box-shadow: inset var(--focus-ring-dark); }
.dm-wg-canvas { position: absolute; left: 0; top: 0; width: 100%; height: 100%; display: block; }
.dm-wg-marks { position: absolute; left: 0; top: 0; width: 100%; height: 100%; pointer-events: none; z-index: 1; }

/* Icons: 44 x 44 px buttons placed by transform; the drawing is the row 19 marker or the cluster mark */
.dm-wg-mk { position: absolute; left: 0; top: 0; width: 44px; height: 44px; margin: 0; padding: 0; background: none; border: 0; border-radius: 50%; color: inherit; cursor: pointer; pointer-events: auto; }
.dm-wg-mk.dn-fm-icon .dn-fm-pin { position: absolute; inset: 0; }
.dm-wg-mk:hover .dn-fm-mk { transform: scale(1.15); }
.dm-wg-mk.is-sel { z-index: 3; }
.dm-wg-mk.has-label { z-index: 2; }
.dm-wg-mk:focus-visible { outline: 2px solid transparent; z-index: 4; }
.dm-wg-mk.dn-fm-icon:focus-visible .dn-fm-pin, .dm-wg-mk.dm-cl-icon:focus-visible .dm-cl { box-shadow: var(--focus-ring-dark); }

/* Label, controls, credit (board: gl-label, gl-ctrls, gl-pcredit, gl-tourbtn) */
.dm-wg-label, .dm-wg-ctrls, .dm-wg-credit, .dm-wg-tour { z-index: 5; }
.dm-wg-label { position: absolute; left: 12px; top: 12px; margin: 0; display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: var(--radius-md); background: #121417f2; border: 1px solid var(--border-control-dark); font-family: var(--font-heading); font-weight: 700; font-size: 13px; line-height: 18px; letter-spacing: .04em; color: var(--bone-white); pointer-events: none; }
.dm-wg-label svg { width: 16px; height: 16px; fill: none; stroke: var(--accent-on-dark); stroke-width: 2; stroke-linecap: round; }
.dm-wg-ctrls { position: absolute; right: 12px; top: 72px; display: flex; flex-direction: column; gap: 6px; }
.dm-wg:not(:has(.dm-wg-tour)) .dm-wg-ctrls { top: 12px; }
.dm-wg-ctrls .dn-map-control { width: 40px; height: 40px; }
.dm-wg-ctrls svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.dm-wg-turn svg { fill: currentColor; stroke-width: 1.6; }
.dm-wg-tour { position: absolute; right: 12px; top: 12px; gap: 8px; }
.dm-wg-short { display: none; }
.dm-wg-credit { position: absolute; right: 8px; bottom: 8px; margin: 0; padding: 4px 8px; border-radius: var(--radius-sm); background: #121417f2; border: 1px solid var(--border-control-dark); font-size: 12px; line-height: 16px; color: var(--bone-white); pointer-events: none; }

/* The colour fossil card on the globe: placed like on the 2D map (DNFossilMap.place), above the icons */
.dm-wg .dn-fc-anchor { z-index: 6; cursor: auto; }

/* The key's cluster sample and Leaflet's attribution only belong to the 2D map's tiles */
.dm-wg-on .dm-fit { display: none; }

@media (max-width: 760px) {
  /* Phones (board Globe-Mobile): the globe full width, zoom, reset and the tour in a bar under it */
  .dm-wg { height: 520px; }
  .dm-wg-canvas, .dm-wg-marks { height: calc(100% - 64px); }
  .dm-wg::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 64px; background: var(--surface-dark-raised); border-top: 1px solid var(--line-dark); z-index: 4; }
  .dm-wg-label { font-size: 12px; padding: 6px 10px; }
  .dm-wg-ctrls { top: auto; bottom: 10px; right: 10px; flex-direction: row; }
  .dm-wg:not(:has(.dm-wg-tour)) .dm-wg-ctrls { top: auto; }
  .dm-wg-ctrls .dn-map-control { width: 44px; height: 44px; }
  .dm-wg-tour { left: 10px; right: auto; top: auto; bottom: 10px; height: 44px; padding: 0 12px; }
  .dm-wg-long { display: none; }
  .dm-wg-short { display: inline; }
  .dm-wg-credit { bottom: 72px; font-size: 11px; }
}
@media (max-width: 420px) {
  .dm-wg-tour { max-width: calc(100% - 218px); }
}
