/* home-map (map.js): the issuer map beside the home hero's words, on SQX Blue.
   --hm-k0..2 are the kinds' colours (equities, corporate debt,
   government debt): map.js reads them for the lights, so they are set here only. */
/* the kinds' colours, for the map and for the site's tooltip (chart_tips.js puts it in <body>) */
.hm, .chart-tip { --hm-k0: #4DB8FF; --hm-k1: #FFD54A; --hm-k2: #FF8A3D; }
.hm { --mp-bg: var(--sqx-white); --mp-ink: var(--sqx-ink); --mp-hair: rgba(26, 36, 48, 0.14); --mp-accent: var(--sqx-blue);
  margin: 0; display: grid; gap: 16px; min-width: 0; }
.hm-k0 { --hm-c: var(--hm-k0); } .hm-k1 { --hm-c: var(--hm-k1); } .hm-k2 { --hm-c: var(--hm-k2); }
.hm-box { position: relative; outline-offset: 4px; touch-action: pan-y; }
.hm-box:focus-visible { outline: 2px solid var(--sqx-on-dark); }
.hm-svg { display: block; width: 100%; height: auto; overflow: hidden; cursor: grab; }
.hm-box.is-hovering .hm-svg { cursor: pointer; }
/* the lights and rings cover the map alone (on a phone the panel sits below it
   in the box) at the map's aspect: the canvas's by its bitmap, which map.js
   sizes to the map, the rings' by their viewBox, so between a resize and its
   repaint they scale with the land dots */
.hm-lights, .hm-top { position: absolute; left: 0; top: 0; width: 100%; height: auto; pointer-events: none; }
.hm-box > .mp { z-index: 3; }
.hm-top { overflow: hidden; }
/* land dots: a country under the pointer, and the chosen one, show lighter */
.hm-land path { fill: none; stroke: var(--sqx-on-dark); stroke-linecap: round; stroke-opacity: 0.14; transition: stroke-opacity 0.15s; }
.hm-land path.is-hot { stroke-opacity: 0.26; }
.hm-land path.is-on { stroke-opacity: 0.32; }
/* the highlight ring keeps its width on screen at any zoom */
.hm-ring circle { fill: none; vector-effect: non-scaling-stroke; }
.hm-ring-o { stroke: rgba(0, 30, 60, 0.55); stroke-width: 5px; }
.hm-ring-i { stroke: var(--sqx-on-dark); stroke-width: 2px; }
.hm-ring.is-pin .hm-ring-i { stroke: var(--hm-c, var(--sqx-on-dark)); stroke-width: 2.5px; }
.hm-live { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; margin: 0; }

/* zoom buttons, top right of the map */
.hm-zoom { position: absolute; top: 8px; right: 8px; z-index: 2; display: flex; flex-direction: column; gap: 4px; }
.hm-zoom-btn { width: 32px; height: 32px; border: 0; border-radius: 6px; background: var(--sqx-white); color: var(--sqx-ink);
  font: inherit; font-size: 17px; line-height: 1; cursor: pointer; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2); }
.hm-zoom-btn:focus-visible { outline: 2px solid var(--hm-k1); outline-offset: 2px; }

/* legend: each kind's swatch shows or hides its lights (a filled swatch is
   shown, a ring hidden); its name links to its issuers in Data Search */
.hm-legend { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; color: var(--sqx-on-dark); font-size: var(--fs-small); font-variant-numeric: tabular-nums; }
.hm-legend li { display: flex; align-items: center; gap: 2px; }
.hm-legend a { display: flex; align-items: center; min-height: 24px; color: inherit; text-decoration: none; }
.hm-toggle { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; margin-left: -7px; padding: 0;
  border: 0; border-radius: 50%; background: none; cursor: pointer; }
.hm-toggle:hover { background: rgba(255, 255, 255, 0.12); }
.hm-toggle:focus-visible { outline: 2px solid var(--sqx-on-dark); outline-offset: 0; }
.hm-toggle[aria-pressed="false"] .hm-sw { background: none; box-shadow: inset 0 0 0 1.5px var(--hm-c); }
.hm-legend li.is-off a { opacity: 0.6; }
.hm-legend a:hover { text-decoration: underline; text-underline-offset: 3px; }
.hero .hm-legend a:not(:hover) { text-decoration: none; }
.hm-sw { display: inline-block; flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--hm-c); }

/* the tooltip body (chart_tips.js shows it at the pointer): one size for every
   city, every row drawn, so it never changes shape as it moves */
.hm-tip { width: 256px; display: grid; grid-auto-rows: 18px; row-gap: 1px; font-size: 13px; line-height: 18px; }
.hm-tip > *, .hm-tip-who, .hm-kname { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.hm-tip-name { font-weight: var(--fw-bold, 700); }
.hm-tip-sum, .hm-tip-label, .hm-tip-foot { color: var(--sqx-grey); font-size: 12px; }
.hm-tip-label { text-transform: uppercase; letter-spacing: 0.06em; font-size: 11px; align-self: end; }
.hm-tip-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.hm-tip .hm-kinds { display: contents; }
.hm-kinds { display: grid; gap: 1px; margin: 4px 0 2px; }
.hm-krow { display: grid; grid-template-columns: 12px 1fr auto; gap: 6px; align-items: center; min-height: 18px; }
.hm-krow.is-none { color: var(--sqx-grey); }
.hm-kval { font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }

/* the detail panel (spinup_assets/map/mappanel.js) over the map's lower-left corner */
.hm-panel { font-size: 13.5px; line-height: 1.45; width: min(280px, calc(100% - 20px)); max-height: 62%; }
.hm-panel .mp-title { font-size: 15px; }
/* .hm-panel .hm-sum outranks the hero's paragraph rule (.hero p: white, lead size, a wide margin) */
.hm-panel .hm-sum { max-width: none; margin: 0 0 4px; color: var(--sqx-grey); font-size: inherit; line-height: inherit; }
.hm-h3 { margin: 10px 0 4px; font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--sqx-grey); font-weight: var(--fw-medium, 500); }
.hm-list, .hm-cities, .hm-search { margin: 0; padding: 0; list-style: none; display: grid; gap: 3px; }
.hm-list li { display: grid; }
.hm-panel a, .hm-linkbtn { color: var(--sqx-blue); }
.hm-meta { color: var(--sqx-grey); font-size: 12px; font-variant-numeric: tabular-nums; }
.hm-linkbtn { padding: 0; border: 0; background: none; font: inherit; text-align: left; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
/* a.hm-* outranks the hero's white link rule (.hero a:not(.action-btn)) */
.hero .hm-panel a { color: var(--sqx-blue); }
/* a country's name links to its issuers in Data Search: underlined so it reads as a link */
.hm-panel .mp-title a, .hero .hm-panel .mp-title a { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
@media (max-width: 640px) {
  .mp-over.hm-panel { position: static; max-height: none; margin-top: 10px; box-shadow: none; }
  .mp-over.hm-panel:not(.is-folded) { width: auto; }
}
