/* The calculator banner above the industry pages' FAQ is the city pages' cover block (theme.css) as it is (Daniel,
 * 2026-10-27/28), with two additions: a keyboard focus ring on its button, which the theme takes off every button
 * (outline: none !important), and its keys kept whole on tablets. The big project images are the city pages' image
 * block with nothing added: no link, no hover or pressed state (Daniel, 2026-10-28). */

.cover--calc .button:focus-visible {
  outline: 2px solid #fff !important;
  outline-offset: 3px;
}

/* The calculator banner between 782 and 1439px: where its text is taller than the image, the theme's crop (object-fit:
   cover, centred) cuts the right column of keys. Here the image keeps its proportions at the right and its ground
   (#111, as in Daniel's comp) fills the rest, so the keys stay whole and clear of the text. */
@media (min-width: 782px) and (max-width: 1439px) {
  .cover--calc .cover__img {
    background-color: #111;
  }

  .cover--calc .cover__img img {
    object-fit: contain;
    object-position: right center;
  }
}

/* "Who we work with" (2026-11-28): the persona cards are the reviews block, with the sector as a white tag where a
   review's logo sits, centred in the logo's 60px row (48px on phones), as in Daniel's Figma pages. */
.testimonials .slide__tag {
  display: block;
  width: fit-content;
  margin: 9px 0;
  padding: 9px 17px;
  border-radius: 100px;
  background-color: #fff;
  color: #000;
  font-size: 18px;
  line-height: 24px;
}

@media (max-width: 781px) {
  .testimonials .slide__tag {
    margin: 5px 0;
    padding: 8px 14px;
    font-size: 16px;
    line-height: 22px;
  }
}

/* Their roles run to two lines, which squeezed the Memoji below 64px in the flex row; and the face sits centred on the
   name and role, as in Figma (the reviews block lifts it 7px with a 14px bottom margin). */
.testimonials .slide__author__image {
  flex-shrink: 0;
}

@media (min-width: 782px) {
  .testimonials .slide__author__image {
    margin-bottom: 0;
  }
}

/* QA round, 2026-11-28 night. The persona cards' faces, names and roles line up across a row: the role keeps room for
   the lines the longest one takes (two on phones and from 1440px, three between), in Figma's #6E6E73 (4.78:1 on the card). */
.testimonials .slide__author__info p:last-child {
  color: #6E6E73;
}

.testimonials .slide__author__info p:last-child {
  min-height: 2.6em;
  min-height: 2lh;
}

@media (min-width: 782px) and (max-width: 1439px) {
  .testimonials .slide__author__info p:last-child {
    min-height: 3.9em;
    min-height: 3lh;
  }
}

/* Three persona cards were too narrow below 1080px (names and tags wrapped, a long role ran past the card): two per view,
   the third a swipe away. */
@media (min-width: 782px) and (max-width: 1079px) {
  .page-template-page-industry .testimonials .slider__slide {
    width: calc(50% - 15px);
  }
}

/* On phones a persona card is as tall as its words, not the reviews block's 364px minimum (it left ~250px empty). */
@media (max-width: 781px) {
  .page-template-page-industry .testimonials .slide__title {
    min-height: 0;
  }
}

/* The hero mark gets the theme's 1020-1280 size from 782px too: "Manufacturing" pushed the 280px mark off the screen. */
@media (min-width: 782px) and (max-width: 1019px) {
  .page-template-page-industry .hero__content .hero__image {
    max-width: 180px;
  }
}

/* Keyboard focus on these pages' buttons (the theme takes the outline off every button); the cost banner keeps its
   white ring. */
.page-template-page-industry .section:not(.cover--calc) .button:focus-visible {
  outline: 2px solid #111 !important;
  outline-offset: 3px;
}

/* On narrow phones the mark shrinks into the room the title leaves ("Manufacturing" pushed it past the edge below
   375px). */
@media (max-width: 781px) {
  .page-template-page-industry .hero__content .hero__images {
    flex-shrink: 1;
    min-width: 0;
  }
}
