.article-not-found-wrap {
  max-width: 720px;
}

.article-back-link {
  margin-bottom: 2rem;
  display: inline-flex;
}

.article-fallback-title {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  font-weight: 600;
  color: var(--navy);
  margin: 1.25rem 0 1rem;
  line-height: 1.2;
}

.article-fallback-summary {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.article-fallback-box {
  border: 1px solid var(--gold);
  border-radius: 10px;
  padding: 1.5rem;
  background: hsl(40, 30%, 98%);
  text-align: center;
}

.article-fallback-box p {
  font-family: var(--font-sans);
  font-size: 0.875rem;
  color: var(--text-muted);
}

.article-fallback-button {
  margin-top: 1rem;
  display: inline-flex;
}

.article-not-found-title {
  font-family: var(--font-serif);
  font-size: 2rem;
  color: var(--navy);
}

.article-not-found-text {
  color: var(--text-muted);
  margin: 1rem 0 2rem;
}

.article-topbar {
  background: #fff;
  border-bottom: 1px solid var(--border);
  padding: 1rem 0;
}

.article-layout {
  max-width: 850px;
  margin: 0 auto;
}

.article-header-block {
  margin-bottom: 2.5rem;
}

.article-main-title {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 600;
  color: var(--navy);
  line-height: 1.2;
  margin: 1.25rem 0 1rem;
}

.article-main-subtitle {
  font-family: var(--font-sans);
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.article-meta-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.25rem;
  font-size: 0.8rem;
  color: var(--text-light);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 0.875rem 0;
}

.article-author-name {
  font-weight: 600;
  color: var(--navy);
}

.article-featured-image,
.article-featured-figure {
  width: 100%;
  min-height: 260px;
  border-radius: 12px;
  margin-bottom: 2.5rem;
}

.article-featured-figure {
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: hsl(220, 20%, 88%);
}

.article-featured-figure img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.article-tags-row {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.article-tags-icon {
  font-size: 0.75rem;
  color: var(--text-light);
  margin-right: 0.5rem;
}

.article-related-section {
  border-top: 1px solid var(--border);
}

.article-related-grid {
  margin-top: 2rem;
}

.blog-card-img img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

@media (max-width: 760px) {
  .article-featured-image,
  .article-featured-figure {
    min-height: 220px;
    margin-bottom: 2rem;
  }

  .article-meta-row {
    gap: 0.75rem;
  }
}


.author-box picture {
  width: 96px;
  height: 96px;
  min-width: 96px;
  display: block;
}

.author-avatar {
  width: 96px;
  height: 96px;
  min-width: 96px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center;
  display: block;
  border: 2px solid rgba(176, 139, 87, 0.35);
  box-shadow: 0 12px 28px rgba(20, 20, 20, 0.12);
}
.article-toc {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--off-white);
  padding: 1.25rem 1.4rem;
  margin: 0 0 2.5rem;
}

.article-toc strong {
  display: block;
  color: var(--vinho);
  font-family: var(--font-serif);
  font-size: 1.05rem;
  margin-bottom: .7rem;
}

.article-toc ol {
  margin: 0;
  padding-left: 1.25rem;
}

.article-toc li {
  margin: .35rem 0;
  color: var(--text-muted);
}

.article-toc a {
  color: var(--vinho);
  text-decoration: none;
}

.article-toc a:hover {
  text-decoration: underline;
}

.article-content ul,
.article-content ol {
  margin: 0 0 1.4rem 1.3rem;
  color: hsl(220, 20%, 32%);
}

.article-content li {
  margin-bottom: .45rem;
}

.article-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
  font-size: .88rem;
  overflow: hidden;
  border-radius: 10px;
}

.article-content th,
.article-content td {
  border: 1px solid var(--border);
  padding: .8rem;
  vertical-align: top;
}

.article-content th {
  background: var(--off-white);
  color: var(--vinho);
  font-weight: 700;
}

.article-faq {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.article-faq h2 {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  color: var(--vinho);
  margin-bottom: 1rem;
}

.article-faq details {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  margin-bottom: .8rem;
  overflow: hidden;
}

.article-faq summary {
  cursor: pointer;
  padding: 1rem 1.1rem;
  color: var(--vinho);
  font-weight: 700;
}

.article-faq details p {
  padding: 0 1.1rem 1rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.article-disclaimer {
  margin-top: 2rem;
  border-left: 3px solid var(--gold);
  background: var(--off-white);
  border-radius: 0 10px 10px 0;
  padding: 1rem 1.2rem;
  color: var(--text-muted);
  font-size: .86rem;
  line-height: 1.65;
}

/* UX de leitura: menos esforço visual em desktop e mobile */
.article-topbar {
  position: sticky;
  top: 72px;
  z-index: 20;
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(12px);
}
.article-layout {
  max-width: 880px;
}
.article-header-block {
  border: 1px solid var(--border);
  border-radius: 24px;
  background: linear-gradient(135deg, #fff, var(--off-white));
  padding: clamp(1.35rem, 4vw, 2.4rem);
  box-shadow: 0 22px 60px rgba(52, 22, 55, .06);
}
.article-content {
  font-size: 1.03rem;
  line-height: 1.88;
  color: var(--text-light);
}
.article-content p { margin-bottom: 1.25rem; }
.article-content h2 {
  font-family: var(--font-serif);
  color: var(--vinho);
  font-size: clamp(1.45rem, 3vw, 2rem);
  line-height: 1.25;
  margin: 2.8rem 0 1rem;
  overflow-wrap: anywhere;
}
.article-content h3 {
  font-family: var(--font-serif);
  color: var(--vinho);
  font-size: 1.22rem;
  line-height: 1.35;
  margin: 2rem 0 .75rem;
}
.article-toc {
  box-shadow: 0 18px 50px rgba(52, 22, 55, .05);
}
.article-faq details,
.article-disclaimer,
.author-box {
  box-shadow: 0 14px 40px rgba(52, 22, 55, .05);
}
.article-featured-figure {
  box-shadow: 0 20px 55px rgba(52, 22, 55, .08);
}
@media (max-width: 760px) {
  .article-topbar { top: 64px; }
  .article-main-title { font-size: clamp(1.85rem, 10vw, 2.55rem); }
  .article-main-subtitle { font-size: .98rem; }
  .article-meta-row { display: grid; grid-template-columns: 1fr; gap: .45rem; }
  .article-header-block { border-radius: 18px; }
  .article-content { font-size: .98rem; line-height: 1.82; }
  .article-content table { display: block; overflow-x: auto; white-space: nowrap; }
  .article-toc { border-radius: 18px; padding: 1rem; }
  .author-box { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 1rem; align-items: start; }
  .author-box picture,
  .author-avatar { width: 72px; height: 72px; min-width: 72px; }
}
