.cms-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr));
  gap: 1.5rem;
}
.cms-card {
  --titulo: var(--c-navy-900);
  --texto: var(--c-steel-800);
  --texto-suave: var(--c-steel-600);
  --texto-fraco: var(--c-steel-500);
  --borda: var(--c-steel-200);
  color: var(--texto);
  border: 1px solid var(--borda);
  border-radius: var(--r-xl);
  overflow: hidden;
  background: #fff;
  display: flex;
  flex-direction: column;
}
.cms-card img {
  width: 100%;
  height: auto;
  aspect-ratio: 16/9;
  object-fit: cover;
}
.cms-card-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.cms-category {
  color: var(--c-brand-600);
  font-weight: 600;
  font-size: 0.8125rem;
}
.cms-meta {
  color: var(--texto-suave);
  font-size: 0.875rem;
  margin: 0.5rem 0 1rem;
}
.cms-card h3 {
  font-size: 1.3rem;
  line-height: 1.3;
  margin-bottom: 0.75rem;
}
.cms-card-body > p:not([class]) {
  color: var(--texto-suave);
  line-height: 1.6;
}
.cms-card a:hover {
  color: var(--c-brand-600);
}
.cms-read {
  font-weight: 600;
  color: var(--c-brand-600);
  margin-top: auto;
  padding-top: 1.5rem;
}
.cms-heading {
  background: var(--c-navy-900);
  color: #fff;
  padding: 3rem 0;
}
.cms-heading .container {
  max-width: 54rem;
}
.cms-heading h1 {
  color: #fff;
  margin: 2rem 0 1rem;
  font-size: clamp(2rem, 4vw, 3rem);
}
.cms-heading nav {
  font-size: 0.875rem;
  color: var(--c-steel-200);
}
.cms-heading .cms-meta {
  color: var(--c-steel-200);
  margin-top: 1.5rem;
}
.cms-lead {
  font-size: 1.125rem;
  line-height: 1.65;
  color: var(--c-steel-200);
}
.cms-article {
  max-width: 48rem !important;
}
.cms-article img {
  max-width: 100%;
  height: auto;
}
.cms-article pre {
  overflow: auto;
}
.cms-related {
  margin-bottom: 2rem;
}
.cms-empty {
  padding: 2rem 0;
  color: var(--texto-suave);
}
.cms-table {
  overflow-x: auto;
  margin: 1.5rem 0;
}
.cms-table table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}
.cms-table th,
.cms-table td {
  padding: 0.75rem 1rem;
  border: 1px solid var(--borda);
}
.cms-table th {
  background: var(--c-steel-50);
}
.cms-reading {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  align-items: start;
  justify-content: center;
}
.cms-article {
  min-width: 0;
  width: 100%;
}
.cms-toc {
  font-size: 0.875rem;
  color: var(--texto-suave);
  max-width: 48rem;
  width: 100%;
  margin-inline: auto;
}
.cms-toc h2 {
  font-size: 1rem;
  margin-bottom: 1rem;
}
.cms-toc li + li {
  margin-top: 0.6rem;
}
.cms-toc a:hover {
  color: var(--c-brand-600);
}
.cms-article h2 {
  scroll-margin-top: 8rem;
}
@media (min-width: 1100px) {
  .cms-reading {
    flex-direction: row;
    gap: 3rem;
  }
  .cms-toc {
    position: sticky;
    top: 7rem;
    order: 2;
    flex: 0 0 16rem;
    margin-inline: 0;
  }
  .cms-article {
    flex: 0 1 48rem;
  }
}

.cms-article h1 { font-size: 2rem; line-height: 1.25; margin-top: 2rem; margin-bottom: 1rem; }
.cms-article h4 { font-size: 1.125rem; line-height: 1.4; margin-top: 1.5rem; margin-bottom: .75rem; }
