/* Practice certification campaign — page-specific presentation */
.practice-certification-page {
  overflow-x: hidden;
  background: #f3f0ec;
}

.practice-hero {
  background: #f3f0ec;
  color: var(--id-petrol-900);
  border-bottom: 1px solid rgba(9, 51, 63, .18);
  overflow: clip;
}

.practice-hero-grid {
  min-height: clamp(680px, 82vh, 900px);
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(360px, 5fr);
  align-items: stretch;
  gap: clamp(36px, 6vw, 96px);
}

.practice-hero-copy {
  align-self: center;
  padding: clamp(72px, 9vw, 128px) 0;
  position: relative;
  z-index: 2;
}

.practice-hero .display-l {
  max-width: 19ch;
  font-size: clamp(3.15rem, 4.75vw, 5.8rem);
  line-height: .91;
  letter-spacing: -.055em;
  text-wrap: balance;
}

.practice-hero .accroche {
  max-width: 38rem;
  margin-top: clamp(24px, 3vw, 40px);
  color: var(--id-petrol-700);
  font-size: clamp(1.08rem, 1.5vw, 1.35rem);
  line-height: 1.45;
}

.practice-hero-actions {
  margin-top: clamp(28px, 4vw, 48px);
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.practice-hero-actions .btn {
  min-height: 48px;
}

.practice-hero-media {
  margin: 0;
  position: relative;
  min-height: 100%;
  overflow: hidden;
  background: #f3f0ec;
  border-inline: 1px solid rgba(9, 51, 63, .18);
}

.practice-hero-media img {
  width: 100%;
  height: 100%;
  min-height: 680px;
  display: block;
  object-fit: cover;
  object-position: right center;
  transform-origin: 50% 65%;
}

.practice-hero-media figcaption {
  position: absolute;
  right: clamp(18px, 3vw, 40px);
  bottom: clamp(18px, 3vw, 40px);
  padding: 10px 14px;
  background: var(--id-petrol-900);
  color: #fff;
  font-family: "Spline Sans Mono", monospace;
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.practice-benefits {
  background: var(--id-teal-400, #20e6b2);
  color: var(--id-petrol-900);
  border-bottom: 1px solid var(--id-petrol-900);
  overflow: hidden;
}

.practice-benefits-track {
  width: min(100% - 40px, 1280px);
  margin-inline: auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.practice-benefits span {
  min-height: 76px;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  border-left: 1px solid rgba(9, 51, 63, .42);
  font-size: clamp(.82rem, 1vw, .95rem);
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.practice-benefits span:nth-child(3n) {
  border-right: 1px solid rgba(9, 51, 63, .42);
}

.practice-benefits span:nth-child(n+4) {
  border-top: 1px solid rgba(9, 51, 63, .42);
}

.practice-certification-page > .section:first-child {
  background: #fff;
}

.practice-certification-page .grid-3 {
  grid-auto-flow: dense;
  gap: 0;
  border: 1px solid var(--id-petrol-900);
}

.practice-certification-page .grid-3 .card {
  border: 0;
  border-right: 1px solid var(--id-petrol-900);
  border-radius: 0;
  min-height: 210px;
}

.practice-certification-page .grid-3 .card:last-child {
  border-right: 0;
}

.practice-levels {
  background: #f3f0ec;
}

.practice-levels .t1 {
  max-width: 15ch;
  font-size: clamp(2.8rem, 5vw, 5.8rem);
  line-height: .95;
  letter-spacing: -.045em;
  text-wrap: balance;
}

.practice-level-grid {
  margin-top: clamp(40px, 6vw, 72px);
  display: flex;
  align-items: stretch;
  border: 1px solid var(--id-petrol-900);
}

.practice-level-card {
  min-width: 0;
  flex: 1 1 0;
  margin: 0;
  padding: clamp(24px, 3.2vw, 44px);
  border: 0;
  border-right: 1px solid var(--id-petrol-900);
  border-radius: 0;
  background: #f3f0ec;
  transition: flex .55s cubic-bezier(.2,.8,.2,1), background-color .3s ease, transform .3s ease;
}

.practice-level-card:last-child {
  border-right: 0;
}

.practice-level-card:hover,
.practice-level-card:focus-within {
  flex: 1.28 1 0;
  background: #fff;
}

.practice-level-card .nm {
  font-size: clamp(1.25rem, 2vw, 2rem);
  line-height: 1.05;
  letter-spacing: -.025em;
}

.practice-level-card > div > p:last-child {
  line-height: 1.58;
}

.practice-level-actions {
  margin-top: 28px;
  display: flex;
  justify-content: flex-end;
}

.practice-certification-page a:focus-visible,
.practice-certification-page button:focus-visible,
.practice-hero a:focus-visible {
  outline: 3px solid var(--id-teal-400, #20e6b2);
  outline-offset: 4px;
}

@media (max-width: 980px) {
  .practice-hero-grid {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 0;
  }

  .practice-hero-copy {
    padding: 72px 0 48px;
  }

  .practice-hero .display-l {
    max-width: 18ch;
    font-size: clamp(2.55rem, 10vw, 4.8rem);
  }

  .practice-hero-media {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    min-height: min(74vh, 720px);
    border-inline: 0;
    border-top: 1px solid rgba(9, 51, 63, .18);
  }

  .practice-hero-media img {
    min-height: min(74vh, 720px);
  }

  .practice-level-grid {
    display: grid;
    grid-template-columns: 1fr;
  }

  .practice-level-card,
  .practice-level-card:last-child {
    border-right: 0;
    border-bottom: 1px solid var(--id-petrol-900);
  }

  .practice-level-card:last-child {
    border-bottom: 0;
  }

  .practice-level-card:hover,
  .practice-level-card:focus-within {
    transform: translateY(-2px);
  }
}

@media (max-width: 700px) {
  .practice-hero-media {
    min-height: 0;
    aspect-ratio: 2 / 3;
  }

  .practice-hero-media img {
    height: auto;
    min-height: 0;
    object-fit: contain;
    object-position: center top;
  }

  .practice-benefits-track {
    width: 100%;
    grid-template-columns: 1fr;
  }

  .practice-benefits span,
  .practice-benefits span:last-child {
    min-height: 56px;
    border: 0;
    border-bottom: 1px solid rgba(9, 51, 63, .36);
    padding-inline: 20px;
  }

  .practice-benefits span:last-child {
    border-bottom: 0;
  }

  .practice-certification-page .grid-3 .card,
  .practice-certification-page .grid-3 .card:last-child {
    min-height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--id-petrol-900);
  }

  .practice-certification-page .grid-3 .card:last-child {
    border-bottom: 0;
  }

  .practice-hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .practice-hero-actions .btn {
    width: 100%;
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .practice-level-card,
  .practice-hero-media img {
    transition: none;
    transform: none !important;
  }
}
