﻿.hero {
  min-height: calc(100vh - 72px);
  display: grid;
  align-items: center;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid var(--text);
  border-radius: var(--radius);
  background: var(--text);
  color: var(--surface);
  font-weight: 800;
  text-decoration: none;
  box-shadow: 3px 3px 0 var(--yellow);
}

.button,
.card,
.article-link,
.filter-button,
.toc a {
  -webkit-tap-highlight-color: transparent;
}

.button.secondary {
  background: var(--surface);
  color: var(--text);
  box-shadow: none;
}

.visual-frame {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.cards.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card {
  display: grid;
  min-height: 190px;
  gap: 14px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-strong);
  text-decoration: none;
  transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}

.card:hover {
  border-color: var(--text);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.card:hover h3,
.article-link:hover h3 {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.card small {
  color: var(--red);
  font-weight: 800;
  text-transform: uppercase;
}

.card p {
  color: var(--muted);
}

.pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0;
  list-style: none;
}

.pill-list li {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 12px;
  background: var(--surface);
  color: var(--muted);
  font-weight: 700;
}

.article-list {
  display: grid;
  gap: 12px;
}

.article-link {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: start;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  text-decoration: none;
  transition: border-color .18s ease;
}

.article-link:focus-visible,
.card:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
}

.article-link:hover {
  border-color: var(--text);
}

.article-list-cards {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.article-list-cards .article-link {
  grid-template-columns: auto 1fr;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.article-link.has-image {
  grid-template-columns: auto 120px 1fr;
}

.article-link img {
  width: 120px;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-strong);
}

.article-link > span {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: var(--radius);
  background: var(--surface-soft);
  color: var(--accent);
  font-weight: 800;
  font-size: .95rem;
}

.article-link p {
  color: var(--muted);
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
  color: var(--muted);
  font-size: .84rem;
}

.article-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px 8px;
  background: var(--surface);
  line-height: 1.25;
  white-space: normal;
}

.meta-legend {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-strong);
}

.meta-legend h2 {
  font-size: 1.15rem;
}

.meta-legend p {
  color: var(--muted);
}

.meta-legend-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  list-style: none;
}

.meta-legend-list li {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 9px;
  background: var(--surface);
  color: var(--muted);
  font-size: .9rem;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.filter-button {
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  padding: 8px 12px;
  font: inherit;
  font-weight: 800;
}

.filter-button[aria-pressed="true"] {
  border-color: var(--text);
  background: var(--text);
  color: var(--surface);
}

.archive-sections {
  display: grid;
  gap: 42px;
}

.archive-group {
  display: grid;
  gap: 16px;
  padding-top: 22px;
  border-top: 4px solid var(--accent);
}

.archive-group > header {
  display: grid;
  gap: 8px;
}

.archive-group .eyebrow {
  color: var(--accent);
}

.guide {
  display: grid;
  grid-template-columns: 270px 1fr;
  gap: 42px;
  align-items: start;
}

.article-page {
  grid-template-columns: 230px minmax(0, 820px);
  justify-content: center;
  gap: 56px;
}

.article-page .content {
  gap: 46px;
}

.article-page .content > header {
  position: relative;
  padding-block: 30px 34px;
  border-top: 4px solid var(--accent);
  border-bottom: 1px solid var(--line);
}

.article-page .content > header::after {
  position: absolute;
  right: 0;
  bottom: -1px;
  width: 96px;
  height: 1px;
  content: "";
  background: var(--accent);
}

.article-page h1 {
  max-width: 780px;
  font-size: 3.12rem;
}

.article-page h2 {
  font-size: 1.74rem;
}

.article-page .eyebrow {
  color: var(--accent);
}

.article-page .lead {
  max-width: 700px;
}

.article-page .content-section {
  gap: 18px;
  padding-bottom: 44px;
}

.article-page .content-section p,
.article-page .content-section ul {
  max-width: 70ch;
}

.article-page .toc {
  border-left: 4px solid var(--accent);
  background: var(--surface-strong);
  box-shadow: 0 10px 28px rgba(31, 36, 38, .045);
}

.article-page .toc strong {
  color: var(--accent);
}

.article-page .toc a:first-of-type {
  color: var(--text);
  font-weight: 800;
}

.article-page .note {
  border-left-color: var(--accent);
  background: linear-gradient(90deg, rgba(255, 250, 242, .96), var(--surface));
}

.article-page .button.secondary {
  border-color: var(--accent);
}

.toc {
  position: sticky;
  top: 100px;
  display: grid;
  gap: 10px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.toc strong {
  color: var(--text);
  font-family: var(--font-display);
  font-size: 1.12rem;
}

.toc a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  color: var(--muted);
  text-decoration: none;
}

.toc a:hover {
  color: var(--text);
}

.content {
  display: grid;
  gap: 38px;
}

.content-section {
  display: grid;
  gap: 15px;
  padding-bottom: 34px;
  border-bottom: 1px solid var(--line);
}

.content-section ul {
  padding-left: 22px;
  color: var(--muted);
}

.note {
  padding: 18px;
  border-left: 4px solid var(--blue);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--muted);
}

.source-card {
  display: grid;
  gap: 12px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-strong);
}

.source-list {
  display: grid;
  gap: 14px;
}

.source-list .source-card {
  grid-template-columns: 1fr;
  align-items: start;
}

.source-list .source-card header,
.source-list .source-card p {
  min-width: 0;
}

.source-list .source-card a {
  white-space: normal;
}

.source-card header {
  display: grid;
  gap: 4px;
}

.source-card small {
  color: var(--red);
  font-weight: 800;
  text-transform: uppercase;
}

.source-card p {
  color: var(--muted);
}

.source-card a {
  display: block;
  font-weight: 800;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.internal-link {
  color: var(--accent);
  font-weight: 700;
}

.voice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.voice-card {
  display: grid;
  align-content: start;
  gap: 14px;
  min-height: 280px;
  padding: 20px;
  border: 1px solid var(--line);
  border-top: 4px solid var(--accent);
  border-radius: var(--radius);
  background: var(--surface-strong);
}

.voice-card header {
  display: grid;
  gap: 6px;
}

.voice-card small {
  color: var(--accent);
  font-weight: 800;
  text-transform: uppercase;
}

.voice-card p {
  color: var(--muted);
}

.voice-card a {
  align-self: end;
  font-weight: 800;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.provider-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.provider-card {
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-strong);
}

.provider-card header {
  display: grid;
  gap: 6px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.provider-card small {
  color: var(--accent);
  font-weight: 800;
  text-transform: uppercase;
}

.provider-card p {
  color: var(--muted);
}

.provider-card strong {
  color: var(--text);
}

.provider-card a {
  font-weight: 800;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.source-list-compact {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.source-card h3,
.voice-card h3,
.provider-card h3,
.profile-card h3,
.content-section > h2 {
  cursor: default;
}

.profile-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.profile-card {
  display: grid;
  gap: 12px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.profile-card p {
  color: var(--muted);
}

.map-shell {
  display: grid;
  gap: 18px;
}

.map-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}


.map-routes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.map-route {
  display: grid;
  gap: 5px;
  min-height: 98px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  text-align: left;
  box-shadow: 0 8px 18px rgba(31, 36, 38, .08);
  cursor: pointer;
}

.map-route:hover,
.map-route:focus-visible {
  border-color: var(--accent);
  transform: translateY(-1px);
}

.map-route span {
  font-weight: 900;
}

.map-route small {
  color: var(--muted);
  font-size: .88rem;
  font-weight: 700;
  line-height: 1.45;
}
.map-legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.map-legend strong {
  margin-right: 4px;
  color: var(--text);
  font-size: .86rem;
}

.map-legend span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 10px;
  background: var(--surface);
  color: var(--muted);
  font-size: .9rem;
  font-weight: 800;
}

.map-legend span::before {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  content: "";
  background: var(--accent);
}

.map-legend .legend-kind::before {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: var(--muted);
}

.map-legend .legend-kind[data-kind="persona"]::before {
  width: 10px;
  height: 10px;
  box-shadow: 0 7px 0 -2px var(--muted);
}

.map-legend .legend-kind[data-kind="organizacion"]::before {
  box-shadow: -6px 5px 0 -3px var(--muted), 6px 5px 0 -3px var(--muted);
}

.map-legend .legend-kind[data-kind="regulacion"]::before {
  width: 13px;
  height: 11px;
  border-radius: 2px;
  clip-path: polygon(50% 0, 100% 34%, 84% 34%, 84% 100%, 16% 100%, 16% 34%, 0 34%);
}

.map-legend .legend-kind[data-kind="proveedor"]::before {
  border-radius: 3px;
  box-shadow: inset 0 0 0 2px var(--surface);
}

.map-legend .legend-kind[data-kind="modelo"]::before {
  width: 13px;
  height: 10px;
  border-radius: 2px;
  clip-path: polygon(0 18%, 50% 0, 100% 18%, 100% 82%, 50% 100%, 0 82%);
}

.map-legend .legend-kind[data-kind="datos"]::before {
  width: 13px;
  height: 12px;
  border-radius: 1px;
  background: linear-gradient(90deg, var(--muted) 0 22%, transparent 22% 36%, var(--muted) 36% 58%, transparent 58% 72%, var(--muted) 72% 100%);
}

.map-legend .legend-kind[data-kind="participacion"]::before {
  width: 13px;
  height: 10px;
  border-radius: 6px;
  clip-path: polygon(0 0, 100% 0, 100% 75%, 58% 75%, 44% 100%, 42% 75%, 0 75%);
}

.map-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 18px;
  align-items: stretch;
}

.map-canvas {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(rgba(31, 36, 38, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(31, 36, 38, .045) 1px, transparent 1px),
    linear-gradient(180deg, #f7fbfb, #fff8ed);
  background-size: 44px 44px, 44px 44px, auto;
  box-shadow: var(--shadow);
}

.map-world {
  position: absolute;
  inset: 7%;
  opacity: .42;
}

.land {
  position: absolute;
  display: block;
  border: 1px dashed rgba(31, 36, 38, .16);
  background: rgba(94, 151, 142, .12);
  filter: blur(.1px);
}

.land-america {
  left: 4%;
  top: 18%;
  width: 27%;
  height: 54%;
  border-radius: 42% 58% 50% 45%;
  transform: rotate(-9deg);
}

.land-europe {
  left: 43%;
  top: 22%;
  width: 17%;
  height: 20%;
  border-radius: 52% 40% 45% 48%;
  transform: rotate(8deg);
}

.land-asia {
  right: 5%;
  top: 19%;
  width: 35%;
  height: 45%;
  border-radius: 45% 55% 48% 42%;
  transform: rotate(5deg);
}

.land-pacific {
  right: 18%;
  bottom: 10%;
  width: 16%;
  height: 15%;
  border-radius: 46% 54% 44% 56%;
  transform: rotate(-8deg);
}

.map-line {
  position: absolute;
  z-index: 0;
  display: block;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(31, 36, 38, .22), transparent);
  transform-origin: left center;
  pointer-events: none;
}

.map-line-us-eu {
  left: 19%;
  top: 43%;
  width: 36%;
  transform: rotate(-10deg);
}

.map-line-eu-global {
  left: 44%;
  top: 54%;
  width: 20%;
  transform: rotate(55deg);
}

.map-line-eu-asia {
  left: 56%;
  top: 47%;
  width: 25%;
  transform: rotate(7deg);
}

.map-point {
  position: absolute;
  z-index: 1;
  left: var(--x);
  top: var(--y);
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border: 2px solid var(--surface-strong);
  border-radius: 999px;
  background: var(--accent);
  color: var(--text);
  font: inherit;
  font-size: .84rem;
  font-weight: 850;
  box-shadow: 0 8px 18px rgba(31, 36, 38, .2);
  transform: translate(-50%, -50%);
  cursor: pointer;
}

.map-point::before {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  content: "";
  background: var(--surface-strong);
}

.map-point span {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 8px);
  min-width: max-content;
  max-width: 150px;
  transform: translateX(-50%);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 9px;
  background: var(--surface-strong);
  color: var(--text);
  box-shadow: 0 8px 18px rgba(31, 36, 38, .12);
  opacity: 0;
  pointer-events: none;
  transition: opacity .14s ease, transform .14s ease;
}

.map-point[hidden] {
  display: none;
}

.map-point:hover,
.map-point:focus-visible,
.map-point[aria-pressed="true"] {
  border-color: var(--text);
  box-shadow: 0 0 0 6px rgba(31, 36, 38, .1), 0 8px 18px rgba(31, 36, 38, .2);
}

.map-point:hover span,
.map-point:focus-visible span,
.map-point[aria-pressed="true"] span {
  opacity: 1;
  transform: translate(-50%, -2px);
}

.map-detail {
  display: grid;
  align-content: start;
  gap: 14px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-strong);
}

.map-detail h2 {
  font-size: 1.45rem;
}

.map-detail p:not(.eyebrow) {
  color: var(--muted);
}

.map-question {
  display: grid;
  gap: 6px;
  padding: 14px;
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  background: var(--surface);
}

.map-question[hidden] {
  display: none;
}

.map-question strong {
  color: var(--text);
}

.map-question p {
  color: var(--muted);
}

.access-panel {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 20;
  display: grid;
  gap: 8px;
}

.access-toggle,
.access-control {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-strong);
  color: var(--text);
  font: inherit;
  font-weight: 800;
}

.access-toggle {
  padding: 8px 12px;
  box-shadow: var(--shadow);
}

.access-controls {
  display: none;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  width: min(280px, calc(100vw - 32px));
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-strong);
  box-shadow: var(--shadow);
}

.access-panel.is-open .access-controls {
  display: grid;
}

.access-control[aria-pressed="true"] {
  border-color: var(--text);
  background: var(--text);
  color: var(--surface);
}

@media (max-width: 900px) {
  .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cards.two {
    grid-template-columns: 1fr;
  }

  .guide {
    grid-template-columns: 1fr;
  }

  .article-page {
    justify-content: stretch;
  }

  .profile-grid {
    grid-template-columns: 1fr;
  }

  .article-list-cards {
    grid-template-columns: 1fr;
  }

  .source-list .source-card {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .voice-grid,
  .provider-grid,
  .source-list-compact {
    grid-template-columns: 1fr;
  }

  .map-layout {
    grid-template-columns: 1fr;
  }

  .map-routes {
    grid-template-columns: 1fr;
  }

  .toc {
    position: static;
  }
}

@media (max-width: 620px) {
  .cards {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .article-page h1 {
    font-size: 2.35rem;
  }

  .article-link.has-image,
  .article-list-cards .article-link {
    grid-template-columns: auto 1fr;
  }

  .article-link img {
    grid-column: 1 / -1;
    width: 100%;
  }

  .article-link {
    grid-template-columns: 1fr;
  }

  .map-canvas {
    min-height: 560px;
  }

  .map-point {
    width: 22px;
    height: 22px;
  }

  .map-point span {
    max-width: 116px;
    white-space: normal;
    text-align: center;
  }

  .map-line {
    opacity: .45;
  }

  .article-link > span {
    width: max-content;
    min-width: 32px;
  }

  .access-panel {
    right: 12px;
    bottom: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .card,
  .article-link {
    transition: none;
  }

  .card:hover {
    transform: none;
  }
}




.map-layers {
  display: inline-flex;
  width: fit-content;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 10px;
  background: var(--surface);
  color: var(--text);
  font-size: .88rem;
  font-weight: 800;
}

.map-layers[hidden] {
  display: none;
}

.map-point[data-map-kind]::before {
  width: 12px;
  height: 12px;
  background: var(--surface-strong);
}

.map-point[data-map-kind="persona"]::before {
  width: 11px;
  height: 11px;
  border-radius: 50% 50% 45% 45%;
  box-shadow: 0 7px 0 -2px var(--surface-strong);
}

.map-point[data-map-kind="organizacion"]::before {
  border-radius: 999px;
  box-shadow: -6px 5px 0 -3px var(--surface-strong), 6px 5px 0 -3px var(--surface-strong);
}

.map-point[data-map-kind="regulacion"]::before {
  width: 13px;
  height: 11px;
  border-radius: 2px 2px 1px 1px;
  clip-path: polygon(50% 0, 100% 34%, 84% 34%, 84% 100%, 16% 100%, 16% 34%, 0 34%);
}

.map-point[data-map-kind="proveedor"]::before {
  width: 12px;
  height: 12px;
  border-radius: 3px;
  box-shadow: inset 0 0 0 2px var(--accent);
}

.map-point[data-map-kind="modelo"]::before {
  width: 13px;
  height: 10px;
  border-radius: 2px;
  clip-path: polygon(0 18%, 50% 0, 100% 18%, 100% 82%, 50% 100%, 0 82%);
}

.map-point[data-map-kind="datos"]::before {
  width: 13px;
  height: 12px;
  border-radius: 1px;
  background: linear-gradient(90deg, var(--surface-strong) 0 22%, transparent 22% 36%, var(--surface-strong) 36% 58%, transparent 58% 72%, var(--surface-strong) 72% 100%);
}

.map-point[data-map-kind="participacion"]::before {
  width: 13px;
  height: 10px;
  border-radius: 6px;
  clip-path: polygon(0 0, 100% 0, 100% 75%, 58% 75%, 44% 100%, 42% 75%, 0 75%);
}


.archive-search {
  display: grid;
  gap: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  background: var(--surface-strong);
}

.archive-search h2 {
  font-size: 1.45rem;
}

.archive-search p {
  color: var(--muted);
}

.search-field {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-weight: 800;
}

.search-field input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px 14px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
}

.archive-filter-grid {
  display: grid;
  gap: 16px;
}

.archive-filter-group {
  display: grid;
  gap: 8px;
}

.archive-filter-group h3 {
  font-size: .92rem;
  color: var(--text);
}

.map-point[data-map-related] {
  box-shadow: 0 0 0 5px rgba(255, 250, 242, .95), 0 0 0 8px rgba(31, 36, 38, .16), 0 8px 18px rgba(31, 36, 38, .18);
}

.map-point[data-map-related]:hover,
.map-point[data-map-related]:focus-visible,
.map-point[data-map-related][aria-pressed="true"] {
  box-shadow: 0 0 0 5px rgba(255, 250, 242, .95), 0 0 0 9px rgba(31, 36, 38, .22), 0 8px 18px rgba(31, 36, 38, .2);
}

.map-legend .legend-related::before {
  border: 2px solid var(--muted);
  background: transparent;
  box-shadow: 0 0 0 3px var(--surface);
}

.map-layer-note {
  display: grid;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px;
  background: var(--surface);
}

.map-layer-note[hidden] {
  display: none;
}

.map-layer-note p {
  color: var(--muted);
}

.map-layer-note strong {
  color: var(--text);
}

.term-help {
  position: relative;
  display: inline-flex;
  align-items: center;
  border-bottom: 1px dotted currentColor;
  color: inherit;
  font-style: italic;
  cursor: help;
}

.term-help::after {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 10px);
  z-index: 20;
  width: min(280px, 70vw);
  transform: translateX(-50%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px 12px;
  background: var(--text);
  color: var(--bg);
  box-shadow: var(--shadow);
  content: attr(data-definition);
  font-size: .86rem;
  font-weight: 700;
  line-height: 1.45;
  opacity: 0;
  pointer-events: none;
  transition: opacity .16s ease, transform .16s ease;
}

.term-help:hover::after,
.term-help:focus-visible::after {
  opacity: 1;
  transform: translateX(-50%) translateY(-2px);
}



