/* Official Narratives (/narratives), Court Cases (/court-cases) and their admin queue (/admin/official).
   Builds on style.css (.research-page, .page-intro, .org-chip, .pager) and uses its tokens only. */
.official-disclaimer {
  margin: 0 0 18px; padding: 10px 14px; border-left: 3px solid var(--orange); border-radius: 8px;
  background: #fff7ed; font-size: 0.9rem; color: var(--ink);
}
.link-ok { display: inline-flex; align-items: center; gap: 3px; font-size: 0.78rem; font-weight: 600; color: var(--accent); }
.review-tag {
  display: inline-block; padding: 1px 8px; border-radius: 999px; background: var(--hover); color: var(--muted);
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.02em;
}
.review-tag.is-reviewed { background: var(--accent-soft); color: var(--accent); }
.related-link { font-size: 0.82rem; font-weight: 600; color: var(--accent); }

/* ---- Official Narratives ---- */
.speaker-filter { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 14px; font-size: 0.88rem; }
.speaker-filter label { display: inline; margin: 0; font-weight: 600; color: var(--muted); }
.speaker-filter select {
  width: auto; min-width: 0; max-width: min(100%, 420px); padding: 7px 10px; font: inherit; border: 1px solid var(--line); border-radius: 8px;
  background: var(--surface); color: var(--ink);
}
.speaker-filter .topbar-btn { padding: 7px 14px; }
.speaker-clear { font-size: 0.84rem; color: var(--muted); }
/* Cards: the Reports page's .report-grid / .report-card / .report-org / .report-title / .report-meta / .report-excerpt /
   .report-foot / .report-badge (style.css), with each source's colour as --org for the dot and the top bar. */
[data-src="ISPR"] { --org: var(--red); }
[data-src="Parliament"] { --org: var(--blue); }
[data-src="Court"] { --org: var(--purple); }
.official-card .review-tag { flex: none; margin-left: auto; padding-left: 8px; white-space: nowrap; text-transform: none; letter-spacing: 0.02em; }
.official-card .report-org { gap: 7px; }
.official-card .report-org .org-dot { margin-right: 0; } /* the gap spaces it, as .org-dot's margin does on Reports */
.card-sublabel { margin: -4px 0 10px; font-size: 0.84rem; color: var(--ink); }
.side-tag { margin-left: 4px; padding: 1px 7px; border-radius: 999px; font-size: 0.72rem; font-weight: 600; background: var(--hover); color: var(--muted); }
.side-tag[data-side="Government"] { background: #e0ecff; color: var(--blue); }
.side-tag[data-side="Opposition"] { background: #fdecec; color: var(--red); }
/* The snippet: 4 lines at most, then an ellipsis (as .law-card .report-excerpt on the Legal Library). */
.card-snippet { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 4; line-clamp: 4; overflow: hidden; overflow-wrap: anywhere; }
.card-snippet[dir="rtl"] { font-family: "Noto Nastaliq Urdu", serif; line-height: 2.1; -webkit-line-clamp: 3; line-clamp: 3; }
.card-snippet p { margin: 0; }
.case-fact { display: block; }
.case-fact-label { margin-right: 4px; font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
.case-privacy { margin: -8px 0 14px; font-size: 0.82rem; }
.name-withheld { font-size: 0.74rem; color: var(--muted); }
.card-badges { display: inline-flex; align-items: center; gap: 8px; }
/* The whole card links to the source (.report-title a::after); these sit above that link and stay clickable. */
.card-related { position: relative; z-index: 1; margin: -6px 0 12px; }
.card-badges .link-ok { position: relative; z-index: 1; cursor: help; }

/* ---- admin queue ---- */
.admin .sub-form select {
  width: 100%; padding: 8px 10px; font: inherit; font-size: 0.9rem; border: 1px solid var(--line);
  border-radius: 8px; background: var(--surface); color: var(--ink);
}
.admin .check-inline { display: flex; align-items: center; gap: 8px; font-size: 0.88rem; }
.admin .check-inline input { width: auto; }
.admin .add-case summary { cursor: pointer; margin-bottom: 10px; }
.admin .org-filter { margin-bottom: 16px; }

/* ---- detail pages (/narratives/<id>, /court-cases/<id>): the Reports page (research_report.html, style.css
   .report-header / .report-cta / .report-summary), with the source's colour (--org, set by data-src above) on the
   header's top bar and dot, and on the key passage ---- */
.official-detail .report-org { flex-wrap: wrap; gap: 7px; }
.official-detail .report-org .org-dot { margin-right: 0; }
.official-detail .report-org .review-tag { text-transform: none; letter-spacing: 0.02em; }
.detail-speaker { font-weight: 600; color: var(--ink); }
.detail-provisions-line { margin: -10px 0 18px; font-size: 0.88rem; color: var(--muted); }
.official-detail .report-actions .link-ok { cursor: help; }
.official-detail .article-tools { margin-top: 18px; }
.summary-quote { margin: 0 0 22px; }
.summary-quote blockquote {
  margin: 0; padding: 14px 18px; border-left: 4px solid var(--org); border-radius: 0 8px 8px 0; background: var(--hover);
}
.report-summary .summary-quote blockquote p {
  margin: 0; font-family: var(--font-display); font-size: 1.08rem; line-height: 1.6; color: var(--ink); overflow-wrap: anywhere;
}
.summary-quote blockquote[dir="rtl"] { border-left: 0; border-right: 4px solid var(--org); border-radius: 8px 0 0 8px; }
.report-summary .summary-quote blockquote[dir="rtl"] p { font-family: "Noto Nastaliq Urdu", serif; line-height: 2.2; }
.summary-quote figcaption { margin-top: 6px; font-size: 0.78rem; color: var(--muted); }
.report-summary p.detail-laws { margin: 18px 0 0; padding-top: 14px; border-top: 1px solid var(--line); font-size: 0.88rem; color: var(--muted); }
.official-detail .law-incidents-block { margin-bottom: 22px; }
.methodology-note { margin: 18px 0 0; font-size: 0.84rem; color: var(--muted); }
.related-why { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 6px; }
.why-tag { padding: 1px 8px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-size: 0.74rem; font-weight: 600; }
