.portal-access-levels .portal-access-level__action [data-access-qr] {
  display: none !important;
}

@media (min-width: 901px) {
  .portal-home-card {
    min-height: 294px;
  }
}

.portal-access-levels {
  margin-top: 16px;
  border-top: 0;
  padding-top: 0;
}

.portal-home__content {
  max-width: 1220px;
  padding-top: 16px;
  padding-bottom: 0;
}

.portal-home-hero__inner {
  max-width: 1260px;
  transform: none;
  padding-left: 20px;
}

/* Match the home cards and lettering to the original portal design. */
html[data-theme="dark"] .portal-home {
  --ctr-home-text: #ede1c8;
  --ctr-home-heading: #ede1c8;
  --ctr-home-secondary: #c7b9a4;
  --ctr-home-card: #443a49;
  --ctr-home-card-head: #514456;
  --ctr-home-border: #776a7d;
  --ctr-home-divider: #605563;
  --ctr-home-description-divider: #ebe6e1;
}

html[data-theme="light"] .portal-home {
  --ctr-home-text: #2d2830;
  --ctr-home-heading: #3e3046;
  --ctr-home-secondary: #5c535d;
  --ctr-home-card: #e9e4eb;
  --ctr-home-card-head: #d9d2dc;
  --ctr-home-border: #8f8593;
  --ctr-home-divider: #bdb4c0;
  --ctr-home-description-divider: #ebe6e1;
}

.portal-home__content,
.portal-home-map__title,
.portal-access-level,
.portal-access-level__copy p {
  color: var(--ctr-home-text);
}

.portal-home .portal-home-map__title {
  color: var(--ctr-home-heading);
}

.portal-home .portal-home-map__title {
  gap: 8px;
}

.portal-home .portal-home-map__title > span[aria-hidden="true"] {
  width: 28px;
  height: 2px;
  background-color: #665078;
  border-color: #665078;
  color: #665078;
}

.portal-home .portal-home-grid {
  gap: 12px;
}

.portal-home .portal-home-card {
  background: var(--ctr-home-card);
  border: 1px solid var(--ctr-home-border);
  color: var(--ctr-home-text);
}

.portal-home .portal-home-card__header {
  background: var(--ctr-home-card-head);
  border-bottom: 1px solid var(--ctr-home-divider);
  min-height: 61px;
  gap: 12px;
  padding: 12px 24px;
}

.portal-home .portal-home-card__header img {
  width: 36px;
  height: 36px;
}

.portal-home .portal-home-card__header h2 {
  font-size: 18px;
  line-height: 28px;
}

.portal-home .portal-home-card__body {
  padding: 16px 24px;
}

.portal-home .portal-home-card__link {
  min-height: 42px;
  border-radius: 8px;
  background: #665078;
  border-color: #665078;
  padding: 8px 40px;
  color: #fff7ed;
  font-size: 16px;
  line-height: 24px;
}

.portal-home .portal-home-card__link:hover,
.portal-home .portal-home-card__link:focus-visible {
  background: #745c88;
  border-color: #745c88;
  color: #fff7ed;
}

.portal-home .portal-home-card__header h2,
.portal-home .portal-home-card__description {
  color: var(--ctr-home-text);
}

.portal-home .portal-home-card__description {
  border-bottom: 1px solid var(--ctr-home-description-divider);
  padding-bottom: 12px;
  margin: 0;
  font-size: 16px;
  line-height: 24px;
  text-wrap: balance;
}

.portal-home .portal-home-card__access {
  margin: 0 0 16px;
  border-top: 0;
  padding-top: 12px;
  color: var(--ctr-home-secondary);
  font-size: 14px;
  line-height: 20px;
}

html[data-theme="light"] .portal-home .portal-home-card__header h2 {
  color: var(--ctr-home-heading);
}

@media (max-width: 900px) {
  .portal-home .portal-home-card__header {
    padding-inline: 20px;
  }
}

.portal-access-levels > .portal-home-map__title {
  margin-bottom: 7px;
}

.portal-access-level {
  border-left: 0;
  padding-top: 8px;
  padding-bottom: 10px;
}

.portal-access-level__visual,
.ctr-access-denied.portal-access-level__denied {
  width: 54px;
  height: 54px;
}

.portal-access-level__action {
  margin-top: 7px;
}

.portal-access-level__copy h3 {
  font-size: 18px;
  font-weight: 900;
}

html .portal-access-level .portal-access-level__copy h3 + p {
  font-size: 16px;
  line-height: 1.35;
  font-weight: 500;
  color: inherit;
}

.site-footer,
.site-footer__inner {
  min-height: 84px;
}

@media (min-width: 901px) {
  .portal-access-level {
    padding-top: 2px;
    padding-bottom: 4px;
  }

  .portal-access-level--member,
  .portal-access-level--forum {
    grid-template-rows: 54px 1fr;
  }

  .portal-access-level--member .portal-access-level__copy,
  .portal-access-level--forum .portal-access-level__copy {
    display: flex;
    flex-direction: column;
  }

  .portal-access-level--member .portal-access-level__copy > p,
  .portal-access-level--forum .portal-access-level__copy > p {
    flex: 1;
  }
}

@media (max-width: 900px) {
  .portal-access-levels {
    margin-top: 14px;
  }

  .portal-access-level__visual,
  .ctr-access-denied.portal-access-level__denied {
    width: 54px;
    height: 54px;
  }
}

/* Short card descriptions keep natural word spacing. */
html[data-theme] body.ctr-klubowe-portal .portal-home.portal-home--classic .portal-home-card__description {
  text-align: left !important;
  text-align-last: left !important;
}
