/* Core pages with no target language (pages/content.html with .page--shared): each h2
   section is a row with a filled heading card on the left and text on the right, plus
   the contact social links (partials/contact_social.html). */

/* Footer spacing as on the EN landing (landings/en_index.css) */
.page.page--shared {
  padding-bottom: 1.25rem;
}

.page--shared .lesson-top {
  padding-bottom: 0;
}

.shared-section {
  display: grid;
  grid-template-columns: 13rem minmax(0, 1fr);
  align-items: stretch;
  column-gap: 2.5rem;
  margin-top: 3.5rem;
}

.shared-section__card {
  margin: 0;
  padding: 1.25rem 1.35rem;
  border-radius: var(--radius-lg);
  background: var(--fill);
  text-wrap: balance;
}

.page--content .shared-section__body {
  margin-top: 0;
}

@media (max-width: 640px) {
  .shared-section {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 1rem;
    margin-top: 2.5rem;
  }
}

/* Contact social rows injected at <!-- social: follow --> */
.page--shared .contact-social__links {
  display: grid;
  gap: 0.55rem;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}

.page--shared .content-body a.contact-social__link,
.page--shared .contact-social__link {
  display: grid;
  grid-template-columns: 1.5rem minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.75rem;
  min-height: 3.1rem;
  padding: 0.65rem 1rem;
  border-radius: var(--radius-lg);
  background: var(--color-related-background);
  color: var(--color-text);
  font-weight: 600;
  text-decoration: none;
}

.page--shared .content-body a.contact-social__link:hover,
.page--shared .content-body a.contact-social__link:focus-visible {
  text-decoration: underline;
  text-underline-offset: 0.14em;
}

.page--shared .contact-social__icon {
  display: grid;
  place-items: center;
  width: 1.5rem;
  height: 1.5rem;
}

.page--shared .contact-social__icon::before {
  content: "";
  width: 1.15rem;
  height: 1.15rem;
  background: var(--color-text);
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
  -webkit-mask-size: contain;
  mask-repeat: no-repeat;
  mask-position: center;
  mask-size: contain;
}

.page--shared .contact-social__link--x .contact-social__icon::before {
  -webkit-mask-image: url("/images/icons/x.svg");
  mask-image: url("/images/icons/x.svg");
}

.page--shared .contact-social__link--youtube .contact-social__icon::before {
  -webkit-mask-image: url("/images/icons/youtube.svg");
  mask-image: url("/images/icons/youtube.svg");
}

.page--shared .contact-social__link--instagram .contact-social__icon::before {
  -webkit-mask-image: url("/images/icons/instagram.svg");
  mask-image: url("/images/icons/instagram.svg");
}

.page--shared .contact-social__arrow {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  font-weight: 400;
  line-height: 1;
}
