<?php
/**
 * Ranking row — layout lock.
 * The final visual layer (rank-visual.css, loaded after this file) owns the
 * grid, the paint and the breakpoints. This file keeps only the few resets
 * that remove parent-theme interference, so the two layers cannot fight.
 * ========================================================================= */

/* The list renders as ONE column of full rows, whatever view the theme uses. */
body .uktl ol.uktl-board {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}
body .uktl ol.uktl-board > li.uktl-row {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  box-sizing: border-box !important;
  overflow: visible !important;
  font-family: "Source Sans 3", "Segoe UI", system-ui, sans-serif !important;
}

/* Nothing in a row is ever clipped, truncated or line-clamped, at any width. */
body .uktl .nb-rank__name,
body .uktl .nb-rank__offer,
body .uktl .nb-rank__facts,
body .uktl .nb-rank__stats strong,
body .uktl .nb-rank__stats small,
body .uktl .nb-rank__more summary {
  text-overflow: clip !important;
  -webkit-line-clamp: unset !important;
  -webkit-box-orient: initial !important;
  overflow: visible !important;
  max-height: none !important;
}

/* Phone safety: nothing wider than the screen. */
@media (max-width: 780px) {
  html, body { max-width: 100% !important; }
  body .uktl, body .uktl ol.uktl-board, body .uktl ol.uktl-board > li.uktl-row {
    max-width: 100% !important;
  }
}
