/**
 * Vista full de Recurso Educativo Abierto.
 */

.rea-full-header {
  border-top: 1px solid var(--anep-primary, #1363ff);
  border-bottom: 1px solid var(--anep-primary, #1363ff);
  padding: 1.5rem 0 1.75rem;
  margin-bottom: 2rem;
}

.rea-full-header__grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 48rem) {
  .rea-full-header__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
    gap: 2rem;
    align-items: start;
  }

  .rea-full-header__grid--no-image {
    grid-template-columns: minmax(0, 1fr);
  }
}

.rea-full-header__media {
  position: relative;
  aspect-ratio: 3 / 2;
  overflow: hidden;
}

.rea-full-header__media .field,
.rea-full-header__media .field__item {
  height: 100%;
}

.rea-full-header__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.rea-full-header__title {
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.25;
  margin: 0.75rem 0 1rem;
  color: var(--anep-body-color, #363636);
}

.rea-full-header__meta .field--name-field-etiquetas,
.rea-full-header__meta .field--name-field-destinatarios {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.25rem 0.35rem;
  margin-bottom: 0.25rem;
  font-size: 0.9375rem;
}

.rea-full-header__meta .field--name-field-etiquetas .field__label,
.rea-full-header__meta .field--name-field-destinatarios .field__label {
  font-weight: 700;
  margin: 0;
}

.rea-full-header__meta .field--name-field-etiquetas .field__label::after,
.rea-full-header__meta .field--name-field-destinatarios .field__label::after {
  content: ":";
}

.rea-full-header__meta .field--name-field-etiquetas .field__items,
.rea-full-header__meta .field--name-field-destinatarios .field__items {
  display: flex;
  flex-wrap: wrap;
}

.rea-full-header__meta .field--name-field-etiquetas .field__item:not(:last-child)::after,
.rea-full-header__meta .field--name-field-destinatarios .field__item:not(:last-child)::after {
  content: ",\00a0";
}

.rea-full-header__meta .field--name-field-etiquetas a,
.rea-full-header__meta .field--name-field-destinatarios a {
  color: inherit;
  text-decoration: none;
}

.rea-full-header__description {
  margin-bottom: 1.25rem;
  line-height: 1.5;
}

.rea-desc-toggle > summary {
  list-style: none;
  cursor: pointer;
}

.rea-desc-toggle > summary::-webkit-details-marker {
  display: none;
}

.rea-desc-toggle__more,
.rea-desc-toggle__less {
  display: inline-block;
  margin-top: 0.5rem;
  color: var(--anep-primary, #1363ff);
  font-weight: 600;
}

.rea-desc-toggle__less {
  display: none;
}

.rea-desc-toggle[open] > summary .rea-desc-toggle__teaser,
.rea-desc-toggle[open] > summary .rea-desc-toggle__more {
  display: none;
}

.rea-desc-toggle[open] > summary .rea-desc-toggle__less {
  display: inline-block;
}

.rea-desc-toggle__full {
  margin-top: 0;
}

.rea-keywords {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.25rem;
}

.rea-keywords__item {
  display: inline-block;
  padding: 0.35rem 0.85rem;
  border-radius: 0.375rem;
  background-color: #9DEFFF;
  font-family: "Roboto", sans-serif;
  font-weight: 500;
  font-size: 0.875rem;
  line-height: 1.3;
}

.rea-keywords__item a {
  color: inherit;
  font-family: inherit;
  font-weight: inherit;
  text-decoration: none;
}

.rea-exelearning-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.rea-exelearning-actions .btn {
  min-width: 10rem;
}

.rea-full-propositos > .field > .field__label,
.rea-full .field--name-field-creditos > .field__label,
.rea-full .curriculum-classification > h3,
.rea-full .curriculum-classification > .h3,
.rea-full .rea-ficha > h3,
.rea-full .rea-ficha > .h3,
.rea-full .related-resources > h3,
.rea-full .related-resources > .h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.rea-box {
  background-color: var(--anep-gray-100, #f8f9fa);
  border-radius: 0.5rem;
  padding: 1rem 1.25rem;
}

.rea-full .curriculum-classification .rea-box {
  overflow: hidden;
}

.rea-full .curriculum-classification .curriculum-classification-grid .field__label {
  font-weight: 700;
}

.rea-ficha .rea-box .field {
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--anep-gray-300, #dee2e6);
}

.rea-ficha .rea-box .field:last-child {
  border-bottom: 0;
  padding-bottom: 0.25rem;
}

.rea-ficha .rea-box .field:first-child {
  padding-top: 0.25rem;
}

.rea-ficha .field--label-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: baseline;
}

.rea-ficha .field__label {
  font-weight: 700;
  margin: 0;
}

.rea-ficha .field__label::after {
  content: ":";
}

.rea-files {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 1rem;
}

.rea-files__item {
  display: flex;
  align-items: center;
}

.rea-files__item a {
  text-decoration: none;
  font-weight: 600;
}

.rea-full-resource .field--name-field-recurso-externo {
  margin-top: 0.75rem;
}

.rea-full-resource .field--name-field-recurso-externo .field__item {
  justify-content: flex-start;
}
