/* /map: the few patterns this page needs on top of /styles.css. A file, not a <style> block,
   because the site CSP allows styles from 'self' only. Tokens only; no new colours or radii. */

/* Hero: the copy takes the wider share; the schedule frame sits beside it. */
.mhero .hero__copy { grid-column: span 7; }
.mhero .hero__fig { grid-column: span 5; }
.mhero__line {
  margin-top: var(--s3);
  max-width: 22em;
  font-size: var(--fs-subhead);
  line-height: var(--lh-subhead);
  letter-spacing: var(--tr-subhead);
  color: var(--stone);
  text-wrap: balance;
}
.mhero .queue td:nth-child(3) { white-space: nowrap; }
/* Values share a baseline when a label wraps to two lines. */
.mhero .tiles--queue .tile__value { margin-top: auto; padding-top: var(--s2); }

/* Card header row: index on the left, when it lands on the right. */
.mcard__top { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s2); }
.mcard__top + .card__title { margin-top: var(--s5); }
.mland { color: var(--stone); white-space: nowrap; }

/* Definition grids (the global .defs name is taken by the SVG defs holder). */
.mdefs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--gap);
  margin-top: var(--s6);
}
.mdefs--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.mdefs--stack { grid-template-columns: minmax(0, 1fr); gap: 0; margin-top: 0; }
.mdefs--stack .def { padding: var(--s3) 0; }
.mdefs--stack .def:last-child { border-bottom: 1px solid var(--stroke); }
.mtime { margin-top: var(--s7); }
.mtime .mdefs { margin-top: var(--s3); }

/* Timeline labels are words ("Weeks 2 to 3"), wider than the /video step numbers. */
.mseq .seq__num { width: 9em; white-space: nowrap; }

@media (max-width: 1199px) {
  .mhero .hero__copy, .mhero .hero__fig { grid-column: auto; }
  .mhero .hero__copy { max-width: 720px; }
  .mhero .hero__fig { max-width: 640px; }
}
@media (max-width: 899px) {
  .mdefs, .mdefs--2 { grid-template-columns: minmax(0, 1fr); gap: 0; }
}
@media (max-width: 719px) {
  .mhero__line { font-size: var(--fs-title); line-height: var(--lh-title); letter-spacing: var(--tr-title); }
  .mcard__top + .card__title { margin-top: var(--s3); }
  .mtime { margin-top: var(--s6); }
  .mseq .seq__head { flex-direction: column; align-items: flex-start; gap: var(--s1); }
  .mseq .seq__num { width: auto; }
}
