/* Section: Post side (base) */

.post-side {
  margin: 0 0 var(--space-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);

  flex: 0 0 350px;
  width: 100%;
  max-width: 350px;
  min-width: 0;
}

@media (min-width: 769px) {
  .align-posts .post-side {
    margin-top: 100px;
    margin-left: var(--container-margin);
    align-self: flex-start;
  }
}

@media (max-width: 768px) {
  .align-posts .post-side {
    margin-top: var(--space-sm);
    margin-left: 0;
  }
}

/* Section: Post side (author card) */

.post-side-author {
  width: 100%;
  max-width: 100%;
  padding: 0;
  background: transparent;
}

.post-side-author:has(.about-author--vertical) {
  max-width: 100%;
}

.post-side-author #about-author {
  max-width: 720px;
}

/* Section: Post side (summary) */

.post-side-summary {
  width: 100%;
  margin-top: var(--space-md);
  margin-bottom: var(--space-md);
}

.post-side-summary__header {
  width: 100%;
  margin-bottom: var(--space-sm);
}

.post-side-summary__header-inner {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.post-side-summary__icon {
  flex-shrink: 0;
  display: flex;
  margin: 0;
}

.post-side-summary__icon img {
  width: auto;
  height: 36px;
  display: block;
  object-fit: contain;
  object-position: center center;
  transform-origin: center center;
  transition: transform var(--transition-fast);
}

.post-side-summary__header-inner:hover .post-side-summary__icon img {
  transform: rotate(-10deg);
}

.post-side-summary__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: var(--font-size-subtitle);
  line-height: 1.3;
  font-weight: 400;
  color: var(--dark);
  text-align: left;
}

.post-side-summary__excerpt {
  font-family: var(--font-base);
  font-size: var(--font-size-sm);
  line-height: 1.65;
  color: var(--dark);
  padding: var(--space-md);
  background: var(--beige);
}

.post-side-summary__excerpt p {
  margin: 0;
}

.post-side-summary__topics {
  list-style: none;
  margin: 0;
  padding: 0 var(--space-sm);
}

.post-side-summary:has(.post-side-summary__excerpt) .post-side-summary__topics {
  margin-top: var(--space-md);
}

.post-side-summary__topics li {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  column-gap: var(--space-md);
  align-items: start;
  margin: 0 0 var(--space-md);
  padding: 0 0 var(--space-sm);
  border-top: none;
  border-bottom: 2px dotted var(--dark);
  color: var(--dark);
}

.post-side-summary__topics li:last-child {
  margin-bottom: 0;
}

.post-side-summary__topic-number {
  grid-column: 1;
  grid-row: 1;
  font-family: var(--font-display);
  font-size: var(--font-size-display-sm);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.02em;
}

.post-side-summary__topic-body {
  grid-column: 2;
  grid-row: 1;
  min-width: 0;
}

.post-side-summary__topic-label {
  display: block;
  margin: 0;
  padding: 0;
  font-family: var(--font-display);
  font-size: var(--font-size-md);
  font-weight: 400;
  line-height: 1.25;
  text-decoration: none;
  color: var(--dark);
}

.post-side-summary__topic-summary {
  margin: var(--space-xs) 0 0;
  font-family: var(--font-base);
  font-size: var(--font-size-xs);
  line-height: 1.5;
  font-weight: 400;
  color: var(--dark);
}

.post-side-summary__topic-label:hover {
  opacity: 0.75;
}

.single-casas #content h2[id],
.single-celebracoes #content h2[id] {
  scroll-margin-top: calc(var(--space-xxl) + 30px);
}

/* Section: Post side (newsletter) */

.post-side-newsletter {
  width: 100%;
  padding: var(--space-md);
  background: var(--beige);
}

.post-side-newsletter__header {
  width: 100%;
  margin-bottom: var(--space-md);
}

.post-side-newsletter__header-inner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: var(--space-sm);
  row-gap: var(--space-xs);
  align-items: center;
}

.post-side-newsletter__icon {
  grid-column: 1;
  grid-row: 1;
  display: flex;
  margin: 0;
  align-self: center;
}

.post-side-newsletter__icon img {
  width: auto;
  height: 36px;
  display: block;
  object-fit: contain;
  object-position: center center;
  transform-origin: center center;
  transition: transform var(--transition-fast);
}

.post-side-newsletter__header-inner:hover .post-side-newsletter__icon img {
  transform: rotate(-10deg);
}

.post-side-newsletter__title-hand {
  grid-column: 2;
  grid-row: 1;
  margin: 0;
  font-family: var(--font-hand);
  font-size: var(--font-size-2xl);
  line-height: 1.1;
  font-weight: 400;
  color: var(--dark);
}

.post-side-newsletter__title-display {
  grid-column: 1 / -1;
  grid-row: 2;
  margin: 0;
  font-family: var(--font-display);
  font-size: var(--font-size-sm);
  line-height: 1.45;
  font-weight: 400;
  color: var(--dark);
}

.post-side-newsletter__form {
  width: 100%;
}

.post-side-newsletter__form .forminator-ui,
.post-side-newsletter__form .forminator-custom-form {
  margin: 0;
}

.post-side-newsletter__form .forminator-row {
  margin-bottom: var(--space-sm);
}

.post-side-newsletter__form .forminator-row:last-child {
  margin-bottom: 0;
}

.post-side-newsletter__form input[type="email"],
.post-side-newsletter__form input[type="text"] {
  width: 100%;
  font-family: var(--font-base);
  font-size: var(--font-size-xs);
}

.post-side-newsletter__form .forminator-button {
  width: 100%;
}

/* Section: Post side (widgets / ads) */

.post-side-widgets {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.post-side-widget {
  width: 100%;
}

.post-side-widget img {
  width: 100%;
  height: auto;
  display: block;
}

/* Section: Post side (tablet) */

@media (max-width: 1024px) {
  .post-side {
    margin: 0 0 var(--space-md);
  }

  .post-side-author {
    max-width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .post-side-summary__header-inner:hover .post-side-summary__icon img {
    transform: none;
  }

  .post-side-newsletter__header-inner:hover .post-side-newsletter__icon img {
    transform: none;
  }
}

/* Section: Post side (mobile) */

@media (max-width: 768px) {
  .post-side {
    margin: var(--space-sm) 0 var(--space-md);

    flex: 1 1 auto;
    width: 100%;
    max-width: 100%;
  }

  .post-side-author {
    max-width: 100%;
    margin-top: 0;
  }

  .post-side-summary__topic-label {
    font-size: var(--font-size-lg);
    line-height: 1.3;
  }
}
