/* FormulaZoom — uitkomsttegels, variant A (keuze Patrick 22-11-2026 20:34).
 * Compacte tegels, 4 per rij (3 op smallere schermen, 2 op telefoon), zo hoog als nodig; naam sterk (donkerblauw, vet);
 * Kopieer rechtsboven in de hoek; formule-ID klein onder de naam; hoofduitkomst opvallend (blauwe rand 2 px, lichtblauw vlak,
 * groter getal; geen label, geen schaduw — wens Patrick 20:37) maar zonder volle kleur.
 * Geldt voor de bestaande opbouw: .results > .result (.main), .result-grid > .result (.mainres), .fz-results-grid > .fz-result (.fz-result-main). */
:is(.results, .result-grid, .fz-results-grid) {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 12px !important;
  align-items: start !important;
}
@media (max-width: 1180px) { :is(.results, .result-grid, .fz-results-grid) { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; } }
@media (max-width: 760px)  { :is(.results, .result-grid, .fz-results-grid) { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 10px !important; } }
@media (max-width: 359px)  { :is(.results, .result-grid, .fz-results-grid) { grid-template-columns: minmax(0, 1fr) !important; } }

:is(.results > .result, .result-grid > .result, .fz-results-grid > .fz-result) {
  position: relative;
  background: #f6f9fd !important;
  border: 1px solid #dfe6f0 !important;
  border-radius: 12px !important;
  padding: 12px 14px !important;
  min-width: 0;
  container-type: inline-size;   /* getal krimpt mee met de tegel, zodat de eenheid ernaast past */
}
.fz-uitk-breed { grid-column: span 2; }   /* past het getal + eenheid niet op één regel (bv. '12.272 / 24.544'), dan 2 kolommen breed */
/* naam van de uitkomst: sterk */
:is(.results > .result, .result-grid > .result, .fz-results-grid > .fz-result) > span:first-child {
  display: block !important;
  color: #0b2a55 !important;
  font-weight: 700 !important;
  font-size: 15px !important;
  line-height: 1.3 !important;
  hyphens: auto; -webkit-hyphens: auto; overflow-wrap: anywhere;   /* lange woorden (Middelpuntvliedende) op telefoon */
}
:is(.results > .result, .result-grid > .result, .fz-results-grid > .fz-result):has(.fz-bewaar) > span:first-child { padding-right: 74px; }
/* formule-ID klein onder de naam */
:is(.results > .result, .result-grid > .result, .fz-results-grid > .fz-result) .fz-sub-id {
  display: block !important; font: 700 11.5px/1.4 system-ui, -apple-system, "Segoe UI", sans-serif !important;
  font-style: normal !important; color: #5b6d86 !important; margin-top: 2px;
}
/* Kopieer rechtsboven in de hoek */
:is(.results > .result, .result-grid > .result, .fz-results-grid > .fz-result) .fz-bewaar {
  position: absolute !important; top: 9px; right: 9px; margin: 0 !important;
  font-size: 11.5px !important; padding: 2px 7px !important; border-radius: 7px !important;
}
/* getal */
:is(.results > .result, .result-grid > .result, .fz-results-grid > .fz-result) > strong {
  display: block; font-size: min(24px, 11cqi) !important; line-height: 1.15 !important; margin: 6px 0 0 !important; overflow-wrap: anywhere;
}
:is(.results > .result, .result-grid > .result, .fz-results-grid > .fz-result) > small {
  display: block; font-size: 13px !important; color: #4a5b72 !important; margin-top: 2px;
}
/* hoofduitkomst: opvallend, geen volle kleur */
:is(.results > .result.main, .result-grid > .result.mainres, .fz-results-grid > .fz-result.fz-result-main) {
  background: #e3efff !important;
  border: 2px solid #1678f2 !important;
  box-shadow: none !important;
  order: -1;   /* einduitkomst altijd linksboven in het blok (wens Patrick 20:39: rust, je weet waar je moet kijken) */
}
:is(.results > .result.main, .result-grid > .result.mainres, .fz-results-grid > .fz-result.fz-result-main) > strong { font-size: min(30px, 12.5cqi) !important; }
@media (max-width: 760px) {
  :is(.results > .result, .result-grid > .result, .fz-results-grid > .fz-result) { padding: 10px 11px !important; }
  :is(.results > .result, .result-grid > .result, .fz-results-grid > .fz-result) > span:first-child { font-size: 14px !important; }
  :is(.results > .result, .result-grid > .result, .fz-results-grid > .fz-result) > strong { font-size: 21px !important; }
  :is(.results > .result.main, .result-grid > .result.mainres, .fz-results-grid > .fz-result.fz-result-main) > strong { font-size: 25px !important; }
  :is(.results > .result, .result-grid > .result, .fz-results-grid > .fz-result):has(.fz-bewaar) > span:first-child { padding-right: 0; padding-top: 22px; }
}
@media print { :is(.results > .result, .result-grid > .result, .fz-results-grid > .fz-result) .fz-bewaar { display: none !important; } }
