/* Underline current page */
header .header-inner .menu-container .menu .community:after {
  transform: translateX(-50%) scaleX(1);
}

/* Breadcrumb that replaces the hero. The top padding clears the site's
   absolute header. */
.post-breadcrumb {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 110px 10px 16px;
  font-size: 14px;
  color: var(--gray-700);
}

.post-breadcrumb a {
  color: var(--primary-blue);
  text-decoration: none;
}

.post-breadcrumb a:hover {
  text-decoration: underline;
}

.post-breadcrumb .sep {
  margin: 0 6px;
  color: var(--gray-400);
}

.community-wrapper {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 10px;
}

.history-container {
  max-width: 800px;
  margin: 0 auto 50px auto;
  background: var(--white);
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 1px 3px var(--shadow-default);
}

.history-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 1px solid var(--gray-border);
}

.history-meta {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
  color: var(--black);
  font-size: 14px;
}

.current-badge {
  display: inline-block;
  background-color: var(--green-600);
  color: var(--white);
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
  margin-left: 10px;
}

.history-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--black);
}

.history-content {
  line-height: 1.6;
}

.no-history {
  text-align: center;
  padding: 30px;
  color: var(--black);
}

.history-metadata {
  margin-top: 20px;
  border-top: 1px dashed var(--gray-border);
  padding-top: 15px;
}

.history-metadata-title {
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--black);
}

.metadata-field {
  margin-bottom: 15px;
  padding: 12px;
  background-color: var(--gray-50);
  border-radius: 6px;
  border: 1px solid var(--gray-border);
}

.metadata-field-label {
  font-weight: 600;
  margin-bottom: 5px;
}

.metadata-field-value {
  line-height: 1.5;
}

.no-metadata {
  font-style: italic;
}

.version-divider {
  position: relative;
  border-top: 1px solid var(--gray-border);
  margin: 30px 0;
}

/* Added content */
.diff-add {
  background-color: var(--green-100);
  color: var(--green-800);
  border-radius: 2px;
  text-decoration: none !important;
}

/* Removed content */
.diff-del {
  background-color: var(--red-100);
  color: var(--red-800);
  border-radius: 2px;
  text-decoration: line-through;
}

/* Changed metadata field highlighting */
.metadata-changed {
  background-color: var(--amber-100) !important;
  border-color: var(--amber-400) !important;
}

/* Apply special styles to the diff section in the metadata display */
.metadata-field-value .diff-add,
.metadata-field-value .diff-del {
  display: inline-block;
  padding: 1px 3px;
  margin: 0;
}

.version-divider::after {
  content: "Previous Version";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: var(--white);
  padding: 0 10px;
  font-size: 12px;
  color: var(--black);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .diff-add,
  .diff-del {
    padding: 0 1px;
    margin: 0 -1px;
  }
}
