/* Cavaléro Letter 1.5.40 — mini globo flutuante (desktop) + cartão modo mapa (celular). */

/* Cartão "modo mapa" no fim do post (celular / telas sem flutuante). */
.cl-post-map {
  margin: 2.2rem 0 0;
  padding: 0;
  border: 0;
}
.cl-post-map + .cl-share { margin-top: 1.35rem; }
@media (min-width: 1200px) {
  .cl-post-map { display: none; }
  .cl-post-map.is-needed { display: block; }
  .cl-post-map.is-needed + .cl-share { margin-top: 1.35rem; }
  .cl-post-map:not(.is-needed) + .cl-share { margin-top: 2.2rem; }
}
.cl-post-map-link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.95rem;
  padding: 1.05rem 1.15rem 1.05rem 1rem;
  overflow: hidden;
  border-radius: 14px;
  background: #1B3F54;
  color: #F7F3EB;
  text-decoration: none;
  isolation: isolate;
}
.cl-post-map-link:focus-visible {
  outline: 2px solid #9EC9E3;
  outline-offset: 3px;
}
.cl-post-map-grid {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    repeating-linear-gradient(0deg, rgba(247,243,235,0.09) 0 1px, transparent 1px 16px),
    repeating-linear-gradient(90deg, rgba(247,243,235,0.08) 0 1px, transparent 1px 20px);
  opacity: 0.7;
  mask-image: linear-gradient(90deg, rgba(0,0,0,.55), rgba(0,0,0,.2) 70%, transparent);
  -webkit-mask-image: linear-gradient(90deg, rgba(0,0,0,.55), rgba(0,0,0,.2) 70%, transparent);
}
.cl-post-map-canvas {
  position: relative;
  z-index: 1;
  width: 68px;
  height: 68px;
  flex: none;
  display: block;
  border-radius: 50%;
}
.cl-post-map-text {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.18rem;
  min-width: 0;
}
.cl-post-map-mode {
  margin: 0;
  font-family: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;
  font-size: 0.58rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #9EC9E3;
  line-height: 1.2;
}
.cl-post-map-stat {
  margin: 0;
  font-family: "Source Sans 3", system-ui, sans-serif;
  font-size: 0.98rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: #F7F3EB;
  line-height: 1.25;
}
.cl-post-map-cta {
  margin: 0.12rem 0 0;
  font-family: "Source Sans 3", system-ui, sans-serif;
  font-size: 0.82rem;
  font-weight: 500;
  color: #9EC9E3;
  line-height: 1.3;
}
.cl-post-map-link:hover .cl-post-map-cta,
.cl-post-map-link:focus-visible .cl-post-map-cta {
  color: #F7F3EB;
}
[data-theme="dark"] .cl-post-map-link {
  box-shadow: inset 0 0 0 1px rgba(158, 201, 227, 0.22);
}

/* Flutuante suave (1.5.39). */
.cl-post-globe {
  position: fixed;
  z-index: 6;
  left: 0;
  top: 42%;
  transform: translateY(-50%);
  margin: 0;
  padding: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
}
.cl-post-globe.is-in {
  opacity: 0.66;
  pointer-events: auto;
}
.cl-post-globe.is-in:hover,
.cl-post-globe:focus-within {
  opacity: 0.82;
}
.cl-post-globe[hidden] { display: none !important; }
.cl-post-globe-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.38rem;
  text-decoration: none;
  color: inherit;
}
.cl-post-globe-canvas {
  display: block;
  width: var(--cl-pg-size, 160px);
  height: var(--cl-pg-size, 160px);
  border-radius: 50%;
  filter: drop-shadow(0 4px 10px rgba(28, 25, 21, 0.06));
}
[data-theme="dark"] .cl-post-globe-canvas {
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.18));
}
.cl-post-globe-btn {
  font-family: "Source Sans 3", system-ui, sans-serif;
  font-size: 0.58rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cl-muted);
  opacity: 0.72;
  line-height: 1.3;
  text-align: center;
  max-width: 11rem;
}
.cl-post-globe-link:hover .cl-post-globe-btn,
.cl-post-globe-link:focus-visible .cl-post-globe-btn {
  color: var(--cl-accent);
  opacity: 0.9;
}

@media (max-width: 1199.98px) {
  .cl-post-globe { display: none !important; }
}
@media (prefers-reduced-motion: reduce) {
  .cl-post-globe { transition: none; }
}
