.article-template > *:first-child:not(.article-template__hero-container) {
  margin-top: 5rem;
}

.article-template__hero-container {
  max-width: 130rem;
  margin: 0 auto;
}

@media screen and (min-width: 1320px) {
  .article-template__hero-container:first-child {
    margin-top: 5rem;
  }
}

.article-template__hero-medium {
  height: 15.6rem;
}

.article-template__hero-large {
  height: 19rem;
}

@media screen and (min-width: 750px) and (max-width: 989px) {
  .article-template__hero-medium {
    height: 34.9rem;
  }

  .article-template__hero-large {
    height: 42.3rem;
  }
}

@media screen and (min-width: 990px) {
  .article-template__hero-medium {
    height: 54.5rem;
  }

  .article-template__hero-large {
    height: 66rem;
  }
}

.article-template header {
  margin-top: 4.4rem;
  margin-bottom: 2rem;
  line-height: 0.8;
}

@media screen and (min-width: 750px) {
  .article-template header {
    margin-top: 5rem;
  }
}

.article-template__title {
  margin: 0;
}

.article-template__title:not(:only-child) {
  margin-bottom: 1rem;
}

.article-template__link {
  font-size: 1.8rem;
  display: flex;
  justify-content: center;
  align-items: center;
  text-decoration: none;
}

.article-template__link .icon-wrap {
  margin-right: 1rem;
  transform: rotate(180deg);
}

.article-template__content {
  margin-top: 3rem;
  margin-bottom: 3rem;
}

.article-template__social-sharing {
  margin-top: 3rem;
}

.article-template__social-sharing + header, .article-template__social-sharing + .article-template__content {
  margin-top: 1.5rem;
}

.article-template__comment-wrapper {
  margin-top: 5rem;
}

@media screen and (min-width: 750px) {
  .article-template__comment-wrapper {
    margin-top: 6rem;
  }
}

.article-template__comment-wrapper h2 {
  margin-top: 0;
}

.article-template__comments {
  margin-bottom: 5rem;
}

@media screen and (min-width: 750px) {
  .article-template__comments {
    margin-bottom: 7rem;
  }
}

.article-template__comments-fields {
  margin-bottom: 4rem;
}

.article-template__comments-comment {
  color: rgba(var(--color-foreground), 0.75);
  background-color: rgb(var(--color-background));
  margin-bottom: 1.5rem;
  padding: 2rem 2rem 1.5rem;
}

@media screen and (min-width: 750px) {
  .article-template__comments-comment {
    padding: 2rem 2.5rem;
  }
}

.article-template__comments-comment p {
  margin: 0 0 1rem;
}

.article-template__comment-fields > * {
  margin-bottom: 3rem;
}

@media screen and (min-width: 750px) {
  .article-template__comment-fields {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-column-gap: 4rem;
  }
}

.article-template__comment-warning {
  margin: 2rem 0 2.5rem;
}

@media screen and (min-width: 990px) {
  .article-template__comments .pagination-wrapper {
    margin: 5rem 0 8rem;
  }
}

/* Button - social share */

.share-button {
  display: block;
  position: relative;
}

.share-button details {
  width: fit-content;
}

.share-button__button {
  font-size: 1.4rem;
  display: flex;
  min-height: 2.4rem;
  align-items: center;
  color: rgba(var(--color-link), var(--alpha-link));
  margin-left: 0;
  padding-left: 0;
}

.share-button__button:hover,
details[open] > .share-button__button {
  color: rgb(var(--color-link));
}

details[open] > .share-button__fallback {
  animation: animateMenuOpen var(--duration-default) ease;
}

.share-button__button:hover {
  text-decoration: underline;
  text-underline-offset: 0.3rem;
}

.share-button__button,
.share-button__fallback button {
  cursor: pointer;
  background-color: transparent;
  border: none;
}

.share-button__button .icon-share {
  margin-right: 1rem;
}

.share-button__fallback {
  background: rgb(var(--color-background));
  display: flex;
  align-items: center;
  position: absolute;
  top: 3rem;
  left: 0.1rem;
  z-index: 6;
  width: 100%;
  min-width: 31rem;
  box-shadow: 0 0 0 0.1rem rgba(var(--color-foreground), 0.55);
  

}

.share-button__fallback button {
  width: 4.4rem;
  height: 4.4rem;
  padding: 0;
  flex-shrink: 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

.share-button__fallback button:hover {
  color: rgba(var(--color-foreground), 0.75);
}

.share-button__fallback button:hover svg {
  transform: scale(1.07);
}

.share-button__close:not(.hidden) + .share-button__copy {
  display: none;
}

.share-button__close,
.share-button__copy {
  background-color: transparent;
  color: rgb(var(--color-foreground));
}

.share-button__fallback .field__input {
  box-shadow: none;
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
}

.share-button__fallback .icon {
  width: 1.5rem;
  height: 1.5rem;
}

.share-button__message:not(:empty) {
  display: flex;
  align-items: center;
  width: 100%;
  height: 100%;
  margin-top: 0;
  padding: 0.8rem 0 0.8rem 1.5rem;
}

.share-button__message:not(:empty):not(.hidden) ~ * {
  display: none;
}

/* arrow animation */

.animate-arrow .icon-wrap .icon-arrow{
  transform: translateX(-0.25rem);
  transition: transform var(--duration-short) ease;
}

.animate-arrow .icon-wrap .icon-arrow:hover{
  transform: translateX(-0.05rem);
}


/* Article sidebar CTA + recent posts */
.article-template__layout{
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.4rem;
  align-items: start;
  padding-bottom: 2rem;
}
.article-template__aside{
  order: 2;
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
}
.article-template__cta-card,
.article-template__recent-card{
  background: #fff;
  border: 1px solid rgba(1, 41, 103, 0.1);
  border-radius: 1.6rem;
  padding: 1.8rem 1.6rem;
  box-sizing: border-box;
}
.article-template__cta-list{
  list-style: none;
  margin: 0 0 1.6rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.article-template__cta-list li{
  display: grid;
  grid-template-columns: 1.8rem minmax(0, 1fr);
  column-gap: 0.9rem;
  align-items: start;
  color: #012967;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.45;
}
.article-template__cta-check{
  width: 1.8rem;
  height: 1.8rem;
  margin-top: 0.1rem;
  border-radius: 0.4rem;
  background: #06C755;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.article-template__cta-check svg{
  width: 1.1rem;
  height: 1.1rem;
  display: block;
}
.article-template__line-btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  width: 100%;
  background-color: #06C755;
  color: #fff;
  text-decoration: none;
  border: 0 !important;
  box-shadow: none !important;
  outline: none;
  min-height: 4.8rem;
  padding: 0.9rem 1.2rem;
  font-size: 1.7rem;
  font-weight: 700;
  letter-spacing: 0.03rem;
  line-height: 1.2;
  box-sizing: border-box;
  border-radius: 4rem;
}
.article-template__line-btn:hover,
.article-template__line-btn:focus{
  background-color: #05b34c;
  color: #fff;
}
.article-template__line-btn .article-template__line-icon{
  width: 3.2rem;
  height: 3.2rem;
  display: block;
  flex-shrink: 0;
}
.article-template__line-btn span{
  white-space: nowrap;
}
.article-template__recent-title{
  margin: 0 0 1.2rem;
  color: #012967;
  font-size: 1.8rem;
  font-weight: 700;
  line-height: 1.3;
}
.article-template__recent-list{
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}
.article-template__recent-list li + li{
  border-top: 1px solid rgba(1, 41, 103, 0.08);
}
.article-template__recent-list a{
  display: block;
  padding: 1.1rem 0;
  color: #012967;
  text-decoration: none;
  font-size: 1.45rem;
  font-weight: 600;
  line-height: 1.45;
}
.article-template__recent-list a:hover{
  color: #06C755;
}
.article-template__recent-list li:first-child a{
  padding-top: 0;
}
.article-template__recent-list li:last-child a{
  padding-bottom: 0;
}
.article-template__recent-date{
  display: block;
  margin-top: 0.35rem;
  color: rgba(1, 41, 103, 0.55);
  font-size: 1.2rem;
  font-weight: 500;
}
.article-template__main .article-template__title,
.article-template__main .article-template__social-sharing,
.article-template__main .article-template__content{
  max-width: none;
  width: 100%;
}
@media screen and (min-width: 990px){
  .article-template__layout{
    grid-template-columns: minmax(0, 1fr) 34rem;
    gap: 3.2rem;
    padding-top: 1rem;
  }
  .article-template__aside{
    order: 0;
    position: sticky;
    top: 10rem;
  }
}
