/* ============================================================
   wiki.css -- Wiki: filter bar, level/entity grid + list, survival guide, wiki article layout, class badges, vote widget, markdown content rendering (highlight/TOC/redacted).
   Part of the split from the original single style.css.
   ============================================================ */

/* ---------- FILTER BAR (wiki / entities) ---------- */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.filter-bar input[type="text"],
.filter-bar select {
  font-family: var(--font-term);
  font-size: 1.05rem;
  padding: 0.55rem 0.75rem;
  border: 1.5px solid var(--border-soft);
  border-radius: var(--radius-sm);
  background: var(--fluoro-white);
  color: var(--ink);
}

.filter-bar input:focus-visible,
.filter-bar select:focus-visible {
  outline: 3px solid var(--cursed-green);
  outline-offset: 1px;
}

.filter-count {
  font-size: 0.95rem;
  opacity: 0.7;
  align-self: center;
}

/* ---------- WIKI / ENTITY GRID ---------- */
.wiki-grid, .entity-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(15.5rem, 1fr));
  gap: 1.25rem;
}

.wiki-card, .entity-card-full, .board-card {
  background: var(--fluoro-white);
  border: 2px solid var(--ink);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.wiki-card:hover, .entity-card-full:hover, .board-card:hover {
  transform: translateY(-3px);
  box-shadow: 4px 4px 0 rgba(var(--shadow-rgb), 0.28), var(--shadow-md);
}

.wiki-card:focus-visible, .entity-card-full:focus-visible, .board-card:focus-visible {
  outline: 3px solid var(--cursed-green);
  outline-offset: 2px;
}

.wiki-card.highlight, .entity-card-full.highlight {
  animation: cardFlash 1.1s ease;
  border-color: var(--glitch-pink);
}

@keyframes cardFlash {
  0%, 100% { box-shadow: none; }
  30% { box-shadow: 0 0 25px var(--glitch-pink); }
}

.wiki-card h3, .entity-card-full h3, .board-card h3 {
  font-weight: 700;
  font-size: 1.1rem;
  margin: 0;
}

.badge {
  display: inline-block;
  font-family: var(--font-term);
  font-weight: 500;
  font-size: 0.85rem;
  padding: 0.15rem 0.6rem;
  border-radius: 5px;
  border: 1px solid var(--ink);
  width: fit-content;
}

.badge-low { background: rgba(47, 224, 127, 0.3); }
.badge-medium { background: rgba(203, 171, 63, 0.5); }
.badge-high { background: rgba(239, 45, 118, 0.28); }

.wiki-card .meta-line, .entity-card-full .meta-line, .board-card .meta-line {
  font-size: 0.92rem;
  opacity: 0.8;
  margin: 0;
}

.wiki-card p, .entity-card-full p, .board-card p {
  margin: 0;
}

.empty-state {
  opacity: 0.7;
  font-style: italic;
  grid-column: 1 / -1;
}

/* ---------- WIKI LIST (Levels / Entities index redesign) ---------- */
.wiki-index-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.wiki-index-tab {
  font-family: var(--font-term);
  font-size: 0.95rem;
  font-weight: 500;
  padding: 0.6rem 1.1rem;
  border: 2px solid var(--ink);
  border-radius: var(--radius-sm);
  background: var(--fluoro-white);
  color: var(--ink);
  cursor: pointer;
  box-shadow: 2px 2px 0 var(--ink), var(--shadow-sm);
  transition: transform 0.15s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.15s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.wiki-index-tab:hover {
  transform: translateY(-2px);
  box-shadow: 3px 3px 0 var(--ink), var(--shadow-md);
}

.wiki-index-tab.active {
  background: var(--wall-yellow);
  border-color: var(--ink);
  box-shadow: 1px 1px 0 var(--ink);
  transform: translateY(1px);
}

.wiki-index-tab:focus-visible {
  outline: 3px solid var(--cursed-green);
  outline-offset: 2px;
}

.wiki-index-tabs.is-inactive-hint .wiki-index-tab {
  opacity: 0.45;
}

.wiki-index-tabs.is-inactive-hint .wiki-index-tab.active {
  opacity: 1;
}

.wiki-list-entry.highlight {
  animation: cardFlash 1.1s ease;
}

.wiki-list {
  border: 2px solid var(--ink);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.wiki-list-group {
  border-bottom: 1px solid var(--border-soft);
}

.wiki-list-group:last-child {
  border-bottom: none;
}

.wiki-list-group:nth-child(odd) {
  background: rgba(var(--tint-rgb), 0.035);
}

.wiki-list-entry {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem;
  padding: 0.65rem 1.1rem;
  text-decoration: none;
  color: var(--ink);
}

.wiki-list-entry:hover {
  background: rgba(var(--tint-rgb), 0.06);
}

.wiki-list-entry:focus-visible {
  outline: 3px solid var(--cursed-green);
  outline-offset: -2px;
}

.wiki-list-entry.depth-1 { padding-left: 2.4rem; }
.wiki-list-entry.depth-2 { padding-left: 3.9rem; }
.wiki-list-entry.depth-3 { padding-left: 5.4rem; }

.wiki-list-arrow {
  opacity: 0.55;
  margin-right: 0.15rem;
}

.wiki-list-num {
  font-weight: 700;
}

.wiki-list-name {
  color: var(--stain-brown);
}

.wiki-list-entry:hover .wiki-list-name {
  text-decoration: underline;
}

.status-tag {
  font-size: 0.9rem;
  font-style: italic;
}

.status-tag.status-trimmed { color: var(--stain-brown); }
.status-tag.status-rewrite { color: var(--danger-red); }

/* ---------- SURVIVAL GUIDE ACCORDION ---------- */
.guide-section { margin-bottom: 2rem; }


.guide-section h2 {
  font-weight: 700;
  font-size: 1.3rem;
  border-bottom: 1px solid var(--border-soft);
  padding-bottom: 0.4rem;
}

.rule {
  background: var(--fluoro-white);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  margin-bottom: 0.75rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s ease;
}

.rule[open] {
  box-shadow: var(--shadow-md);
}

.rule summary {
  font-family: var(--font-term);
  font-size: 1.1rem;
  list-style: none;
  position: relative;
  padding-left: 1.4rem;
  cursor: pointer;
}

.rule summary::-webkit-details-marker { display: none; }

.rule summary::before {
  content: "▸";
  position: absolute;
  left: 0;
  transition: transform 0.15s ease;
}

.rule[open] summary::before { transform: rotate(90deg); }

.rule p {
  margin: 0.6rem 0 0;
  opacity: 0.85;
  padding-left: 1.4rem;
}

.rule.flash {
  animation: cardFlash 1.1s ease;
  border-color: var(--glitch-pink);
}

/* ---------- WIKI ARTICLE (community-level / community-entity pages) ---------- */
.wiki-article {
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: var(--radius-md);
  padding: 2rem;
  box-shadow: 6px 6px 0 rgba(var(--shadow-rgb), 0.35);
  max-width: 46rem;
  width: 100%;
  margin: 0 auto;
}

/* Official and community entries share this same page now, and both carry
   a badge sidebar, vote widget, tabs, and images alongside the prose, so
   this wide variant is what's actually used in practice. Needs the
   width: 100% above (main is a column flex container, and a flex item
   with auto horizontal margins doesn't stretch to fill it -- it shrinks
   to whatever its content naturally wants, using max-width only as a
   ceiling, not a target -- so without width: 100% this varies per entry
   depending on how long its content happens to be, instead of reliably
   filling the space) and needs the parent <main> to also be widened via
   .main-wide, above, or this gets clamped down before it ever reaches
   its own max-width. */
.wiki-article.wiki-article-wide {
  max-width: 70rem;
}

.wiki-article-header {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-bottom: 0.5rem;
}

.wiki-article-header h1 {
  font-weight: 700;
  font-size: clamp(1.6rem, 5vw, 2.4rem);
  margin: 0;
}

.wiki-badges {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.rating-widget {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 1.25rem 0 1.75rem;
}

.rating-widget span {
  font-family: var(--font-term);
  font-size: 1.6rem;
  min-width: 2.5rem;
  text-align: center;
}

.wiki-section { margin-bottom: 1.5rem; }

.wiki-section h2 {
  font-weight: 700;
  font-size: 1.1rem;
  border-bottom: 1px solid var(--border-soft);
  padding-bottom: 0.3rem;
  margin-bottom: 0.6rem;
}

.related-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.related-tag {
  font-family: var(--font-term);
  font-weight: 500;
  font-size: 0.9rem;
  background: var(--fluoro-white);
  border: 1.5px solid var(--border-soft);
  border-radius: var(--radius-sm);
  padding: 0.35rem 0.85rem;
  text-decoration: none;
  color: var(--ink);
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.related-tag:hover {
  transform: translateY(-2px);
  box-shadow: 2px 2px 0 rgba(var(--shadow-rgb), 0.3);
  color: var(--stain-brown);
}

.related-tag:focus-visible {
  outline: 3px solid var(--cursed-green);
  outline-offset: 2px;
}

.wiki-section.addendum p {
  font-style: italic;
  border-left: 3px solid var(--stain-brown);
  padding-left: 0.9rem;
  opacity: 0.9;
}

.discovered-line {
  font-size: 0.9rem;
  opacity: 0.65;
  margin: 1.5rem 0;
}

.article-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: space-between;
  border-top: 1px solid var(--border-soft);
  padding-top: 1.25rem;
}

.class-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  min-width: 10rem;
  padding: 1.1rem;
  border-radius: var(--radius-lg);
  border: 3px solid var(--ink);
  background: var(--paper);
  box-shadow: var(--shadow-md);
  flex-shrink: 0;
  text-align: center;
}

.class-badge-diamond {
  width: 3.4rem;
  height: 3.4rem;
  margin-top: 0.3rem;
  transform: rotate(45deg);
  border: 3px solid var(--ink);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.25);
}

.class-badge-diamond i {
  transform: rotate(-45deg);
  font-size: 1.3rem;
  color: var(--bg-black);
  text-shadow: 0 0 3px rgba(255, 255, 255, 0.4);
}

.class-badge-text {
  display: flex;
  flex-direction: column;
}

.class-badge-label {
  font-family: var(--font-term);
  font-size: 0.75rem;
  opacity: 0.75;
  letter-spacing: 0.05em;
}

.class-badge-value {
  font-weight: 700;
  font-size: 1.4rem;
  font-weight: bold;
  line-height: 1.1;
}

.class-badge-tags {
  list-style: none;
  padding: 0;
  margin: 0.2rem 0 0;
  font-family: var(--font-term);
  font-size: 0.85rem;
  align-self: stretch;
  text-align: left;
}

.class-badge-tags li {
  padding: 0.1rem 0 0.1rem 0.9rem;
  position: relative;
}

.class-badge-tags li::before {
  content: "●";
  font-size: 0.55rem;
  position: absolute;
  left: 0;
  top: 0.35rem;
  color: var(--stain-brown);
}

/* Gradient scale adapted from the same five-step hazard progression
   (pale yellow -> amber -> orange -> red -> deep red) used by the real
   wiki's difficulty widget, re-colored to fit this site's palette. */
.class-badge.danger-1 .class-badge-diamond { background: linear-gradient(135deg, #f7e375, #ffc90e); }
.class-badge.danger-2 .class-badge-diamond { background: linear-gradient(135deg, #ffc90e, #f59c00); }
.class-badge.danger-3 .class-badge-diamond { background: linear-gradient(135deg, #f59c00, #f95a00); }
.class-badge.danger-4 .class-badge-diamond { background: linear-gradient(135deg, #f95a00, #fe1701); }
.class-badge.danger-5 .class-badge-diamond { background: linear-gradient(135deg, #fe1701, #af0606); }

.vote-widget {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1.5rem;
  font-family: var(--font-term);
}

.vote-btn {
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: var(--radius-sm);
  width: 2.2rem;
  height: 2.2rem;
  font-size: 1.2rem;
  cursor: pointer;
  color: var(--ink);
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.vote-btn:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.vote-btn:hover { background: var(--fluoro-white); }
.vote-btn.active-up { background: var(--cursed-green); }
.vote-btn.active-down { background: var(--danger-red); color: #fff; }
.vote-btn:disabled { cursor: not-allowed; opacity: 0.5; }

.vote-score {
  font-size: 1.3rem;
  font-weight: bold;
  min-width: 2rem;
  text-align: center;
}

/* ---------- WIKI CONTENT: highlight / TOC / redacted extras ---------- */
.md-content mark {
  background: var(--wall-yellow);
  color: var(--ink);
  padding: 0 0.15em;
  border-radius: 2px;
}

.md-content .md-toc-title {
  font-weight: 700;
  font-style: normal;
  margin: 1.2rem 0 0.5rem;
}

.md-content .md-toc {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0.9rem 1.1rem;
  background: rgba(var(--tint-rgb), 0.04);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
}

.md-content .md-toc li { margin: 0.3rem 0; }
.md-content .md-toc a { color: var(--stain-brown); text-decoration: none; }
.md-content .md-toc a:hover { text-decoration: underline; }
.md-content .md-toc-lvl-1 { margin-left: 0; font-weight: 600; }
.md-content .md-toc-lvl-2 { margin-left: 1.1rem; }
.md-content .md-toc-lvl-3 { margin-left: 2.2rem; font-size: 0.95em; opacity: 0.9; }
.md-content .md-toc-lvl-4 { margin-left: 3.3rem; font-size: 0.9em; opacity: 0.85; }

/* Redacted text: a solid bar the same color as itself (so the text is
   there but unreadable) until hovered/focused, when the text color flips
   to the surface tone so it becomes legible against the bar -- classic
   "declassify on hover" document redaction, themed to fit the site. */
.md-content .md-redacted {
  background: var(--ink);
  color: var(--ink);
  border-radius: 3px;
  padding: 0.02em 0.35em;
  cursor: pointer;
  transition: color 0.15s ease;
}

.md-content .md-redacted:hover,
.md-content .md-redacted:focus-visible {
  color: var(--fluoro-white);
}

.md-content .md-redacted:focus-visible {
  outline: 3px solid var(--cursed-green);
  outline-offset: 2px;
}

.wiki-summary {
  font-style: italic;
  opacity: 0.85;
  border-left: 3px solid var(--stain-brown);
  padding-left: 0.8rem;
  margin-bottom: 1.25rem;
}

/* Styling for markdown/HTML rendered via renderMarkdown() -- applied to
   #levelBody, #entityBody, #previewBody. Without this, tags like
   blockquote/code/img pass DOMPurify's allow-list fine but render with
   bare browser defaults, which look almost identical to plain text. */

/* Long-form prose reads better in a proportional face than monospace --
   the rest of the site (nav, labels, buttons, classifications) stays on
   --font-term; this is the one deliberate exception. Code/pre still use
   --font-term below since code should look like code regardless. */
.md-content {
  font-family: var(--font-body);
}

.md-content h1, .md-content h2, .md-content h3, .md-content h4 {
  font-weight: 700;
  margin: 2.1rem 0 0.8rem;
  line-height: 1.3;
}
.md-content h1 { font-size: 1.7rem; margin-top: 2.4rem; }
.md-content h2 { font-size: 1.35rem; margin-top: 2.1rem; }
.md-content h3 { font-size: 1.15rem; margin-top: 1.8rem; }
.md-content h4 { font-size: 1.02rem; margin-top: 1.5rem; }

.md-content > *:first-child { margin-top: 0; }

.md-content p { margin: 1.1rem 0; line-height: 1.7; }

/* Keep running prose to a comfortable line length even inside the wide
   article variant (which can reach 70rem) -- long unbroken lines hurt
   readability. Tables and images are deliberately excluded; they benefit
   from the extra width. */
.md-content > p,
.md-content > ul,
.md-content > ol,
.md-content > blockquote {
  max-width: 72ch;
}

.md-content blockquote {
  border-left: 4px solid var(--stain-brown);
  background: rgba(var(--tint-rgb), 0.035);
  margin: 1.5rem 0;
  padding: 0.8rem 1.2rem;
  font-style: italic;
  color: var(--ink);
}

.md-content code {
  font-family: var(--font-term);
  background: rgba(var(--tint-rgb), 0.08);
  padding: 0.1rem 0.35rem;
  border-radius: var(--radius-sm);
  font-size: 0.95em;
}

.md-content pre {
  background: rgba(var(--tint-rgb), 0.06);
  padding: 0.8rem;
  border-radius: var(--radius-md);
  overflow-x: auto;
  margin: 1.5rem 0;
}
.md-content pre code { background: none; padding: 0; }

.md-content ul, .md-content ol {
  margin: 1.1rem 0;
  padding-left: 1.6rem;
}
.md-content li { margin: 0.45rem 0; line-height: 1.6; }

.md-content img {
  max-width: 100%;
  height: auto;
  min-height: 2rem;
  border: 2px solid var(--ink);
  border-radius: var(--radius-md);
  margin: 1.5rem 0;
  display: block;
}

.md-content a {
  color: var(--stain-brown);
  text-decoration: underline;
}

.md-content hr {
  border: none;
  border-top: 2px solid var(--border-soft);
  margin: 1.5rem 0;
}

.md-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.95rem;
}

.md-content th, .md-content td {
  border: 1px solid var(--border-soft);
  padding: 0.5rem 0.7rem;
  text-align: left;
}

.md-content th {
  background: rgba(var(--tint-rgb), 0.06);
  font-weight: 600;
}

.md-content tr:nth-child(even) td {
  background: rgba(var(--tint-rgb), 0.02);
}

.md-figure {
  margin: 1.5rem 0;
}
.md-figure img {
  margin: 0 0 0.4rem;
}
.md-figure figcaption {
  font-family: var(--font-term);
  font-size: 0.85rem;
  font-style: italic;
  opacity: 0.75;
  text-align: center;
}

.content-tabs {
  margin: 1.75rem 0;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.content-tab-bar {
  display: flex;
  flex-wrap: wrap;
  background: rgba(var(--tint-rgb), 0.035);
  border-bottom: 1px solid var(--border-soft);
}

.content-tab-btn {
  font-family: var(--font-term);
  font-weight: 500;
  font-size: 0.9rem;
  background: transparent;
  border: none;
  border-right: 1px solid var(--border-soft);
  padding: 0.6rem 1rem;
  cursor: pointer;
  color: var(--ink);
  opacity: 0.65;
}
.content-tab-btn:hover { opacity: 0.9; }
.content-tab-btn.active {
  opacity: 1;
  font-weight: 700;
  background: var(--paper);
  border-bottom: 2px solid var(--stain-brown);
  margin-bottom: -2px;
}

.content-tab-panel {
  padding: 1rem;
}
.content-tab-panel > *:first-child { margin-top: 0; }

.page-link-search {
  font-family: var(--font-term);
  font-size: 1.05rem;
  padding: 0.55rem 0.75rem;
  border: 1.5px solid var(--border-soft);
  border-radius: var(--radius-sm);
  background: var(--fluoro-white);
  color: var(--ink);
  width: 100%;
  margin: 0.75rem 0;
}

.page-link-results {
  max-height: 16rem;
  overflow-y: auto;
  text-align: left;
}

.page-link-result {
  display: block;
  width: 100%;
  text-align: left;
  font-family: var(--font-term);
  font-size: 0.95rem;
  background: none;
  border: none;
  border-bottom: 1px solid var(--border-soft);
  padding: 0.5rem 0.3rem;
  cursor: pointer;
  color: var(--ink);
}
.page-link-result:hover { background: rgba(var(--tint-rgb), 0.04); }

.unread-badge {
  position: absolute;
  top: -0.4rem;
  right: -0.4rem;
  background: var(--danger-red);
  color: #fff;
  font-family: var(--font-term);
  font-size: 0.7rem;
  line-height: 1;
  border-radius: 999px;
  padding: 0.18rem 0.35rem;
  border: 2px solid var(--paper);
}

.site-announcement-banner {
  background: var(--ink);
  color: var(--fluoro-white);
  font-family: var(--font-term);
  font-weight: 700;
  font-size: 0.95rem;
  text-align: center;
  padding: 0.6rem 1rem;
}

.admin-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.5rem 0.7rem;
  border: 2px solid var(--border-soft);
  border-radius: var(--radius-md);
  margin-bottom: 0.5rem;
  background: var(--fluoro-white);
}

.admin-row span { line-height: 1.4; }

.auth-link {
  font-family: var(--font-term);
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  text-decoration: none;
  color: var(--ink);
  border: 2px solid var(--ink);
  border-radius: var(--radius-sm);
  padding: 0.2rem 0.6rem;
  white-space: nowrap;
  max-width: 14rem;
  overflow: hidden;
  text-overflow: ellipsis;
}

.auth-link:hover { background: var(--fluoro-white); }
.auth-link:focus-visible { outline: 3px solid var(--cursed-green); outline-offset: 2px; }

.nav-avatar {
  width: 1.2rem;
  height: 1.2rem;
  border-radius: 50%;
  object-fit: cover;
}


/* ---------- WATCH TOGGLE + CROSSLINKS (backlinks / related) ---------- */
.watch-toggle-btn {
  margin-left: auto;
}

.watch-toggle-btn.watching {
  background: var(--stain-brown);
  color: var(--fluoro-white);
  border-color: var(--stain-brown);
}

.wiki-crosslinks {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 2px solid var(--ink);
}

.wiki-crosslink-block h3 {
  font-family: var(--font-term);
  font-size: 1rem;
  color: var(--stain-brown);
  margin-bottom: 0.6rem;
}

.wiki-crosslink-list {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.wiki-crosslink-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  text-decoration: none;
  color: var(--ink);
  font-size: 0.92rem;
  padding: 0.35rem 0.6rem;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border-soft);
}

.wiki-crosslink-item:hover {
  border-color: var(--ink);
  background: rgba(var(--tint-rgb), 0.06);
}
