/* POU, POE and Applications visual expansion.
   Keeps the new application storytelling and reused homepage News pattern
   independent from the legacy page-export CSS. */

.at-visual-story {
  --atv-primary: #3062a9;
  --atv-primary-deep: #1f4f91;
  --atv-heading: #101828;
  --atv-ink: #344054;
  --atv-muted: #667085;
  --atv-soft: #f2f7fb;
  --atv-line: #d9e5f0;
  width: 100%;
  padding: 92px 0;
  overflow: clip;
  color: var(--atv-ink);
  background: #fff;
  font: 400 17px/1.65 Roboto, Arial, sans-serif;
}

.at-visual-story--soft {
  background: var(--atv-soft);
}

.at-visual-story,
.at-visual-story *,
.at-visual-story *::before,
.at-visual-story *::after {
  box-sizing: border-box;
}

.at-visual-story a {
  color: inherit;
  text-decoration: none;
}

.at-visual-story__shell {
  width: min(1400px, calc(100% - 48px));
  margin-inline: auto;
}

.at-visual-story__header {
  max-width: 920px;
  margin: 0 auto 44px;
  text-align: center;
}

.at-visual-story__eyebrow {
  margin: 0 0 12px;
  color: var(--atv-primary);
  font-size: 13px;
  font-weight: 820;
  line-height: 1.4;
  letter-spacing: 0.1em;
}

.at-visual-story h2,
.at-visual-story h3 {
  margin-top: 0;
  color: var(--atv-heading);
  font-family: Roboto, Arial, sans-serif;
  letter-spacing: normal;
}

.at-visual-story h2 {
  margin-bottom: 18px;
  font-size: clamp(32px, 3.3vw, 46px);
  font-weight: 680;
  line-height: 1.13;
  letter-spacing: -0.02em;
}

.at-visual-story h3 {
  margin-bottom: 8px;
  font-size: 21px;
  font-weight: 680;
  line-height: 1.3;
}

.at-visual-story__lead {
  max-width: 820px;
  margin: 0 auto;
  color: var(--atv-muted);
}

.at-visual-story__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(380px, 0.96fr);
  gap: 52px;
  align-items: center;
}

.at-visual-story--reverse .at-visual-story__media {
  order: 2;
}

.at-visual-story__media {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--atv-line);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 18px 44px rgb(26 68 116 / 12%);
}

.at-visual-story__media img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.at-visual-story__media figcaption {
  margin: 0;
  padding: 13px 18px 15px;
  color: var(--atv-muted);
  background: #fff;
  font-size: 13px;
  line-height: 1.5;
}

.at-visual-story__copy > p {
  margin: 0 0 22px;
  color: var(--atv-muted);
}

.at-visual-story__checks {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.at-visual-story__checks li {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 15px;
  align-items: start;
  padding: 17px 18px;
  border: 1px solid var(--atv-line);
  border-radius: 12px;
  background: #fff;
}

.at-visual-story--soft .at-visual-story__checks li {
  box-shadow: 0 8px 24px rgb(26 68 116 / 7%);
}

.at-visual-story__checks > li > span {
  display: inline-grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--atv-primary);
  font-size: 13px;
  font-weight: 820;
}

.at-visual-story__checks p {
  margin: 0;
  color: var(--atv-muted);
  font-size: 15px;
  line-height: 1.6;
}

.at-visual-story__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 24px;
}

.at-visual-story__button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  border: 2px solid var(--atv-primary);
  border-radius: 8px;
  color: #fff !important;
  background: var(--atv-primary);
  font-size: 15px;
  font-weight: 760;
  line-height: 1.2;
}

.at-visual-story__link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--atv-primary) !important;
  font-size: 15px;
  font-weight: 760;
}

/* Homepage News pattern, scoped so the full homepage stylesheet is unnecessary. */

.at-home-news.hp-d {
  --hpd-primary: #3062a9;
  --hpd-primary-deep: #1f4f91;
  --hpd-heading: #101828;
  --hpd-ink: #344054;
  --hpd-muted: #667085;
  --hpd-soft: #f2f7fb;
  --hpd-line: #d9e5f0;
  --hpd-line-strong: #bdd1e5;
  --hpd-shell: min(1400px, calc(100% - 48px));
  --hpd-radius-control: 8px;
  --hpd-radius-card: 20px;
  --hpd-shadow: 0 14px 36px rgb(26 68 116 / 10%);
  width: 100%;
  padding: 92px 0;
  overflow: clip;
  color: var(--hpd-ink);
  background: #fff;
  font: 400 17px/1.65 Roboto, Arial, sans-serif;
}

.at-home-news,
.at-home-news *,
.at-home-news *::before,
.at-home-news *::after {
  box-sizing: border-box;
}

.at-home-news img {
  display: block;
  max-width: 100%;
}

.at-home-news a {
  color: inherit;
  text-decoration: none;
}

.at-home-news .hp-d__shell {
  width: var(--hpd-shell);
  margin-inline: auto;
}

.at-home-news .hp-d__heading {
  margin-bottom: 44px;
}

.at-home-news .hp-d__heading--split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 545px);
  gap: 72px;
  align-items: end;
}

.at-home-news .hp-d__eyebrow {
  margin: 0 0 12px;
  color: var(--hpd-primary);
  font-size: 13px;
  font-weight: 820;
  line-height: 1.4;
  letter-spacing: 0.1em;
}

.at-home-news h2,
.at-home-news h3 {
  margin-top: 0;
  color: var(--hpd-heading);
  font-family: Roboto, Arial, sans-serif;
  letter-spacing: normal;
}

.at-home-news h2 {
  margin-bottom: 0;
  font-size: clamp(32px, 3.3vw, 46px);
  font-weight: 680;
  line-height: 1.13;
  letter-spacing: -0.02em;
}

.at-home-news h3 {
  margin-bottom: 12px;
  font-size: 22px;
  font-weight: 670;
  line-height: 1.3;
}

.at-home-news .hp-d__heading--split > p {
  margin: 0;
  color: var(--hpd-muted);
  font-size: 17px;
  line-height: 1.7;
}

.at-home-news .hp-d__news-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.at-home-news--two .hp-d__news-grid {
  width: min(920px, 100%);
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-inline: auto;
}

.at-home-news .hp-d__news-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--hpd-line);
  border-radius: var(--hpd-radius-card);
  background: #fff;
  transition:
    border-color 180ms ease,
    transform 180ms ease,
    box-shadow 180ms ease;
}

.at-home-news .hp-d__news-card:hover {
  border-color: var(--hpd-line-strong);
  box-shadow: var(--hpd-shadow);
  transform: translateY(-3px);
}

.at-home-news .hp-d__news-image {
  display: block;
  overflow: hidden;
  background: var(--hpd-soft);
}

.at-home-news .hp-d__news-image img {
  width: 100%;
  height: 245px;
  object-fit: cover;
  transition: transform 220ms ease;
}

.at-home-news--diagram-first .hp-d__news-card:first-child .hp-d__news-image img,
.at-home-news--product-first .hp-d__news-card:first-child .hp-d__news-image img {
  padding: 12px;
  object-fit: contain;
  background: var(--hpd-soft);
}

.at-home-news .hp-d__news-card:hover .hp-d__news-image img {
  transform: scale(1.025);
}

.at-home-news--diagram-first .hp-d__news-card:first-child:hover .hp-d__news-image img {
  transform: none;
}

.at-home-news .hp-d__news-copy {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  padding: 25px 27px 28px;
}

.at-home-news .hp-d__news-meta {
  display: flex;
  width: 100%;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 13px;
  color: var(--hpd-muted);
  font-size: 13px;
  line-height: 1.4;
}

.at-home-news .hp-d__news-meta a {
  color: var(--hpd-primary);
  font-weight: 820;
  letter-spacing: 0.06em;
}

.at-home-news .hp-d__news-meta a:hover,
.at-home-news .hp-d__news-meta a:focus-visible {
  color: var(--hpd-primary-deep);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.at-home-news .hp-d__news-copy > p {
  margin: 0 0 21px;
  color: var(--hpd-muted);
  font-size: 17px;
  line-height: 1.65;
}

.at-home-news .hp-d__text-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: auto;
  color: var(--hpd-primary) !important;
  font-size: 15px;
  font-weight: 760;
  line-height: 1.35;
}

.at-home-news .hp-d__text-link span {
  transition: transform 160ms ease;
}

.at-home-news .hp-d__text-link:hover span,
.at-home-news .hp-d__text-link:focus-visible span {
  transform: translateX(3px);
}

.at-home-news .hp-d__news-all {
  display: flex;
  justify-content: center;
  margin-top: 32px;
}

.at-home-news .hp-d__button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  padding: 13px 22px;
  border: 2px solid var(--hpd-primary);
  border-radius: var(--hpd-radius-control);
  color: var(--hpd-primary) !important;
  background: transparent;
  font-size: 15px;
  font-weight: 760;
  line-height: 1.2;
  transition:
    color 160ms ease,
    background 160ms ease,
    border-color 160ms ease,
    transform 160ms ease,
    box-shadow 160ms ease;
}

.at-home-news .hp-d__button:hover,
.at-home-news .hp-d__button:focus-visible {
  color: #fff !important;
  background: var(--hpd-primary);
  transform: translateY(-1px);
}

/* Applications-page route photography. */

.at-applications .hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.03fr) minmax(420px, 0.97fr);
  gap: 48px;
  align-items: center;
}

.at-applications .hero-copy {
  min-width: 0;
}

.at-applications .hero-visual {
  position: relative;
  margin: 0;
  overflow: hidden;
  border: 1px solid #d9e5f0;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 18px 44px rgb(26 68 116 / 12%);
}

.at-applications .hero-visual img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.at-applications .card.route-card {
  padding: 0;
  overflow: hidden;
}

.at-applications .route-card__image {
  position: relative;
  display: block;
  overflow: hidden;
  border-bottom: 1px solid #d9e5f0;
  background: #edf4fa;
}

.at-applications .route-card__image img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  transition: transform 220ms ease;
}

.at-applications .hero-visual figcaption,
.at-applications .route-card__image figcaption {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 1;
  margin: 0;
  padding: 5px 9px;
  border: 1px solid rgb(217 229 240 / 85%);
  border-radius: 999px;
  color: #344054;
  background: rgb(255 255 255 / 92%);
  box-shadow: 0 5px 16px rgb(26 68 116 / 10%);
  font-size: 11px;
  font-weight: 760;
  line-height: 1.3;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.at-applications .route-card:hover .route-card__image img {
  transform: scale(1.02);
}

.at-applications .route-card__body {
  display: flex;
  min-height: 330px;
  flex-direction: column;
  align-items: flex-start;
  padding: 24px;
}

.at-applications .route-card__body > p:last-child {
  margin-top: auto;
}

@media (max-width: 1100px) {
  .at-visual-story__grid {
    grid-template-columns: 1fr;
  }

  .at-visual-story--reverse .at-visual-story__media {
    order: 0;
  }

  .at-visual-story__media {
    width: min(900px, 100%);
    margin-inline: auto;
  }

  .at-applications .hero-grid {
    grid-template-columns: 1fr;
  }

  .at-applications .hero-visual {
    width: min(900px, 100%);
  }
}

@media (max-width: 1180px) {
  .at-home-news.hp-d {
    --hpd-shell: min(1400px, calc(100% - 40px));
  }
}

@media (max-width: 920px) {
  .at-home-news.hp-d {
    padding-block: 76px;
  }

  .at-home-news h2 {
    font-size: 36px;
  }

  .at-home-news .hp-d__heading--split {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .at-home-news:not(.at-home-news--two) .hp-d__news-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .at-home-news:not(.at-home-news--two) .hp-d__news-card:last-child {
    display: grid;
    grid-column: 1 / -1;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  }

  .at-home-news:not(.at-home-news--two) .hp-d__news-card:last-child .hp-d__news-image img {
    height: 100%;
    min-height: 300px;
  }
}

@media (max-width: 767px) {
  .at-applications .route-card__body {
    min-height: 0;
  }
}

@media (max-width: 680px) {
  .at-visual-story {
    padding-block: 64px;
  }

  .at-visual-story__shell {
    width: min(100% - 32px, 1400px);
  }

  .at-home-news.hp-d {
    padding-block: 58px;
  }

  .at-home-news .hp-d__shell {
    width: calc(100% - 28px);
  }

  .at-visual-story__header {
    margin-bottom: 32px;
    text-align: left;
  }

  .at-visual-story__lead {
    margin-inline: 0;
  }

  .at-visual-story__grid {
    gap: 28px;
  }

  .at-visual-story__media {
    border-radius: 14px;
  }

  .at-visual-story__checks li {
    grid-template-columns: 36px minmax(0, 1fr);
    padding: 15px;
  }

  .at-visual-story__checks > li > span {
    width: 36px;
    height: 36px;
  }

  .at-visual-story__actions {
    align-items: stretch;
    flex-direction: column;
  }

  .at-visual-story__button,
  .at-visual-story__link {
    justify-content: center;
    text-align: center;
  }

  .at-home-news .hp-d__heading {
    margin-bottom: 30px;
  }

  .at-home-news h2 {
    font-size: 29px;
  }

  .at-home-news h3 {
    font-size: 20px;
  }

  .at-home-news .hp-d__heading--split > p,
  .at-home-news .hp-d__news-copy > p {
    font-size: 16px;
  }

  .at-home-news .hp-d__button {
    font-size: 16px;
  }

  .at-home-news .hp-d__news-grid,
  .at-home-news--two .hp-d__news-grid,
  .at-home-news:not(.at-home-news--two) .hp-d__news-grid {
    width: 100%;
    grid-template-columns: 1fr;
  }

  .at-home-news:not(.at-home-news--two) .hp-d__news-card:last-child {
    display: flex;
    grid-column: auto;
  }

  .at-home-news .hp-d__news-copy {
    padding: 24px 22px 26px;
  }

  .at-home-news .hp-d__news-image img,
  .at-home-news:not(.at-home-news--two) .hp-d__news-card:last-child .hp-d__news-image img {
    height: 220px;
    min-height: 0;
  }

  .at-home-news .hp-d__news-meta {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

}

@media (max-width: 420px) {
  .at-home-news .hp-d__shell {
    width: calc(100% - 22px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .at-home-news .hp-d__button,
  .at-home-news .hp-d__news-card,
  .at-home-news .hp-d__news-image img,
  .at-applications .route-card__image img {
    transition: none;
  }
}
