/* Conteúdo editorial — hub, artigo e 404 */

.content-page {
  min-width: 0;
  padding: clamp(24px, 4vw, 48px) 0 64px;
  background: var(--cream);
}

.content-wrap {
  width: 100%;
  max-width: 900px;
  margin-inline: auto;
  padding-inline: clamp(18px, 4vw, 28px);
}

.content-wrap--narrow {
  max-width: 720px;
}

.breadcrumbs {
  width: 100%;
  max-width: 900px;
  margin-inline: auto;
  padding: 18px clamp(18px, 4vw, 28px) 0;
}

.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 0.76rem;
}

.breadcrumbs li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.breadcrumbs li + li::before {
  color: rgba(43, 41, 36, 0.45);
  content: "/";
}

.breadcrumbs a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--muted);
  text-decoration: none;
}

.breadcrumbs a:hover {
  color: var(--terracotta-deep);
  text-decoration: underline;
}

.breadcrumbs [aria-current="page"] {
  color: var(--ink);
  font-weight: 600;
}

.content-hero {
  max-width: 760px;
  padding: 12px 0 26px;
}

.content-hero h1 {
  max-width: 20ch;
  font-size: clamp(2.2rem, 5.4vw, 3.5rem);
  font-family: var(--display);
  letter-spacing: -0.04em;
  line-height: 1.02;
}

.content-hero .lead {
  margin-top: 12px;
  color: var(--muted);
}

.content-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 20px;
}

.guide-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 18px 0;
}

.guide-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: 0 12px 30px rgba(43, 41, 36, 0.06);
}

.guide-card--model {
  border-color: var(--terracotta);
}

.guide-card h2 {
  margin: 10px 0 7px;
  font-family: var(--display);
  font-size: 1.3rem;
  line-height: 1.15;
}

.guide-card h2 a {
  color: var(--ink);
  text-decoration: none;
}

.guide-card h2 a:hover {
  color: var(--terracotta-deep);
  text-decoration: underline;
}

.guide-card p:not(.badge) {
  flex: 1;
  color: var(--muted);
  font-size: 0.86rem;
}

.guide-card__link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: 12px;
  color: var(--terracotta-deep);
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
}

.guide-card__link:hover {
  text-decoration: underline;
}

.content-page .badge {
  display: inline-flex;
  align-self: flex-start;
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--terracotta-wash);
  color: var(--terracotta-deep);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.2;
  text-transform: uppercase;
}

.content-page .badge--example {
  background: #f5e7c8;
  color: #5b3f0b;
}

.example-note {
  max-width: 760px;
  margin-top: 18px;
  padding: 11px 13px;
  border-left: 3px solid #b45309;
  background: #fbf1dc;
  color: #5b3f0b;
  font-size: 0.78rem;
  line-height: 1.5;
}

.article {
  max-width: 780px;
  margin-inline: auto;
}

.article__head {
  padding-bottom: 8px;
}

.article__head h1 {
  max-width: 22ch;
  font-size: clamp(2.1rem, 5vw, 3.3rem);
  font-family: var(--display);
  letter-spacing: -0.04em;
  line-height: 1.03;
}

.article__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.78rem;
}

.article__lead {
  margin-top: 16px;
  color: var(--muted);
  font-size: clamp(1rem, 1.6vw, 1.12rem);
  line-height: 1.55;
}

.article__head .badge {
  margin-top: 14px;
}

.article__toc {
  margin: 24px 0;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--cream-deep);
}

.article__toc h2 {
  margin-bottom: 7px;
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.article__toc ol {
  margin: 0;
  padding-left: 1.2rem;
}

.article__toc li {
  padding: 3px 0;
}

.article__toc a {
  color: var(--terracotta-deep);
  font-size: 0.88rem;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.article__body {
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.7;
}

.article__body section {
  padding-top: 18px;
  scroll-margin-top: 96px;
}

.article__body h2 {
  margin-bottom: 9px;
  font-family: var(--display);
  font-size: clamp(1.45rem, 3vw, 1.85rem);
  letter-spacing: -0.03em;
}

.article__body h3 {
  margin: 18px 0 6px;
  font-family: var(--display);
  font-size: 1.12rem;
}

.article__body p {
  margin: 0 0 12px;
}

.article__body a {
  color: var(--terracotta-deep);
  font-weight: 600;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.article__cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 30px 0;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--cream-deep);
}

.article__cta h2 {
  margin: 3px 0 4px;
  font-family: var(--display);
  font-size: 1.45rem;
}

.article__cta p:not(.eyebrow) {
  max-width: 48ch;
  color: var(--muted);
  font-size: 0.88rem;
}

.read-next {
  margin-top: 26px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.read-next h2 {
  margin-bottom: 8px;
  font-family: var(--display);
  font-size: 1.3rem;
}

.read-next ul {
  margin: 0;
  padding-left: 1.15rem;
}

.read-next li {
  padding: 4px 0;
}

.read-next a {
  color: var(--terracotta-deep);
  text-underline-offset: 3px;
}

@media (max-width: 760px) {
  .guide-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .content-page {
    padding-bottom: 48px;
  }
}

.article__faq {
  margin: 28px 0;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.article__faq h2 {
  margin-bottom: 10px;
  font-family: var(--display);
  font-size: 1.45rem;
}

.article__faq details {
  border-top: 1px solid var(--line);
}

.article__faq summary {
  min-height: 48px;
  padding: 10px 0;
  color: var(--ink);
  font-weight: 700;
  cursor: pointer;
}

.article__faq details p {
  max-width: 72ch;
  padding: 0 0 12px;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

.table-wrap {
  margin: 16px 0 10px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
  -webkit-overflow-scrolling: touch;
}

.table-wrap:focus-visible {
  outline: 3px solid var(--terracotta-deep);
  outline-offset: 2px;
}

.article__body table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  font-size: 0.86rem;
  line-height: 1.5;
}

.article__body caption {
  padding: 12px 14px 4px;
  color: var(--ink);
  font-size: 0.8rem;
  font-weight: 700;
  text-align: left;
}

.article__body th,
.article__body td {
  padding: 10px 12px;
  border-top: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.article__body thead th {
  background: var(--terracotta-wash);
  color: var(--ink);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.article__body tbody th {
  font-weight: 600;
  white-space: nowrap;
}

.table-note {
  margin: 8px 0 14px;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.55;
}

@media (max-width: 640px) {
  .article__body table {
    min-width: 0;
    font-size: 0.78rem;
  }

  .article__body th,
  .article__body td {
    padding: 8px 7px;
  }

  .article__body thead th {
    font-size: 0.64rem;
    letter-spacing: 0.02em;
  }

  .article__body tbody th {
    white-space: normal;
  }
}


/* Direção visual 2026-10 — leitura editorial */
.article__head h1 { font-size: clamp(2.4rem, 5vw, 3.7rem); line-height: 1.02; }
.article__lead { font-size: clamp(1.05rem, 1.7vw, 1.18rem); line-height: 1.6; }
.article__body { font-size: 1.0625rem; line-height: 1.72; }
.article__body h2 { font-size: clamp(1.6rem, 3vw, 2.05rem); }
.article__body h3 { font-size: 1.2rem; }
.guide-card { border-radius: 12px; background: #fff; }
.article__toc { border-radius: 12px; background: #fff; }
.article__cta { border-radius: 12px; }
.breadcrumbs ol { font-size: 0.8rem; }
.article__meta { font-size: 0.8rem; }

/* 404 — caminhos úteis */
.content-section {
  margin: 2.5rem 0 1rem;
  padding: 1.5rem 1.6rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}
.content-section h2 {
  margin-bottom: 0.8rem;
  font-size: clamp(1.3rem, 2.4vw, 1.65rem);
}
.link-list {
  display: grid;
  gap: 0.55rem;
  margin: 0;
  padding-left: 1.1rem;
}
.link-list a {
  color: var(--terracotta-deep);
  font-weight: 600;
  text-underline-offset: 3px;
}
.link-list a:hover { color: var(--ink); }
