.pdl-case-library {
  --case-ink: #102f47;
  --case-muted: #5d7587;
  --case-blue: #0872cf;
  --case-blue-dark: #075ead;
  --case-line: #d8e5ed;
  overflow: hidden;
  color: var(--case-ink);
  background: #fff;
}

.pdl-case-library h1,
.pdl-case-library h2,
.pdl-case-library p {
  letter-spacing: 0;
}

.pdl-case-library .pdl-eyebrow {
  margin: 0 0 11px;
  color: var(--case-blue);
  font-size: .75rem;
  font-weight: 850;
  letter-spacing: .08em;
}

.pdl-case-library-hero {
  position: relative;
  isolation: isolate;
  padding: clamp(58px, 6vw, 82px) 0;
  background-color: #eef5f9;
  background-image: url("../../images/case-studies/case-library-hero-v1.webp");
  background-position: center center;
  background-size: cover;
  border-bottom: 1px solid #d9e7ef;
}

.pdl-case-library-hero::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  background:
    linear-gradient(
      90deg,
      rgba(242, 248, 251, .96) 0%,
      rgba(242, 248, 251, .88) 36%,
      rgba(235, 244, 249, .68) 66%,
      rgba(226, 238, 245, .48) 100%
    );
  content: "";
  pointer-events: none;
}

.pdl-case-library-hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(300px, .74fr) minmax(560px, 1.26fr);
  gap: clamp(54px, 7vw, 110px);
  align-items: center;
}

.pdl-case-library-intro h1 {
  margin: 0;
  color: var(--case-ink);
  font-size: clamp(2.75rem, 4.4vw, 4.6rem);
  font-weight: 840;
  line-height: 1.04;
}

.pdl-case-library-intro > p:last-child {
  max-width: 480px;
  margin: 19px 0 0;
  color: #49677c;
  font-size: 1rem;
  line-height: 1.76;
}

.pdl-case-search-panel {
  padding: clamp(22px, 2.3vw, 30px);
  background: rgba(255, 255, 255, .95);
  border: 1px solid #d7e5ed;
  border-radius: 8px;
  box-shadow: 0 20px 48px rgba(29, 66, 91, .11);
  backdrop-filter: blur(5px);
}

.pdl-case-search-form {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  min-height: 58px;
  padding: 7px 7px 7px 18px;
  background: #f7fafc;
  border: 1px solid #bdd4e2;
  border-radius: 6px;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.pdl-case-search-form:focus-within {
  border-color: var(--case-blue);
  box-shadow: 0 0 0 3px rgba(8, 114, 207, .12);
}

.pdl-case-search-form > span,
.pdl-case-search-form > span svg {
  width: 21px;
  height: 21px;
  color: #4b7189;
}

.pdl-case-search-form input {
  min-width: 0;
  min-height: 42px;
  padding: 0;
  color: var(--case-ink);
  background: transparent;
  border: 0;
  outline: 0;
  font: inherit;
  font-size: .98rem;
}

.pdl-case-search-form input::placeholder {
  color: #8094a2;
}

.pdl-case-search-form button {
  min-height: 44px;
  padding: 0 22px;
  color: #fff;
  background: var(--case-blue);
  border: 0;
  border-radius: 5px;
  cursor: pointer;
  font-size: .9rem;
  font-weight: 780;
  transition: background-color 180ms ease, transform 180ms ease;
}

.pdl-case-search-form button:hover,
.pdl-case-search-form button:focus-visible {
  background: var(--case-blue-dark);
}

.pdl-case-search-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  align-items: center;
  margin-top: 16px;
  color: #758c9c;
  font-size: .78rem;
}

.pdl-case-search-suggestions a {
  color: #2c5e7d;
  font-weight: 720;
  text-decoration: underline;
  text-decoration-color: #b5cedd;
  text-underline-offset: 4px;
}

.pdl-case-search-suggestions a:hover,
.pdl-case-search-suggestions a:focus-visible {
  color: var(--case-blue);
  text-decoration-color: var(--case-blue);
}

.pdl-case-catalog {
  padding: clamp(70px, 7vw, 104px) 0;
  background: #fff;
}

.pdl-case-catalog-heading {
  display: flex;
  gap: 34px;
  align-items: end;
  justify-content: space-between;
}

.pdl-case-catalog-heading h2 {
  margin: 0;
  color: var(--case-ink);
  font-size: clamp(2rem, 2.8vw, 3.05rem);
  line-height: 1.12;
}

.pdl-case-catalog-heading > p {
  flex: 0 0 auto;
  margin: 0 0 4px;
  color: #6c8393;
  font-size: .86rem;
}

.pdl-case-filter-form {
  display: flex;
  gap: 22px;
  align-items: end;
  justify-content: space-between;
  margin-top: 34px;
  padding: 18px 0;
  border-top: 1px solid var(--case-line);
  border-bottom: 1px solid var(--case-line);
}

.pdl-case-filter-fields {
  display: grid;
  grid-template-columns: repeat(3, minmax(150px, 210px));
  gap: 14px;
}

.pdl-case-filter-fields label {
  display: grid;
  gap: 7px;
}

.pdl-case-filter-fields label > span {
  color: #627b8d;
  font-size: .72rem;
  font-weight: 760;
}

.pdl-case-filter-fields select {
  width: 100%;
  min-height: 42px;
  padding: 0 36px 0 12px;
  color: #274b64;
  background: #f7fafc;
  border: 1px solid #cfdee7;
  border-radius: 5px;
  cursor: pointer;
  font: inherit;
  font-size: .84rem;
}

.pdl-case-filter-fields select:focus {
  border-color: var(--case-blue);
  outline: 3px solid rgba(8, 114, 207, .1);
}

.pdl-case-filter-actions {
  display: flex;
  gap: 15px;
  align-items: center;
  padding-bottom: 1px;
}

.pdl-case-filter-actions .pdl-button {
  min-height: 42px;
  padding: 9px 17px;
  font-size: .82rem;
}

.pdl-case-filter-actions > a {
  color: #5d7789;
  font-size: .78rem;
  font-weight: 700;
}

.pdl-case-filter-actions > a:hover,
.pdl-case-filter-actions > a:focus-visible {
  color: var(--case-blue);
}

.pdl-case-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(28px, 3vw, 40px) clamp(22px, 2.4vw, 32px);
  margin-top: clamp(40px, 4vw, 58px);
}

.pdl-case-card {
  min-width: 0;
  overflow: hidden;
  background: #fff;
  border: 1px solid #dce7ee;
  border-radius: 7px;
  box-shadow: 0 8px 24px rgba(23, 56, 80, .055);
  transition: border-color 220ms ease, box-shadow 220ms ease, transform 220ms ease;
}

.pdl-case-card-media {
  position: relative;
  aspect-ratio: 16 / 10;
  display: block;
  overflow: hidden;
  background: #edf4f7;
}

.pdl-case-card-media::after {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(21, 55, 79, .04);
}

.pdl-case-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 420ms cubic-bezier(.2, .7, .2, 1);
}

.pdl-case-card-body {
  padding: 21px 21px 19px;
}

.pdl-case-card-meta {
  display: flex;
  gap: 8px 17px;
  align-items: center;
  margin-bottom: 12px;
  color: var(--case-blue);
  font-size: .72rem;
  font-weight: 800;
}

.pdl-case-card-meta span + span {
  position: relative;
  color: #667f90;
}

.pdl-case-card-meta span + span::before {
  position: absolute;
  top: 50%;
  left: -9px;
  width: 3px;
  height: 3px;
  content: "";
  background: #9ab0bd;
  border-radius: 50%;
  transform: translateY(-50%);
}

.pdl-case-card h2 {
  display: -webkit-box;
  min-height: 2.75em;
  margin: 0;
  overflow: hidden;
  color: var(--case-ink);
  font-size: clamp(1.08rem, 1.2vw, 1.28rem);
  line-height: 1.38;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.pdl-case-card h2 a {
  color: inherit;
}

.pdl-case-card-body > p {
  display: -webkit-box;
  min-height: 3.2em;
  margin: 12px 0 0;
  overflow: hidden;
  color: var(--case-muted);
  font-size: .85rem;
  line-height: 1.62;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.pdl-case-card-footer {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  margin-top: 18px;
  padding-top: 15px;
  border-top: 1px solid #e0e9ee;
}

.pdl-case-card-footer > span {
  color: #6b8292;
  font-size: .72rem;
  font-weight: 720;
}

.pdl-case-card-footer > a {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  color: var(--case-blue);
  font-size: .78rem;
  font-weight: 790;
}

.pdl-case-card-footer svg {
  width: 15px;
  height: 15px;
  transition: transform 180ms ease;
}

.pdl-case-library [data-pdl-case-item][hidden] {
  display: none !important;
}

.pdl-case-library .is-filtered-in {
  animation: pdl-case-filter-in 240ms ease both;
}

@keyframes pdl-case-filter-in {
  from {
    opacity: 0;
    transform: translateY(7px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.pdl-case-empty {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto auto;
  gap: 18px;
  align-items: center;
  padding: 30px;
  background: #f3f8fb;
  border: 1px solid #d4e4ed;
  border-radius: 7px;
}

.pdl-case-empty[hidden] {
  display: none;
}

.pdl-case-empty > svg {
  width: 34px;
  height: 34px;
  color: var(--case-blue);
}

.pdl-case-empty h2 {
  margin: 0;
  color: var(--case-ink);
  font-size: 1.15rem;
}

.pdl-case-empty p {
  margin: 7px 0 0;
  color: var(--case-muted);
  font-size: .86rem;
  line-height: 1.6;
}

.pdl-case-empty .pdl-button {
  min-height: 44px;
  white-space: nowrap;
}

.pdl-case-library-cta {
  padding: clamp(52px, 5vw, 72px) 0;
  background: #e8f2f8;
  border-top: 1px solid #d1e2ec;
}

.pdl-case-library-cta-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 50px;
  align-items: center;
}

.pdl-case-library-cta h2 {
  margin: 0;
  color: var(--case-ink);
  font-size: clamp(1.85rem, 2.6vw, 2.7rem);
  line-height: 1.15;
}

.pdl-case-library-cta-inner > div:first-child > p:last-child {
  margin: 14px 0 0;
  color: #587284;
  line-height: 1.68;
}

.pdl-case-library-cta-actions {
  display: flex;
  gap: 10px;
}

.pdl-case-library-cta-actions .pdl-button-secondary {
  color: #174863;
  border-color: #abc6d7;
  background: rgba(255, 255, 255, .58);
}

@media (hover: hover) and (pointer: fine) {
  .pdl-case-search-form button:hover {
    transform: translateY(-1px);
  }

  .pdl-case-card:hover,
  .pdl-case-card:focus-within {
    border-color: #b6d3e4;
    box-shadow: 0 18px 42px rgba(20, 76, 115, .14);
    transform: translateY(-5px);
  }

  .pdl-case-card:hover .pdl-case-card-media img,
  .pdl-case-card:focus-within .pdl-case-card-media img {
    transform: scale(1.035);
  }

  .pdl-case-card:hover .pdl-case-card-footer svg,
  .pdl-case-card:focus-within .pdl-case-card-footer svg {
    transform: translateX(3px);
  }
}

@media (max-width: 980px) {
  .pdl-case-library-hero {
    background-position: 66% center;
  }

  .pdl-case-library-hero::before {
    background: rgba(239, 247, 251, .82);
  }
  .pdl-case-library-hero-inner {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .pdl-case-library-intro {
    max-width: 700px;
  }

  .pdl-case-filter-form {
    align-items: stretch;
  }

  .pdl-case-filter-fields {
    flex: 1 1 auto;
    grid-template-columns: repeat(3, minmax(130px, 1fr));
  }

  .pdl-case-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pdl-case-empty {
    grid-template-columns: 38px minmax(0, 1fr);
  }

  .pdl-case-empty .pdl-button {
    width: 100%;
  }
}

@media (max-width: 680px) {
  .pdl-case-library-hero {
    padding: 42px 0 46px;
    background-position: 61% center;
  }

  .pdl-case-library-hero::before {
    background: rgba(240, 247, 251, .88);
  }

  .pdl-case-library-intro h1 {
    font-size: 2.45rem;
  }

  .pdl-case-library-intro > p:last-child {
    margin-top: 14px;
    font-size: .92rem;
    line-height: 1.65;
  }

  .pdl-case-search-panel {
    padding: 14px;
  }

  .pdl-case-search-form {
    grid-template-columns: 21px minmax(0, 1fr);
    gap: 9px;
    padding: 9px 10px 10px 13px;
  }

  .pdl-case-search-form input {
    font-size: .9rem;
  }

  .pdl-case-search-form button {
    grid-column: 1 / -1;
    width: 100%;
  }

  .pdl-case-search-suggestions {
    gap: 8px 14px;
    margin-top: 13px;
  }

  .pdl-case-catalog {
    padding: 58px 0 64px;
  }

  .pdl-case-catalog-heading {
    display: block;
  }

  .pdl-case-catalog-heading h2 {
    font-size: 1.85rem;
  }

  .pdl-case-catalog-heading > p {
    margin-top: 10px;
  }

  .pdl-case-filter-form {
    display: grid;
    gap: 14px;
    margin-top: 24px;
    padding: 15px 0;
  }

  .pdl-case-filter-fields {
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .pdl-case-filter-fields label:nth-child(3) {
    grid-column: 1 / -1;
  }

  .pdl-case-filter-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .pdl-case-filter-actions .pdl-button {
    width: 100%;
  }

  .pdl-case-grid {
    grid-template-columns: 1fr;
    gap: 25px;
    margin-top: 32px;
  }

  .pdl-case-card h2,
  .pdl-case-card-body > p {
    min-height: 0;
  }

  .pdl-case-empty {
    gap: 14px;
    padding: 22px 18px;
  }

  .pdl-case-empty .pdl-button {
    grid-column: 1 / -1;
  }

  .pdl-case-library-cta {
    padding: 46px 0 62px;
  }

  .pdl-case-library-cta-inner {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .pdl-case-library-cta h2 {
    font-size: 1.82rem;
  }

  .pdl-case-library-cta-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pdl-case-library-cta-actions .pdl-button {
    width: 100%;
  }

  body:has(.pdl-case-library) .pdl-mobile-sticky-actions a {
    width: auto;
    min-width: 0;
  }
}

@media (max-width: 390px) {
  .pdl-case-library-cta-actions {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pdl-case-search-form,
  .pdl-case-search-form button,
  .pdl-case-card,
  .pdl-case-card-media img,
  .pdl-case-card-footer svg {
    transition: none;
  }

  .pdl-case-library .is-filtered-in {
    animation: none;
  }
}
