/*
 * The cities around the atlas (inc/cities.php; review 9, 14 Nov 2026). Unlayered and loaded only where it draws: a
 * city page, and the quote page when the atlas sent a route. Tokens only, each with its fallback.
 */

/* The quote page: the route from the atlas, one quiet line at the top of the form's sign ------------------------ */
.quoteroute {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.25rem 0.75rem;
  margin: 0 0 var(--wp--preset--spacing--50);
  padding-block-end: var(--wp--preset--spacing--40);
  border-block-end: 2px dashed color-mix(in srgb, var(--wp--preset--color--mark, #F2C230) 85%, var(--wp--preset--color--ink));
  color: var(--wp--preset--color--ink);
}
.quoteroute__label {
  color: var(--wp--preset--color--ink-muted);
  font-size: var(--wp--preset--font-size--meta, 0.875rem);
  font-weight: var(--wp--custom--font-weight--label, 600);
}
.quoteroute__trip {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--wp--preset--font-family--heading);
  font-size: var(--wp--preset--font-size--lede, 1.25rem);
  font-weight: var(--wp--custom--font-weight--heading, 500);
  line-height: 1.2;
}
.quoteroute__arrow {
  display: inline-grid;
  place-items: center;
  color: var(--wp--preset--color--ink-muted);
}
.quoteroute__arrow svg {
  inline-size: 1.125rem;
  block-size: 1.125rem;
}

/* A city page's way back: before the closer, its state's other cities and the map --------------------------------- */
/* One rhythm above, as the closer keeps one below (its own top margin). */
main .cityway {
  margin-block: 0;
  padding-block: var(--wp--custom--rhythm--section, 6rem) 0;
}
/* A city alone in its state: the map pill on the page's left edge, not centred under a left-set page (design pass,
   14 Nov 2026); a band's rhythm under the link cards' ground. Straight after the chapters (same ground) it closes the
   last chapter: the chapters' own bottom padding is the gap, and from 64rem it sits under their text column. */
main .cityway--map {
  display: grid;
  justify-items: start;
  padding-block-start: var(--wp--preset--spacing--80, 3rem);
}
main > section.longform + .cityway--map {
  padding-block-start: 0;
}
@media (width >= 64rem) {
  main > section.longform + .cityway--map {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    column-gap: var(--wp--preset--spacing--100, 5rem);
  }
  main > section.longform + .cityway--map > .cityway__map {
    grid-column: 2;
  }
}
/* The atlas index's state, on the page: ONE ink rule across the entry (two rules with a gap between them read as two
   things — design pass, 14 Nov 2026), the Newsreader name on it, its cities as plain links on the chapters' grid. */
main nav.cityway {
  display: grid;
  gap: var(--wp--preset--spacing--30) var(--wp--preset--spacing--100, 5rem);
  border-block-start: 0;
}
main nav.cityway::before {
  content: "";
  grid-column: 1 / -1;
  border-block-start: 2px solid var(--wp--preset--color--ink);
}
@media (width >= 64rem) {
  main nav.cityway {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    align-items: baseline;
  }
}
.cityway__title {
  margin: 0;
  padding: 0;
  border: 0;
  color: var(--wp--preset--color--ink);
  font-family: var(--wp--preset--font-family--heading);
  font-size: var(--wp--preset--font-size--title-sm, 1.5rem);
  font-weight: var(--wp--custom--font-weight--heading, 500);
  line-height: 1.2;
}
.cityway__body {
  display: grid;
  justify-items: start;
  gap: var(--wp--preset--spacing--50);
}
main .cityway__cities {
  display: flex;
  flex-wrap: wrap;
  gap: 0 var(--wp--preset--spacing--50);
  margin: 0;
  padding: 0;
  list-style: none;
}
main .cityway__cities > li {
  margin: 0;
  padding: 0;
}
main .cityway__cities > li::before {
  content: none;
}
main .cityway__city {
  display: inline-flex;
  align-items: center;
  min-block-size: 2.75rem;
  color: var(--wp--preset--color--ink);
  font-size: var(--wp--preset--font-size--body, 1.0625rem);
  text-decoration: none;
}
main .cityway__city:is(:hover, :focus-visible) {
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 0.2em;
}
