.wiki-link {
  color: #1b4d9b;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.wiki-link:hover { color: #0e326e; }
.wiki-link.missing {
  color: #8a5a12;
  text-decoration-style: dashed;
}
.citation {
  margin-left: 2px;
  font-size: .72em;
  vertical-align: super;
}
.citation a { color: #355b91; }
.citation.missing { color: #a35d54; }

.editor-guide {
  margin: 24px 0 8px;
  padding: 14px 16px;
  border: 1px solid #e0e3e8;
  border-radius: 13px;
  background: #f8f9fb;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.editor-guide > div { display: grid; gap: 5px; }
.editor-guide strong { font-size: 12px; }
.editor-guide span { color: #747b86; font-size: 11px; }
.editor-guide code {
  width: fit-content;
  max-width: 100%;
  padding: 3px 6px;
  border: 1px solid #e0e3e8;
  border-radius: 6px;
  background: white;
  color: #303640;
  overflow-wrap: anywhere;
  font-size: 11px;
}

.source-section,
.knowledge-links,
.backlink-section,
.related-section {
  border-top: 1px solid #eceef2;
  margin-top: 42px;
  padding-top: 28px;
}
.source-section h2,
.knowledge-links h2,
.backlink-section h2,
.related-section h2 {
  margin: 5px 0 16px;
  font-size: 23px;
  letter-spacing: -.6px;
}
.source-list {
  margin: 0;
  padding-left: 28px;
  display: grid;
  gap: 10px;
}
.source-list li {
  padding: 13px 14px 13px 8px;
  border: 1px solid #e2e5ea;
  border-radius: 12px;
  background: #fafbfc;
}
.source-main {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
}
.source-main > a {
  font-weight: 700;
  color: #252a32;
}
.source-main > a:hover { text-decoration: underline; }
.source-main span {
  color: #7a808a;
  font-size: 12px;
}
.source-url {
  display: inline-block;
  margin-top: 5px;
  color: #6e7580;
  font-size: 12px;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.knowledge-link-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.knowledge-link {
  min-width: 0;
  padding: 11px 13px;
  border: 1px solid #e0e3e8;
  border-radius: 11px;
  background: #fafbfc;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-size: 14px;
}
.knowledge-link:hover { border-color: #c8cdd5; }
.knowledge-link span {
  flex: 0 0 auto;
  color: #858b95;
  font-size: 11px;
}
.knowledge-link.unresolved {
  border-style: dashed;
  color: #77501a;
  background: #fffaf0;
}

.source-snapshot {
  margin: 0;
  padding: 14px 16px;
  border: 1px solid #e0e3e8;
  border-radius: 12px;
  background: #f8f9fb;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  line-height: 1.7;
}

@media (max-width: 760px) {
  .editor-guide { grid-template-columns: 1fr; }
  .knowledge-link-list { grid-template-columns: 1fr; }
  .source-list { padding-left: 24px; }
  .source-list li { padding-right: 10px; }
}
