/* Methodology note — reusable "how is this calculated?" explainer.
 * Unobtrusive native <details> disclosure: a muted info trigger that expands
 * to a short, plain-language explanation of how a number/page is derived.
 * RTL-first (logical properties); used across analytics, legends, reports. */

.methnote {
  margin: 8px 0;
  font-size: 12.5px;
}

.methnote > summary.methnote-summary {
  list-style: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #64748b;
  font-weight: 500;
  padding: 4px 8px;
  border-radius: 8px;
  user-select: none;
  transition: background .15s ease, color .15s ease;
}

.methnote > summary.methnote-summary::-webkit-details-marker { display: none; }
.methnote > summary.methnote-summary::marker { content: ''; }

.methnote > summary.methnote-summary:hover {
  background: rgba(100, 116, 139, .10);
  color: #475569;
}

.methnote > summary.methnote-summary i { font-size: 14px; opacity: .85; }

.methnote[open] > summary.methnote-summary { color: #334155; }

.methnote-body {
  margin-top: 6px;
  padding: 12px 14px;
  border-radius: 10px;
  background: rgba(241, 245, 249, .85);
  border: 1px solid rgba(148, 163, 184, .25);
  color: #475569;
  line-height: 1.55;
}

.methnote-title { font-weight: 600; color: #334155; margin-bottom: 6px; }
.methnote-body p { margin: 0 0 6px; }
.methnote-body p:last-child { margin-bottom: 0; }
.methnote-body ul { margin: 4px 0; padding-inline-start: 18px; list-style: disc; }
.methnote-body li { margin: 2px 0; }
.methnote-body strong { color: #334155; }
.methnote-body .methnote-source { display: block; margin-top: 8px; font-size: 11.5px; color: #94a3b8; }

/* Anomaly note — amber variant of the explainer, for price ₪/m² outliers.
 * Openable badge, never a blocking modal (pull-not-push). */
.anomaly-note { margin: 10px 0; font-size: 12.5px; }
.anomaly-note > summary {
  list-style: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 11px;
  border-radius: 9px;
  font-weight: 600;
  color: #92400e;
  background: rgba(251, 191, 36, .14);
  border: 1px solid rgba(245, 158, 11, .35);
  user-select: none;
  transition: background .15s ease;
}
.anomaly-note > summary::-webkit-details-marker { display: none; }
.anomaly-note > summary::marker { content: ''; }
.anomaly-note > summary:hover { background: rgba(251, 191, 36, .22); }
.anomaly-note > summary i { font-size: 14px; }
.anomaly-note-body {
  margin-top: 6px;
  padding: 11px 13px;
  border-radius: 10px;
  background: rgba(255, 251, 235, .9);
  border: 1px solid rgba(245, 158, 11, .25);
  color: #78350f;
  line-height: 1.5;
}
.anomaly-note-body .an-thresholds { color: #92400e; margin-bottom: 6px; }
.anomaly-note-body ul { margin: 4px 0 0; padding-inline-start: 18px; list-style: disc; }
.anomaly-note-body li { margin: 2px 0; }
.anomaly-note-body .an-dir-high { color: #b91c1c; font-weight: 600; }
.anomaly-note-body .an-dir-low { color: #1d4ed8; font-weight: 600; }
.anomaly-note-body .methnote-source { display: block; margin-top: 8px; font-size: 11.5px; color: #b45309; }

/* City demographics chips (population / density / area), CBS source. */
.demo-row { display: flex; flex-wrap: wrap; gap: 7px; margin: 6px 0 10px; }
.demo-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  color: #0f766e;
  background: rgba(13, 148, 136, .10);
  border: 1px solid rgba(13, 148, 136, .22);
}
.demo-chip i { font-size: 13px; opacity: .9; }
