/* Tableau comparatif du ranking.
   Seul bloc du site qui n'existe pas dans le gabarit Webflow d'origine : il porte la colonne
   « Język sklepu ». Ecrit a la main, avec les tokens de la charte EMD et rien d'autre.
   Theme clair uniquement : aucun bloc prefers-color-scheme ici, le parc n'a pas de mode sombre. */

.gar-table-scroll {
  width: 100%;
  overflow-x: auto;
  /* sur mobile le tableau depasse : on le fait defiler lui, pas la page */
  -webkit-overflow-scrolling: touch;
  border: 1px solid #e4dfd5;
  border-radius: 12px;
  background: #fff;
}

.gar-table-scroll:focus-visible {
  outline: 2px solid #ef7a1a;
  outline-offset: 2px;
}

.gar-table {
  width: 100%;
  /* mesure : a 1024 px la zone utile fait 709 px. Un min-width de 720 faisait deborder
     le tableau de 11 px pour rien. A 620 il tient partout au-dessus de 640 px de large,
     et ne defile plus que sur telephone, ou le defilement est de toute facon necessaire. */
  min-width: 620px;
  border-collapse: collapse;
  font-size: 0.875rem;
  line-height: 1.35;
}

.gar-table th,
.gar-table td {
  padding: 10px 12px;
  text-align: left;
  vertical-align: middle;
  border-bottom: 1px solid #eee9df;
}

.gar-table thead th {
  background: #f4f2ec;
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #555;
  /* pas de nowrap : a 800 px de conteneur, un intitule sur une ligne forcait
     le tableau a 832 px et declenchait un defilement horizontal inutile */
}

.gar-table thead th.is-first,
.gar-table tbody th.is-first {
  /* la colonne produit reste visible pendant le defilement horizontal */
  position: sticky;
  left: 0;
  z-index: 1;
  min-width: 170px;
  box-shadow: 1px 0 0 #eee9df;
}

.gar-table thead th.is-first { background: #f4f2ec; }
.gar-table tbody th.is-first { background: #fff; font-weight: 400; }
.gar-table tbody tr.is-top th.is-first { background: #fdf6ef; }

.gar-table tbody tr.is-top { background: #fdf6ef; }
.gar-table tbody tr:last-child th,
.gar-table tbody tr:last-child td { border-bottom: 0; }

.gar-table_name {
  display: block;
  text-decoration: none;
  color: inherit;
}

.gar-table_rank {
  display: inline-block;
  margin-bottom: 4px;
  padding: 4px 9px;
  border: 1px solid #eee9df;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(36, 24, 12, 0.06);
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.47px;
  text-transform: uppercase;
  color: #555;
}

.gar-table tbody tr.is-top .gar-table_rank {
  border-color: #ef7a1a;
  color: #ef7a1a;
}

.gar-table_product { display: block; font-weight: 700; color: #242424; }
.gar-table_brand { display: block; font-size: 0.75rem; color: #777; }
.gar-table_name:hover .gar-table_product { color: #ef7a1a; }

.gar-table_mark-wrap {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.gar-table_mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1;
  color: #fff;
}

.gar-table_mark.is-yes { background: #00b67a; }
.gar-table_mark.is-partial { background: #ef7a1a; }
.gar-table_mark.is-no { background: #c9c2b5; }
.gar-table_mark-label { color: #444; }

/* Le conteneur gris du gabarit borne le contenu a 800 px ; le tableau doit pouvoir
   utiliser toute cette largeur sans provoquer de debordement de page. */
.background-grey-wrapper .gar-table-scroll { max-width: 100%; }

/* --- variante « dans un article » -------------------------------------
   Meme habillage, mais les lignes sont des criteres et les colonnes des produits.
   La colonne mise en avant reprend le fond creme des lignes de tete du ranking. */

.gar-table-block { margin: 2rem 0; }
.gar-table-block > .heading-style-h5 { margin-bottom: 0.75rem; }
.gar-table-block > .text-size-tiny { margin-top: 0.5rem; }

.gar-table.is-article { min-width: 520px; }
.gar-table.is-article tbody th.is-first { font-weight: 600; color: #333; }
.gar-table.is-article thead th.is-first { min-width: 150px; }
.gar-table.is-article td { color: #333; }
.gar-table.is-article th.is-highlight,
.gar-table.is-article td.is-highlight { background: #fdf6ef; }
.gar-table.is-article thead th.is-highlight { color: #c9620f; }

/* --- bibliographie d'article ---------------------------------------------- */
.gar-refs { margin: 0 0 1.5rem; padding-left: 1.25rem; font-size: 0.8125rem; line-height: 1.55; color: #444; }
.gar-refs li { margin-bottom: 0.5rem; }
.gar-refs a { color: #c9620f; }
.gar-legal { margin: 1.5rem 0 0; padding-top: 1rem; border-top: 1px solid #e4dfd5; font-size: 0.8125rem; line-height: 1.55; color: #777; }

/* Image du corps d'article (bloc « image ») : 900 x 450, ratio 2:1, coins du hero d'article */
.gar-figure { margin: 2rem 0; }
.gar-figure img { display: block; width: 100%; height: auto; aspect-ratio: 2 / 1; object-fit: cover; border-radius: 16px; }
.gar-figure figcaption { margin-top: 0.5rem; font-size: 0.8125rem; line-height: 1.5; color: #777; }
