/* Estilos de compatibilidade para a página de artigos */

.page-layout {
  max-width: 1200px;
  margin: 0 auto;
  padding: 44px 32px 80px;
  display: grid;
  grid-template-columns: 1fr 252px;
  gap: 52px;
  align-items: start;
}

.sidebar {
  position: sticky;
  top: 80px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.toc-card {
  background: #fff;
  border: 1px solid rgba(26,26,24,0.09);
  border-radius: 12px;
  padding: 20px;
}

.toc-header {
  width: 100%;
  background: transparent;
  border: 0;
  text-align: left;
  cursor: pointer;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #88877f;
  margin-bottom: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.toc-arrow {
  font-size: 0.82rem;
  color: #88877f;
  transition: transform 0.18s ease;
}

.toc-card:not(.is-collapsed) .toc-arrow {
  transform: rotate(180deg);
}

.toc-card.is-collapsed .toc-list {
  display: none;
}

.toc-card:not(.is-collapsed) .toc-list {
  margin-top: 14px;
}

.toc-header::before {
  content: '';
  display: block;
  width: 3px; height: 12px;
  background: #185FA5;
  border-radius: 2px;
}

.toc-list { list-style: none; padding: 0; margin: 0; }
.toc-list li { border-bottom: 1px solid rgba(26,26,24,0.09); }
.toc-list li:last-child { border-bottom: none; }

.toc-list a {
  display: block;
  padding: 8px 0;
  font-size: 0.82rem;
  color: #5f5e5a;
  text-decoration: none;
  line-height: 1.4;
  transition: color 0.15s;
}

.toc-list a:hover { color: #185FA5; }
.toc-list a.active { color: #185FA5; font-weight: 500; }

.toc-list .toc-h3 a {
  font-size: 0.77rem;
  padding: 5px 0 5px 12px !important;
  color: #88877f;
  border-left: 2px solid rgba(224,123,26,0.3);
  margin-left: 4px;
}

.toc-list .toc-h3 a:hover { color: #BA7517; border-left-color: #BA7517; }
.toc-list .toc-h3 a.active { color: #BA7517; border-left-color: #BA7517; font-weight: 500; }

/* Article inline elements */
.article-dot {
  display: inline-block;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(255,255,255,0.6);
  margin-right: 4px;
}

.article-chevron {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 8px;
  height: 8px;
  font-size: 0.72rem;
  font-weight: 700;
  color: rgba(255,255,255,0.6);
}

.article-index-label {
  font-size: calc(0.68rem + 1px);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.6);
  margin-right: 12px;
}

.index-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.75rem;
  font-weight: 600;
  color: rgba(255,255,255,0.78);
  background: rgba(255,255,255,0.13);
  border: 1px solid rgba(255,255,255,0.2);
  padding: 5px 11px;
  border-radius: 5px;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.15s;
}

.index-chip:hover {
  background: rgba(255,255,255,0.18);
}

.chip-dot {
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(255,255,255,0.6);
}

.btn-share-icon {
  width: 16px;
  height: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  line-height: 1;
}

.toc-list-compact {
  margin-left: 0;
  margin-top: 4px;
}

/* Supplier CTA Card */
.supplier-cta-card {
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-dark) 100%);
  border-radius: 12px;
  padding: 22px;
  color: #fff;
}

.supplier-cta-card .eyebrow {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  margin-bottom: 8px;
  display: block;
}

.supplier-cta-card h4 {
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.35;
  margin: 0 0 10px;
  color: #fff;
}

.supplier-cta-card p {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.75);
  line-height: 1.55;
  margin: 0 0 16px;
}

.btn-cta-white {
  display: block;
  text-align: center;
  background: #fff;
  color: var(--blue);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 9px 15px;
  border-radius: 5px;
  text-decoration: none;
  transition: background 0.15s;
}

.btn-cta-white:hover { background: #f0f7ff; }

/* Newsletter Card */
.newsletter-card {
  background: var(--teal-light);
  border: 1px solid rgba(29, 158, 117, 0.2);
  border-radius: 12px;
  padding: 22px;
}

.newsletter-card .eyebrow {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal-dark);
  margin-bottom: 8px;
  display: block;
}

.newsletter-card h4 {
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.35;
  margin: 0 0 10px;
  color: var(--teal-dark);
}

.newsletter-card p {
  font-size: 0.8rem;
  color: var(--teal-dark);
  line-height: 1.55;
  margin: 0 0 16px;
}

.newsletter-input-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.newsletter-input-row input {
  flex: 1;
  padding: 10px 14px;
  font-size: 0.85rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-family: 'Ubuntu', sans-serif;
  background: #fff;
}

.newsletter-input-row input::placeholder {
  color: #999;
}

.newsletter-input-row input:focus {
  outline: none;
  border-color: #1D9E75;
  box-shadow: 0 0 0 2px rgba(29, 158, 117, 0.1);
}

.btn-green {
  background: #1D9E75;
  color: #fff;
  font-size: 0.84rem;
  font-weight: 700;
  padding: 10px 18px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.15s;
  flex-shrink: 0;
  white-space: nowrap;
}

.btn-green:hover { background: #085041; }

@media (max-width: 960px) {
  .page-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  
  .sidebar {
    position: static;
  }
}

@media (max-width: 640px) {
  .page-layout {
    padding: 24px 16px 40px;
  }

  .toc-card {
    display: none;
  }
}
