/* 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 var(--sidebar-width);
  width: 100%;
  max-width: var(--sidebar-width);
  min-width: 0;
}

@media (min-width: 769px) {
  .align-posts .post-side {
    margin-top: 80px;
    margin-left: var(--sidebar-gap);
    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;
}

@media (min-width: 769px) {
  .post-side-summary__title {
    font-size: var(--font-size-2xl);
  }
}

.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;
}

/* Section: Post side (published date) */

.post-side-date {
  width: 100%;
  margin-top: var(--space-md);
  margin-bottom: var(--space-md);
  padding: 0;
  box-sizing: border-box;
}

.post-side-date__row {
  display: flex;
  align-items: center;
}

.post-side-date__icon {
  flex-shrink: 0;
  display: flex;
  margin: 0;
  padding-left: 10px;
}

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

.post-side-date__row:hover .post-side-date__icon img {
  transform: rotate(-10deg);
}

.post-side-date__content {
  flex: 1;
  min-width: 0;
  padding-left: 10px;
}

.post-side-date__label {
  margin: 0;
  font-family: var(--font-display);
  font-size: calc(var(--font-size-sm) + 3px);
  line-height: 1.35;
  font-weight: 400;
  color: var(--dark);
}

.post-side-date__value {
  display: block;
  margin: 0;
  font-family: var(--font-base);
  font-size: calc(var(--font-size-sm) + 3px);
  line-height: 1.5;
  font-weight: 400;
  color: var(--dark);
}

.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: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.post-side-newsletter__title-row {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: var(--space-sm);
}

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

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

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

.post-side-newsletter__title-hand {
  margin: 0;
  font-family: var(--font-hand);
  font-size: var(--font-size-2xl);
  line-height: 1.1;
  font-weight: 400;
  color: var(--dark);
  white-space: nowrap;
}

.post-side-newsletter__title-display {
  display: block;
  width: 100%;
  margin: 0;
  padding: 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;
  background: transparent;
}

.post-side-newsletter__form .forminator-field {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  margin: 0;
  background: transparent;
  padding: 0;
  box-sizing: border-box;
}

.post-side-newsletter__form .forminator-label {
  background: transparent;
}

.post-side-newsletter__form .forminator-input {
  width: 100%;
  padding: var(--space-sm);
  background: var(--white);
  box-sizing: border-box;
  box-shadow:
    inset 0 0 0 1px rgba(0, 0, 0, 0.035),
    0 1px 2px rgba(0, 0, 0, 0.03);
}

.post-side-newsletter__form .forminator-input input,
.post-side-newsletter__form input[type="text"],
.post-side-newsletter__form input[type="email"] {
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: var(--dark);
  font-family: var(--font-base);
  font-size: var(--font-size-xxs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.post-side-newsletter__form .forminator-button.forminator-button-submit {
  background: var(--beige) !important;
  background-image: none !important;
}

.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%;
}

.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 (min-width: 769px) and (max-width: 1024px) {
  .align-posts .post-side {
    margin-top: 56px;
  }

  .post-side-author .about-author-avatar img {
    width: 64px;
    height: 64px;
  }

  .post-side-summary__icon img {
    height: 28px;
  }

  .post-side-summary__title {
    font-size: var(--font-size-xl);
  }

  .post-side-summary__topics li {
    grid-template-columns: 36px minmax(0, 1fr);
    column-gap: var(--space-sm);
  }

  .post-side-summary__topic-number {
    font-size: var(--font-size-2xl);
  }

  .post-side-date__icon img {
    height: 36px;
  }

  .post-side-newsletter__icon img {
    height: 40px;
  }

  .post-side-newsletter__title-hand {
    font-size: var(--font-size-xl);
  }
}

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

  .post-side-newsletter__title-row:hover .post-side-newsletter__icon img {
    transform: none;
  }

  .post-side-date__row:hover .post-side-date__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;
  }
}
