/* One photographic language and one 3:2 frame across the service catalog. */
body.jf-brand-2026.sj-home .ej-solution-media img {
  object-fit: cover;
}
body.jf-brand-2026.sj-home .ej-solution-kind {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.8;
}
/* Extend the real service link across the card while keeping Android separate. */
.sj-home .ej-solution--illustrated {
  position: relative;
  isolation: isolate;
}
.ej-solution-primary::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
}
.ej-solution-primary:focus-visible::after {
  outline: 3px solid var(--jf-purple, #7848d8);
  outline-offset: -3px;
}
.ej-solution-secondary {
  position: relative;
  z-index: 2;
}

.jf-service-photo {
  display: block;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: var(--jf-pale, #e8e0f5);
}
.jf-service-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Compact catalog rows preserve a quick scan through the main services. */
body.jf-brand-2026.tr-sui .tr-main .tr-index__row[data-service-photo-row] {
  display: grid;
  grid-template-columns: 32px 156px minmax(0, 1fr) 28px;
  align-items: center;
  gap: 24px;
  padding-block: 22px;
}
[data-service-photo-row] .jf-service-photo {
  width: 156px;
  border-radius: 12px;
}
[data-service-photo-row] .jf-service-row-copy {
  min-width: 0;
}

/* Specializations use the same image frame as the homepage solution cards. */
body.jf-brand-2026.tr-sui .tr-main .tr-tile[data-service-photo-card] {
  overflow: hidden;
  padding: 0;
  gap: 0;
}
[data-service-photo-card] > .jf-service-photo {
  flex: none;
  width: 100%;
  border-bottom: 1px solid var(--jf-line, #d8cfe6);
}
[data-service-photo-card] .jf-service-card-copy {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 12px;
  padding: 24px;
  min-width: 0;
}
[data-service-photo-card] .tr-tile__top {
  margin: 0;
}

/* A restrained visual beside the existing challenge and solution copy. */
.jf-service-story {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 64px);
  align-items: center;
}
.jf-service-story__copy {
  display: grid;
  gap: 28px;
  min-width: 0;
}
.jf-service-story__copy .t-label {
  display: block;
  margin-bottom: 12px;
  color: var(--jf-purple, #7848d8);
}
body.jf-brand-2026.tr-sui .tr-main .jf-service-story__copy h2 {
  margin: 0;
  font-size: clamp(22px, 2vw, 28px);
  line-height: 1.9;
  color: var(--jf-ink, #1c1429);
}
.jf-service-story__copy p {
  margin: 0;
}
.jf-service-story > .jf-service-photo {
  width: 100%;
  max-width: 600px;
  margin: 0;
  border: 1px solid var(--jf-line, #d8cfe6);
  border-radius: 16px;
}
.jf-service-story--photo-only {
  display: block;
}
.jf-service-story--photo-only > .jf-service-photo {
  margin-inline: auto;
}

@media (max-width: 900px) {
  body.jf-brand-2026.tr-sui .tr-main .tr-index__row[data-service-photo-row] {
    grid-template-columns: 28px 126px minmax(0, 1fr) 24px;
    gap: 18px;
  }
  [data-service-photo-row] .jf-service-photo { width: 126px; }
  .jf-service-story { gap: 28px; }
}

@media (max-width: 700px) {
  .jf-service-story { grid-template-columns: minmax(0, 1fr); }
  .jf-service-story > .jf-service-photo { max-width: none; }
}

@media (max-width: 600px) {
  body.jf-brand-2026.sj-home .ej-solution-kind { font-size: 16px; }
  body.jf-brand-2026.tr-sui .tr-main .tr-index__row[data-service-photo-row] {
    grid-template-columns: 88px minmax(0, 1fr) 20px;
    gap: 12px;
    padding-block: 20px;
  }
  [data-service-photo-row] .tr-index__num { display: none; }
  [data-service-photo-row] .jf-service-photo { width: 88px; border-radius: 8px; grid-area: 1 / 1; }
  [data-service-photo-row] .jf-service-row-copy { display: contents; }
  [data-service-photo-row] .tr-index__go { grid-area: 1 / 3; }
  body.jf-brand-2026.tr-sui .tr-main [data-service-photo-row] .tr-index__title {
    grid-area: 1 / 2;
    font-size: 16px !important;
    line-height: 1.9;
  }
  body.jf-brand-2026.tr-sui .tr-main [data-service-photo-row] .tr-index__desc {
    grid-column: 1 / -1;
    grid-row: 2;
    margin: 0;
    font-size: 13px;
    line-height: 1.9;
  }
  [data-service-photo-card] .jf-service-card-copy { padding: 20px; }
}
