/* Network Affiliate List — front-end styles.
   Reads the theme's 5-role CSS variables with safe fallbacks, so it looks
   right on the Clone Network Theme and acceptable anywhere else. */

.nal-list {
  display: grid;
  gap: 18px;
  margin: 1.6em 0;
}

.nal-item {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  background: var(--color-surface, #f3f4f6);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 12px;
  padding: 20px 22px;
}

.nal-rank {
  flex: 0 0 auto;
  min-width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--color-accent, #f59e0b);
  color: var(--color-background, #ffffff);
  font-weight: 800;
  font-size: 1.05rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nal-logo {
  flex: 0 0 auto;
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nal-logo img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  border-radius: 8px;
}

.nal-main {
  flex: 1 1 260px;
  min-width: 220px;
}

.nal-name {
  margin: 0 0 4px;
  font-size: 1.15rem;
  color: var(--color-text, #111827);
}

.nal-bonus {
  margin: 0 0 6px;
  font-weight: 700;
  color: var(--color-primary, #1a56db);
}

.nal-desc {
  margin: 0 0 8px;
  font-size: 0.94rem;
  opacity: 0.85;
}

.nal-proscons {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 6px;
}

.nal-pros,
.nal-cons {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.88rem;
  flex: 1 1 180px;
  min-width: 160px;
}

.nal-pros li,
.nal-cons li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 3px;
}

.nal-pros li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  font-weight: 800;
  color: var(--color-primary, #1a7f37);
}

.nal-cons li::before {
  content: "\2717";
  position: absolute;
  left: 0;
  font-weight: 800;
  color: var(--color-accent, #b42318);
}

.nal-action {
  flex: 0 0 auto;
  margin-left: auto;
}

.nal-cta {
  display: inline-block;
  background: var(--color-primary, #1a56db);
  color: var(--color-background, #ffffff);
  font-weight: 700;
  padding: 13px 24px;
  border-radius: 10px;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.nal-cta:hover {
  color: var(--color-background, #ffffff);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

/* When rank / logo / CTA are hidden or missing, the flex row simply reflows —
   .nal-main keeps its flexible basis, so nothing breaks. */

@media (max-width: 640px) {
  .nal-item {
    align-items: flex-start;
  }
  .nal-action {
    margin-left: 0;
    width: 100%;
  }
  .nal-cta {
    display: block;
    text-align: center;
  }
}
