/* affiliate-programs.css — tabella dei programmi affiliati dentro una guida ([affiliate-programs] nel testo,
   partial guides/partials/affiliate-programs.php). Sopra guides.css: annulla gli stili generici di
   .guide-single-body table/img/a. Colori solo con i token --sog-*. */
.guide-single-body .aff-block { margin: 28px 0; }

.guide-single-body .aff-table-wrap {
  background: var(--sog-surface); border: 1px solid var(--sog-border); border-radius: var(--sog-radius);
  box-shadow: var(--sog-shadow); overflow: hidden;
}
.guide-single-body .aff-table { display: table; width: 100%; margin: 0; border-collapse: collapse; font-size: 0.9rem; }
.guide-single-body .aff-table th, .guide-single-body .aff-table td {
  padding: 14px 16px; border: 0; border-bottom: 1px solid var(--sog-border-soft); background: transparent;
  color: var(--sog-text); vertical-align: middle; text-align: left;
}
.guide-single-body .aff-table thead th {
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.8px; text-transform: uppercase;
  color: var(--sog-text-muted); border-bottom: 1px solid var(--sog-border);
}
.guide-single-body .aff-table tbody tr:last-child > * { border-bottom: 0; }
.guide-single-body .aff-table tbody tr:hover > * { background: var(--sog-surface-hover); }

.guide-single-body .aff-table .aff-shop {
  display: flex; align-items: center; gap: 12px; font-size: 0.9rem; font-weight: 400;
  letter-spacing: normal; text-transform: none;
}
.guide-single-body .aff-shop img {
  display: block; width: 40px; height: 40px; margin: 0; object-fit: contain; flex-shrink: 0;
  border: 0; border-radius: 8px; box-shadow: none; padding: 4px; background: var(--sog-logo-plate);
}
.guide-single-body .aff-shop span { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.guide-single-body .aff-shop strong { color: var(--sog-text); }
.guide-single-body .aff-shop small { font-size: 0.78rem; color: var(--sog-text-faint); }
.guide-single-body .aff-shop small.aff-note { color: var(--sog-text-muted); }

.guide-single-body .aff-table .aff-join { text-align: right; white-space: nowrap; }
.guide-single-body .aff-btn {
  display: inline-flex; align-items: center; gap: 6px; padding: 8px 16px; border-radius: 999px;
  background: var(--sog-accent); color: var(--sog-on-accent); font-weight: 700; font-size: 0.85rem; text-decoration: none;
  transition: background 0.15s;
}
.guide-single-body .aff-btn:hover, .guide-single-body .aff-btn:focus-visible { background: var(--sog-accent-strong); color: var(--sog-on-accent); }
.guide-single-body .aff-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.guide-single-body .aff-empty {
  padding: 18px 20px; border-radius: var(--sog-radius); border: 1px dashed var(--sog-border-strong); color: var(--sog-text-muted);
}
.guide-single-body .aff-updated { margin: 8px 0 0; font-size: 0.78rem; color: var(--sog-text-faint); }
.guide-single-body .aff-disclosure {
  margin: 16px 0 0; padding: 12px 16px; border-left: 3px solid var(--sog-accent); border-radius: 0 10px 10px 0;
  background: var(--sog-accent-soft); font-size: 0.82rem; color: var(--sog-text-muted);
}

/* Telefono: ogni programma diventa una scheda, etichette da data-label */
@media (max-width: 720px) {
  .guide-single-body .aff-table thead { display: none; }
  .guide-single-body .aff-table, .guide-single-body .aff-table tbody, .guide-single-body .aff-table tr,
  .guide-single-body .aff-table td, .guide-single-body .aff-table tbody th { display: block; width: 100%; }
  .guide-single-body .aff-table tbody tr { padding: 14px 16px; border-bottom: 1px solid var(--sog-border); }
  .guide-single-body .aff-table tbody tr:last-child { border-bottom: 0; }
  .guide-single-body .aff-table td, .guide-single-body .aff-table tbody th { padding: 4px 0; border: 0; }
  .guide-single-body .aff-table td[data-label] { display: flex; justify-content: space-between; gap: 12px; }
  .guide-single-body .aff-table td[data-label]::before { content: attr(data-label); color: var(--sog-text-muted); font-size: 0.8rem; }
  .guide-single-body .aff-table .aff-shop { display: flex; margin-bottom: 8px; }
  .guide-single-body .aff-table .aff-join { text-align: left; padding-top: 10px; }
  .guide-single-body .aff-btn { width: 100%; justify-content: center; }
}
