/**
 * Classement Poker — [apiHallOfFame] : grille des tableaux de records.
 * Les styles de listes et de titres du thème sont neutralisés.
 *
 * @version 2.21.1
 */

.api-hof {
	display: grid; grid-template-columns: repeat(auto-fill, minmax(min(250px, 100%), 1fr)); gap: 16px;
	color: #0b0b0b; font-family: system-ui, -apple-system, "Segoe UI", sans-serif; font-size: 13px; line-height: 1.4; text-align: left;
}
.api-hof * { box-sizing: border-box; }
.api-hof .api-hof-card { min-width: 0; margin: 0; padding: 18px 20px; background: #fcfcfb; border: 1px solid rgba(11, 11, 11, 0.1); border-radius: 12px; }
.api-hof .api-hof-card h3 { margin: 0 0 6px; padding: 0; border: 0; color: #0b0b0b; font-family: inherit; font-size: 15px; font-weight: 700; line-height: 1.3; letter-spacing: 0; text-transform: none; }
.api-hof .api-hof-card p { margin: 0 0 10px; color: #52514e; font-size: 12px; }
.api-hof .api-hof-card ol { margin: 0; padding: 0; list-style: none; }
.api-hof .api-hof-card li { display: flex; align-items: center; gap: 10px; margin: 0; padding: 7px 0; border-top: 1px solid #eceae4; list-style: none; }
.api-hof .api-hof-rank { display: flex; flex: none; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 50%; background: #eceae4; color: #52514e; font-size: 11px; font-weight: 700; }
.api-hof .api-hof-name { display: flex; flex-direction: column; min-width: 0; overflow-wrap: anywhere; }
.api-hof .api-hof-name > span { color: #1c5cab; font-size: 13px; }
.api-hof .api-hof-name small { color: #898781; font-size: 11px; font-weight: 400; }
.api-hof .api-hof-value { margin-left: auto; font-variant-numeric: tabular-nums; white-space: nowrap; }
.api-hof .api-hof-card li:first-child .api-hof-rank { background: #c99a2e; color: #0b0b0b; }
.api-hof .api-hof-card li:first-child .api-hof-name > span, .api-hof .api-hof-card li:first-child .api-hof-value { font-weight: 700; }
.api-hof .api-hof-card p.api-hof-empty { margin: 0; padding: 14px 0; text-align: center; color: #898781; }

/* Encadré « Données prises en compte » (v2.19.0) */
.api-hof-scope { margin: 0 0 16px; padding: 16px 20px; background: #eef1fa; border-left: 5px solid #d4a017; border-radius: 12px; color: #0b0b0b; font-family: system-ui, -apple-system, "Segoe UI", sans-serif; font-size: 13px; line-height: 1.5; text-align: left; }
.api-hof-scope * { box-sizing: border-box; }
.api-hof-scope h3 { margin: 0 0 4px; padding: 0; border: 0; color: #203b8a; font-family: inherit; font-size: 15px; font-weight: 700; letter-spacing: 0; text-transform: none; }
.api-hof-scope p.api-hof-total { margin: 0 0 10px; font-weight: 600; }
.api-hof-scope dl { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr)); gap: 8px 20px; margin: 0; padding: 0; }
.api-hof-scope dl > div { min-width: 0; }
.api-hof-scope dt { margin: 0; color: #52514e; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; }
.api-hof-scope dd { margin: 0; padding: 0; overflow-wrap: anywhere; }

/* Aperçu de l'administration : case au-dessus de chaque tableau (v2.20.0) */
.api-hof-slot { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto 1fr; align-items: center; column-gap: 8px; row-gap: 6px; min-width: 0; }
.api-hof .api-hof-slot > input { margin: 0 0 0 4px; }
.api-hof .api-hof-slot > label { font-weight: 600; font-size: 13px; }
.api-hof .api-hof-slot > .api-hof-card { grid-column: 1 / -1; align-self: stretch; }
.api-hof .api-hof-slot > input:not(:checked) ~ .api-hof-card { opacity: 0.4; }

/* Ex æquo : bouton et fenêtre (v2.21.1). Les styles de boutons et de tableaux du thème sont neutralisés. */
.api-hof .api-hof-card button.api-hof-more { flex: 0 1 auto; min-width: 0; width: auto; height: auto; min-height: 24px; margin: 0; padding: 0; background: none; border: 0; border-radius: 0; box-shadow: none; text-shadow: none; text-transform: none; letter-spacing: 0; text-align: left; font: inherit; font-size: 13px; line-height: 1.4; color: #1c5cab; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.api-hof .api-hof-card li:first-child button.api-hof-more { font-weight: 700; }
.api-hof dialog.api-hof-dialog { width: min(520px, calc(100vw - 32px)); max-width: none; max-height: calc(100vh - 48px); margin: auto; padding: 0; overflow: hidden; border: 0; border-radius: 14px; background: #fff; color: #0b0b0b; text-align: left; box-shadow: 0 24px 60px rgba(11, 11, 11, 0.35); }
.api-hof dialog.api-hof-dialog::backdrop { background: rgba(11, 11, 11, 0.55); }
.api-hof .api-hof-window { display: flex; flex-direction: column; max-height: calc(100vh - 48px); }
.api-hof .api-hof-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px 14px 20px; border-bottom: 4px solid #d4a017; background: #203b8a; }
.api-hof .api-hof-head h4 { margin: 0; padding: 0; border: 0; color: #fff; font-family: inherit; font-size: 15px; font-weight: 700; line-height: 1.3; letter-spacing: 0; text-transform: none; }
.api-hof .api-hof-head button.api-hof-close { flex: none; width: 32px; height: 32px; min-height: 0; margin: 0; padding: 0; border: 0; border-radius: 50%; background: rgba(255, 255, 255, 0.15); box-shadow: none; text-shadow: none; color: #fff; font-size: 22px; font-weight: 400; line-height: 32px; cursor: pointer; }
.api-hof .api-hof-head button.api-hof-close:hover { background: rgba(255, 255, 255, 0.3); }
.api-hof .api-hof-scroll { min-height: 0; overflow: auto; overscroll-behavior: contain; }
.api-hof .api-hof-scroll table { width: 100%; margin: 0; border: 0; border-collapse: collapse; font-size: 13px; font-weight: 400; }
.api-hof .api-hof-scroll th, .api-hof .api-hof-scroll td { padding: 9px 20px; border: 0; border-bottom: 1px solid #eceae4; text-align: left; vertical-align: top; text-transform: none; line-height: 1.4; }
.api-hof .api-hof-scroll th { position: sticky; top: 0; background: #eef1fa; color: #203b8a; font-weight: 700; }
.api-hof .api-hof-scroll tbody tr:nth-child(even) { background: #fcfcfb; }
