/* Post pages: breadcrumb (home icon › category › current) and the "Leia também" sidebar card. */

/* ---------- Breadcrumb ---------- */
.breadcrumb.post-crumbs {
  margin: 4px 0 14px;
  padding: 0;
  overflow: visible;
  color: #64748b;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
}

.post-crumbs ol {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  min-width: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.post-crumbs li {
  display: inline-flex;
  flex: none;
  align-items: center;
  margin: 0;
  padding: 0;
  white-space: nowrap;
}

/* Chevron separator */
.post-crumbs li + li::before {
  content: "";
  flex: none;
  width: 7px;
  height: 7px;
  margin: 0 12px 0 8px;
  border-top: 1.6px solid #94a3b8;
  border-right: 1.6px solid #94a3b8;
  transform: rotate(45deg);
}

.post-crumbs a {
  color: #475569;
  text-decoration: none;
  transition: color .15s ease;
}

.post-crumbs a:hover {
  color: var(--dica-action, #1b4f9c);
}

.post-crumbs .pc-home {
  display: inline-flex;
  color: var(--dica-action, #1b4f9c);
}

.post-crumbs .pc-home svg {
  display: block;
  max-width: none;
}

/* Current page: last and shrinkable, so long titles end in "…" instead of wrapping */
.post-crumbs li:last-child {
  flex: 0 1 auto;
  min-width: 0;
}

.post-crumbs [aria-current="page"] {
  overflow: hidden;
  color: #64748b;
  text-overflow: ellipsis;
}

html[data-theme="dark"] .breadcrumb.post-crumbs,
html[data-theme="dark"] .post-crumbs a,
html[data-theme="dark"] .post-crumbs [aria-current="page"] {
  color: var(--dica-muted);
}

html[data-theme="dark"] .post-crumbs a:hover,
html[data-theme="dark"] .post-crumbs .pc-home {
  color: var(--dica-action);
}

@media (max-width: 640px) {
  .breadcrumb.post-crumbs {
    font-size: 14px;
  }

  .post-crumbs li + li::before {
    margin: 0 9px 0 6px;
  }
}

/* ---------- Leia também ---------- */
.sb-related {
  margin: 18px 0 24px;
  padding: 18px 20px 6px;
  border: 1px solid #e6ebf3;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 6px 20px rgba(15, 23, 42, .05);
}

.sb-related-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 6px;
  padding: 0;
  border: 0;
  color: #0f1b3d;
  font-size: 19px;
  font-weight: 800;
  line-height: 1.2;
}

.sb-related-title svg {
  flex: none;
  color: var(--dica-action, #1b4f9c);
  max-width: none;
}

.sb-related-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.sb-related-list li {
  margin: 0;
  padding: 0;
  border: 0;
}

.sb-related-list li + li {
  border-top: 1px solid #eef2f7;
}

.sb-related-item {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  padding: 12px 0;
  color: inherit;
  text-decoration: none !important;
}

.sb-related-thumb {
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  border-radius: 10px;
  background: #eef2f7;
}

.sb-related-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
  object-fit: cover;
  transition: transform .3s ease;
}

.sb-related-name {
  display: -webkit-box;
  overflow: hidden;
  color: #0f1b3d;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  transition: color .15s ease;
}

.sb-related-item:hover .sb-related-name {
  color: var(--dica-action, #1b4f9c);
}

.sb-related-item:hover .sb-related-thumb img {
  transform: scale(1.05);
}

html[data-theme="dark"] .sb-related {
  border-color: var(--dica-border);
  background: var(--dica-surface-raised);
  box-shadow: none;
}

html[data-theme="dark"] .sb-related-title,
html[data-theme="dark"] .sb-related-name {
  color: var(--dica-ink);
}

html[data-theme="dark"] .sb-related-list li + li {
  border-top-color: var(--dica-border);
}

html[data-theme="dark"] .sb-related-item:hover .sb-related-name,
html[data-theme="dark"] .sb-related-title svg {
  color: var(--dica-action);
}
