.home-investment-card__actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  width: 100%;
  margin-top: auto;
}

.home-investment-card__actions > .home-investment-card__action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  box-sizing: border-box;
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid #193b61;
  border-radius: 5px;
  background: #f8f6f2;
  color: #193b61;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
  text-decoration: none;
  transition: background-color .2s ease, color .2s ease;
}

.home-investment-card__actions > .home-investment-card__action--prices {
  background: #193b61;
  color: #f8f6f2;
}

.home-investment-card__actions > .home-investment-card__action:hover {
  background: #e8eef5;
  color: #193b61;
}

.home-investment-card__actions > .home-investment-card__action--prices:hover {
  background: #254e78;
  color: #fff;
}

.home-investment-card__actions > .home-investment-card__action:focus-visible {
  outline: 2px solid #193b61;
  outline-offset: 3px;
}

.home-investment-card__action > svg {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
}

@media (max-width: 480px) {
  .home-investment-card__actions { gap: 8px; }
  .home-investment-card__actions > .home-investment-card__action {
    gap: 4px;
    padding-inline: 8px;
    font-size: 12px;
  }
}


.home-investment-grid > a.home-investment-card[hidden] { display: none !important; }

@layer azd-mobile-refinement {
  @media (max-width: 620px) {
    .home-shell .home-investment-grid > article.home-investment-card {
      grid-template-columns: minmax(0, 1fr);
    }

    .home-shell .home-investment-grid > article.home-investment-card > picture {
      height: auto;
      aspect-ratio: 1.8;
    }

    .home-shell .home-investment-grid > article.home-investment-card > div {
      min-height: 0;
    }
  }
}

.home-selected__grid .project-editorial-card__body,
.home-selected__grid .project-editorial-card__media-open,
.home-service-grid .home-service-card__content > a,
.home-selected__grid .home-project-category[hidden] {
  display: none !important;
}

.home-selected__grid .project-editorial-card {
  height: auto !important;
  min-height: 0;
}

.home-selected__grid .home-project-category-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: #273b4c;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .085em;
  text-transform: uppercase;
  text-decoration: none;
  text-underline-offset: 5px;
}

.home-selected__grid .home-project-category-link:hover {
  color: #193b61;
  text-decoration: underline;
}

.home-investment-card__actions > .home-investment-card__action,
.home-investment-card__actions > .home-investment-card__action--prices {
  border-color: transparent;
  background: transparent;
  color: #294865;
  font-weight: 650;
}

.home-investment-card__actions > .home-investment-card__action:hover {
  background: #f2f5f7;
  color: #193b61;
}

.home-investment-card__action > svg {
  opacity: .48;
}

.home-investment-card__action:hover > svg {
  opacity: .8;
}

.home-shell .home-section.home-reviews {
  --compact-review-height: 216px;
  --compact-review-lines: 4;
  padding-block: 26px !important;
}

.home-shell .home-reviews .home-reviews__layout {
  grid-template-columns: minmax(0, 1fr) minmax(0, 3fr) !important;
  gap: 12px !important;
  align-items: start !important;
}

.home-shell .home-reviews .home-reviews__carousel {
  height: auto;
}

.home-shell .home-reviews .home-reviews__track {
  height: var(--compact-review-height) !important;
  flex: 0 0 auto;
  grid-template-columns: none !important;
  grid-auto-flow: column !important;
  grid-auto-columns: calc((100% - 24px) / 3) !important;
  gap: 12px;
  overflow: auto hidden;
}

.home-shell .home-reviews :is(.home-reviews__intro, .home-review-card) {
  height: var(--compact-review-height);
  min-height: 0 !important;
  padding: 14px !important;
  border: 1px solid #dfe4e6;
  border-radius: 6px;
  background: #fafaf8;
}

.home-shell .home-reviews .home-review-card[hidden] {
  display: none !important;
}

.home-shell .home-reviews .home-reviews__intro > .home-eyebrow {
  margin-bottom: 4px;
}

.home-shell .home-reviews .home-reviews__intro h2 {
  font-size: clamp(18px, 1.8vw, 24px);
  line-height: 1.1;
}

.home-shell .home-reviews .home-reviews__intro > p {
  display: none;
}

.home-shell .home-reviews .home-reviews__platforms {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
}

.home-shell .home-reviews .home-reviews__platforms > a {
  min-height: 44px;
  grid-template-columns: minmax(0, 1fr);
  padding: 5px 3px !important;
}

.home-shell .home-reviews .home-reviews__platforms > a + a {
  padding-left: 8px !important;
  border-top: 0;
  border-left: 1px solid #dfe4e6;
}

.home-shell .home-reviews .home-reviews__platforms > a > i,
.home-shell .home-reviews .home-reviews__external {
  display: none;
}

.home-shell .home-reviews .home-reviews__platforms strong {
  margin-top: 2px;
  font-size: 12px;
}

.home-shell .home-reviews .home-reviews__platforms b {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-top: 2px;
  font-size: 9px;
}

.home-shell .home-reviews .home-reviews__all-link {
  display: inline-block;
  margin-top: 7px;
  font-size: 11px;
}

.home-shell .home-reviews .home-review-card__mark {
  height: 17px;
  font-size: 31px;
}

.home-shell .home-reviews .home-review-card > p {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: var(--compact-review-lines);
  overflow: hidden;
  flex-shrink: 0;
  margin: 4px 0 0 !important;
  font-size: 14px !important;
  line-height: 1.4 !important;
}

.home-shell .home-reviews .home-review-card__more {
  align-self: flex-start;
  min-height: 28px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #294865;
  line-height: 1.2;
  font-size: 12px;
  font-weight: 650;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.home-shell .home-reviews .home-review-card footer {
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 8px;
  padding-top: 6px;
}

.home-shell .home-reviews .home-review-card__avatar {
  width: 28px;
  height: 28px;
}

.home-shell .home-reviews .home-review-card cite {
  font-size: 12px;
  line-height: 1.15;
}

.home-shell .home-reviews .home-review-card__details > small {
  margin-top: 2px;
}

.home-shell .home-reviews .home-review-card__source {
  min-height: 16px;
  margin-top: 1px;
}

.home-shell .home-reviews .home-reviews__controls {
  margin-top: 8px;
}

.home-review-dialog {
  width: min(540px, calc(100vw - 28px));
  max-height: min(75dvh, 34rem);
  overflow: auto;
  padding: 18px;
  border: 1px solid #dfe4e6;
  border-radius: 8px;
  color: #111a28;
  background: #fff;
}

.home-review-dialog::backdrop { background: rgb(17 26 40 / .55); }
:root:has(.home-review-dialog[open]) { overflow: hidden; }

.home-review-dialog header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}

.home-review-dialog h3 { margin: 7px 0 0; font-size: 18px; }
.home-review-dialog p { margin: 14px 0 0; line-height: 1.55; white-space: pre-line; }
.home-review-dialog button { min-height: 34px; padding: 4px 9px; cursor: pointer; }

@media (max-width: 900px) {
  .home-shell .home-section.home-reviews {
    --compact-review-height: 158px;
    --compact-review-lines: 3;
    padding-block: 20px !important;
  }

  .home-shell .home-reviews .home-reviews__layout { grid-template-columns: 1fr !important; gap: 8px !important; }
  .home-shell .home-reviews .home-reviews__track { grid-auto-columns: 100% !important; }
  .home-shell .home-reviews :is(.home-reviews__intro, .home-review-card) { padding: 10px 12px !important; }
  .home-shell .home-reviews .home-review-card__mark { display: none; }
}

@layer azd-mobile-refinement {
  @media (max-width: 900px) {
    .home-shell .home-section.home-reviews { padding-block: 18px !important; }
  }
}

@media (max-width: 900px) {
  .home-shell .home-reviews .home-reviews__all-link { display: none; }
}
