/* Hors Bilan: static article pages, no JS (scripts/hors-bilan/build.py).
   Loaded after /fr/lexique/lexique.css, whose tokens, header, footer and
   tables it reuses; only what an article or the list needs is here. */

main.hb { max-width: 760px; }

main.hb h1 {
  font-size: 44px;
  line-height: 1.08;
  font-style: italic;
}

.hb-lede { font-size: 19px; line-height: 1.6; margin: 20px 0 12px; color: var(--foreground); }
.hb-meta { font-size: 13px; color: var(--muted-foreground); margin: 0 0 8px; }

.hb-hero { margin: 0 0 32px; }
.hb-hero img, main.hb figure img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
}
main.hb figure { margin: 24px 0; }
main.hb figcaption { margin-top: 8px; font-size: 13px; color: var(--muted-foreground); }

.hb-companies {
  margin: 0 0 32px;
  padding: 16px 20px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.hb-companies ul { list-style: none; padding: 0; margin: 8px 0 0; font-size: 15px; }
.hb-companies li { margin: 0 0 4px; }
.hb-companies .mono { margin-left: 8px; font-size: 12px; color: var(--muted-foreground); }

main.hb article ul, main.hb article ol { font-size: 17px; }

blockquote.note { margin: 24px 0; }
blockquote.note p { margin: 0 0 8px; }
blockquote.note p:last-child { margin-bottom: 0; }

.hb-sources { margin-top: 56px; font-size: 14px; color: var(--muted-foreground); }
.hb-sources h2 { font-size: 24px; color: var(--foreground); }
.hb-sources ul { font-size: 14px; }

.hb-related h2 { margin-top: 64px; }

/* Cards: one block per article, image on top; the title's link is stretched
   over the whole card (::after), so a click anywhere opens the article. */
main.hb-list { max-width: 1120px; }
main.hb-list .page-head { max-width: 760px; }
main.hb-list .hb-lede { text-align: justify; hyphens: auto; }
.hb-cards {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}
.hb-card {
  position: relative;
  display: flex;
  flex-direction: column;
  margin: 0;
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color .15s, box-shadow .15s, transform .15s;
}
.hb-card:hover { border-color: rgba(37, 99, 235, 0.4); box-shadow: 0 6px 20px rgba(15, 23, 42, 0.08); transform: translateY(-2px); }
.hb-card:focus-within { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15); }
.hb-card img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1200 / 630;
  object-fit: cover;
  border-bottom: 1px solid var(--border);
  background: var(--background);
}
.hb-card-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 6px; }
.hb-card h2, .hb-card h3 {
  margin: 0;
  padding: 0;
  border: 0;
  font-family: var(--font-display);
  font-size: 23px;
  font-weight: 500;
  line-height: 1.2;
}
.hb-card h2 a, .hb-card h3 a { color: var(--foreground); text-decoration: none; }
.hb-card h2 a::after, .hb-card h3 a::after { content: ""; position: absolute; inset: 0; }
.hb-card h2 a:focus, .hb-card h3 a:focus { outline: none; }
.hb-card:hover h2 a, .hb-card:hover h3 a { color: var(--primary); }
.hb-card p { margin: 0; font-size: 15px; line-height: 1.55; color: var(--muted-foreground); }
.hb-card .hb-meta { font-size: 12px; }
.hb-related .hb-cards { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.hb-related .hb-card h3 { font-size: 19px; }
.hb-related .hb-card-body > p:last-child { display: none; }

.hb-empty { font-size: 17px; color: var(--muted-foreground); }

.hb-pager { margin: 40px 0 0; font-size: 14px; color: var(--muted-foreground); }
.hb-pager a, .hb-pager span { display: inline-block; padding: 8px 6px; }
.hb-pager span[aria-current] { color: var(--foreground); font-weight: 600; }

.pill[aria-current="page"] { background: rgba(37, 99, 235, 0.20); border-color: rgba(37, 99, 235, 0.50); }

@media (max-width: 767px) {
  main.hb h1 { font-size: 34px; }
  .hb-lede { font-size: 17px; }
}
