.maps-hero {
  padding: calc(var(--space-base) * 18) 0 calc(var(--space-base) * 8);
  position: relative;
  overflow: hidden;
}

.maps-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 560px 320px at 12% 22%, rgba(0, 62, 199, 0.08), transparent 70%),
    radial-gradient(ellipse 520px 320px at 88% 64%, rgba(193, 241, 0, 0.10), transparent 70%);
  pointer-events: none;
}

.maps-hero .container {
  position: relative;
  z-index: 1;
}

.maps-kicker {
  display: inline-flex;
  margin-bottom: calc(var(--space-base) * 3);
}

.maps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: calc(var(--space-base) * 4);
}

.map-card {
  display: flex;
  flex-direction: column;
  gap: calc(var(--space-base) * 3);
}

.map-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: calc(var(--space-base) * 2);
}

.map-meta {
  color: var(--primary);
  font-family: var(--font-heading);
  font-weight: 600;
}

.map-badges {
  display: flex;
  flex-wrap: wrap;
  gap: calc(var(--space-base) * 0.5);
  justify-content: flex-end;
}

.map-badge {
  white-space: nowrap;
  background: var(--secondary-container);
  color: var(--on-background);
  border-radius: var(--rounded-full);
  padding: calc(var(--space-base) * 0.75) calc(var(--space-base) * 1.5);
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 700;
}

.map-badge-outline {
  background: transparent;
  border: 1px solid var(--secondary-container);
}

.map-details {
  display: grid;
  grid-template-columns: minmax(88px, 128px) 1fr;
  gap: calc(var(--space-base) * 1) calc(var(--space-base) * 2);
}

.map-details dt {
  color: var(--primary);
  font-family: var(--font-heading);
  font-weight: 700;
}

.map-details dd {
  margin: 0;
  color: var(--on-surface-variant);
}

.map-section-title {
  margin-top: calc(var(--space-base) * 2);
  color: var(--primary);
}

.map-source-list {
  padding-left: calc(var(--space-base) * 3);
  color: var(--on-surface-variant);
}

.map-actions {
  display: flex;
  flex-wrap: wrap;
  gap: calc(var(--space-base) * 2);
  margin-top: auto;
}

.site-nav a.active {
  color: var(--primary);
}

@media (max-width: 768px) {
  .site-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: calc(var(--space-base) * 2);
  }

  .maps-hero {
    padding-top: calc(var(--space-base) * 14);
  }

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

.map-table {
  width: 100%;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
}

.map-table th,
.map-table td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border, rgba(127, 127, 127, 0.25));
}

.map-table thead th {
  font-size: 0.85rem;
  font-weight: 600;
  opacity: 0.7;
  border-bottom-width: 2px;
}

.map-table tbody tr:nth-child(even) {
  background: rgba(127, 127, 127, 0.07);
}

.map-table tbody tr:hover {
  background: rgba(127, 127, 127, 0.14);
}

.map-table .map-col-name {
  font-weight: 600;
}

.map-table .map-col-size,
.map-table th:nth-child(3) {
  text-align: right;
  white-space: nowrap;
}

.map-table .map-col-action {
  text-align: right;
  white-space: nowrap;
}

.map-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.map-index-credit {
  margin-top: 1.5rem;
  font-size: 0.85rem;
  opacity: 0.75;
}

@media (max-width: 640px) {
  .map-table thead {
    display: none;
  }

  .map-table,
  .map-table tbody,
  .map-table tr,
  .map-table td {
    display: block;
  }

  .map-table tr {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border, rgba(127, 127, 127, 0.25));
  }

  .map-table td {
    padding: 0.2rem 0;
    border: 0;
    text-align: left;
  }

  .map-table td[data-label]::before {
    content: attr(data-label) "：";
    opacity: 0.6;
  }

  .map-table .map-col-name::before {
    content: none;
  }

  .map-table .map-col-size,
  .map-table .map-col-action {
    text-align: left;
  }
}
