/* brvm-screener : fond blanc, une seule couleur d'accent, tableaux lisibles. */
:root {
  --accent: #0b5394;
  --text: #1a1a1a;
  --muted: #555;
  --line: #d0d0d0;
  --ok: #1b6e3c;
  --warn: #8a5300;
  --error: #a4161a;
}
* { box-sizing: border-box; }
html { font-size: 100%; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.5;
  color: var(--text);
  background: #fff;
}
a { color: var(--accent); }
a:focus-visible, button:focus-visible, input:focus-visible, summary:focus-visible, [tabindex]:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link { position: absolute; left: -999px; top: 0; background: #fff; padding: .5rem 1rem; }
.skip-link:focus { left: 0; z-index: 10; }
.site-header, main, .site-footer { max-width: 72rem; margin: 0 auto; padding: 1rem; }
.site-header { display: flex; flex-wrap: wrap; gap: 1rem; align-items: baseline; border-bottom: 2px solid var(--accent); }
.site-name { margin: 0; font-weight: 700; font-size: 1.25rem; }
.site-name a { text-decoration: none; }
.site-header ul { list-style: none; display: flex; flex-wrap: wrap; gap: 1rem; margin: 0; padding: 0; }
.site-header [aria-current="page"] { font-weight: 700; }
.site-footer { border-top: 1px solid var(--line); color: var(--muted); font-size: .9rem; }
h1 { font-size: 1.6rem; margin: 1rem 0; }
h2 { font-size: 1.3rem; margin: 1.5rem 0 .5rem; }
h3 { font-size: 1.1rem; margin: 1.25rem 0 .5rem; }
.search label { display: block; font-weight: 600; margin-bottom: .25rem; }
.search-row { display: flex; flex-wrap: wrap; gap: .5rem; }
.search input { flex: 1 1 16rem; min-width: 0; padding: .6rem .75rem; font-size: 1rem; border: 1px solid #767676; border-radius: 4px; }
.search button { padding: .6rem 1.2rem; font-size: 1rem; color: #fff; background: var(--accent); border: 1px solid var(--accent); border-radius: 4px; cursor: pointer; }
.hint, .note { color: var(--muted); font-size: .9rem; }
.note { display: block; }
.field-error { color: var(--error); font-weight: 600; min-height: 1.5rem; }
.field-error:empty { min-height: 0; }
.loading { display: none; color: var(--muted); }
.loading.htmx-request, .htmx-request .loading { display: block; }
.examples ul { padding-left: 1.2rem; }
.banner { border-left: 4px solid var(--accent); padding: .5rem .75rem; margin: .75rem 0; background: #f4f7fb; }
.banner p, .banner ul { margin: .25rem 0; }
.banner-warning { border-left-color: var(--warn); background: #fdf6e7; }
.banner-error { border-left-color: var(--error); background: #fbecec; }
.summary { font-size: 1.1rem; font-weight: 600; }
.table-wrap { overflow-x: auto; margin: .75rem 0; }
table { border-collapse: collapse; width: 100%; font-size: .95rem; }
caption { text-align: left; font-weight: 600; padding: .25rem 0; }
th, td { border: 1px solid var(--line); padding: .4rem .5rem; text-align: left; vertical-align: top; }
thead th { background: #f0f0f0; }
tbody th { font-weight: 600; }
.ticker { color: var(--muted); font-weight: 400; font-size: .9rem; white-space: nowrap; }
.criterion .mark { font-weight: 700; margin-right: .25rem; }
.criterion .status { display: block; font-size: .85rem; }
.criterion-satisfied .mark, .criterion-satisfied .status { color: var(--ok); }
.criterion-near .mark, .criterion-near .status { color: var(--warn); }
.criterion-not_satisfied .mark, .criterion-not_satisfied .status,
.criterion-missing .status, .criterion-not_available .status { color: var(--error); }
.theme { margin: 0 0 .25rem; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: .5rem 1.5rem; margin: 1rem 0; }
.facts div { border-bottom: 1px solid var(--line); padding-bottom: .25rem; }
.facts dt { color: var(--muted); font-size: .9rem; }
.facts dd { margin: 0; font-weight: 600; }
.fresh-ok { color: var(--ok); }
.fresh-warning, .severity-warning td:nth-child(2) { color: var(--warn); font-weight: 600; }
.fresh-critical, .severity-critical td:nth-child(2), .run-failed td:nth-child(4) { color: var(--error); font-weight: 600; }
.disclaimer { font-style: italic; }
details.excluded { margin: .75rem 0; }
details.excluded summary { cursor: pointer; font-weight: 600; }
code { background: #f0f0f0; padding: .1rem .3rem; border-radius: 3px; }
@media (max-width: 40rem) {
  h1 { font-size: 1.35rem; }
  th, td { padding: .3rem .35rem; }
  .search button { flex: 1 1 100%; }
}

/* Recherche documentaire */
.doc-filters { display: flex; flex-wrap: wrap; gap: .75rem 1.5rem; margin: .5rem 0; align-items: end; }
.doc-filters label { font-weight: 400; }
.doc-filters input[type="text"], .doc-filters input[type="date"] { flex: none; display: block; padding: .4rem .5rem; font-size: 1rem; border: 1px solid #767676; border-radius: 4px; }
.doc-check { display: flex; gap: .4rem; align-items: center; }
.doc-check input { flex: none; }
.doc-check label { margin: 0; }
.passages { padding-left: 1.4rem; }
.passages li { margin-bottom: 1rem; }
.passages blockquote { margin: 0 0 .25rem; padding: .5rem .75rem; border-left: 4px solid var(--line); background: #f8f8f8; white-space: pre-line; overflow-wrap: anywhere; }
.passages mark { background: #ffe9a8; color: inherit; font-weight: 600; }
.citation { margin: 0; font-size: .9rem; }
.doc-status { font-weight: 600; }
.doc-status-superseded, .doc-status-historical { color: var(--warn); }
.understood { padding-left: 1.2rem; }
