/* Article metadata sidebar + clickable keywords in body */

.meta-section {
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid #e9ecef;
}

.meta-section:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.meta-section--highlight {
  animation: metaSectionPulse 1.2s ease-out;
}

@keyframes metaSectionPulse {
  0% { background: rgba(0, 82, 116, 0.12); }
  100% { background: transparent; }
}

.meta-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}

.meta-section-head .meta-section-title {
  margin: 0;
}

.meta-section-title {
  margin: 0 0 10px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #5a738e;
}

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

.meta-list-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 12px;
}

.meta-list-label {
  flex: 1;
  line-height: 1.4;
  color: #1c1d1e;
}

.meta-keyword-chips {
  list-style: none;
  margin: 0 0 10px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.meta-keyword-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  background: #eef4f7;
  border: 1px solid #c5d4de;
  border-radius: 3px;
  font-size: 12px;
  color: #1c1d1e;
}

.meta-keyword-remove {
  border: none;
  background: transparent;
  color: #6c757d;
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
  padding: 0 2px;
}

.meta-keyword-remove:hover {
  color: #c00;
}

.meta-keyword-empty {
  font-size: 12px;
  color: #9aa5b1;
  font-style: italic;
}

.meta-keyword-add {
  display: flex;
  gap: 6px;
  align-items: center;
}

.meta-keyword-input {
  flex: 1;
  min-width: 0;
  font-size: 12px;
  border: 1px solid #ccc;
  border-radius: 3px;
  padding: 6px 8px;
}

.article-html .keywords-block {
  margin-bottom: 14px;
}

.article-html .keywords-trigger {
  display: block;
  width: 100%;
  text-align: left;
  border: none;
  background: transparent;
  padding: 0;
  font: inherit;
  font-size: 13px;
  color: inherit;
  cursor: pointer;
  line-height: 1.5;
}

.article-html .keywords-trigger:hover,
.article-html .keywords-trigger:focus-visible {
  outline: 2px solid rgba(0, 82, 116, 0.35);
  outline-offset: 2px;
  border-radius: 2px;
}

.article-html .keywords-inline {
  display: inline;
}

.article-html .keyword-chip {
  display: inline-block;
  margin: 2px 6px 2px 0;
  padding: 2px 8px;
  background: #eef4f7;
  border: 1px solid #c5d4de;
  border-radius: 3px;
  font-size: 12px;
}

.article-html .keyword-chip--empty {
  background: transparent;
  border: 1px dashed #c5d4de;
  color: #6c757d;
  font-style: italic;
}
