/* M2 Charcoal Serious — visited countries map */

.page-countries {
  background: #121212;
  color: #f4f1ec;
  min-height: 100vh;
}

.page-countries .site-header .logo,
.page-countries .site-nav a {
  mix-blend-mode: difference;
}

.page-countries .nav-pill {
  mix-blend-mode: normal !important;
}

.co-hero {
  padding: calc(var(--header-h) + 3rem) var(--space) 1.5rem;
  max-width: var(--max);
  margin: 0 auto;
}

.co-hero .eyebrow {
  margin: 0 0 0.75rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #ff2d6f;
}

.co-hero h1 {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.2rem, 5.5vw, 3.8rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: #f4f1ec;
}

.co-hero .dek {
  margin: 0;
  max-width: 38rem;
  font-size: clamp(1.05rem, 2.2vw, 1.2rem);
  line-height: 1.55;
  color: rgba(244, 241, 236, 0.82);
}

.co-hero .body-soft {
  margin: 1.1rem 0 0;
  max-width: 42rem;
  font-size: 0.98rem;
  line-height: 1.65;
  color: rgba(244, 241, 236, 0.68);
}

.co-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.75rem;
  margin-top: 1.5rem;
}

.co-count {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #f4f1ec;
}

.co-count strong {
  color: #ff7a18;
  font-size: 1.35rem;
  font-weight: 700;
}

.co-legend {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(244, 241, 236, 0.85);
}

.co-legend li {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.co-swatch {
  width: 0.9rem;
  height: 0.9rem;
  border-radius: 0.2rem;
  display: inline-block;
}

.co-swatch.visited {
  background: #ff7a18;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.15);
}
.co-swatch.unvisited {
  background: #3a3a3a;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.co-map-section {
  padding: 0.5rem var(--space) 2rem;
  max-width: var(--max);
  margin: 0 auto;
}

.co-map-frame {
  position: relative;
  background: #0a0a0a;
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid rgba(244, 241, 236, 0.08);
  min-height: min(62vh, 520px);
}

.co-map-frame svg {
  display: block;
  width: 100%;
  height: auto;
  max-height: 70vh;
}

.co-map-frame path.land {
  fill: #3a3a3a;
  stroke: #121212;
  stroke-width: 0.35;
  vector-effect: non-scaling-stroke;
  transition: fill 0.2s ease, stroke 0.2s ease;
}

.co-map-frame path.land.visited {
  fill: #ff7a18;
}

.co-map-frame path.land:focus,
.co-map-frame path.land:hover {
  stroke: #ff2d6f;
  stroke-width: 1.1;
  outline: none;
}

.co-map-frame path.land.visited:focus,
.co-map-frame path.land.visited:hover {
  fill: #ff8f3d;
}

.co-tooltip {
  position: absolute;
  pointer-events: none;
  z-index: 5;
  padding: 0.4rem 0.65rem;
  border-radius: 0.4rem;
  background: rgba(18, 18, 18, 0.94);
  border: 1px solid rgba(255, 45, 111, 0.45);
  color: #f4f1ec;
  font-size: 0.82rem;
  font-weight: 600;
  opacity: 0;
  transform: translate(-50%, -120%);
  transition: opacity 0.15s ease;
  white-space: nowrap;
}

.co-tooltip.is-on { opacity: 1; }

.co-under {
  margin: 1rem 0 0;
  font-size: 0.92rem;
  color: rgba(244, 241, 236, 0.62);
}

.co-status {
  margin: 0.75rem 0 0;
  font-size: 0.85rem;
  color: rgba(244, 241, 236, 0.5);
}

.co-gaps {
  margin: 1.5rem 0 0;
  padding: 1rem 1.15rem;
  border-radius: 0.75rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(244, 241, 236, 0.08);
  font-size: 0.85rem;
  color: rgba(244, 241, 236, 0.65);
}

.co-gaps summary {
  cursor: pointer;
  font-weight: 600;
  color: #ff2d6f;
}

.page-countries .site-footer {
  background: #0a0a0a;
  color: #f4f1ec;
  border-top: 1px solid rgba(244, 241, 236, 0.08);
}

@media (max-width: 900px) {
  .co-meta {
    flex-direction: column;
    align-items: flex-start;
  }
  .co-map-frame {
    border-radius: 0.75rem;
    min-height: 280px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .co-map-frame path.land,
  .co-tooltip {
    transition: none;
  }
}

.co-map-img {
  display: block;
  width: 100%;
  max-width: 78rem;
  height: auto;
  margin: 0 auto;
  background: #121212;
}


/* Legend class aliases (HTML uses .swatch) */
.co-legend .swatch {
  display: inline-block;
  width: 0.85rem;
  height: 0.85rem;
  border-radius: 0.2rem;
  margin-right: 0.4rem;
  vertical-align: -0.1rem;
}
.co-legend .swatch.visited { background: #ff7a18; }
.co-legend .swatch.notyet { background: #3a3a3a; border: 1px solid #555; }

.co-map-wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--space) 1rem; }

.co-list-section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.5rem var(--space) 3.5rem;
}
.co-list-section h2 {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 600;
  color: #f4f1ec;
}
.co-alpha-list {
  columns: 3 12rem;
  column-gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
  color: rgba(244,241,236,0.88);
  font-size: 0.95rem;
  line-height: 1.55;
}
.co-alpha-list li {
  break-inside: avoid;
  padding: 0.15rem 0;
  border-bottom: 1px solid rgba(244,241,236,0.08);
}
@media (max-width: 640px) {
  .co-alpha-list { columns: 2 8rem; }
}
