.practice-page__intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 32px;
}

.practice-page__lead {
  max-width: 760px;
}

.practice-search {
  max-width: 920px;
}

.practice-search__label {
  display: block;
  margin-bottom: 8px;
  font-size: 16px;
  font-weight: 700;
}

.practice-search__control {
  position: relative;
}

.practice-search__input {
  width: 100%;
  min-height: 56px;
  box-sizing: border-box;
  padding: 14px 52px 14px 18px;
  color: #17223b;
  background: #fff;
  border: 1px solid #aeb6c5;
  border-radius: 6px;
  font: inherit;
  font-size: 18px;
}

.practice-search__input:focus {
  outline: 3px solid rgba(34, 145, 255, 0.24);
  border-color: #376ca8;
}

.practice-search__clear {
  position: absolute;
  top: 50%;
  right: 12px;
  width: 36px;
  height: 36px;
  padding: 0;
  color: #17223b;
  background: transparent;
  border: 0;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  transform: translateY(-50%);
}

.practice-search__status {
  min-height: 24px;
  margin-top: 12px;
  color: #17223b;
  font-weight: 700;
}

.practice-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
  gap: 20px;
}

.practice-card {
  display: flex;
  height: 460px;
  box-sizing: border-box;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.practice-card.is-expanded {
  height: auto;
  min-height: 460px;
  overflow: visible;
  border-color: #aeb6c5;
  box-shadow: 0 10px 28px rgba(23, 34, 59, 0.1);
}

.practice-card[hidden] {
  display: none;
}

.practice-card__meta {
  padding-bottom: 12px;
  border-bottom: 1px solid #d8dce4;
}

.practice-card__result {
  overflow-wrap: anywhere;
}

.practice-card__body {
  position: relative;
  min-height: 0;
  flex: 1 1 auto;
  overflow: hidden;
}

.practice-card--expandable:not(.is-expanded) .practice-card__body::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 72px;
  background: linear-gradient(to bottom, rgba(244, 244, 244, 0), #f4f4f4 82%);
  content: "";
  pointer-events: none;
}

.practice-card.is-expanded .practice-card__body {
  overflow: visible;
}

.practice-card__toggle {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  min-height: 40px;
  margin-top: 16px;
  padding: 0;
  color: #17223b;
  background: transparent;
  border: 0;
  border-bottom: 1px solid currentColor;
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}

.practice-card__toggle::after {
  margin-left: 8px;
  content: "+";
  font-size: 20px;
  line-height: 1;
}

.practice-card.is-expanded .practice-card__toggle::after {
  content: "−";
}

.practice-card__toggle:focus-visible {
  outline: 3px solid rgba(34, 145, 255, 0.24);
  outline-offset: 4px;
}

.practice-card__documents a + a {
  margin-left: 12px;
}

.practice-detail__container {
  padding-top: 64px;
  padding-bottom: 80px;
}

.practice-detail__article {
  max-width: 920px;
}

.practice-detail__back {
  display: inline-block;
  margin-bottom: 32px;
  color: #17223b;
  font-size: 18px;
  text-decoration: none;
}

.practice-detail__back:hover,
.practice-detail__back:focus-visible {
  text-decoration: underline;
}

.practice-detail__header {
  display: grid;
  gap: 12px;
  margin-bottom: 32px;
}

.practice-detail__content {
  display: grid;
  gap: 20px;
}

.practice-detail__content h2,
.practice-detail__content h3 {
  margin-top: 20px;
}

.practice-detail__content ul,
.practice-detail__content ol {
  padding-left: 24px;
}

.practice-detail__documents {
  display: grid;
  gap: 12px;
  margin-top: 40px;
}

.practice-detail__cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  margin-top: 64px;
  padding: 40px;
  background: #17223b;
}

.practice-search__fallback {
  max-width: 920px;
  padding: 24px;
  background: #fff;
  border-left: 4px solid #376ca8;
}

.practice-search__fallback[hidden],
.practice-search__more button[hidden] {
  display: none;
}

.practice-services {
  border-top: 1px solid #d8dce4;
  padding-top: 32px;
}

.practice-services__links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 24px;
}

.practice-services__links a {
  color: #17223b;
  font-size: 17px;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 4px;
}

@media (max-width: 992px) {
  .practice-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 650px) {
  .practice-page__intro,
  .practice-grid,
  .practice-services__links {
    grid-template-columns: 1fr;
  }

  .practice-page__intro {
    align-items: start;
  }

  .practice-page__intro .button {
    width: 100%;
  }

  .practice-search__input {
    font-size: 16px;
  }

  .practice-card,
  .practice-card.is-expanded {
    min-height: 420px;
  }

  .practice-card {
    height: 420px;
  }

  .practice-card.is-expanded {
    height: auto;
  }

  .practice-detail__container {
    padding-top: 40px;
    padding-bottom: 56px;
  }

  .practice-detail__back {
    margin-bottom: 24px;
    font-size: 16px;
  }

  .practice-detail__cta {
    align-items: stretch;
    flex-direction: column;
    margin-top: 40px;
    padding: 24px;
  }
}
