/* NOVA page, 05: One platform. Every market. Native by design. (assets/js/n-markets.js). A light dot globe that turns to one
   market at a time, a thread to that market's own search, the six markets as chips. The cards reuse the hero's replica type
   (nova.css: .nh-g, .nh-o, .g-*, .c-me, .m-me, .c-src, .m-src). Prefix nm-. */

.nm-stage { position: relative; display: grid; grid-template-columns: minmax(0, 56fr) minmax(0, 44fr); align-items: center; max-width: 1160px; min-height: 540px; margin: 0 auto; }
.nm-cv { position: absolute; left: 0; top: 0; z-index: 0; pointer-events: none; }
.nm-globe { position: relative; z-index: 1; justify-self: center; width: min(92%, 540px); aspect-ratio: 1; }   /* air between the globe and the card */
.nm-globe::before { content: ""; position: absolute; inset: -8%; z-index: -1; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle closest-side, rgba(84,184,106,.10), rgba(79,152,167,.05) 55%, rgba(79,152,167,0) 78%); }
.nm-ping { position: absolute; left: 0; top: 0; z-index: 2; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; opacity: 0; pointer-events: none; transition: opacity .4s ease; }
.nm-ping.on { opacity: 1; }
.nm-ping::before, .nm-ping::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: rgba(63,164,94,.32); animation: nmping 2.4s ease-out infinite; }
.nm-ping::after { animation-delay: 1.2s; }
@keyframes nmping { from { scale: 1; opacity: .75; } to { scale: 4.4; opacity: 0; } }
html.reduce .nm-ping::before, html.still .nm-ping::before { animation: none; scale: 2.4; opacity: .35; }
html.reduce .nm-ping::after, html.still .nm-ping::after { display: none; }

/* the market's own search */
.nm-side { position: relative; z-index: 3; display: grid; align-items: center; min-height: 330px; }
.nm-slot { position: relative; display: grid; }
.nm-card { grid-area: 1 / 1; width: min(100%, 448px); margin: 0; padding: 16px 18px 18px; border-radius: 18px; background: #fff; box-shadow: var(--nv-card-lg);
  opacity: 0; translate: 0 12px; transition: opacity .55s ease, translate .8s var(--ease-out); }
.nm-card.in { opacity: 1; translate: 0 0; }
.nm-card.out { opacity: 0; translate: 0 -8px; transition: opacity .28s ease, translate .32s ease; }
.nm-chd { display: flex; align-items: center; gap: 9px; margin: 0 0 14px; padding: 0 0 12px; border-bottom: 1px solid #EEF0F2; }
.nm-chd b { font: 600 14px/1.2 var(--sans); letter-spacing: -.01em; color: var(--ink); }
.nm-flag { width: 21px; height: 14px; flex: none; border-radius: 3px; box-shadow: 0 0 0 1px rgba(11,11,12,.08); overflow: hidden; }
.nm-dom { margin-left: auto; font: 500 10px/1 var(--mono); letter-spacing: .06em; color: rgba(11,11,12,.46); }
.nm-res { margin-top: 13px; }
.nm-res .g-site > span:not(.nm-rk) { flex: 1; min-width: 0; }
.nm-rk { align-self: center; display: inline-grid; place-items: center; min-width: 30px; height: 22px; padding: 0 7px; border-radius: 999px; background: var(--green);
  font: 600 11px/1 var(--mono); letter-spacing: .04em; color: #000; }
.nm-card .c-me, .nm-card .m-me { margin-bottom: 12px; }
.nm-q { white-space: pre-wrap; }
.nm-q.typing::after { content: ""; display: inline-block; width: 1.5px; height: 15px; margin-left: 1px; vertical-align: -3px; background: #1A73E8; animation: nhblink .9s steps(1) infinite; }
.nm-ans { margin: 0; font-size: 14px; line-height: 22px; color: #0D0D0D; }
.nm-ans b { font-weight: 600; }
.nm-gem { color: #1F1F1F; }
.nm-res, .nm-ans, .nm-card .m-src, .nm-outs { transition: opacity .55s ease, translate .7s var(--ease-out), filter .55s ease; }
.nm-outs { transition-delay: .35s; }
.nm-card.typing .nm-res, .nm-card.typing .nm-ans, .nm-card.typing .m-src, .nm-card.typing .nm-outs { opacity: 0; translate: 0 8px; filter: blur(3px); transition-duration: 0s; transition-delay: 0s; }

/* NOVA's notes on the result, the hero's style */
.nm-outs { display: flex; flex-wrap: wrap; gap: 8px; margin: 15px 0 0; }
.nm-o { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 11px 0 9px; border-radius: 999px; background: #fff;
  box-shadow: 0 0 0 1px rgba(11,11,12,.08), 0 8px 18px -12px rgba(16,44,40,.45); font: 500 9.5px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; white-space: nowrap; color: var(--ink); }
.nm-o::before { content: ""; width: 12px; height: 12px; flex: none; background: var(--nv-grad);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / contain no-repeat; }
.nm-o b { font-weight: 600; }

/* the six markets */
.nm-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 30px auto 0; max-width: 860px; }
.nm-chip { display: inline-flex; align-items: center; gap: 9px; height: 44px; padding: 0 17px 0 13px; border: 0; border-radius: 999px; background: transparent; cursor: pointer;
  box-shadow: inset 0 0 0 1px rgba(11,11,12,.10); font: 500 14.5px/1 var(--sans); color: rgba(11,11,12,.66); transition: background-color .3s ease, box-shadow .4s ease, color .3s ease; }
.nm-chip:hover { background: rgba(255,255,255,.8); color: var(--ink); }
.nm-chip.on { background: #fff; color: var(--ink); box-shadow: 0 0 0 1.5px rgba(84,184,106,.5), 0 10px 24px -14px rgba(46,158,80,.5); }
.nm-chip:focus-visible { outline: 2px solid var(--nv-teal); outline-offset: 3px; }
.nm-chip .nm-flag { width: 20px; height: 13px; }
.nm-note { max-width: 44em; margin: 26px auto 0; text-align: center; font: 400 16px/1.6 var(--sans); color: var(--nv-mute); text-wrap: pretty; }
.nm-note b { font-weight: 600; color: var(--ink); }

/* phones and narrow tablets: the globe, then the market's search under it */
@media (max-width: 900px) {
  .nm-stage { grid-template-columns: minmax(0, 1fr); max-width: 560px; min-height: 0; }
  .nm-globe { width: min(100%, 380px); }   /* phones: the globe takes the width */
  .nm-side { min-height: 292px; align-items: start; margin-top: 8px; }   /* the cards differ in height: the room stays, the chips under it never jump */
  .nm-card { width: 100%; }
  .nm-chips { margin-top: 26px; }
}
@media (max-width: 480px) {
  .nm-chips { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .nm-chip { justify-content: flex-start; padding: 0 14px 0 13px; font-size: 14px; }
  .nm-card { padding: 14px 14px 16px; }
  .nm-note { font-size: 15px; }
}
