@import url('https://fonts.googleapis.com/css2?family=Roboto+Condensed:wght@400;600;700&display=swap');

:root {
  color-scheme: light;
  --bg: #f3f6fb;
  --text: #172033;
  --muted: #647086;
  --card-bg: #ffffff;
  --border: #dce3ee;
  --input-border: #c8d2e1;
  --btn-bg: #2563eb;
  --btn-text: #ffffff;
  --status: #263247;
  --th-bg: #eef3f9;
  --formal-accent: #4f46e5;
  --formal-accent-soft: #eef2ff;
  --query-chip-bg: #eaf7fb;
  --query-chip-border: #b8dce7;
  --query-chip-text: #123342;
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --bg: #101622;
    --text: #eef4ff;
    --muted: #a9b7cc;
    --card-bg: #171f2e;
    --border: #2d3a50;
    --input-border: #43536c;
    --btn-bg: #2563eb;
    --btn-text: #ffffff;
    --status: #dbe7f8;
    --th-bg: #1f2a3b;
    --formal-accent: #9aa7ff;
    --formal-accent-soft: rgba(99, 102, 241, .16);
    --query-chip-bg: rgba(45, 212, 191, .10);
    --query-chip-border: rgba(45, 212, 191, .28);
    --query-chip-text: #d8fff8;
  }

  .search-guide-card {
    background:
      radial-gradient(circle at top left, rgba(99, 102, 241, .16), transparent 32%),
      radial-gradient(circle at top right, rgba(45, 212, 191, .10), transparent 28%),
      var(--card-bg);
  }

  .guide-formula,
  .query-example-card,
  .rotating-query-card,
  .query-example-rotator {
    background: rgba(31, 41, 55, .72);
  }

  .guide-formula span,
  .query-category {
    color: var(--formal-accent);
    background: var(--formal-accent-soft);
    border-color: var(--border);
  }

  .guide-principles span {
    color: var(--text);
    background: rgba(255, 255, 255, .04);
    border-color: var(--border);
  }

  .use-example-btn {
    color: #bfdbfe;
    background: rgba(37, 99, 235, .16);
    border-color: rgba(96, 165, 250, .28);
  }

  .query-sample-chip {
    color: var(--query-chip-text);
    background: var(--query-chip-bg);
    border-color: var(--query-chip-border);
  }

  .query-sample.good {
    color: #bbf7d0;
    background: rgba(22, 101, 52, .18);
    border-color: rgba(34, 197, 94, .26);
  }

  .query-sample.bad {
    color: #fed7aa;
    background: rgba(154, 52, 18, .18);
    border-color: rgba(251, 146, 60, .28);
  }
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 0.9rem;
}
.container {
  max-width: 100%;
  height: calc(100vh - 0px);
  padding: 2px 25px 0px 25px;
  display: flex;
  flex-direction: column;
}
h1 { margin-bottom: 8px; display: flex; align-items: center; gap: 12px; font-size: 21px; }
.title-logo { height: 24px; width: 24px; }
.stats-bar {
  margin: 0 0 12px;
}

.stats-summary {
  color: var(--muted);
  font-size: 12px;
  font-style: italic;
  line-height: 1.35;
  min-height: 17px;
  transition: opacity .35s ease;
}

.stats-summary-fading {
  opacity: 0;
}

.stats-badges {
  display: none;
}
.subtitle { margin-top: 0; color: var(--muted); }
.card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px;
}
label { font-weight: 600; display: block; margin-bottom: 6px; }
textarea {
  width: 100%;
  min-height: 120px;
  border: 1px solid var(--input-border);
  border-radius: 8px;
  padding: 10px;
  resize: vertical;
}
.sticky-query-card {
  position: sticky;
  top: 8px;
  z-index: 10;
}

.query-form-inline {
  display: flex;
  align-items: center;
  gap: 10px;
}

.query-form-inline #queryInput {
  flex: 1;
}

.query-form-inline #submitBtn {
  margin-top: 0;
  white-space: nowrap;
}

.query-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.query-actions button {
  margin-top: 0;
}

.btn-secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--input-border);
}

.btn-mode {
  border: 1px solid transparent;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .12);
}

.btn-articles {
  background: #2563eb;
  color: #ffffff;
}

.btn-regulations {
  background: #0f766e;
  color: #ffffff;
}

.btn-articles:hover:not(:disabled),
.btn-regulations:hover:not(:disabled) {
  filter: brightness(1.06);
}

.search-timer-toast {
  position: fixed;
  top: 12px;
  right: 12px;
  z-index: 1100;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--card-bg);
  color: var(--text);
  box-shadow: 0 8px 24px rgba(15, 23, 42, .18);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
}

.search-guide-card {
  margin-top: 12px;
  overflow: auto;
  background:
    radial-gradient(circle at top left, rgba(79, 70, 229, .09), transparent 32%),
    radial-gradient(circle at top right, rgba(14, 165, 233, .08), transparent 28%),
    var(--card-bg);
  box-shadow: 0 16px 40px rgba(15, 23, 42, .08);
}

.search-guide-card h2,
.search-guide-card h3 {
  margin: 4px 0 10px;
}

.guide-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 12px;
}

.guide-eyebrow {
  margin: 0 0 4px;
  color: var(--formal-accent);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.guide-subtitle {
  margin: -4px 0 0;
  color: var(--muted);
  line-height: 1.45;
}

.guide-formula,
.guide-principles {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.guide-formula {
  justify-content: flex-end;
  max-width: 420px;
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, .55);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .65);
}

.guide-formula span,
.guide-principles span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.guide-formula span {
  padding: 5px 9px;
  color: var(--formal-accent);
  background: var(--formal-accent-soft);
  border: 1px solid var(--border);
}

.guide-formula strong {
  color: var(--muted);
  font-size: 12px;
}

.guide-principles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  margin-bottom: 14px;
}

.guide-principles span {
  position: relative;
  padding: 9px 10px 9px 28px;
  color: var(--text);
  background: rgba(255, 255, 255, .36);
  border: 1px solid var(--border);
  border-radius: 12px;
  font-size: 12px;
  line-height: 1.35;
  white-space: normal;
}

.guide-note {
  margin-top: 10px;
  color: var(--muted);
}

.query-example-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 12px;
}

.query-example-rotator {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 12px;
  border-radius: 18px;
}

.rotator-head {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0;
  margin-bottom: 0;
}

.rotator-head h4 {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: .04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.rotating-query-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  width: 100%;
  min-width: 0;
  flex: 1;
}

.rotating-query-list.is-refreshing {
  animation: queryFadeIn .28s ease;
}

@keyframes queryFadeIn {
  from { opacity: .35; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

.query-sample-chip {
  display: inline-flex;
  align-items: center;
  flex: 1 1 290px;
  max-width: 100%;
  min-width: 0;
  margin: 0;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid var(--query-chip-border);
  background: var(--query-chip-bg);
  color: var(--query-chip-text);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.25;
  text-align: left;
  overflow: visible;
  overflow-wrap: anywhere;
  white-space: normal;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35);
}

.query-sample-chip:not(:disabled) {
  cursor: pointer;
}

.query-sample-chip:hover:not(:disabled) {
  filter: brightness(.98);
  border-color: var(--formal-accent);
}

.query-sample-chip.muted,
.query-sample-chip.skeleton {
  color: var(--muted);
  font-weight: 600;
}

.query-example-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(255, 255, 255, .72);
  box-shadow: 0 8px 24px rgba(15, 23, 42, .06);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.query-example-card:hover {
  transform: translateY(-2px);
  border-color: rgba(37, 99, 235, .28);
  box-shadow: 0 14px 32px rgba(15, 23, 42, .11);
}

.query-example-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.query-category {
  display: inline-flex;
  align-items: center;
  padding: 5px 9px;
  border-radius: 999px;
  color: #1e40af;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  font-size: 12px;
  font-weight: 800;
}

.use-example-btn {
  margin-top: 0;
  padding: 6px 10px;
  border: 1px solid rgba(37, 99, 235, .22);
  background: rgba(37, 99, 235, .08);
  color: #1d4ed8;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.use-example-btn:hover {
  background: #2563eb;
  color: #ffffff;
}

.query-comparison {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.query-sample {
  padding: 9px 10px;
  border-radius: 12px;
  border: 1px solid transparent;
}

.query-sample.good {
  color: #14532d;
  background: #f0fdf4;
  border-color: #bbf7d0;
}

.query-sample.bad {
  color: #7c2d12;
  background: #fff7ed;
  border-color: #fed7aa;
}

.sample-label {
  display: block;
  margin-bottom: 4px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .02em;
  text-transform: uppercase;
}

.query-sample p,
.query-tip {
  margin: 0;
  line-height: 1.42;
}

.query-tip {
  padding-top: 2px;
  color: var(--muted);
  font-size: 12px;
}

.hidden {
  display: none !important;
}

input[type="text"] {
  width: 100%;
  padding: 10px;
  border: 1px solid var(--input-border);
  border-radius: 8px;
  font-size: 15px;
}
.row { margin-top: 12px; }
input[type="number"] {
  width: 100px;
  padding: 8px;
  border: 1px solid var(--input-border);
  border-radius: 8px;
}
button {
  margin-top: 14px;
  background: var(--btn-bg);
  color: var(--btn-text);
  border: 0;
  border-radius: 8px;
  padding: 10px 14px;
  cursor: pointer;
}
button:disabled { opacity: .7; cursor: wait; }
.status { margin-top: 14px; color: var(--status); }
.results {
  margin-top: 0px;
  margin-bottom: 12px;
  display: table-caption;
  gap: 12px;
  width: 100%;
  overflow-x: auto;
  overflow-y: auto;
  min-height: 0;
  flex: 1;
}
.result-item {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px;
}
.meta {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 8px;
  word-break: break-all;
}
.text { white-space: pre-wrap; line-height: 1.45; }

/* Tambah jarak antar paragraf/newline pada hasil pencarian */
.results .text {
  white-space: pre-wrap;
}
.results .text p {
  margin: 0;
}
.results .text p + p,
.results td p + p {
  margin-top: 8px;
  text-align: justify;
}
.results .text br + br,
.results td br + br {
  content: "";
  display: block;
  margin-top: 8px;
}
.isi-pasal p {
  margin-top: -24px;
}
.isi-pasal .isi-line-ayat {
  margin-top: 8px;
  padding-left: 24px;
  text-indent: -24px;
}
.isi-pasal .isi-line-huruf {
  margin-top: 6px;
  padding-left: 40px;
  text-indent: -20px;
}
.isi-pasal .isi-line-angka {
  margin-top: 6px;
  padding-left: 56px;
  text-indent: -20px;
}
.isi-pasal .isi-truncated-note {
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
  font-style: italic;
}
.isi-pasal {
  position: relative;
}
.isi-pasal-header {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}
.penjelasan-link {
  margin: 0;
  padding: 0;
  border: none;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.2;
  cursor: pointer;
  text-decoration: blink;
}
.penjelasan-link:hover {
  color: var(--text);
}
.relevance-emoji-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  font-size: 14px;
}

.cell-order-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  line-height: 1.2;
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
}

.validity-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
  border: 1px solid transparent;
  white-space: nowrap;
}

.validity-badge.berlaku {
  color: #166534;
  background: #dcfce7;
  border-color: #86efac;
}

.validity-badge.tidak-berlaku {
  color: #991b1b;
  background: #fee2e2;
  border-color: #fca5a5;
}

.validity-badge.unknown {
  color: #374151;
  background: #e5e7eb;
  border-color: #d1d5db;
}

.penjelasan-popover {
  position: fixed;
  z-index: 1200;
  max-width: min(540px, 65vw);
  max-height: 55vh;
  overflow: auto;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--card-bg);
  color: var(--text);
  box-shadow: 0 8px 22px rgba(0,0,0,.22);
  font-size: 12px;
  line-height: 1.45;
}
.penjelasan-popover p {
  margin: 0;
}
.penjelasan-popover p + p {
  margin-top: 8px;
}

.result-table {
  width: 100%;
  max-width: 100%;
  border-collapse: collapse;
  background: var(--card-bg);
  border: 1px solid var(--border);
  table-layout: fixed;
}
.result-table th,
.result-table td {
  border: 1px solid var(--border);
  padding: 16px;
  text-align: left;
  vertical-align: top;
}
.result-table th { background: var(--th-bg); }
.result-table thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: var(--th-bg);
}
.result-table thead th:nth-child(1),
.result-table thead th:nth-child(2),
.result-table thead th:nth-child(3) {
  text-align: center;
}
.result-table th:first-child,
.result-table td:first-child {
  width: 20%;
  min-width: 120px;
  max-width: 280px;
  overflow: hidden;
  text-overflow: ellipsis;
  word-break: break-word;
}
.result-table th:nth-child(2),
.result-table td:nth-child(2) {
  width: 20%;
  min-width: 220px;
  max-width: 380px;
  white-space: normal;
  overflow-wrap: anywhere;
}
.result-table th:nth-child(3),
.result-table td:nth-child(3) {
  width: 50%;
  min-width: 500px;
  max-width: 800px;
}

/* Mobile override untuk result-table */
@media (max-width: 768px) {
  .container {
    padding: 0px 10px 0px 10px;
  }

  .query-form-inline {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  .query-form-inline #queryInput {
    width: 100%;
    flex: none;
  }

  .query-actions {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
  }

  .query-actions button {
    width: 100%;
    padding-left: 8px;
    padding-right: 8px;
  }

  .guide-header {
    flex-direction: column;
    gap: 10px;
  }

  .guide-formula {
    justify-content: flex-start;
    max-width: 100%;
    border-radius: 14px;
  }

  .query-example-grid {
    grid-template-columns: 1fr;
  }

  .rotator-head {
    align-items: center;
    flex-direction: row;
  }

  .query-example-rotator {
    flex-direction: column;
    border-radius: 16px;
  }

  .rotating-query-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    width: 100%;
    min-width: 0;
    flex: 1;
  }

  .query-sample-chip {
    width: 100%;
    flex: 1 1 100%;
    align-items: flex-start;
    border-radius: 14px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.35;
    overflow: visible;
    text-overflow: clip;
    white-space: normal;
  }

  .result-table th,
  .result-table td {
    font-family: "Roboto Condensed", "Arial Narrow", Arial, sans-serif;
    padding: 7px;
  }

  .penjelasan-link {
    font-family: "Roboto Condensed", "Arial Narrow", Arial, sans-serif;
    font-size: 12px;
  }
}
.struktur-cell p {
  margin: 0;
}
.struktur-cell p + p {
  margin-top: 8px;
}

/* Layout khusus tabel tanya-jawab */
.result-table-qa {
  table-layout: fixed;
}
.result-table-qa th:nth-child(1),
.result-table-qa td:nth-child(1) { width: 120px; min-width: 120px; max-width: 140px; }
.result-table-qa th:nth-child(2),
.result-table-qa td:nth-child(2) { width: 220px; min-width: 180px; max-width: 260px; }
.result-table-qa th:nth-child(3),
.result-table-qa td:nth-child(3) { width: 160px; min-width: 140px; max-width: 200px; }
.result-table-qa th:nth-child(4),
.result-table-qa td:nth-child(4) { width: 120px; min-width: 110px; max-width: 160px; }
.result-table-qa th:nth-child(5),
.result-table-qa td:nth-child(5) { width: auto; }

.result-table-qa td,
.result-table-qa th {
  overflow-wrap: anywhere;
}

.regulation-section {
  margin-bottom: 18px;
}

.regulation-section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 12px 0 8px;
  padding: 9px 11px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--th-bg);
  font-size: 15px;
}

.regulation-section-title span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  padding: 2px 7px;
  border-radius: 999px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 11px;
}

.regulation-list-table {
  width: 100%;
  max-width: 100%;
  border-collapse: collapse;
  background: var(--card-bg);
  border: 1px solid var(--border);
  table-layout: fixed;
  min-width: 0;
}

.regulation-list-table th,
.regulation-list-table td {
  border: 1px solid var(--border);
  padding: 9px 10px;
  vertical-align: top;
  overflow-wrap: anywhere;
}

.regulation-list-table th {
  background: var(--th-bg);
}

.regulation-list-table thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: var(--th-bg);
}

.regulation-list-table .col-hits {
  width: 50px;
  min-width: 42px;
  max-width: 52px;
  text-align: center;
  word-break: normal;
}

.regulation-list-table .col-regulation-name {
  width: auto;
  min-width: 0;
  max-width: none;
  text-align: left;
  white-space: normal;
  overflow-wrap: anywhere;
}

.regulation-list-table .col-status {
  width: 65px;
  min-width: 50px;
  max-width: 62px;
  text-align: center;
  overflow-wrap: normal;
}

.regulation-status-badge {
  min-width: 0;
  padding-left: 7px;
  padding-right: 7px;
}
.result-table pre {
  margin: 0;
  white-space: pre-wrap;
  font-family: inherit;
}

.relevancy-title {
  margin: 18px 0 8px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--th-bg);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: .3px;
}

.pdf-modal {
  position: fixed;
  inset: 0;
  padding: 12px;
  top: 12px;
  right: 12px;
  bottom: 12px;
  width: 100%;
  z-index: 1000;
  display: flex;
  justify-content: center;
  background: rgba(255, 255, 255, 0.02);
}
.pdf-modal.hidden { display: none; }
.pdf-modal-content {
  height: 100%;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 8px 18px rgba(0,0,0,.18);
  display: flex;
  flex-direction: column;
  width: auto;
}
.pdf-toolbar {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 0px 10px 10px 10px;
  border-bottom: 1px solid var(--border);
}
.pdf-toolbar input { width: 57px; padding: 9px; margin-top: 14px;}
.pdf-progress-text {
  font-size: 10px;
  color: var(--muted);
  margin-left: 1px;
  flex: 1;
  min-width: 0;
  font-family: "Arial Narrow";
  margin-top: 14px;
}
.pdf-toolbar-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
}
.pdf-toolbar .danger { background: #dc2626; color: #fff; margin-left: 0; }
.pdf-download-btn {
  margin-top: 14px;
  background: #16a34a;
  color: #fff;
  border-radius: 8px;
  padding: 10px 14px;
  text-decoration: none;
  font-size: 14px;
}
.pdf-notes {
  padding: 10px;
  border-bottom: 1px solid var(--border);
}
.pdf-notes.hidden { display: none; }
.pdf-notes label {
  font-size: 12px;
  margin-bottom: 0;
}
.pdf-notes-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}
.pdf-notes-save-state {
  font-size: 11px;
  color: var(--muted);
}
.pdf-notes textarea {
  width: 100%;
  min-height: 70px;
  resize: vertical;
  border: 1px solid var(--input-border);
  border-radius: 8px;
  padding: 8px;
}
.pdf-canvas-wrap {
  flex: 1;
  overflow: auto;
  padding: 8px;
  background: #111;
}
.pdf-canvas {
  display: block;
  margin: 0 auto 10px;
  max-width: 100%;
  background: #fff;
}

.relevance-legend-card {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.legend-description {
  opacity: 0.9;
  line-height: 1.5;
}

.legend-list {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  margin-top: 1rem;
}

.legend-item {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 0.9rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.legend-badge {
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
}

.sangat-relevan {
  color: #4da3ff;
}

.relevan {
  color: #41d16f;
}

.mungkin-relevan {
  color: #ffd24d;
}

.legend-text {
  opacity: 0.9;
  line-height: 1.5;
  font-size: 0.92rem;
}

.legend-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.legend-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0.65rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.01em;
  line-height: 1.2;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
}
