/* =========================================================================
   page-data-maps.css — styles unique to data/maps/index.html
   All tokens, canonical components (.card, .btn, .pill, .media-frame,
   .container) come from foundation.css, layout.css, and design-system.css.
   ========================================================================= */

main a { color: var(--hvb-teal); text-decoration: none; }
main a:hover { text-decoration: underline; }

/* ── Textured hero ───────────────────────────────────────────────────────── */
.hero {
  background:
    radial-gradient(1100px 520px at 15% 10%, rgba(233, 169, 35, 0.14), rgba(233, 169, 35, 0) 62%),
    linear-gradient(180deg, rgba(14, 59, 46, 0.10), rgba(14, 59, 46, 0.02)),
    url("/assets/textures/tx_topo-hudson-lines_tile.svg");
  background-repeat: no-repeat;
  background-size: cover;
  padding: 60px 0 32px;
  border-bottom: 1px solid rgba(14, 59, 46, 0.10);
}

.hero-inner { max-width: 760px; }

.hero h1 {
  margin: 12px 0 8px;
  font-family: var(--font-head);
  font-size: clamp(32px, 4vw, 48px);
  letter-spacing: -0.02em;
  line-height: 1.12;
}

.hero p { margin: 0; color: var(--hvb-slate); }

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

/* ── Atlas button ────────────────────────────────────────────────────────── */
.btn-atlas {
  background: #0c6fd6;
  color: #fff;
  border-color: #0c6fd6;
}

.btn-atlas:hover {
  background: #0a5bb5;
  border-color: #0a5bb5;
}

/* ── Jump-row & Announce banner ──────────────────────────────────────────── */
.announce {
  margin-bottom: 32px;
  padding: 24px;
  border-radius: var(--radius-card);
  background: #fff;
  border: 1px solid rgba(14, 59, 46, 0.10);
  box-shadow: var(--shadow-1);
}

.announce h2 { margin: 0 0 8px; font-family: var(--font-head); }
.announce p { margin: 0; color: var(--hvb-slate); }

/* ── Map card grid ───────────────────────────────────────────────────────── */
.map-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-bottom: 42px;
}

.map-card {
  background: #fff;
  border-radius: var(--radius-card);
  border: 1px solid rgba(14, 59, 46, 0.10);
  padding: 22px;
  box-shadow: var(--shadow-1);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.map-card h3 {
  margin: 0;
  font-family: var(--font-head);
  font-size: 20px;
}

.map-card p { margin: 0; color: var(--hvb-slate); }

.map-card .hero-actions { margin-top: 0; }

.map-card .related-links {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--hvb-slate);
}

.map-card ol,
.map-card ul {
  margin: 0;
  padding-left: 18px;
}

/* ── Meta label ──────────────────────────────────────────────────────────── */
.meta {
  margin: 0;
  color: var(--hvb-slate);
  font-size: 13.5px;
}

/* ── Map section (full-width detail cards) ───────────────────────────────── */
.map-section {
  margin-bottom: 32px;
  background: #fff;
  border-radius: var(--radius-card);
  border: 1px solid rgba(14, 59, 46, 0.10);
  box-shadow: var(--shadow-1);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.map-section figure { margin: 0; }

.map-section figcaption {
  color: var(--hvb-slate);
  font-size: 14px;
}

.map-section ul {
  margin: 0;
  padding-left: 18px;
  color: var(--hvb-slate);
  line-height: 1.6;
}

.map-section li { margin: 6px 0; }

.map-section-content h3 {
  margin: 0 0 8px;
  font-family: var(--font-head);
}

.map-section-content p {
  margin: 0 0 10px;
  color: var(--hvb-slate);
}

.map-section-split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  align-items: start;
}

/* Override media-frame aspect-ratio inside map sections so images display naturally */
.page-data-maps .map-section figure.media-frame,
.page-data-maps .map-section figure.media-frame--4-3 {
  aspect-ratio: auto !important;
}

.page-data-maps .map-section figure.media-frame img,
.page-data-maps .map-section figure.media-frame--4-3 img {
  width: 100% !important;
  height: auto !important;
  object-fit: contain;
}

.page-data-maps .map-section figure.media-frame {
  overflow: hidden;
  border-radius: var(--radius-card);
  background: #fff;
}

/* ── Link row ────────────────────────────────────────────────────────────── */
.page-data-maps .linkrow {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

@media (max-width: 560px) {
  .page-data-maps .linkrow {
    display: grid;
    grid-template-columns: 1fr;
  }
  .page-data-maps .linkrow .btn {
    width: 100%;
  }
}

/* ── Related details/summary ─────────────────────────────────────────────── */
.page-data-maps .related-details summary.meta {
  cursor: pointer;
  user-select: none;
  margin-top: 8px;
}

.page-data-maps .related-details[open] summary.meta {
  margin-bottom: 8px;
}

.page-data-maps .related-details .related-links {
  margin: 0;
  padding-inline-start: 20px;
  list-style: disc;
  line-height: 1.6;
  color: var(--hvb-slate);
}

.page-data-maps .related-details .related-links li {
  margin-bottom: 4px;
}

/* ── Responsive breakpoints ──────────────────────────────────────────────── */
@media (max-width: 900px) {
  .page-data-maps .map-section-split {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 1024px) {
  .page-data-maps .map-section {
    padding: clamp(16px, 1.6vw, 22px);
    margin-bottom: 24px;
  }
  .page-data-maps .map-section figure img {
    max-height: 56vh;
  }
  .page-data-maps .map-section ul {
    line-height: 1.55;
  }
  .page-data-maps .map-section li {
    margin: 4px 0;
  }
  .page-data-maps .map-section-content {
    max-width: 65ch;
  }
}
