/* ==========================================================================
   M3RBS: Maps page
   Loaded only by maps.html, after base.css (shared tokens, header, footer, page title).
   The maps are the content: each gets a title, a direct full-screen link, and a
   full-width embed framed only by a hairline.
   ========================================================================== */

/* ---------- Page head ---------- */
.map-head {
  padding-top: var(--s2);
  padding-bottom: var(--s2);
}
.map-head__lede {
  margin-top: 12px;
  font-size: 1.0625rem;
  max-width: 34rem;
}
.map-head__jump {
  display: flex;
  flex-wrap: wrap;
  gap: 0 var(--s2);
  margin-top: 6px;
}
.map-head__jump a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--ink);
}
.map-head__jump a:hover { color: var(--accent); }

@media (min-width: 640px) {
  .map-head { padding-top: var(--s4); padding-bottom: var(--s3); }
}
@media (min-width: 1000px) {
  .map-head {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: var(--col-gap);
    align-items: end;
  }
  .map-head .eyebrow,
  .map-head .page-title { grid-column: 1 / span 6; }
  .map-head .page-title { grid-row: 2; }
  .map-head__lede { grid-column: 8 / -1; grid-row: 1 / span 2; margin: 0 0 6px; }
  .map-head__jump { grid-column: 1 / -1; grid-row: 3; margin-top: var(--s0); }
}

/* ---------- Map sections ---------- */
.map-section { padding-bottom: var(--s4); }

.map-section__head {
  display: grid;
  gap: 2px var(--s3);
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line-strong);
}
.map-section__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.625rem, 1.3rem + 1.1vw, 2.125rem);
  line-height: 1.1;
  letter-spacing: -0.012em;
}

/* The direct link to Google's full-screen viewer: the most useful action on a phone */
.map-section__open a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 1rem;
  font-weight: 600;
}

.map-section__note {
  font-size: 0.9375rem;
  color: var(--muted);
  max-width: 38rem;
}

/* The embed: full content width, hairline frame, height reserved before it loads */
.map-frame {
  margin-top: var(--s1);
  border: 1px solid var(--line);
  background: var(--accent-wash);
}
.map-frame iframe {
  display: block;
  width: 100%;
  height: clamp(360px, 62vh, 520px);
  border: 0;
}

@media (min-width: 640px) {
  .map-frame iframe { height: 520px; }
}

@media (min-width: 1000px) {
  .map-section { padding-bottom: var(--s5); }
  .map-section__head {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: baseline;
  }
  .map-section__title { grid-column: 1; grid-row: 1; }
  .map-section__open { grid-column: 2; grid-row: 1; justify-self: end; }
  .map-section__note { grid-column: 1 / -1; }
  .map-section__open a { min-height: 36px; }
  /* The original embeds were 600px tall */
  .map-frame iframe { height: 600px; }
}

/* ---------- Suggestions and corrections ---------- */
.map-note {
  padding-top: var(--s1);
  padding-bottom: var(--s5);
}
.map-note p {
  max-width: 44rem;
  font-size: 0.9375rem;
  color: var(--muted);
}
