/* Mapy na stiahnutie (/maps, /maps/<slug>; scripts/map-pages.mjs). Dopĺňa public/legal.css (farby a písmo odtiaľ). */
.map-figure img { background: var(--deep); }
/* Sken pôvodného hárku z roku 1892 je menší ako stĺpec: nenaťahuje sa. */
.map-figure-small img { width: auto; max-width: 100%; margin-inline: auto; }
.map-figure-small figcaption { text-align: center; }
.map-pair { margin: 1.5rem 0; }
.map-pair .map-figure-small img { width: 100%; }

/* Box so súbormi na stiahnutie, výzvou do appky a odkazom na platený plagát. */
.map-get { margin: 1.5rem 0 2rem; padding: 1.25rem; border: 1px solid var(--rule); border-radius: 1rem; background: var(--deep); }
.map-get h2 { margin: 0 0 0.75rem; font-size: 1.25rem; }
.map-files { list-style: none; margin: 0 0 0.9rem; padding: 0; display: grid; gap: 0.5rem; }
@media (min-width: 40rem) { .map-files { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.map-files li { margin: 0; }
.map-files a { display: flex; align-items: center; gap: 0.75rem; min-height: 3.25rem; padding: 0.6rem 0.9rem; border: 1px solid var(--rule); border-radius: 0.75rem; background: var(--raised); color: var(--parchment); text-decoration: none; transition: border-color 150ms; touch-action: manipulation; }
.map-files a:active { background: #1a2b49; }
.map-files svg { flex: none; color: var(--brass-bright); }
.map-files strong { display: block; font-weight: 600; line-height: 1.3; }
.map-files small { display: block; color: var(--mist); font-size: 0.8125rem; line-height: 1.4; }
.map-licence { margin: 0 0 0.9rem; font-size: 0.875rem; color: var(--mist); }
.map-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.25rem; margin: 0; font-size: 0.9375rem; }
.map-actions .cta { margin-top: 0; font-size: 1rem; }

/* Karty máp s náhľadom (rozcestník a „More Flat Earth maps“). */
.map-grid { list-style: none; margin: 1.5rem 0; padding: 0; display: grid; gap: 0.75rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 48rem) { .map-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; } }
.map-grid li { margin: 0; }
.map-grid a { display: block; height: 100%; border: 1px solid var(--rule); border-radius: 1rem; overflow: hidden; background: var(--deep); color: var(--mist); text-decoration: none; transition: border-color 150ms, background-color 150ms; touch-action: manipulation; }
.map-grid a:active { background: #14223b; }
.map-grid a:focus-visible { outline: 2px solid var(--brass-bright); outline-offset: 2px; border-radius: 1rem; }
.map-grid img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; background: var(--night); }
.map-grid strong { display: block; padding: 0.75rem 0.9rem 0; color: var(--parchment); font-weight: 600; line-height: 1.3; }
.map-grid span { display: block; padding: 0.25rem 0.9rem 0.9rem; font-size: 0.875rem; line-height: 1.45; }
@media (hover: hover) and (pointer: fine) {
  .map-files a:hover, .map-grid a:hover { border-color: rgb(201 162 78 / 0.6); }
  .map-grid a:hover { background: #14223b; }
}
@media (prefers-reduced-motion: reduce) { .map-files a, .map-grid a { transition: none; } }
@media print { .map-get, .map-grid { display: none; } }
