/* Cavaléro Letter 1.5.38 — modo mapa de leitura (faixa no post; painel no /mapa/). */

/* ========== Faixa no post (abrir página completa / mobile) ========== */
html.cl-mapmode { --cl-mapbar-h: 3rem; --cl-map-blue: #3A7CA5; --cl-map-blue-deep: #1B3F54; }
html.cl-mapmode .cl-hg { display: none !important; }
html.cl-mapmode { padding-top: var(--cl-mapbar-h); }

.cl-mapbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 92;
  height: var(--cl-mapbar-h, 3rem);
  box-sizing: border-box;
  background: var(--cl-paper);
  border-bottom: 1px solid var(--cl-rule);
  color: var(--cl-ink);
  font-family: "Source Sans 3", system-ui, sans-serif;
}
html.cl-mapmode:not([data-sticky="off"]) .cl-header.is-compact {
  top: var(--cl-mapbar-h) !important;
  z-index: 91;
  animation: none;
}

.cl-mapbar-inner {
  height: 3rem;
  display: flex;
  align-items: center;
  gap: 0.55rem;
}
.cl-mapbar-globe {
  display: block;
  width: 28px; height: 28px;
  flex: none;
  border-radius: 50%;
}
@media (min-width: 700px) {
  .cl-mapbar-globe { width: 32px; height: 32px; }
}
.cl-mapbar-where {
  margin: 0;
  min-width: 0;
  flex: 1 1 auto;
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  column-gap: 0.5rem;
  row-gap: 0;
  align-items: baseline;
  line-height: 1.15;
  overflow: hidden;
}
.cl-mapbar-mode {
  grid-column: 1 / -1;
  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: var(--cl-map-blue, #3A7CA5);
  line-height: 1.2;
}
.cl-mapbar-country {
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.01em;
  color: var(--cl-ink);
  white-space: nowrap;
}
.cl-mapbar-count {
  color: var(--cl-muted);
  font-size: 0.8rem;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cl-mapbar-count::before {
  content: "·";
  margin: 0 0.4rem 0 0.15rem;
  color: var(--cl-muted);
  opacity: 0.7;
  font-weight: 600;
}
.cl-mapbar-an { margin-left: 0.2em; }
.cl-mapbar-coords {
  display: none;
  font-family: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;
  font-size: 0.64rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--cl-muted);
  white-space: nowrap;
  margin-left: 0.85rem;
}
@media (min-width: 900px) {
  .cl-mapbar-where {
    display: flex;
    flex-wrap: nowrap;
    align-items: baseline;
    gap: 0.55rem;
  }
  .cl-mapbar-mode { flex: none; }
  .cl-mapbar-coords { display: inline; }
  .cl-mapbar-country { font-size: 0.95rem; }
}
.cl-mapbar-nav { display: flex; gap: 0.25rem; flex: none; }
.cl-mapbar-btn {
  width: 36px; height: 36px; min-width: 36px;
  padding: 0;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--cl-rule);
  border-radius: 8px;
  background: var(--cl-surface);
  color: var(--cl-ink);
  text-decoration: none;
  box-sizing: border-box;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}
.cl-mapbar-btn:hover:not([aria-disabled="true"]):not(:disabled) {
  border-color: var(--cl-accent);
  color: var(--cl-accent);
}
.cl-mapbar-btn:focus-visible { outline: 2px solid var(--cl-accent); outline-offset: 2px; }
.cl-mapbar-btn[aria-disabled="true"],
.cl-mapbar-btn:disabled { opacity: 0.35; pointer-events: none; cursor: default; }
.cl-mapbar-btn svg { display: block; }
.cl-mapbar-back {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  height: 36px;
  padding: 0 0.7rem;
  border: 1px solid var(--cl-rule);
  border-radius: 8px;
  background: transparent;
  color: var(--cl-ink);
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  white-space: nowrap;
  transition: border-color 0.15s, color 0.15s;
}
.cl-mapbar-back:hover { border-color: var(--cl-accent); color: var(--cl-accent); }
.cl-mapbar-back-short { display: none; }
@media (max-width: 639px) {
  .cl-mapbar-inner { gap: 0.4rem; }
  .cl-mapbar-back { padding: 0 0.55rem; }
  .cl-mapbar-back-long { display: none; }
  .cl-mapbar-back-short { display: inline; }
  .cl-mapbar-an, .cl-mapbar-coords { display: none; }
  .cl-mapbar-btn, .cl-mapbar-back, .cl-mapbar-close { width: 40px; height: 40px; min-width: 40px; }
  .cl-mapbar-back { width: auto; }
  .cl-mapbar-country { font-size: 0.88rem; }
  .cl-mapbar-count { font-size: 0.75rem; }
}
.cl-mapbar-close {
  flex: none;
  width: 36px; height: 36px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--cl-muted);
  cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  transition: color 0.15s, background 0.15s;
}
.cl-mapbar-close:hover { color: var(--cl-ink); background: color-mix(in srgb, var(--cl-rule) 45%, transparent); }
.cl-mapbar-close:focus-visible { outline: 2px solid var(--cl-accent); outline-offset: 2px; }

/* Mobile: faixa colorida, mesma altura, sinaliza o modo mapa */
@media (max-width: 699px) {
  html.cl-mapmode .cl-mapbar {
    background: var(--cl-map-blue-deep, #1B3F54);
    border-bottom-color: color-mix(in srgb, #3A7CA5 55%, #1B3F54);
    color: #F7F3EB;
  }
  html.cl-mapmode[data-mapbar="wine"] .cl-mapbar {
    background: #8B2E2B;
    border-bottom-color: color-mix(in srgb, #C96B5C 45%, #8B2E2B);
    color: #F7F3EB;
  }
  html.cl-mapmode .cl-mapbar-mode { color: #9EC9E3; }
  html.cl-mapmode[data-mapbar="wine"] .cl-mapbar-mode { color: #F0C4BE; }
  html.cl-mapmode .cl-mapbar-country,
  html.cl-mapmode[data-mapbar="wine"] .cl-mapbar-country { color: #F7F3EB; }
  html.cl-mapmode .cl-mapbar-count,
  html.cl-mapmode[data-mapbar="wine"] .cl-mapbar-count,
  html.cl-mapmode .cl-mapbar-count::before,
  html.cl-mapmode[data-mapbar="wine"] .cl-mapbar-count::before { color: color-mix(in srgb, #F7F3EB 72%, transparent); }
  html.cl-mapmode .cl-mapbar-btn,
  html.cl-mapmode[data-mapbar="wine"] .cl-mapbar-btn,
  html.cl-mapmode .cl-mapbar-back,
  html.cl-mapmode[data-mapbar="wine"] .cl-mapbar-back {
    border-color: color-mix(in srgb, #F7F3EB 32%, transparent);
    background: color-mix(in srgb, #F7F3EB 8%, transparent);
    color: #F7F3EB;
  }
  html.cl-mapmode .cl-mapbar-btn:hover:not([aria-disabled="true"]),
  html.cl-mapmode .cl-mapbar-back:hover {
    border-color: #9EC9E3;
    color: #F7F3EB;
    background: color-mix(in srgb, #3A7CA5 45%, transparent);
  }
  html.cl-mapmode[data-mapbar="wine"] .cl-mapbar-btn:hover:not([aria-disabled="true"]),
  html.cl-mapmode[data-mapbar="wine"] .cl-mapbar-back:hover {
    border-color: #F0C4BE;
    color: #F7F3EB;
    background: color-mix(in srgb, #C96B5C 35%, transparent);
  }
  html.cl-mapmode .cl-mapbar-close,
  html.cl-mapmode[data-mapbar="wine"] .cl-mapbar-close { color: color-mix(in srgb, #F7F3EB 78%, transparent); }
  html.cl-mapmode .cl-mapbar-close:hover,
  html.cl-mapmode[data-mapbar="wine"] .cl-mapbar-close:hover {
    color: #F7F3EB;
    background: color-mix(in srgb, #F7F3EB 12%, transparent);
  }
}

/* Continue explorando no post (mobile / página completa) */
html.cl-mapmode .cl-related { display: none; }
html.cl-mapmode .cl-post-map,
html.cl-mapmode .cl-post-globe,
html.cl-mapmode [data-cl-post-map],
html.cl-mapmode [data-cl-post-globe] { display: none !important; }

/* Search overlay must win the stacking context over the fixed map bar (z-index 92).
   The field also gets a top offset so it stays usable if anything still paints above. */
html.cl-mapmode .cl-search-overlay,
html.cl-mapmode.cl-spot-lock .cl-search-overlay {
  z-index: 200 !important;
}
html.cl-mapmode.cl-spot-lock .cl-mapbar { z-index: 80; }
html.cl-mapmode .cl-search-overlay .cl-search-dialog.cl-spot,
html.cl-mapmode.cl-spot-lock .cl-search-overlay .cl-search-dialog.cl-spot {
  margin-top: calc(var(--cl-mapbar-h, 3rem) + 0.6rem) !important;
}

/* Desktop: never show the map bar on a post page (even with ?from=mapa).
   The floating globe stays. The /mapa/ reading panel is unchanged (no .cl-mapbar). */
@media (min-width: 1200px) {
  .cl-mapbar { display: none !important; }
  html.cl-mapmode { padding-top: 0; }
  html.cl-mapmode .cl-hg { display: revert !important; }
  html.cl-mapmode:not([data-sticky="off"]) .cl-header.is-compact { top: 0 !important; }
  html.cl-mapmode .cl-related { display: revert; }
  html.cl-mapmode .cl-post-globe:not([hidden]),
  html.cl-mapmode [data-cl-post-globe]:not([hidden]) { display: block !important; }
  html.cl-mapmode .cl-search-overlay .cl-search-dialog.cl-spot,
  html.cl-mapmode.cl-spot-lock .cl-search-overlay .cl-search-dialog.cl-spot {
    margin-top: 0 !important;
  }
}

html:not(.cl-mapmode) .cl-explore { display: none; }
.cl-explore { margin-top: 0; }
.cl-explore-lead {
  margin: -0.35rem 0 1.05rem;
  font-family: var(--cl-body-font, "Literata", Georgia, serif);
  font-size: 0.98rem;
  line-height: 1.45;
  color: var(--cl-muted);
}
.cl-explore-neighbors {
  margin: 1.5rem 0 0;
  padding-top: 1.15rem;
  border-top: 1px solid var(--cl-rule);
}
.cl-explore-neighbors-label {
  margin: 0 0 0.7rem;
  font-family: "Source Sans 3", system-ui, sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cl-muted);
}
.cl-explore-chips {
  display: flex; flex-wrap: wrap; gap: 0.45rem;
  list-style: none; margin: 0; padding: 0;
}
.cl-explore-chips a {
  display: inline-flex; align-items: center; gap: 0.4rem;
  min-height: 34px; padding: 0 0.8rem;
  border-radius: 999px;
  border: 1px dashed color-mix(in srgb, var(--cl-accent) 40%, var(--cl-rule));
  background: color-mix(in srgb, var(--cl-surface) 80%, transparent);
  color: var(--cl-ink);
  text-decoration: none;
  font-family: "Source Sans 3", system-ui, sans-serif;
  font-size: 0.8rem; font-weight: 600;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}
.cl-explore-chips a:hover { border-color: var(--cl-accent); color: var(--cl-accent); border-style: solid; }
.cl-explore-chips em { font-style: normal; font-weight: 500; color: var(--cl-muted); font-variant-numeric: tabular-nums; }
@media (max-width: 639px) {
  .cl-explore-chips {
    flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none;
    margin-inline: -1.25rem; padding-inline: 1.25rem;
    -webkit-overflow-scrolling: touch;
  }
  .cl-explore-chips::-webkit-scrollbar { display: none; }
  .cl-explore-chips li { flex: none; }
}

/* ========== /mapa/ — painel de leitura (desktop) ========== */
@property --gm-expand {
  syntax: "<number>";
  inherits: true;
  initial-value: 0;
}

@media (min-width: 900px) and (max-width: 1099.98px) {
  .gm { --gm-side-w: 300px; }
}
@media (min-width: 900px) {
  .gm {
    --gm-side-w: 340px;
    --gm-read-gap: 18px;
    /* Margem externa do conjunto (lista + painel + peek do globo), igual dos dois lados. */
    --gm-read-m: max(24px, calc(var(--gm-pad) / 2));
  }
  .gm-side {
    transition: left 480ms cubic-bezier(.16, 1, .3, 1);
  }
  .gm.is-reading .gm-side {
    left: var(--gm-read-m);
  }
  .gm-panel {
    --gm-expand: 0;
    --gm-peek: clamp(148px, 16vw, 280px);
    left: calc(
      (100% - var(--gm-pad) - 384px) * (1 - var(--gm-expand, 0))
      + (var(--gm-read-m) + var(--gm-side-w) + var(--gm-read-gap)) * var(--gm-expand, 0)
    );
    right: calc(
      var(--gm-pad) * (1 - var(--gm-expand, 0))
      + (var(--gm-read-m) + var(--gm-peek)) * var(--gm-expand, 0)
    );
    width: auto;
    transition:
      opacity .35s ease,
      transform .6s cubic-bezier(.2,.9,.25,1),
      visibility 0s .6s,
      border-radius 480ms cubic-bezier(.16, 1, .3, 1),
      box-shadow 480ms ease,
      --gm-expand 480ms cubic-bezier(.16, 1, .3, 1);
  }
  .gm-panel.is-open { transition-delay: 0s; }
  .gm-panel.is-reading {
    --gm-expand: 1;
    height: calc(100% - 48px);
    max-height: calc(100% - 48px);
    border-radius: 14px;
    box-shadow: 0 28px 70px -16px rgba(28, 25, 21, .38), 0 2px 8px rgba(28, 25, 21, .08);
  }
  [data-theme="dark"] .gm-panel.is-reading {
    box-shadow: 0 28px 70px -16px rgba(0, 0, 0, .72), 0 0 0 1px rgba(255, 255, 255, .04);
  }
  .gm-panel.is-reading .gm-pc {
    position: absolute;
    inset: 0;
    opacity: calc(1 - min(1, var(--gm-expand) / 0.42));
    pointer-events: none;
    overflow: hidden;
  }
  .gm-zoom { transition: opacity .3s, translate .5s cubic-bezier(.22,1,.36,1); }
  .gm.is-reading .gm-zoom,
  .gm-panel.is-reading ~ .gm-zoom { opacity: 0; pointer-events: none; }
}

.gm-pread {
  display: none;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  opacity: 0;
}
.gm-panel.is-reading .gm-pread {
  display: flex;
  opacity: calc(min(1, max(0, (var(--gm-expand) - 0.18) / 0.4)));
}
.gm-rhead {
  flex: none;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 8px 48px 8px 10px;
  border-bottom: 1px solid color-mix(in srgb, var(--cl-rule) 80%, transparent);
  min-height: 44px;
  background: color-mix(in srgb, var(--cl-surface) 28%, transparent);
}
@media (min-width: 900px) {
  .gm-panel.is-reading > .gm-x {
    top: 8px;
    right: 10px;
    width: 28px;
    height: 28px;
  }
  .gm-panel.is-reading > .gm-x svg { width: 14px; height: 14px; }
}
.gm-rback {
  display: inline-flex;
  align-items: center;
  gap: 0.15rem;
  min-height: 28px;
  padding: 0 0.4rem 0 0.2rem;
  border-radius: 7px;
  color: var(--cl-ink);
  font-size: 0.75rem;
  font-weight: 550;
  letter-spacing: 0.01em;
  transition: background .15s, color .15s;
}
.gm-rback:hover { color: var(--cl-accent); background: color-mix(in srgb, var(--cl-accent) 10%, transparent); }
.gm-rback svg { flex: none; width: 14px; height: 14px; }
.gm-rback-lab { white-space: nowrap; }
.gm-rback-lab em { font-style: normal; font-weight: 600; }
.gm-rctrl {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 0.1rem;
}
.gm-rcount {
  margin: 0 0.05rem;
  min-width: 4.2rem;
  text-align: center;
  font-family: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;
  font-size: 0.64rem;
  font-weight: 450;
  letter-spacing: 0.03em;
  color: var(--cl-muted);
  font-variant-numeric: tabular-nums;
}
.gm-rcount span:first-child { color: color-mix(in srgb, var(--cl-ink) 78%, var(--cl-muted)); font-weight: 500; }
.gm-rbtn {
  width: 28px; height: 28px;
  display: grid; place-items: center;
  border: 0;
  border-radius: 7px;
  color: var(--cl-ink);
  background: transparent;
  transition: color .15s, background .15s;
}
.gm-rbtn:hover:not([disabled]) { color: var(--cl-accent); background: color-mix(in srgb, var(--cl-accent) 10%, transparent); }
.gm-rbtn[disabled] { opacity: 0.32; pointer-events: none; }
.gm-rbtn svg { width: 14px; height: 14px; }
.gm-ropen {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  height: 28px;
  padding: 0 0.15rem 0 0.35rem;
  border: 0;
  border-radius: 0;
  color: var(--cl-muted);
  background: transparent;
  font-family: "Source Sans 3", system-ui, sans-serif;
  font-size: 0.72rem;
  font-weight: 550;
  letter-spacing: 0.02em;
  text-transform: none;
  text-decoration: none;
  white-space: nowrap;
  transition: color .15s;
}
.gm-ropen::after {
  content: "↗";
  font-size: 0.68rem;
  line-height: 1;
  opacity: 0.75;
}
.gm-ropen:hover {
  background: transparent;
  color: var(--cl-accent);
  border-color: transparent;
}
.gm-ropen:hover::after { opacity: 1; }
[data-theme="dark"] .gm-ropen { color: color-mix(in srgb, var(--cl-muted) 80%, #74B4DB); background: transparent; border-color: transparent; }
[data-theme="dark"] .gm-ropen:hover { background: transparent; color: #74B4DB; border-color: transparent; }

.gm-rscroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 1.6rem 1.75rem 2.8rem;
  scrollbar-width: thin;
  scrollbar-color: var(--cl-rule) transparent;
  outline: 0;
}
.gm-rarticle {
  max-width: 72ch;
  margin: 0 auto;
}
.gm-rkicker {
  margin: 0 0 0.55rem;
  font-family: "Source Sans 3", system-ui, sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cl-accent);
}
.gm-rtitle {
  margin: 0;
  font-family: var(--cl-title-font, "Playfair Display", Georgia, serif);
  font-weight: var(--cl-title-weight, 700);
  font-size: clamp(1.85rem, 2.3vw, 2.55rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--cl-ink);
  text-shadow:
    0 0 16px color-mix(in srgb, var(--cl-surface) 92%, transparent),
    0 0 32px color-mix(in srgb, var(--cl-surface) 75%, transparent);
}
.gm-rbyline {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  margin: 0.85rem 0 0;
  font-size: 0.88rem;
  color: var(--cl-muted);
}
.gm-rbyline span { color: var(--cl-ink); font-weight: 600; }
.gm-rfeature {
  margin: 1.35rem 0 1.5rem;
  border-radius: 12px;
  overflow: hidden;
  background: transparent;
  text-align: center;
}
.gm-rfeature img {
  display: block;
  width: 100%;
  height: auto;
  margin-inline: auto;
}
.gm-rbody {
  font-family: var(--cl-body-font, "Literata", Georgia, serif);
  font-size: 1.05rem;
  line-height: 1.68;
  color: var(--cl-ink);
  max-width: 72ch;
  text-shadow: 0 0 14px color-mix(in srgb, var(--cl-surface) 88%, transparent);
}
.gm-rbody h2 {
  text-shadow:
    0 0 16px color-mix(in srgb, var(--cl-surface) 92%, transparent),
    0 0 28px color-mix(in srgb, var(--cl-surface) 70%, transparent);
}
.gm-rbody .wp-block-embed,
.gm-rbody figure.wp-block-embed {
  margin: 1.25rem 0;
  max-width: 100%;
}
.gm-rbody .wp-block-embed__wrapper {
  position: relative;
  margin: 0;
}
.gm-rbody .wp-block-embed iframe,
.gm-rbody iframe {
  display: block;
  max-width: 100%;
  margin: 0 auto;
  border: 0;
}
.gm-rbody blockquote.twitter-tweet {
  margin: 1.25rem auto;
  max-width: 550px;
}

.gm-rbody p { margin: 0 0 1em; }
.gm-rbody h2 {
  font-family: var(--cl-title-font, "Playfair Display", Georgia, serif);
  font-size: 1.35rem;
  line-height: 1.25;
  margin: 1.6rem 0 0.7rem;
  letter-spacing: -0.015em;
}
.gm-rexplore {
  margin: 2rem 0 0;
  padding-top: 1.4rem;
  border-top: 1px solid var(--cl-rule);
}
.gm-rexplore-k {
  margin: 0 0 0.85rem;
  font-family: "Source Sans 3", system-ui, sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cl-muted);
}
.gm-rexplore-lead {
  margin: -0.15rem 0 0.9rem;
  font-size: 0.95rem;
  color: var(--cl-muted);
}
.gm-rexplore-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.gm-rexplore-list a {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 0.85rem;
  align-items: center;
  padding: 0.45rem 0.4rem;
  border-radius: 10px;
  text-decoration: none;
  color: var(--cl-ink);
  transition: background .15s;
}
.gm-rexplore-list a:hover { background: color-mix(in srgb, var(--cl-accent) 8%, transparent); }
.gm-rexplore-list img, .gm-rexplore-list .ph {
  width: 56px; height: 56px;
  border-radius: 8px;
  object-fit: cover;
  background: var(--cl-rule);
}
.gm-rexplore-list b {
  display: block;
  font-family: var(--cl-title-font, "Playfair Display", Georgia, serif);
  font-weight: 600;
  font-size: 1.02rem;
  line-height: 1.25;
}
.gm-rexplore-list i {
  display: block;
  margin-top: 0.15rem;
  font-style: normal;
  font-size: 0.78rem;
  color: var(--cl-muted);
  font-family: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  letter-spacing: 0.02em;
}
.gm-rexplore-nb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  list-style: none;
  margin: 0.85rem 0 0;
  padding: 0;
}
.gm-rexplore-nb a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 32px;
  padding: 0 0.75rem;
  border-radius: 999px;
  border: 1px dashed color-mix(in srgb, var(--cl-map-blue, #3A7CA5) 50%, var(--cl-rule));
  color: var(--cl-ink);
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 600;
  background: color-mix(in srgb, var(--cl-surface) 55%, transparent);
  transition: border-color .15s, color .15s, background .15s;
}
.gm-rexplore-nb a:hover {
  border-style: solid;
  border-color: var(--cl-map-blue, #3A7CA5);
  color: var(--cl-map-blue, #3A7CA5);
}
[data-theme="dark"] .gm-rexplore-nb a:hover { color: #74B4DB; border-color: #74B4DB; }
.gm-rexplore-nb em { font-style: normal; font-weight: 500; color: var(--cl-muted); font-variant-numeric: tabular-nums; }


/* Vidro fosco um pouco mais translúcido no claro e no escuro; o texto usa halo para contraste. */
@media (min-width: 900px) {
  .gm-panel.is-reading {
    --gm-glass: 62%;
    --gm-blur: 20px;
  }
  [data-theme="dark"] .gm-panel.is-reading {
    --gm-glass: 64%;
    --gm-blur: 22px;
  }
  @supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    .gm-panel.is-reading {
      background: color-mix(in srgb, var(--cl-surface) var(--gm-glass), transparent);
      -webkit-backdrop-filter: blur(var(--gm-blur)) saturate(1.45);
      backdrop-filter: blur(var(--gm-blur)) saturate(1.45);
    }
  }
}

.gm-pread .cl-share {
  margin-top: 1.4rem;
  padding: 1rem 0 0.2rem;
  gap: 0.4rem;
  background: transparent;
}
.gm-pread .cl-share-label {
  font-size: 0.68rem;
  letter-spacing: 0.1em;
}
.gm-pread .cl-share-btn {
  box-sizing: border-box;
  height: 32px !important;
  min-height: 32px;
  padding: 0 0.75rem !important;
  font-size: 0.8rem !important;
  line-height: 1 !important;
}
.gm-pread .cl-share-btn:not(.is-wa):not(.is-native) {
  background: color-mix(in srgb, var(--cl-surface) 70%, transparent);
}

.gm-pread .cl-author,
.gm-rarticle .cl-author,
.gm-pread aside.cl-author {
  margin-top: 1.5rem !important;
  margin-bottom: 0.5rem !important;
  padding: 1.05rem 1.15rem !important;
  gap: 1rem !important;
  grid-template-columns: 70px minmax(0, 1fr) !important;
  background: color-mix(in srgb, var(--cl-surface) 72%, transparent) !important;
  border: 1px solid var(--cl-rule);
  box-shadow: none !important;
}
.gm-pread .cl-author > img,
.gm-pread .cl-author .cl-author-photo,
.gm-pread .cl-author-placeholder {
  width: 70px !important;
  height: 70px !important;
}
.gm-pread .cl-author .cl-author-kicker {
  font-size: 0.68rem !important;
  margin: 0 0 0.18rem !important;
}
.gm-pread .cl-author .cl-author-name {
  font-size: 1.3rem !important; /* ~20.8px */
  line-height: 1.25 !important;
  margin: 0 0 0.3rem !important;
}
.gm-pread .cl-author .cl-author-bio,
.gm-pread .cl-author .cl-author-text p.cl-author-bio {
  font-size: 0.9375rem !important; /* 15px */
  line-height: 1.6 !important;
}
@media (max-width: 899.98px) {
  .gm-pread .cl-author,
  .gm-rarticle .cl-author,
  .gm-pread aside.cl-author {
    padding: 0.95rem 1.05rem !important;
    gap: 0.9rem !important;
    grid-template-columns: 64px minmax(0, 1fr) !important;
  }
  .gm-pread .cl-author > img,
  .gm-pread .cl-author .cl-author-photo,
  .gm-pread .cl-author-placeholder {
    width: 64px !important;
    height: 64px !important;
  }
  .gm-pread .cl-author .cl-author-name { font-size: 1.25rem !important; }
  .gm-pread .cl-author .cl-author-bio,
  .gm-pread .cl-author .cl-author-text p.cl-author-bio { font-size: 0.9rem !important; line-height: 1.6 !important; }
}

/* Esqueleto discreto na troca de post (não reabre o painel). */
.gm-rsk { padding: 1.4rem 0 2rem; display: grid; gap: 0.7rem; }
.gm-rsk i {
  display: block;
  border-radius: 8px;
  background: color-mix(in srgb, var(--cl-rule) 80%, transparent);
  position: relative;
  overflow: hidden;
  height: 0.7rem;
}
.gm-rsk .gm-rsk-k { width: 38%; height: 0.55rem; }
.gm-rsk .gm-rsk-t { width: 86%; height: 1.15rem; border-radius: 10px; }
.gm-rsk .gm-rsk-t2 { width: 64%; height: 1.15rem; border-radius: 10px; }
.gm-rsk .gm-rsk-img { width: 100%; height: 12rem; border-radius: 12px; margin: 0.4rem 0; }
.gm-rsk .gm-rsk-p { width: 100%; }
.gm-rsk .gm-rsk-p2 { width: 92%; }
.gm-rsk .gm-rsk-p3 { width: 80%; }
.gm-rsk i::after {
  content: "";
  position: absolute; inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(100deg, transparent 20%, color-mix(in srgb, var(--cl-surface) 70%, transparent) 50%, transparent 80%);
  animation: gm-shimmer 1.35s cubic-bezier(.4,0,.2,1) infinite;
}
@media (prefers-reduced-motion: reduce) {
  .gm-rsk i::after { animation: none; }
}


@media (prefers-reduced-motion: reduce) {
  .cl-mapbar, .cl-mapbar-btn, .cl-mapbar-back, .cl-mapbar-close, .cl-explore-chips a,
  .gm-rbtn, .gm-rback, .gm-ropen, .gm-rexplore-list a, .gm-rexplore-nb a {
    transition: none;
  }
  .gm-side { transition: none !important; }
  .gm-panel {
    transition: opacity .01ms, visibility 0s !important;
  }
  .gm-panel.is-reading { --gm-expand: 1; }
  .gm-panel.is-reading .gm-pc { opacity: 0; }
  .gm-panel.is-reading .gm-pread { opacity: 1; }
}
