/*
 * City pages and their archive pages (templates/page-city.php, templates/page-city-archive.php), 2026-11-10.
 * These are the generator's own rules, moved from the <style> blocks of its templates and renamed with the classes
 * (.nsg-* is now .city-page__* and .city-archive__*). Nothing about the look changes.
 */

/* The header's line once the page is scrolled, as on the Canvas pages (the generator borrowed their body class). */
.scrolled body.page-template-page-city .site-header:after,
.scrolled body.page-template-page-city-archive .site-header:after {
  opacity: 1;
}

/* ---- A city page ---- */

#city-page h1 {
  margin-bottom: 0 !important;
}

.page-template-page-city .seo-content p a:not(.button) {
  transition: opacity 0.2s ease-out;
}

.page-template-page-city .seo-content p a:not(.button):hover {
  opacity: 0.5;
}

.city-page__links {
  display: flex;
  gap: 7px;
}

.city-page__links .city-page__all {
  margin-left: auto;
}

@media (min-width: 782px) {
  .city-page__links {
    gap: 20px;
  }
}

@media (max-width: 781px) {
  .city-page__links .button {
    padding: 15px 16px;
  }
}

/* "Previous" and "Next" drop "page" on the narrowest phones, as the generator's did. */
@media (max-width: 374px) {
  .city-page__links .city-page__word {
    display: none;
  }
}

/* The work rows' pictures take the industry pages' 20px corners at every width (Daniel, 2026-12-03: "the mobile
   project images they have sharp corners"): most of them are square-cornered grey cards. */
.page-template-page-city .rows__row .col--img img {
  border-radius: 20px;
}

/* An area card's two paragraphs (who works there, then what we do for them) sit a blank line apart, as the area's
   intro does (Daniel, 2026-12-03: "make in 2 paragraphs"). */
.page-template-page-city .slide__title p + p {
  margin-top: 1.3em;
  margin-top: 1lh;
}

/* The "what you get" cards' icon tiles keep the number tiles' distance to the title: the picture wrapper is inline
   and sat on the text's baseline, 7px lower (Daniel, 2026-12-03: "add icons from our pack"). */
.page-template-page-city .slide__title > .r-image {
  display: block;
}

/* ---- An archive page: the rows ---- */

a.city-archive__link {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 30px 0;
  border-bottom: 1px solid #E2E3E6;
}

a.city-archive__link .button-icon {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #F1F1F1;
  border-radius: 100%;
  flex-shrink: 0;
  transition: background-color .2s ease;
}

a.city-archive__link:hover .button-icon {
  background-color: #dedede;
}

a.city-archive__link .button-icon svg {
  width: 17px;
  height: 12px;
}

.city-archive__row > h2 {
  margin: 0;
}

p.overview-description {
  color: #000;
}

/* The rows take the focus after a page number swaps them (city-archive.js), so the keyboard continues from there;
   they aren't a control, so no ring is drawn around them (Safari draws one for a scripted focus too). */
.city-archive__list:focus {
  outline: none;
}

/* ---- An archive page: the page numbers ---- */

.city-archive ul.page-numbers {
  list-style: none;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin: 0;
}

.city-archive ul.page-numbers li a {
  background-color: transparent;
  border: none;
  -webkit-tap-highlight-color: transparent;
}

.city-archive ul.page-numbers li span {
  display: block;
}

.city-archive ul.page-numbers li .page-numbers {
  padding: 15px 20px;
  border-bottom: 1px solid transparent;
  border-radius: 0;
  color: #757677;
  transition: color .2s ease, border-color .2s ease, background-color .2s ease;
}

.city-archive ul.page-numbers li .page-numbers:hover {
  color: #000;
  opacity: 1;
}

.city-archive ul.page-numbers li .page-numbers.current {
  border-bottom: 1px solid currentColor;
  color: #000;
}

.city-archive ul.page-numbers li a.page-numbers.next {
  margin-left: 20px;
}

.city-archive ul.page-numbers li a.page-numbers.prev {
  margin-right: 20px;
}

.city-archive ul.page-numbers li a.page-numbers.next,
.city-archive ul.page-numbers li a.page-numbers.prev {
  display: block;
  font-size: 20px;
  letter-spacing: -.8px;
  line-height: 30px;
  -webkit-appearance: none;
  appearance: none;
  transition: all .2s ease;
  padding: 15px 20px;
  border-radius: 100px;
  border: none;
  font-weight: 400;
  color: #000;
  background-color: #F1F1F1;
}

.city-archive ul.page-numbers li a.page-numbers.prev {
  display: none !important;
}

.city-archive ul.page-numbers li a.page-numbers.next:hover,
.city-archive ul.page-numbers li a.page-numbers.prev:hover {
  color: #1d1d1f;
  background-color: #dedede;
}

@media (max-width: 782px) {
  .city-archive ul.page-numbers {
    flex-wrap: wrap;
    gap: 16px 0;
  }

  a.city-archive__link {
    padding: 24px 0;
  }

  a.city-archive__link .button-icon {
    width: 50px;
    height: 50px;
  }

  .city-archive ul.page-numbers li a.page-numbers.next,
  .city-archive ul.page-numbers li a.page-numbers.prev {
    font-size: inherit;
    line-height: inherit;
    letter-spacing: inherit;
  }

  .city-archive ul.page-numbers li .page-numbers {
    padding: 6px 14px;
  }

  .city-archive ul.page-numbers li a.page-numbers.next {
    margin-left: 0;
  }

  .city-archive ul.page-numbers li .page-numbers.dots {
    padding-left: 0;
    padding-right: 0;
  }
}

/* ---- An archive page: the text grid ---- */

@media (max-width: 781px) {
  .city-archive .grid-3__item .r-image.size-thumb,
  .city-archive .grid-3__item .r-image.size-thumb img {
    height: 60px;
  }
}

/* ---- An archive page: the picture and text block ---- */

.city-archive .text-image--block {
  overflow: hidden;
}

.city-archive .mt-50 {
  margin-top: 32px;
}

.city-archive .mb-50 {
  margin-bottom: 32px;
}

@media (min-width: 782px) {
  .city-archive .mt-50 {
    margin-top: 50px;
  }

  .city-archive .mb-50 {
    margin-bottom: 50px;
  }

  .city-archive .text-image--block .col--text {
    flex: 0 0 calc(60% - 15px);
    max-width: calc(60% - 15px);
    padding: 20px 0 60px 60px;
  }

  .city-archive .text-image--block .col--image {
    padding-right: 0;
    padding-top: 0;
    flex: 0 0 calc(40% - 15px);
    max-width: calc(40% - 15px);
    padding-left: 50px;
  }

  .city-archive .text-image--block .col-content {
    max-width: 860px;
  }

  .city-archive .text-image--block h3 {
    max-width: 720px;
  }

  .city-archive .text-image--block {
    align-items: center;
  }

  .city-archive .col.col--text .button {
    margin-bottom: 0;
  }
}

@media (max-width: 781px) {
  .city-archive .text-image--block .col--text {
    padding: 38px 20px 0;
  }

  .city-archive .text-image--block .col--image {
    padding: 0;
  }

  .city-archive .col.col--text {
    padding-bottom: 0;
  }

  .city-archive .col.col--text .button {
    margin-bottom: 0;
  }
}
