.blog-page {
  min-height: 70vh;
  overflow: hidden;
  background:
    radial-gradient(circle at 92% 43rem, rgba(143, 35, 44, 0.045), transparent 24rem),
    #fffdfb;
  color: #303135;
}

.blog-preview-bar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: .75rem 1rem;
  color: #fff;
  background: #2f0910;
  box-shadow: 0 .45rem 1.4rem rgba(31, 3, 8, .22);
}

.blog-preview-bar span { color: #ead4d6; font-size: .82rem; }
.blog-preview-bar a { color: #fff; font-size: .8rem; font-weight: 800; text-underline-offset: .2rem; }

@media (max-width: 41.9375rem) {
  .blog-preview-bar { align-items: flex-start; flex-direction: column; gap: .25rem; }
}

.blog-shell {
  width: min(100% - 2.5rem, 77rem);
  margin: 0 auto;
}

.blog-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(4.5rem, 7vw, 6.5rem) 0;
  color: #fffafa;
  background:
    radial-gradient(circle at 74% 30%, rgba(255, 227, 229, 0.13), transparent 19rem),
    linear-gradient(118deg, #5c171f 0%, #97141f 56%, #5d1118 100%);
}

.blog-hero::before,
.blog-hero::after {
  position: absolute;
  border: 1px solid rgba(255, 241, 242, 0.16);
  border-radius: 50%;
  content: "";
}

.blog-hero::before {
  top: -17rem;
  right: -10rem;
  width: 38rem;
  height: 38rem;
}

.blog-hero::after {
  right: 15%;
  bottom: -18rem;
  width: 29rem;
  height: 29rem;
}

.blog-hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  align-items: end;
  gap: 3rem;
}

.blog-hero__content {
  max-width: 48rem;
}

.blog-eyebrow {
  margin: 0 0 0.8rem;
  color: #9d252d;
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.19em;
  text-transform: uppercase;
}

.blog-hero .blog-eyebrow,
.blog-article__header .blog-eyebrow {
  color: #f6cfd1;
}

.blog-hero h1,
.blog-article__header h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.85rem, 6vw, 5.35rem);
  font-weight: 400;
  letter-spacing: -0.065em;
  line-height: 0.98;
}

.blog-hero__signature {
  display: none;
  align-content: end;
  min-height: 16.5rem;
  border-left: 1px solid rgba(255, 239, 240, 0.35);
  padding: 1rem 0 0 2rem;
}

.blog-hero__signature span {
  color: #f7d3d5;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.blog-hero__signature strong {
  display: block;
  margin-top: 0.75rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.75rem, 2.6vw, 2.4rem);
  font-weight: 400;
  letter-spacing: -0.055em;
  line-height: 1.05;
}

.blog-hero__signature i {
  display: block;
  margin-top: 2.25rem;
  color: #edbbbf;
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 800;
  letter-spacing: 0.13em;
}

.blog-topics {
  position: relative;
  z-index: 1;
  padding-top: clamp(3.6rem, 7vw, 6.4rem);
}

.blog-topics__heading,
.blog-archive__heading,
.blog-featured__heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1.5rem;
}

.blog-topics__heading {
  margin-bottom: 1.75rem;
}

.blog-topics__heading h2,
.blog-archive__heading h2 {
  max-width: 40rem;
  margin: 0;
  color: #292a2e;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 3.8vw, 3.25rem);
  font-weight: 400;
  letter-spacing: -0.055em;
  line-height: 1.04;
}

.blog-topics__description {
  max-width: 38rem;
  margin: 1rem 0 0;
  color: #6d696e;
  font-size: 0.96rem;
  line-height: 1.65;
}

.blog-topics__grid {
  display: grid;
  gap: 0.9rem;
}

.blog-topic {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.9rem;
  min-height: 5.7rem;
  overflow: hidden;
  border: 1px solid #eadbdd;
  border-radius: 0.9rem;
  padding: 1.15rem;
  background: #fff;
  color: #2f3034;
  box-shadow: 0 0.8rem 1.9rem rgba(69, 23, 27, 0.055);
  text-decoration: none;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.blog-topic::after {
  position: absolute;
  right: -1.25rem;
  bottom: -2rem;
  width: 5.5rem;
  height: 5.5rem;
  border: 1px solid rgba(125, 30, 38, 0.09);
  border-radius: 50%;
  content: "";
}

.blog-topic:hover,
.blog-topic:focus-visible {
  border-color: #cf979b;
  box-shadow: 0 1.15rem 2.4rem rgba(69, 23, 27, 0.11);
  outline: none;
  transform: translateY(-0.23rem);
}

.blog-topic.is-active {
  border-color: #7b1c25;
  background: #741b23;
  color: #fffafa;
  box-shadow: 0 1.1rem 2.3rem rgba(94, 17, 24, 0.22);
}

.blog-topic__number {
  display: grid;
  width: 2.05rem;
  height: 2.05rem;
  place-items: center;
  border-radius: 50%;
  background: #f6e9e9;
  color: #8d2029;
  font-size: 0.67rem;
  font-weight: 850;
  letter-spacing: 0.05em;
}

.blog-topic.is-active .blog-topic__number {
  background: rgba(255, 255, 255, 0.14);
  color: #fffafa;
}

.blog-topic__content {
  min-width: 0;
}

.blog-topic__content strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.16rem;
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 1.1;
}

.blog-topic__count {
  position: relative;
  z-index: 1;
  min-width: 1.85rem;
  color: #8d2029;
  font-size: 0.73rem;
  font-weight: 850;
  text-align: center;
}

.blog-topic__count::after {
  display: block;
  width: 1.15rem;
  height: 1px;
  margin: 0.38rem auto 0;
  background: #d6acad;
  content: "";
}

.blog-topic.is-active .blog-topic__count {
  color: #fffafa;
}

.blog-topic.is-active .blog-topic__count::after {
  background: rgba(255, 255, 255, 0.52);
}

.blog-featured {
  position: relative;
  margin-top: clamp(3.5rem, 7vw, 6.5rem);
  border-radius: 1.25rem;
  padding: clamp(1.35rem, 3vw, 2.2rem);
  background: #721a22;
  box-shadow: 0 1.45rem 3.4rem rgba(82, 18, 24, 0.17);
}

.blog-featured__heading {
  margin: 0 0 1.15rem;
}

.blog-featured__heading .blog-eyebrow {
  margin: 0;
  color: #f5cfd2;
}

.blog-featured-card {
  display: grid;
  overflow: hidden;
  border-radius: 0.85rem;
  background: #fffdfb;
}

.blog-featured-card__image,
.blog-card__image-link {
  position: relative;
  display: block;
  overflow: hidden;
  background: #3f0c12;
}

.blog-featured-card__image::after,
.blog-card__image-link::after {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  display: grid;
  width: 2.35rem;
  height: 2.35rem;
  place-items: center;
  border-radius: 50%;
  background: #fffafa;
  color: #751b23;
  content: "↗";
  font-size: 1.1rem;
  opacity: 0;
  transform: translateY(0.35rem);
  transition: opacity 180ms ease, transform 180ms ease;
}

.blog-featured-card:hover .blog-featured-card__image::after,
.blog-card:hover .blog-card__image-link::after,
.blog-featured-card:focus-within .blog-featured-card__image::after,
.blog-card:focus-within .blog-card__image-link::after {
  opacity: 1;
  transform: translateY(0);
}

.blog-featured-card__image img,
.blog-card__image-link img,
.blog-article__image img {
  display: block;
  width: 100%;
  object-fit: cover;
}

.blog-featured-card__image img {
  aspect-ratio: 16 / 10;
}

.blog-featured-card__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(1.5rem, 3.5vw, 3rem);
}

.blog-featured-card h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.75rem, 3vw, 2.75rem);
  font-weight: 400;
  letter-spacing: -0.055em;
  line-height: 1.04;
}

.blog-featured-card h2 a,
.blog-card h3 a {
  color: #292a2e;
  text-decoration: none;
  transition: color 160ms ease;
}

.blog-featured-card h2 a:hover,
.blog-featured-card h2 a:focus-visible,
.blog-card h3 a:hover,
.blog-card h3 a:focus-visible {
  color: #861e27;
}

.blog-featured-card__link {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  align-self: flex-start;
  margin-top: 1.5rem;
  border-bottom: 1px solid #9c2830;
  padding-bottom: 0.38rem;
  color: #7a1d25;
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.06em;
  text-decoration: none;
  text-transform: uppercase;
}

.blog-featured-card__link span,
.blog-card__link span {
  font-size: 1.1rem;
  line-height: 0.7;
  transition: transform 160ms ease;
}

.blog-featured-card__link:hover span,
.blog-featured-card__link:focus-visible span,
.blog-card__link:hover span,
.blog-card__link:focus-visible span {
  transform: translateX(0.2rem);
}

.blog-archive {
  padding: clamp(4.5rem, 8vw, 7rem) 0 clamp(6rem, 10vw, 9rem);
}

.blog-archive__heading {
  margin-bottom: 2.2rem;
}

.blog-archive__heading > p {
  margin: 0 0 0.15rem;
  color: #777278;
  font-size: 0.78rem;
  font-weight: 750;
}

.blog-grid {
  display: grid;
  gap: 1rem;
}

.blog-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #eadfe0;
  border-radius: 0.9rem;
  background: #fff;
  box-shadow: 0 0.7rem 1.8rem rgba(66, 24, 27, 0.055);
  transition: box-shadow 180ms ease, transform 180ms ease;
}

.blog-card:hover,
.blog-card:focus-within {
  box-shadow: 0 1.2rem 2.7rem rgba(66, 24, 27, 0.12);
  transform: translateY(-0.25rem);
}

.blog-card__image-link img {
  height: 100%;
  transition: transform 280ms ease;
}

.blog-card__image-link {
  height: clamp(7.6rem, 12vw, 9.25rem);
}

.blog-card:hover .blog-card__image-link img,
.blog-card:focus-within .blog-card__image-link img {
  transform: scale(1.04);
}

.blog-card__content {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-height: 7.5rem;
  padding: .85rem 1rem .95rem;
}

.blog-card h3 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.18rem;
  font-weight: 400;
  letter-spacing: -0.045em;
  line-height: 1.1;
}

.blog-card__link,
.blog-back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: #861e27;
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0.06em;
  text-decoration: none;
  text-transform: uppercase;
}

.blog-card__link {
  margin-top: auto;
  padding-top: .75rem;
}

.blog-card__link:hover,
.blog-card__link:focus-visible,
.blog-back-link:hover,
.blog-back-link:focus-visible {
  color: #4c1016;
  outline: none;
}

.blog-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 3rem;
  border-top: 1px solid #e8dcde;
  padding-top: 1.5rem;
  color: #777278;
  font-size: 0.82rem;
}

.blog-pagination a {
  color: #861e27;
  font-weight: 850;
  text-decoration: none;
}

.blog-empty {
  border: 1px solid #eadfe0;
  border-radius: 0.85rem;
  padding: 1.5rem;
  color: #66656a;
  background: #fff;
}

.blog-article {
  padding-bottom: 7rem;
  background:
    linear-gradient(#5d1219 0 30rem, #fffdfb 30rem 100%);
}

.blog-article__header {
  padding-top: clamp(3.75rem, 7vw, 6.25rem);
  color: #fffafa;
}

.blog-article__header h1 {
  max-width: 59rem;
}

.blog-back-link {
  margin-bottom: 2.45rem;
  color: #fffafa;
}

.blog-article__header time {
  display: block;
  margin-top: 1.5rem;
  color: #f0d7d8;
  font-size: 0.8rem;
  font-weight: 750;
}

.blog-article__image {
  width: min(100% - 2.5rem, 52rem);
  margin-top: 3.25rem;
}

.blog-article__image img {
  height: auto;
  max-height: none;
  border: 1px solid rgba(255, 231, 232, 0.8);
  border-radius: 1rem;
  object-fit: contain;
  box-shadow: 0 1.5rem 3rem rgba(50, 8, 12, 0.22);
}

.blog-prose {
  max-width: 51rem;
  padding-top: clamp(3rem, 6vw, 4.5rem);
  color: #3f4044;
  font-size: 1.04rem;
  line-height: 1.78;
}

.blog-prose > :first-child {
  margin-top: 0;
}

.blog-prose h2,
.blog-prose h3,
.blog-prose h4 {
  margin: 2.3rem 0 0.9rem;
  color: #2c2d30;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 1.15;
}

.blog-prose h2 { font-size: clamp(1.85rem, 3.2vw, 2.5rem); }
.blog-prose h3 { font-size: clamp(1.5rem, 2.7vw, 2rem); }
.blog-prose h4 { font-size: 1.35rem; }

.blog-prose p,
.blog-prose ul,
.blog-prose ol {
  margin: 1.15rem 0;
}

.blog-prose a {
  color: #861e27;
  text-underline-offset: 0.18rem;
}

.blog-prose li + li { margin-top: 0.45rem; }

.blog-prose blockquote {
  margin: 1.8rem 0;
  border-left: 3px solid #9c2830;
  padding: 0.25rem 0 0.25rem 1.25rem;
  color: #5b585d;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.2rem;
}

.blog-prose #ez-toc-container {
  margin: 0 0 2rem;
  border: 1px solid #e7d9da;
  border-radius: 0.75rem;
  padding: 1.1rem 1.25rem;
  background: #fff;
  font-size: 0.92rem;
}

.blog-prose #ez-toc-container ul {
  margin: 0.65rem 0 0;
}

@media (min-width: 42rem) {
  .blog-shell { width: min(100% - 4rem, 77rem); }
  .blog-topics__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .blog-featured-card { grid-template-columns: minmax(0, 0.96fr) minmax(0, 1.04fr); }
  .blog-featured-card__image img { height: 100%; }
  .blog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .blog-card__content { padding: .9rem 1rem 1rem; }
}

@media (min-width: 72rem) {
  .blog-hero__grid { grid-template-columns: minmax(0, 1fr) 16rem; }
  .blog-hero__signature { display: grid; }
  .blog-topics__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .blog-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .blog-article { background: linear-gradient(#5d1219 0 35rem, #fffdfb 35rem 100%); }
}

@media (max-width: 41.9375rem) {
  .blog-topics__heading,
  .blog-archive__heading,
  .blog-featured__heading {
    align-items: start;
    flex-direction: column;
  }

  .blog-pagination { align-items: start; flex-direction: column; }
}

.blog-search-divider { display: flex; align-items: center; gap: 1rem; margin: clamp(2.8rem, 5vw, 4rem) 0 1.1rem; color: #8b7073; font-size: 0.67rem; font-weight: 850; letter-spacing: 0.13em; text-transform: uppercase; }
.blog-search-divider::before, .blog-search-divider::after { flex: 1; height: 1px; background: #e5d8d9; content: ""; }
.blog-search { display: grid; gap: 1.2rem; border: 1px solid #e8d9da; border-radius: 0.9rem; padding: clamp(1.15rem, 3vw, 1.7rem); background: #fff; box-shadow: 0 0.9rem 2.2rem rgba(69, 23, 27, 0.05); }
.blog-search__copy label { display: block; color: #8d2029; font-size: 0.73rem; font-weight: 850; letter-spacing: 0.11em; text-transform: uppercase; }
.blog-search__copy p { margin: 0.5rem 0 0; color: #716d72; font-size: 0.88rem; line-height: 1.5; }
.blog-search__row { display: flex; gap: 0.65rem; }
.blog-search input { width: 100%; min-height: 3.25rem; border: 1px solid #d9cacc; border-radius: 0.55rem; padding: 0 1rem; color: #2d2e32; font: inherit; background: #fffdfa; }
.blog-search input:focus { border-color: #8d2029; outline: 2px solid rgba(141, 32, 41, 0.15); outline-offset: 2px; }
.blog-search button { min-height: 3.25rem; border: 1px solid #751c24; border-radius: 0.55rem; padding: 0 1.15rem; color: #fffafa; font: inherit; font-weight: 800; cursor: pointer; background: #751c24; }
.blog-search button:hover { background: #9d252d; }

@media (min-width: 52rem) {
  .blog-search { grid-template-columns: minmax(16rem, 0.8fr) minmax(22rem, 1.2fr); align-items: end; }
}

@media (max-width: 34rem) {
  .blog-search__row { display: grid; }
}

/* Listagem do blog: acesso imediato aos artigos e temas laterais. */
.blog-library {
  padding: clamp(2rem, 4vw, 3.75rem) 0 clamp(4.5rem, 8vw, 7rem);
}

.blog-library__layout {
  display: grid;
  gap: 1.5rem;
  align-items: start;
}

.blog-library__sidebar {
  overflow: hidden;
  border-radius: 1rem;
  background:
    linear-gradient(150deg, rgba(104, 22, 31, 0.93), rgba(167, 15, 27, 0.82) 66%, rgba(80, 10, 19, 0.92)),
    url("../images/outros/DSC00395.780fad9c92e9.webp") center / cover no-repeat;
  box-shadow: 0 1.1rem 2.6rem rgba(70, 15, 21, 0.16);
}

.blog-library__sidebar-header {
  padding: 1.7rem 1.5rem 1.45rem;
  color: #fffafa;
}

.blog-library__sidebar-header .blog-eyebrow {
  color: #f3c9cc;
}

.blog-library__sidebar-header h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 5vw, 2.8rem);
  font-weight: 400;
  letter-spacing: -0.06em;
  line-height: 1.02;
}

.blog-library__sidebar-header > p:last-child {
  margin: 1rem 0 0;
  color: #f2d7d9;
  font-size: 0.9rem;
  line-height: 1.55;
}

.blog-library__topics {
  display: grid;
  gap: 0.3rem;
  border-top: 1px solid rgba(255, 231, 232, 0.2);
  padding: 0.75rem;
}

.blog-library__topic {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 3.25rem;
  border: 1px solid transparent;
  border-radius: 0.55rem;
  padding: 0.7rem 0.8rem;
  color: #f8e5e6;
  font-size: 0.88rem;
  font-weight: 650;
  line-height: 1.25;
  text-decoration: none;
  transition: background-color 170ms ease, border-color 170ms ease, color 170ms ease, transform 170ms ease;
}

.blog-library__topic span { min-width: 0; }

.blog-library__topic small {
  display: grid;
  width: 1.75rem;
  height: 1.75rem;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(255, 240, 241, 0.25);
  border-radius: 50%;
  color: #f5d4d6;
  font-size: 0.68rem;
  font-weight: 850;
}

.blog-library__topic:hover,
.blog-library__topic:focus-visible {
  border-color: rgba(255, 242, 243, 0.32);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  outline: none;
  transform: translateX(0.2rem);
}

.blog-library__topic.is-active {
  border-color: #fffafa;
  background: #fffafa;
  color: #751b23;
}

.blog-library__topic.is-active small {
  border-color: rgba(117, 27, 35, 0.25);
  color: #751b23;
}

.blog-library__content {
  min-width: 0;
}

.blog-library__toolbar {
  display: grid;
  gap: 1.25rem;
  margin-bottom: 1.7rem;
  border-bottom: 1px solid #e8dcde;
  padding-bottom: 1.5rem;
}

.blog-library__toolbar .blog-eyebrow {
  margin-bottom: 0.65rem;
}

.blog-library__toolbar h2 {
  margin: 0;
  color: #292a2e;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4vw, 3.15rem);
  font-weight: 400;
  letter-spacing: -0.06em;
  line-height: 1.02;
}

.blog-library__toolbar > div > p:last-child {
  margin: 0.7rem 0 0;
  color: #79747a;
  font-size: 0.8rem;
  font-weight: 700;
}

.blog-library__search label {
  display: block;
  margin-bottom: 0.55rem;
  color: #83202a;
  font-size: 0.7rem;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.blog-library__search > div {
  display: flex;
  gap: 0.55rem;
}

.blog-library__search input {
  width: 100%;
  min-height: 3.15rem;
  border: 1px solid #d9cacc;
  border-radius: 0.5rem;
  padding: 0 0.9rem;
  color: #2d2e32;
  font: inherit;
  background: #fff;
}

.blog-library__search input:focus {
  border-color: #8d2029;
  outline: 2px solid rgba(141, 32, 41, 0.15);
  outline-offset: 2px;
}

.blog-library__search button {
  min-height: 3.15rem;
  border: 1px solid #751c24;
  border-radius: 0.5rem;
  padding: 0 1rem;
  color: #fffafa;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 800;
  cursor: pointer;
  background: #751c24;
  transition: background-color 170ms ease, transform 170ms ease;
}

.blog-library__search button:hover,
.blog-library__search button:focus-visible {
  background: #9d252d;
  outline: none;
  transform: translateY(-1px);
}

.blog-library__empty {
  border: 1px solid #eadfe0;
  border-radius: 0.8rem;
  padding: 1.5rem;
  color: #66656a;
  background: #fff;
}

@media (min-width: 52rem) {
  .blog-library__toolbar {
    grid-template-columns: minmax(0, 1fr) minmax(19rem, 0.9fr);
    align-items: end;
  }
}

@media (min-width: 64rem) {
  .blog-library__layout {
    grid-template-columns: minmax(15.5rem, 17.25rem) minmax(0, 1fr);
    gap: clamp(2rem, 4vw, 4rem);
  }

  .blog-library__sidebar {
    position: sticky;
    top: 7rem;
  }
}

@media (max-width: 34rem) {
  .blog-library__search > div { display: grid; }
}

/* Imported articles and long titles must remain readable at any width. */
.blog-article__header {
  padding-bottom: 0.25rem;
  background: #5d1219;
  box-shadow: 0 0 0 100vmax #5d1219;
  clip-path: inset(0 -100vmax);
}

.blog-article__header h1,
.blog-prose,
.blog-prose h2,
.blog-prose h3,
.blog-prose h4,
.blog-prose p,
.blog-prose li,
.blog-prose a {
  overflow-wrap: anywhere;
  hyphens: auto;
}

.blog-prose img,
.blog-prose video,
.blog-prose iframe,
.blog-prose embed,
.blog-prose object {
  display: block;
  max-width: 100%;
  height: auto;
}

.blog-prose iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
}

.blog-prose table,
.blog-prose pre {
  display: block;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

@media (max-width: 22rem) {
  .blog-article__header h1 {
    font-size: clamp(2.15rem, 12vw, 2.8rem);
  }

  .blog-shell {
    width: min(100% - 1.25rem, 77rem);
  }
}

/* Camada editorial: destaque, autoria, sumário e continuidade de leitura. */
.blog-library .blog-featured { margin-top: 1.5rem; }
.blog-featured-card__content > p { margin: 1rem 0 0; color: #696166; line-height: 1.6; }
.blog-article__summary { max-width: 48rem; margin: 1.25rem 0 0; color: #ecd7d9; font-size: clamp(1rem, 1.7vw, 1.17rem); line-height: 1.65; }
.blog-article__meta { display: flex; flex-wrap: wrap; gap: .65rem 1.35rem; margin-top: 1.5rem; color: #efdadd; font-size: .76rem; }
.blog-article__meta span, .blog-article__meta time { display: flex; gap: .35rem; }
.blog-article__meta strong { color: #fff; font-weight: 800; }
.blog-article__body { display: grid; grid-template-columns: minmax(12rem, .3fr) minmax(0, 1fr); align-items: start; gap: clamp(2rem, 5vw, 4rem); max-width: 66rem; padding-top: clamp(3rem, 6vw, 4.5rem); }
.blog-article__body .blog-prose { max-width: 51rem; padding-top: 0; }
.blog-toc { position: sticky; top: 7rem; border-left: 2px solid #9c2830; padding-left: 1rem; }
.blog-toc strong { color: #67171e; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; }
.blog-toc ol { display: grid; gap: .65rem; margin: .85rem 0 0; padding: 0; counter-reset: toc; list-style: none; }
.blog-toc li { display: grid; grid-template-columns: auto 1fr; gap: .5rem; color: #756c6e; font-size: .78rem; line-height: 1.42; }
.blog-toc li::before { color: #aa777b; content: counter(toc, decimal-leading-zero); counter-increment: toc; font-size: .65rem; font-weight: 850; }
.blog-toc a { color: inherit; text-decoration: none; }
.blog-toc a:hover { color: #851d26; text-decoration: underline; text-underline-offset: .18rem; }
.blog-prose h2 { scroll-margin-top: 7rem; }
.blog-authority { display: grid; grid-template-columns: .8fr 1.4fr auto; align-items: center; gap: 1.5rem; max-width: 66rem; margin-top: 4rem; border: 1px solid #e1cfcd; border-radius: .85rem; padding: 1.25rem; background: #f8efea; }
.blog-authority div { display: grid; gap: .35rem; }
.blog-authority div span { color: #9a202a; font-size: .66rem; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.blog-authority div strong { color: #56141a; font-family: Georgia, "Times New Roman", serif; font-size: 1.18rem; font-weight: 400; }
.blog-authority p { margin: 0; color: #6d6466; font-size: .78rem; line-height: 1.55; }
.blog-authority > a { border: 1px solid #871b25; padding: .75rem .9rem; color: #781821; font-size: .76rem; font-weight: 850; text-decoration: none; white-space: nowrap; }
.blog-related { padding: clamp(4rem, 8vw, 7rem) 0; border-top: 1px solid #eadfdd; background: #f8f3ef; }
.blog-related header { margin-bottom: 1.5rem; }
.blog-related h2 { margin: 0; color: #56141a; font-family: Georgia, "Times New Roman", serif; font-size: clamp(2.2rem, 4vw, 3.7rem); font-weight: 400; letter-spacing: -.055em; }

@media (max-width: 58rem) {
  .blog-article__body { grid-template-columns: 1fr; }
  .blog-toc { position: static; border: 1px solid #e4d4d2; border-left: 2px solid #9c2830; border-radius: .5rem; padding: 1rem; background: #fff; }
  .blog-authority { grid-template-columns: 1fr; align-items: start; }
  .blog-authority > a { justify-self: start; }
}

/* Entrada das páginas de conteúdo sem deslocar a estrutura. */
@media (prefers-reduced-motion: no-preference) {
  html.js .blog-library.is-revealed {
    animation: none;
  }

  html.js .blog-library__sidebar,
  html.js .blog-library__content {
    opacity: 0;
    animation: blog-page-enter 720ms cubic-bezier(0.16, 1, 0.3, 1) both;
  }

  html.js .blog-library__sidebar {
    animation-name: blog-sidebar-enter;
    animation-delay: 80ms;
  }

  html.js .blog-library__content {
    animation-delay: 180ms;
  }

  html.js .blog-article__header > * {
    opacity: 0;
    animation: blog-page-enter 680ms cubic-bezier(0.16, 1, 0.3, 1) both;
  }

  html.js .blog-article__header > :nth-child(1) { animation-delay: 70ms; }
  html.js .blog-article__header > :nth-child(2) { animation-delay: 130ms; }
  html.js .blog-article__header > :nth-child(3) { animation-delay: 200ms; }
  html.js .blog-article__header > :nth-child(4) { animation-delay: 280ms; }
  html.js .blog-article__header > :nth-child(5) { animation-delay: 350ms; }

  html.js .blog-article__image {
    opacity: 0;
    animation: blog-image-enter 820ms 340ms cubic-bezier(0.16, 1, 0.3, 1) both;
  }
}

@keyframes blog-page-enter {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes blog-sidebar-enter {
  from { opacity: 0; transform: translateX(-12px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes blog-image-enter {
  from { opacity: 0; filter: blur(3px); transform: translateY(10px) scale(0.992); }
  to { opacity: 1; filter: blur(0); transform: translateY(0) scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  html.js .blog-library,
  html.js .blog-library__sidebar,
  html.js .blog-library__content,
  html.js .blog-article__header > *,
  html.js .blog-article__image {
    opacity: 1;
    filter: none;
    animation: none;
    transform: none;
  }
}
