/*
 * .image-panel — head + wide photo with a text panel
 * (template-parts/flexible/image-panel.php).
 * Figma: /solutions D 337:15156 / M 337:14934 (dark, left);
 * Business Central D 337:14806 / M 337:14485 (blue, right, logo on photo);
 * Story D 337:13578 / M 337:13801 (light, right, list, logos).
 *
 * Phones and tablets: photo 340 px, the panel under it.
 * Desktop: the 453 px panel sits over the photo, 10 px from the edges.
 * Card height follows the panel style as in the mockups: dark 450,
 * light 500, blue 600 — longer text makes the card taller.
 *
 * Phase 2 (Solutions pages) adds, in the sections at the end of the file:
 * .image-panel--large (wide panel 680, photo 550, second heading and text),
 * .image-panel--split (photo card and panel card side by side),
 * .image-panel--panel-only (full-width light panel, no photo),
 * list markers: numbers without a dot (--number-plain) and diamonds (--diamond).
 * The defaults reproduce the phase 1 pages unchanged.
 */

.image-panel {
  position: relative;
  padding-top: var(--nv-section-y);
  padding-bottom: var(--nv-section-y);
  /* horizontal only: the large style has no bottom padding, so a trimmed last line of the
     second text would lose its descenders to a vertical clip */
  overflow-x: clip;
}

/* .image-panel--mist */
.image-panel--mist {
  background-color: var(--nv-mist);
}

/* .image-panel--blue — white head, narrower card */
.image-panel--blue {
  background-color: var(--nv-blue);
  color: var(--nv-white);
}

/* .image-panel__backdrop — photo at the top, faded into the blue */
.image-panel__backdrop {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: clamp(31.25rem, 25.0269rem + 26.5403vw, 48.75rem);
  pointer-events: none;

  /* .image-panel__backdrop::after — fade to the section colour */
  &::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
      linear-gradient(180deg, rgba(33, 91, 135, 0) 30%, var(--nv-blue) 92%),
      linear-gradient(90deg, var(--nv-blue) 0%, rgba(33, 91, 135, 0) 45%);
  }
}

/* .image-panel__backdrop-image */
.image-panel__backdrop-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 80% center;
  opacity: 0.5;
}

/* @media (width < 48em) .page-id-120 .image-panel__backdrop — Case Studies only: the phone photo
   (Figma 1574:14877) covers 375 × 615 from the section top; 25 % matches the Figma tint
   (the phone frame keeps the image fill at 50 % but adds a blurred blue ellipse) */
@media (width < 48em) {
  .page-id-120 .image-panel__backdrop {
    height: auto;
    aspect-ratio: 375 / 615;
  }

  .page-id-120 .image-panel__backdrop-image {
    object-position: center;
    opacity: 0.25;
  }
}

/* @media (width >= 64.0625em) .page-id-120 .image-panel__backdrop — Case Studies only (Pavlo,
   2026-10-13): mirrored, enlarged photo as in Figma 1574:14654 — 145 px from the left of 1520,
   1375 × 791 from the section top */
@media (width >= 64.0625em) {
  .page-id-120 .image-panel__backdrop {
    left: 9.5395%;
    height: auto;
    aspect-ratio: 1375 / 791;
  }

  .page-id-120 .image-panel__backdrop-image {
    object-position: center;
  }
}

/* .image-panel__container — head → card → logos (40 → 75 px) */
.image-panel__container {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: clamp(2.5rem, 1.7225rem + 3.3176vw, 4.6875rem);
}

/* .image-panel--blue .image-panel__container — 50 px (Figma 337:13578) */
.image-panel--blue .image-panel__container {
  gap: clamp(2.5rem, 2.2778rem + 0.9479vw, 3.125rem);
}

/* .image-panel__head */
.image-panel__head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: clamp(1.875rem, 1.4306rem + 1.8957vw, 3.125rem);
}

/* .image-panel__head--center */
.image-panel__head--center {
  align-items: center;
  text-align: center;
}

/* .image-panel__eyebrow */
.image-panel__eyebrow {
  display: inline-flex;
  align-items: flex-start;
  gap: 0.3125rem;
  padding: calc(0.625rem - 0.14em) 0.625rem;
  color: var(--nv-green);
  font-weight: 500;
  font-size: clamp(0.875rem, 0.7417rem + 0.5687vw, 1.25rem);
  line-height: 1;
  letter-spacing: 0.05em;
  text-transform: uppercase;

  /* @media (width >= 48em) .image-panel__eyebrow — the phone mocks track 5 %, the desktop ones 10 % */
  @media (width >= 48em) {
    letter-spacing: 0.1em;
  }

  /* .image-panel__eyebrow::before — rhomb */
  &::before {
    content: "";
    flex-shrink: 0;
    width: 0.53rem;
    height: 0.53rem;
    margin-top: calc(0.5lh - 0.265rem);
    background: url("../../img/icons/rhomb.svg") center / contain no-repeat;
  }
}

/* .image-panel--blue .image-panel__eyebrow — the case-studies mock keeps 10 % on phones too */
.image-panel--blue .image-panel__eyebrow {
  letter-spacing: 0.1em;
}

/* .image-panel__title — 1065 px left, 1310 px centred; trimmed to cap / baseline */
.image-panel__title {
  max-width: 66.5625rem;
  margin-block: -0.14em;
  color: var(--nv-navy);
  font-weight: 400;
  font-size: clamp(2.5rem, 1.3892rem + 4.7393vw, 5.625rem);
  line-height: 1;
  letter-spacing: -0.02em;
  overflow-wrap: break-word;

  & strong {
    color: var(--nv-green);
    font-weight: inherit;
  }
}

/* .image-panel__head--center .image-panel__title */
.image-panel__head--center .image-panel__title {
  max-width: 81.875rem;
}

/* .image-panel--blue .image-panel__title — white, 40 → 75 px */
.image-panel--blue .image-panel__title {
  max-width: 73.75rem;
  color: var(--nv-white);
  font-size: clamp(2.5rem, 1.7225rem + 3.3176vw, 4.6875rem);
}

/* .image-panel__subtitle — 1044 px, 40 → 75 px under the heading's baseline (head gap + 10 → 25),
   line boxes trimmed (0.24em at 120 %) */
.image-panel__subtitle {
  max-width: 65.25rem;
  margin-top: calc(clamp(0.625rem, 0.2917rem + 1.4219vw, 1.5625rem) - 0.24em);
  margin-bottom: -0.24em;
  color: var(--nv-navy);
  font-size: clamp(1.25rem, 1.1833rem + 0.2844vw, 1.4375rem);
  line-height: 1.2;
  letter-spacing: -0.03em;

  & > * + * {
    margin-top: calc(1.25rem - 0.48em);
  }
}

/* .image-panel--blue .image-panel__subtitle */
.image-panel--blue .image-panel__subtitle {
  color: var(--nv-white);
}

/* .image-panel__card — photo, then the panel */
.image-panel__card {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.25rem;

  /* @media (width >= 64.0625em) .image-panel__card — panel over the photo */
  @media (width >= 64.0625em) {
    grid-template-columns: minmax(0, 1fr) 28.3125rem;
    gap: 0;
    min-height: 28.125rem;
    padding: 0.625rem;
  }
}

/* .image-panel__card--light — 500 px */
.image-panel__card--light {
  /* @media (width >= 64.0625em) .image-panel__card--light */
  @media (width >= 64.0625em) {
    min-height: 31.25rem;
  }
}

/* .image-panel__card--blue — 600 px */
.image-panel__card--blue {
  /* @media (width >= 64.0625em) .image-panel__card--blue */
  @media (width >= 64.0625em) {
    min-height: 37.5rem;
  }
}

/* .image-panel__card--left — panel on the left */
.image-panel__card--left {
  /* @media (width >= 64.0625em) .image-panel__card--left */
  @media (width >= 64.0625em) {
    grid-template-columns: 28.3125rem minmax(0, 1fr);
  }
}

/* .image-panel--blue .image-panel__card — 1200 px, centred */
.image-panel--blue .image-panel__card {
  width: 100%;
  max-width: 75rem;
  margin-inline: auto;
}

/* .image-panel__media — 340 px photo; the whole card on desktop */
.image-panel__media {
  position: relative;
  height: 21.25rem;
  border-radius: var(--nv-radius-s);
  overflow: hidden;

  /* @media (width >= 64.0625em) .image-panel__media */
  @media (width >= 64.0625em) {
    grid-area: 1 / 1 / 2 / 3;
    height: auto;
    margin: -0.625rem;
  }
}

/* .image-panel__image */
.image-panel__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* .image-panel__photo-logo — white wordmark, top left of the photo */
.image-panel__photo-logo {
  position: absolute;
  top: 1.25rem;
  left: 1.25rem;
  width: 9.375rem;
  color: #fbfbfc;
  line-height: 0;

  & svg {
    width: 100%;
    height: auto;
  }
}

/* .image-panel__panel — glass panel: text on top, logo at the bottom. No stroke (Figma Solutions 337:15168,
   Business Central 337:14817; Vlad, 2026-10-17): the 2 px border stays transparent so the panel size and
   paddings do not move, and every variant's background starts at the outer edge to fill it */
.image-panel__panel {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 3.125rem;
  min-height: 21.25rem;
  border: 0.125rem solid transparent;
  border-radius: var(--nv-radius-s);
  padding: 1.125rem;
  color: var(--nv-white);
  overflow: hidden;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);

  /* @media (width >= 64.0625em) .image-panel__panel */
  @media (width >= 64.0625em) {
    grid-row: 1;
    grid-column: 2;
    min-height: 0;
    padding: 1.75rem;
  }
}

/* .image-panel__card--left .image-panel__panel */
.image-panel__card--left .image-panel__panel {
  /* @media (width >= 64.0625em) .image-panel__card--left .image-panel__panel */
  @media (width >= 64.0625em) {
    grid-column: 1;
  }
}

/* .image-panel__panel--dark */
.image-panel__panel--dark {
  background:
    linear-gradient(170deg, rgba(19, 33, 50, 0) 34%, rgba(19, 33, 50, 0.6) 76%, var(--nv-blue-light) 100%),
    rgba(19, 33, 50, 0.7);
}

/* .image-panel__panel--blue */
.image-panel__panel--blue {
  background:
    linear-gradient(170deg, rgba(19, 33, 50, 0) 34%, rgba(19, 33, 50, 0.6) 76%, var(--nv-blue-light) 100%),
    var(--nv-blue);
}

/* .image-panel__panel--light — dark text */
.image-panel__panel--light {
  background:
    linear-gradient(170deg, rgba(246, 247, 249, 0) 34%, rgba(246, 247, 249, 0.6) 76%, var(--nv-blue-light) 100%),
    rgba(246, 247, 249, 0.7);
  color: var(--nv-navy);
}

/* .image-panel__panel — after the variants: their `background` shorthand resets the origin; the gradient
   has to start under the transparent border */
.image-panel__panel {
  background-origin: border-box;
}

/* .image-panel__text — grows, so the logo stays at the bottom */
.image-panel__text {
  display: flex;
  flex: 1 0 auto;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.25rem;
  font-size: clamp(1.25rem, 1.1833rem + 0.2844vw, 1.4375rem);
  line-height: 1.2;
  letter-spacing: -0.02em;

  /* @media (width >= 48em) .image-panel__text */
  @media (width >= 48em) {
    line-height: 1.4;
  }
}

/* .image-panel__panel--dark .image-panel__text — 23 → 32 px, bold text green, cap at the padding edge */
.image-panel__panel--dark .image-panel__text {
  justify-content: flex-start;
  font-weight: 500;
  font-size: clamp(1.4375rem, 1.2375rem + 0.8531vw, 2rem);
  line-height: 1;

  & > :first-child {
    margin-top: -0.14em;
  }

  & strong {
    color: var(--nv-green);
    font-weight: inherit;
  }
}

/* .image-panel__panel--blue .image-panel__text — a paragraph that is only bold (.nv-bold-line,
   set in inc/wysiwyg-format.php) = larger closing line; bold inside a sentence stays inline bold;
   first cap and last baseline on the padding edges (Figma 337:14806 / M 337:14485) */
.image-panel__panel--blue .image-panel__text {
  & > :first-child {
    margin-top: -0.24em;

    /* @media (width >= 48em) .image-panel__panel--blue .image-panel__text > :first-child */
    @media (width >= 48em) {
      margin-top: -0.34em;
    }
  }

  & .nv-bold-line strong {
    display: block;
    font-weight: 700;
    font-size: clamp(1.4375rem, 1.2375rem + 0.8531vw, 2rem);
    line-height: 1;
  }

  & > .nv-bold-line:last-child > strong:last-child {
    margin-bottom: -0.14em;
  }
}

/* .image-panel__list — numbered points */
.image-panel__list {
  display: flex;
  flex: 1 0 auto;
  flex-direction: column;
  gap: 1.875rem;
}

/* .image-panel__text + .image-panel__list */
.image-panel__text + .image-panel__list {
  flex-grow: 0;
}

/* .image-panel__point — number tile | text */
.image-panel__point {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

/* .image-panel__number — 60 px tile with "01." */
.image-panel__number {
  background-color: rgba(33, 91, 135, 0.1);
  color: var(--nv-blue);
  font-weight: 700;
  font-size: 1.5rem;
}

/* .image-panel__panel--dark .image-panel__number, .image-panel__panel--blue .image-panel__number */
.image-panel__panel--dark .image-panel__number,
.image-panel__panel--blue .image-panel__number {
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--nv-white);
}

/* .image-panel__point-text — 20 → 23 px, trimmed to cap / baseline so the rows match Figma (1574:14468) */
.image-panel__point-text {
  min-width: 0;
  margin-top: -0.14em;
  margin-bottom: -0.14em;
  font-weight: 500;
  font-size: clamp(1.25rem, 1.1833rem + 0.2844vw, 1.4375rem);
  line-height: 1;
  letter-spacing: -0.02em;
}

/* .image-panel__logo — wordmark at the bottom of the panel */
.image-panel__logo {
  width: 9.375rem;
  color: #fbfbfc;
  line-height: 0;

  & svg {
    width: 100%;
    height: auto;
  }
}

/* .image-panel__list + .image-panel__logo — 20 px under the list (Figma 1574:14468 / 1574:14779); the list grows, so the wordmark stays at the bottom */
.image-panel__list + .image-panel__logo {
  margin-top: -1.875rem;
}

/* .image-panel__panel--dark .image-panel__logo — 120 → 150 px */
.image-panel__panel--dark .image-panel__logo {
  width: clamp(7.5rem, 6.8336rem + 2.8436vw, 9.375rem);
}

/* .image-panel__panel--light .image-panel__logo — blue, centred */
.image-panel__panel--light .image-panel__logo {
  align-self: center;
  color: var(--nv-blue);
}

/* ==========================================================================
   Phase 2 — Solutions pages
   Overlay D 510:65731 / 510:65277 / 510:64989 / 510:64647, M 510:71488 / 510:71268 / 510:70963 / 510:70689;
   split D 510:65028 / 510:64686, M 510:71001 / 510:70707; panel only D 510:65461, M 510:71343.
   ========================================================================== */

/* .image-panel__backdrop--texture — a texture over the whole section instead of the faded photo at the top.
   The files are exported from Figma already faded: phone 375 wide from the top left, desktop on the right half. */
.image-panel__backdrop--texture {
  bottom: 0;
  height: auto;
  overflow: hidden;

  /* .image-panel__backdrop--texture::after — no fade, the file carries it */
  &::after {
    content: none;
  }
}

/* .image-panel__backdrop--texture .image-panel__backdrop-image */
.image-panel__backdrop--texture .image-panel__backdrop-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: auto;
  object-fit: initial;
  opacity: 1;

  /* @media (width >= 48em) .image-panel__backdrop--texture .image-panel__backdrop-image */
  @media (width >= 48em) {
    right: 0;
    left: auto;
    width: 49.7368%;
  }
}

/* .image-panel--split .image-panel__container — head to card 50 px (Figma 510:65028) */
.image-panel--split .image-panel__container {
  gap: clamp(2.5rem, 2.2778rem + 0.9479vw, 3.125rem);
}

/* .image-panel--panel-only .image-panel__container — head to panel 75 px, as on the white sections (510:65461) */
.image-panel--panel-only .image-panel__container {
  gap: clamp(2.5rem, 1.7225rem + 3.3176vw, 4.6875rem);
}

/* .image-panel--split .image-panel__title, .image-panel--panel-only .image-panel__title — 1200 px, 90 px */
.image-panel--split .image-panel__title,
.image-panel--panel-only .image-panel__title {
  max-width: 75rem;
  font-size: clamp(2.5rem, 1.3892rem + 4.7393vw, 5.625rem);
}

/* .image-panel--split .image-panel__subtitle — 728 px, navy 70 %, 20 → 50 px under the heading's baseline
   (Figma 510:65028 / 510:64686: heading to text 50 px, phone 20 px) */
.image-panel--split .image-panel__subtitle {
  max-width: 45.5rem;
  margin-top: calc(clamp(-0.625rem, -0.845rem + 0.939vw, 0rem) - 0.24em);
  color: rgba(19, 33, 50, 0.7);
}

/* .image-panel--split .image-panel__subtitle on Support — breaks after "Business Central" in the
   design (Figma 510:65028 text box 684 px; the line with "can" is 668 px) */
.page-id-126 .image-panel--split .image-panel__subtitle {
  max-width: 40.625rem;
}

/* .image-panel--large ending with the card — the panel is over the photo, no space under the section: the next
   one brings 100 px (Implementation). A second heading and text below the card keep the 100 px under them
   (Business Applications, Support, Upgrades: 210–218 px from the text to the next eyebrow in Figma) */
.image-panel--large:has(.image-panel__container > .image-panel__card:last-child) {
  /* @media (width >= 48em) .image-panel--large */
  @media (width >= 48em) {
    padding-bottom: 0;
  }
}

/* .image-panel--large .image-panel__title — 1400 px box (Figma 510:64989) */
.image-panel--large .image-panel__title {
  max-width: 87.5rem;
}

/* .image-panel--large .image-panel__subtitle — 70 % text colour (Figma 510:65720) */
.image-panel--large .image-panel__subtitle {
  color: rgba(42, 52, 65, 0.7);
}

/* .image-panel__second — heading and text outside the card (above or below the photo) */
.image-panel__second {
  display: flex;
  flex-direction: column;
  gap: clamp(2.5rem, 1.7225rem + 3.3176vw, 4.6875rem);
}

/* .image-panel__second-title — 32 → 50 px, trimmed to cap / baseline */
.image-panel__second-title {
  max-width: 68.5rem;
  margin-block: -0.14em;
  color: var(--nv-navy);
  font-weight: 400;
  font-size: clamp(2rem, 1.604rem + 1.6901vw, 3.125rem);
  line-height: 1;
  letter-spacing: -0.04em;
  overflow-wrap: break-word;

  /* @media (width >= 48em) .image-panel__second-title — the phone mocks track 4 %, the desktop ones 2 % */
  @media (width >= 48em) {
    letter-spacing: -0.02em;
  }
}

/* @media (width >= 64.0625em) .image-panel__second-title on Upgrades — breaks after "delayed," in the
   design: the first line is 806 px, with "the" 888 px */
@media (width >= 64.0625em) {
  .page-id-125 .image-panel__second-title {
    max-width: 53.125rem;
  }
}

/* .image-panel__second-text — bold text is heavier; line boxes trimmed (0.24em at 120 %) */
.image-panel__second-text {
  max-width: 65.25rem;
  margin-block: -0.24em;
  color: rgba(42, 52, 65, 0.7);
  font-size: clamp(1.25rem, 1.1833rem + 0.2844vw, 1.4375rem);
  line-height: 1.2;
  letter-spacing: -0.03em; /* phone frames too (M 1:14250, 1:14524, 1:14829) */
  overflow-wrap: break-word;

  /* .image-panel__second-text > * + * — a new paragraph is one empty line, as the design's blank line
     between the text and "The goal is to connect…" (Business Apps D 1:8196, M 1:14250) */
  & > * + * {
    margin-top: 1.2em;
  }

  & strong {
    font-weight: 700;
  }

  /* .image-panel__second-text .nv-bold-line — a bold-only paragraph keeps at least two words on its
     last line (Pavlo, 2026-11-13: Business Apps "…business operates." on phones) */
  & .nv-bold-line {
    text-wrap: pretty;
  }
}

/* .image-panel__card--large — wide panel 680, photo 550 (desktop) */
.image-panel--large .image-panel__card {
  /* @media (width >= 64.0625em) .image-panel--large .image-panel__card */
  @media (width >= 64.0625em) {
    grid-template-columns: minmax(0, 1fr) 42.5rem;
    min-height: 34.375rem;
  }
}

/* .image-panel--large .image-panel__card--left */
.image-panel--large .image-panel__card--left {
  /* @media (width >= 64.0625em) .image-panel--large .image-panel__card--left */
  @media (width >= 64.0625em) {
    grid-template-columns: 42.5rem minmax(0, 1fr);
  }
}

/* .image-panel--large .image-panel__panel — titles 530 px wide, children 30 px apart, the logo pinned to the bottom 75 px away */
.image-panel--large .image-panel__panel {
  gap: 1.875rem;
}

/* .image-panel--large .image-panel__text, .image-panel--large .image-panel__list — keep their height, the logo takes the free space */
.image-panel--large .image-panel__text,
.image-panel--large .image-panel__list {
  flex: 0 0 auto;
}

/* .image-panel--large .image-panel__text — paragraphs one blank line apart; phone mocks track 4 %, desktop ones 2 % */
.image-panel--large .image-panel__text {
  gap: 1em;
  letter-spacing: -0.04em;

  /* @media (width >= 48em) .image-panel--large .image-panel__text */
  @media (width >= 48em) {
    letter-spacing: -0.02em;
  }
}

/* .image-panel--large .image-panel__panel .image-panel__logo — at the bottom, at least 65 px under the content (30 on phones;
   Figma 510:64647: 375 px of text, logo 65 px lower) */
.image-panel--large .image-panel__panel .image-panel__logo {
  margin-top: auto;

  /* @media (width >= 48em) .image-panel--large .image-panel__panel .image-panel__logo */
  @media (width >= 48em) {
    padding-top: 2.1875rem;
  }
}

/* .image-panel__panel-title — lead line of the panel, 23 → 32 px, trimmed to cap / baseline */
.image-panel__panel-title {
  margin-block: -0.08em -0.14em;
  font-weight: 600;
  font-size: clamp(1.4375rem, 1.2375rem + 0.8531vw, 2rem);
  line-height: 1;
  letter-spacing: -0.04em;
  overflow-wrap: break-word;

  /* @media (width >= 48em) .image-panel__panel-title — the phone mocks track 4 %, the desktop ones 2 % */
  @media (width >= 48em) {
    letter-spacing: -0.02em;
  }
}

/* .image-panel--large .image-panel__panel-title, .image-panel--large .image-panel__text — 530 px wide */
.image-panel--large .image-panel__panel-title,
.image-panel--large .image-panel__text {
  max-width: 33.125rem;
}

/* .image-panel__panel--dark .image-panel__panel-title */
.image-panel__panel--dark .image-panel__panel-title {
  font-weight: 500;
}

/* .image-panel__panel .image-panel__text--sub — small caption under the title: 18 → 20 px, 80 % */
.image-panel__panel .image-panel__text--sub {
  justify-content: flex-start;
  font-weight: 400;
  font-size: clamp(1.125rem, 1.081rem + 0.1878vw, 1.25rem);
  line-height: 1;
  margin-block: -0.14em;
  opacity: 0.8;

  /* @media (width >= 48em) .image-panel__panel .image-panel__text--sub — 120 % lines */
  @media (width >= 48em) {
    line-height: 1.2;
    margin-block: -0.24em;
  }

  /* .image-panel__panel .image-panel__text--sub > :first-child — the trim is on the wrapper */
  & > :first-child {
    margin-top: 0;
  }
}

/* .image-panel__list--number-plain — tiles with "01", 50 px on phones, 40 px on desktop */
.image-panel__list--number-plain {
  gap: 0.625rem;

  /* @media (width >= 48em) .image-panel__list--number-plain */
  @media (width >= 48em) {
    gap: 0.625rem;
  }
}

/* .image-panel__list--number-plain .image-panel__point */
.image-panel__list--number-plain .image-panel__point {
  gap: 0.625rem;
}

/* .image-panel__list--number-plain .image-panel__number */
.image-panel__list--number-plain .image-panel__number {
  width: 3.125rem;
  height: 3.125rem;
  font-weight: 600;
  font-size: 1.125rem;
  letter-spacing: 0;

  /* @media (width >= 48em) .image-panel__list--number-plain .image-panel__number */
  @media (width >= 48em) {
    width: 2.5rem;
    height: 2.5rem;
  }
}

/* .image-panel__panel--dark .image-panel__list--number-plain .image-panel__number, .image-panel__panel--blue … — green tile */
.image-panel__panel--dark .image-panel__list--number-plain .image-panel__number,
.image-panel__panel--blue .image-panel__list--number-plain .image-panel__number {
  background-color: rgba(168, 217, 95, 0.1);
  color: var(--nv-green);
}

/* .image-panel__list--number-plain .image-panel__point-text — 18 → 20 px */
.image-panel__list--number-plain .image-panel__point-text {
  font-size: clamp(1.125rem, 1.081rem + 0.1878vw, 1.25rem);
}

/* .image-panel__panel .image-panel__list--diamond — diamond-list.css geometry for the 18 px rows on the dark panel */
.image-panel__panel .image-panel__list--diamond {
  flex: 0 0 auto;
  gap: 1rem;
  font-size: clamp(1rem, 0.956rem + 0.1878vw, 1.125rem);
  line-height: 1.2;
  letter-spacing: -0.03em;

  /* @media (width >= 48em) .image-panel__panel .image-panel__list--diamond */
  @media (width >= 48em) {
    gap: 0.9375rem;
    line-height: 1;
    letter-spacing: -0.02em;
  }
}

/* .image-panel__panel .image-panel__list--diamond .diamond-list__item — text 18 px from the left edge, rows trimmed to cap / baseline */
.image-panel__panel .image-panel__list--diamond .diamond-list__item {
  margin-block: -0.24em;
  padding-left: 1.125rem;
  font-weight: 400;

  /* @media (width >= 48em) .image-panel__panel .image-panel__list--diamond .diamond-list__item — 100 % lines, 14 % trim */
  @media (width >= 48em) {
    margin-block: -0.14em;
  }

  /* .image-panel__panel .image-panel__list--diamond .diamond-list__item::before — centred on the first line */
  &::before {
    top: calc((1lh - 0.5rem) / 2);
    left: 0;
  }
}

/* .image-panel__panel--light .image-panel__list--diamond — blue diamonds in a 24 px marker, 20 px navy text */
.image-panel__panel--light .image-panel__list--diamond {
  gap: 1rem;
  font-size: clamp(1.125rem, 1.081rem + 0.1878vw, 1.25rem);
  line-height: 1.2;

  /* @media (width >= 48em) .image-panel__panel--light .image-panel__list--diamond */
  @media (width >= 48em) {
    gap: 1.25rem;
    line-height: 1.2;
  }
}

/* .image-panel__panel--light .image-panel__list--diamond .diamond-list__item */
.image-panel__panel--light .image-panel__list--diamond .diamond-list__item {
  margin-block: -0.24em;
  padding-left: 1.125rem;
  font-weight: 500;

  /* @media (width >= 48em) .image-panel__panel--light .image-panel__list--diamond .diamond-list__item — rows not trimmed, 24 px marker */
  @media (width >= 48em) {
    margin-block: 0;
    padding-left: 2.125rem;
  }

  /* .image-panel__panel--light .image-panel__list--diamond .diamond-list__item::before */
  &::before {
    left: 0;
    background: var(--nv-blue-light);
    mask: url("../../img/icons/rhomb.svg") center / contain no-repeat;
    -webkit-mask: url("../../img/icons/rhomb.svg") center / contain no-repeat;

    /* @media (width >= 48em) .image-panel__panel--light .image-panel__list--diamond .diamond-list__item::before */
    @media (width >= 48em) {
      left: 0.5rem;
    }
  }
}

/* .image-panel__photo-logo--bottom — bottom left of the photo */
.image-panel__photo-logo--bottom {
  top: auto;
  bottom: 1.875rem;

  /* @media (width >= 64.0625em) .image-panel__photo-logo--bottom */
  @media (width >= 64.0625em) {
    left: 1.875rem;
  }
}

/* .image-panel__card--light .image-panel__photo-logo--bottom — translucent, 40 / 50 px from the edges (510:64754) */
.image-panel__card--light .image-panel__photo-logo--bottom {
  opacity: 0.5;

  /* @media (width >= 64.0625em) .image-panel__card--light .image-panel__photo-logo--bottom */
  @media (width >= 64.0625em) {
    bottom: 3.125rem;
    left: 2.5rem;
  }
}

/* .image-panel__panel-image — texture in the top right corner of the panel (Figma 510:64756), under the text */
.image-panel__panel-image {
  position: absolute;
  top: 0;
  right: 0;
  z-index: -1;
  width: 11.25rem;
  height: auto;
  opacity: 0.3;
  pointer-events: none;

  /* @media (width >= 64.0625em) .image-panel__panel-image */
  @media (width >= 64.0625em) {
    width: 22.1875rem;
  }
}

/* .image-panel__panel — own stacking context, so the texture (z-index -1) stays above the panel's background */
.image-panel__panel {
  isolation: isolate;
}

/* .image-panel__card--split — photo card and panel card; stacked on phones and tablets */
.image-panel__card--split {
  /* @media (width >= 64.0625em) .image-panel__card--split — 808 : 572 (wide photo) or 690 : 690 */
  @media (width >= 64.0625em) {
    grid-template-columns: 808fr 572fr;
    gap: 1.25rem;
    min-height: 0;
    padding: 0;
  }
}

/* .image-panel__card--half */
.image-panel__card--half {
  /* @media (width >= 64.0625em) .image-panel__card--half */
  @media (width >= 64.0625em) {
    grid-template-columns: 1fr 1fr;
  }
}

/* .image-panel__card--split .image-panel__media — the photo grows to the height of the panel, at least 420 px */
.image-panel__card--split .image-panel__media {
  /* @media (width >= 64.0625em) .image-panel__card--split .image-panel__media */
  @media (width >= 64.0625em) {
    grid-area: 1 / 1;
    min-height: 26.25rem;
    margin: 0;
  }
}

/* .image-panel__card--split .image-panel__media:only-child — no panel: the photo takes the whole row */
.image-panel__card--split .image-panel__media:only-child {
  /* @media (width >= 64.0625em) .image-panel__card--split .image-panel__media:only-child */
  @media (width >= 64.0625em) {
    grid-column: 1 / -1;
  }
}

/* .image-panel__card--split .image-panel__panel — 30 px inside, titles 30 px above the list, 47 px under
   the last row on desktop (Figma 510:65071) */
.image-panel__card--split .image-panel__panel {
  gap: 1.875rem;
  padding-block: 1.75rem;

  /* @media (width >= 64.0625em) .image-panel__card--split .image-panel__panel */
  @media (width >= 64.0625em) {
    grid-column: 2;
    padding-bottom: 2.25rem;
  }
}

/* .image-panel__card--split .image-panel__panel-title — desktop: the font's normal leading (Figma "auto"),
   tracking −3 %, breaks after "optimization" in 384 px (Figma 510:65080: the line break is typed) */
.image-panel__card--split .image-panel__panel-title {
  /* @media (width >= 64.0625em) .image-panel__card--split .image-panel__panel-title */
  @media (width >= 64.0625em) {
    max-width: 24rem;
    margin-block: -0.25em;
    line-height: normal;
    letter-spacing: -0.03em;
  }
}

/* .image-panel__card--split .image-panel__list */
.image-panel__card--split .image-panel__list {
  flex: 0 0 auto;
}

/* .image-panel__card--split .image-panel__panel--light — white card with a thin blue line (510:64755) */
.image-panel__card--split .image-panel__panel--light {
  border: 0.0625rem solid rgba(26, 121, 191, 0.2);
  padding: 1.1875rem;
  background: var(--nv-white);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;

  /* @media (width >= 64.0625em) .image-panel__card--split .image-panel__panel--light */
  @media (width >= 64.0625em) {
    padding: 2.4375rem;
  }
}

/* .image-panel__card--split .image-panel__panel--light .image-panel__panel-title — blue */
.image-panel__card--split .image-panel__panel--light .image-panel__panel-title {
  color: var(--nv-blue-light);
}

/* .image-panel__card--panel-only — one full-width panel (1200 px, centred by .image-panel--blue) */
.image-panel__card--panel-only {
  /* @media (width >= 64.0625em) .image-panel__card--panel-only */
  @media (width >= 64.0625em) {
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
    padding: 0;
  }
}

/* .image-panel__card--panel-only .image-panel__panel — solid light card, 40 px inside (50 on desktop), 30 px between title and list */
.image-panel__card--panel-only .image-panel__panel {
  gap: 1.875rem;
  min-height: 0;
  border-width: 0;
  padding: 2.5rem 1.25rem;
  background: #f6f7f9;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;

  /* @media (width >= 64.0625em) .image-panel__card--panel-only .image-panel__panel */
  @media (width >= 64.0625em) {
    grid-column: 1;
    gap: 2.5rem;
    padding: 3.125rem;
  }
}

/* @media (width >= 64.0625em) .image-panel__card--panel-only .image-panel__panel-title on Upgrades — breaks
   after "reduce risk and" in the design: that line is 1012 px, with "make" 1067 px */
@media (width >= 64.0625em) {
  .page-id-125 .image-panel__card--panel-only .image-panel__panel-title {
    max-width: 65.625rem;
  }
}

/* .image-panel__card--panel-only .image-panel__list — rows 20 px apart on phones, 15 px on desktop; tile on top of a long text */
.image-panel__card--panel-only .image-panel__list {
  flex: 0 0 auto;
  gap: 1.25rem;

  /* @media (width >= 64.0625em) .image-panel__card--panel-only .image-panel__list */
  @media (width >= 48em) {
    gap: 0.9375rem;
  }
}

/* .image-panel__card--panel-only .image-panel__point — phones: the tile stays on the first line */
.image-panel__card--panel-only .image-panel__point {
  align-items: flex-start;

  /* @media (width >= 48em) .image-panel__card--panel-only .image-panel__point */
  @media (width >= 48em) {
    align-items: center;
    gap: 1.25rem;
  }
}

/* .image-panel__card--panel-only .image-panel__point-text — 20 → 25 px; on phones 8 px under the tile's top,
   bottom trimmed to the baseline so a multi-line row is as tall as in 510:71339 */
.image-panel__card--panel-only .image-panel__point-text {
  margin-block: 0 -0.3em;
  padding-top: 0.5rem;
  font-size: clamp(1.25rem, 1.14rem + 0.4695vw, 1.5625rem);

  /* @media (width >= 48em) .image-panel__card--panel-only .image-panel__point-text */
  @media (width >= 48em) {
    margin-block: -0.14em;
    padding-top: 0;
  }
}

/* .image-panel__card--panel-only .image-panel__panel .image-panel__logo — under the list on phones (left),
   desktop: bottom right at the height of the last row (510:65600) */
.image-panel__card--panel-only .image-panel__panel .image-panel__logo {
  align-self: flex-start;
  margin-top: 0;

  /* @media (width >= 64.0625em) .image-panel__card--panel-only .image-panel__panel .image-panel__logo */
  @media (width >= 64.0625em) {
    align-self: flex-end;
    margin-top: -4.375rem;
  }
}

/* .image-panel__card--panel-only .image-panel__point:last-child .image-panel__point-text — keeps clear of the logo */
.image-panel__card--panel-only .image-panel__point:last-child .image-panel__point-text {
  /* @media (width >= 64.0625em) .image-panel__card--panel-only .image-panel__point:last-child .image-panel__point-text */
  @media (width >= 64.0625em) {
    padding-right: 11.25rem;
  }
}
