:root {
  --rule: #e3e3dc;
  --muted: #6b6b64;
  --accent: #7a4a2b;
}
:lang(ka), :lang(ka) * {
  font-family: system-ui, -apple-system, "Segoe UI", "Noto Sans Georgian", "BPG Nino Mtavruli", Roboto, sans-serif;
}
/* Playfair Display's own "&" glyph is a much more ornate, cursive-style character
   than its upright letterforms — a real feature of the typeface, not a bug — which
   reads as broken at heading size. escapeHeading() (website.ts) / escapeHeading()
   (porto-chrome.ts) wrap just that character in this class so it renders in Sintony's
   plain ampersand instead, leaving the rest of the heading in Playfair Display. */
.amp-plain { font-family: Sintony, sans-serif; }

/* Excerpts vary a lot in length otherwise, making a row of cards look uneven —
   clamped rather than hard-truncated server-side, so the full text is still what a
   screen reader or "view source" sees, only the visual box is fixed-height. Cards have
   more room for this now that the title moved into the cover graphic itself
   (post-cover.ts) instead of sitting above the excerpt as its own heading. */
.card-clamp-4 {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  line-clamp: 4;
  overflow: hidden;
}

/* The card's own <h2> stays in the DOM for screen readers and search engines — the
   title is what the cover graphic shows sighted visitors instead. Standard visually-
   hidden pattern; neither .visually-hidden nor .sr-only ship in this theme's trimmed
   Bootstrap build (confirmed directly against vendor/bootstrap/css/bootstrap.min.css). */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.insights-filter { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 1.5rem 0; }
.filter-pill {
  display: inline-block;
  padding: 0.35rem 1rem;
  border: 1px solid var(--rule);
  border-radius: 999px;
  font-size: 0.85rem;
  text-decoration: none;
  color: var(--muted);
}
.filter-pill.active, .filter-pill:hover { background: var(--accent); color: #fff; border-color: var(--accent); }
.section-more { font-size: 0.9rem; color: var(--muted); margin: -1rem 0 2rem; }
.tags { color: var(--muted); font-size: 0.85rem; margin-top: 1rem; }
.tags span::before { content: "#"; opacity: 0.5; }
.provenance {
  border-top: 1px solid var(--rule);
  margin-top: 2rem;
  padding-top: 1.25rem;
  font-size: 0.9rem;
}
.provenance .note { color: var(--muted); margin: 0 0 0.75rem; }
.provenance ul { list-style: none; margin: 0; padding: 0; }
.provenance li { margin-bottom: 0.3rem; }
.provenance code { font-size: 0.85em; color: var(--accent); }
.provenance .src { color: var(--muted); }
.empty { color: var(--muted); padding: 3rem 0; text-align: center; }
[hidden] { display: none !important; }

.rp-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; margin: 1.5rem 0; }
@media (min-width: 42rem) { .rp-grid { grid-template-columns: 1fr 1fr; } }
.rp-panel { border: 1px solid var(--rule); border-radius: 6px; padding: 1rem; }
.rp-panel h2 { margin: 0 0 0.6rem; }
.rp-metric + .rp-metric { margin-top: 1rem; padding-top: 1rem; border-top: 1px dashed var(--rule); }
.rp-metric h3 { margin: 0 0 0.4rem; font-size: 0.8rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.02em; color: var(--muted); }
.rp-chart { width: 100%; }
.rp-chart svg { width: 100%; height: auto; display: block; }
.rp-legend { display: flex; flex-wrap: wrap; gap: 0.75rem 1.25rem; margin: 0.75rem 0; font-size: 0.85rem; }
.rp-legend > div { display: flex; flex-direction: column; }
.rp-legend dt { display: flex; align-items: center; gap: 0.35rem; color: var(--muted); }
.rp-legend dd { margin: 0.1rem 0 0 1.1rem; font-weight: 600; }
.rp-dot { display: inline-block; width: 0.6rem; height: 0.6rem; border-radius: 50%; }
.rp-period { font-weight: 400; color: var(--muted); }
.rp-blurb { margin: 0.75rem 0 0; padding-left: 0.75rem; border-left: 3px solid; font-size: 0.95rem; }
.rp-conclusion { border-top: 1px solid var(--rule); margin-top: 2rem; padding-top: 1.25rem; }
