/* Shared service cards. Generated HTML is present before JavaScript runs. */
.royal-catalog-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  align-items: stretch;
  margin: 40px auto 0;
}

.royal-catalog-card {
  --card-gold: #d9b75f;
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-width: 0;
  padding: 24px;
  overflow: hidden;
  border: 1px solid rgba(217, 183, 95, .58);
  border-radius: 8px;
  background: linear-gradient(120deg, rgba(79, 5, 15, .88), rgba(15, 7, 10, .94));
  box-shadow: inset 0 1px 0 rgba(255, 237, 194, .04);
  color: #f4e9d7;
  text-align: left;
  letter-spacing: 0;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.royal-catalog-card::before {
  content: "";
  position: absolute;
  z-index: -1;
  right: 0;
  bottom: 0;
  width: 170px;
  height: 140px;
  background: url("../images/shapes/membership-s-2-1-dark.png") right bottom / contain no-repeat;
  opacity: .14;
  pointer-events: none;
}

.royal-catalog-card:hover,
.royal-catalog-card:focus-within {
  border-color: #e8ca7b;
  box-shadow: inset 0 1px 0 rgba(255, 237, 194, .12);
}

.royal-catalog-card__header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  min-height: 98px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(217, 183, 95, .26);
}

.royal-catalog-card__identity {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.royal-catalog-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 52px;
  border: 1px solid rgba(217, 183, 95, .68);
  border-radius: 6px;
  color: var(--card-gold);
  font-size: 30px;
  line-height: 1;
}

.royal-catalog-card__category {
  display: block;
  margin-bottom: 5px;
  color: var(--card-gold);
  font-family: var(--solox-font);
  font-size: 10px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0;
  text-transform: uppercase;
}

.royal-catalog-card h3.royal-catalog-card__title {
  margin: 0;
  color: #fff4dc;
  font-family: var(--royal-title-font);
  font-size: 26px;
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: 0;
  text-transform: none;
  overflow-wrap: break-word;
}

.royal-catalog-card__qualifier { white-space: nowrap; }

.royal-catalog-card__rates {
  display: flex;
  align-items: center;
  align-self: stretch;
  margin: 0;
  padding: 0;
  list-style: none;
}

.royal-catalog-card__rate {
  display: grid;
  gap: 5px;
  align-content: center;
  min-width: 58px;
  padding: 0 10px;
  border-left: 1px solid rgba(217, 183, 95, .35);
  text-align: center;
}

.royal-catalog-card__rate:last-child { padding-right: 0; }

.royal-catalog-card__rate-label {
  color: #e2d7c6;
  font-family: var(--solox-font);
  font-size: 10px;
  font-weight: 400;
  line-height: 1.4;
  white-space: nowrap;
}

.royal-catalog-card__price {
  color: var(--card-gold);
  font-family: var(--royal-title-font);
  font-size: 25px;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
}

.royal-catalog-card p.royal-catalog-card__description {
  min-height: 4.65em;
  max-width: none;
  margin: 17px 0 13px;
  color: #e9dfd0;
  font-family: var(--royal-title-font);
  font-size: 19px;
  font-weight: 400;
  line-height: 1.55;
  letter-spacing: 0;
}

.royal-catalog-card__footer {
  display: flex;
  min-height: 32px;
  align-items: center;
}

.royal-catalog-card__link {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  gap: 13px;
  color: var(--card-gold);
  font-family: var(--royal-title-font);
  font-size: 20px;
  font-weight: 500;
  line-height: 1.25;
  text-decoration: none;
}

.royal-catalog-card__link:hover { color: #fff0b8; }
.royal-catalog-card__link:focus-visible {
  outline: 2px solid #e8ca7b;
  outline-offset: 5px;
  border-radius: 2px;
}
.royal-catalog-card__link i { font-size: 19px; }

@media (min-width: 1200px) {
  .royal-catalog-grid { grid-auto-rows: 1fr; }
}

@media (max-width: 1199px) {
  .royal-catalog-grid { grid-template-columns: minmax(0, 1fr); }
  .royal-catalog-card__header { min-height: 70px; }
}

@media (max-width: 575px) {
  .royal-catalog-grid { gap: 18px; margin-top: 28px; }
  .royal-catalog-card { padding: 20px; }
  .royal-catalog-card__header { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .royal-catalog-card__identity { grid-template-columns: 42px minmax(0, 1fr); gap: 12px; }
  .royal-catalog-card__icon { width: 42px; height: 48px; font-size: 28px; }
  .royal-catalog-card h3.royal-catalog-card__title { font-size: 25px; }
  .royal-catalog-card__rates { justify-content: flex-start; }
  .royal-catalog-card__rate { min-width: 68px; padding: 0 16px; }
  .royal-catalog-card__rate:first-child { border-left: 0; padding-left: 0; }
  .royal-catalog-card p.royal-catalog-card__description { font-size: 18px; min-height: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .royal-catalog-card { transition: none; }
}
