/* ==========================================================================
   Fractal · VC Canada · Palmarès
   Ranked-list page. Editorial column (880px), white surface, hairline
   structure. Reads design tokens from styles.css.
   ========================================================================== */

.pal-page { background: var(--color-white); }
.pal-container { max-width: 880px; margin: 0 auto; padding: 0 32px; }

/* ---------- Hero ---------------------------------------------------------- */
.pal-hero { padding: 76px 0 36px; }
.pal-hero h1 {
  font-family: var(--font-tight);
  font-size: 46px;
  font-weight: 500;
  letter-spacing: -0.032em;
  line-height: 1.06;
  color: var(--color-navy);
  margin: 16px 0 16px;
}
.pal-hero .pal-lede {
  font-size: 17px;
  line-height: 1.55;
  color: var(--color-text-muted);
  max-width: 540px;
  margin: 0;
}

/* ---------- Jump nav ------------------------------------------------------ */
.pal-jump {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 22px 0 6px;
  border-top: 1px solid var(--color-border-soft);
}
.pal-jump a {
  font-size: 12.5px;
  color: var(--color-text-muted);
  text-decoration: none;
  padding: 6px 13px;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  transition: color 140ms ease-out, border-color 140ms ease-out;
}
.pal-jump a:hover { color: var(--color-navy); border-color: var(--color-navy); }

/* ---------- List section ------------------------------------------------- */
.pal-list { padding: 46px 0; border-top: 1px solid var(--color-border-soft); }
.pal-list-head { margin-bottom: 18px; }
.pal-kicker {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--color-text-faint);
  margin-bottom: 9px;
}
.pal-list-head h2 {
  font-family: var(--font-tight);
  font-size: 27px;
  font-weight: 500;
  letter-spacing: -0.022em;
  color: var(--color-navy);
  margin: 0 0 8px;
}
.pal-desc {
  font-size: 15px;
  line-height: 1.5;
  color: var(--color-text-muted);
  margin: 0 0 6px;
  max-width: 580px;
}
.pal-meta { font-size: 12.5px; color: var(--color-text-faint); margin: 0; }

/* ---------- Ranked rows -------------------------------------------------- */
.pal-rows { list-style: none; margin: 0; padding: 0; }
.pal-loading { font-size: 14px; color: var(--color-text-faint); padding: 16px 12px; }
.pal-row { border-bottom: 1px solid var(--color-border-soft); }
.pal-row:first-child { border-top: 1px solid var(--color-border-soft); }
.pal-row-link {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 13px 12px;
  text-decoration: none;
  border-radius: 8px;
  transition: background 130ms ease-out;
}
.pal-row-link:hover { background: var(--color-cream); }

.pal-rank {
  flex-shrink: 0;
  width: 26px;
  text-align: center;
  font-family: var(--font-tight);
  font-size: 20px;
  font-weight: 500;
  color: var(--color-text-faint);
  font-variant-numeric: tabular-nums;
}
.pal-row:nth-child(-n+3) .pal-rank { color: var(--color-navy); }

.pal-logo {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--color-cream-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  font-family: var(--font-tight);
  font-size: 12px;
  font-weight: 500;
  color: var(--color-text-muted);
}
.pal-logo.logo-img {
  background: var(--color-white);
  border: 0.5px solid var(--color-border-soft);
  padding: 3px;
}
.pal-logo.logo-light { border-color: transparent; }
.pal-logo img { width: 100%; height: 100%; object-fit: contain; display: block; }

.pal-id { flex: 1; min-width: 0; }
.pal-name {
  display: block;
  font-family: var(--font-tight);
  font-size: 15px;
  font-weight: 500;
  color: var(--color-navy);
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pal-loc {
  display: block;
  font-size: 12px;
  color: var(--color-text-faint);
  margin-top: 1px;
}

.pal-metric { flex-shrink: 0; text-align: right; }
.pal-metric-v {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--color-navy);
  white-space: nowrap;
}
.pal-metric-k {
  display: block;
  font-size: 11px;
  color: var(--color-text-faint);
  margin-top: 1px;
}

/* ---------- Section footer ----------------------------------------------- */
.pal-list-foot { margin-top: 18px; }
.pal-list-foot a {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--color-navy);
  text-decoration: none;
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 1px;
  transition: border-color 140ms ease-out;
}
.pal-list-foot a:hover { border-color: var(--color-navy); }

/* ---------- Closing note ------------------------------------------------- */
.pal-outro {
  padding: 44px 0 80px;
  border-top: 1px solid var(--color-border-soft);
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--color-text-faint);
  max-width: 600px;
}

/* ---------- Responsive --------------------------------------------------- */
@media (max-width: 640px) {
  .pal-container { padding: 0 20px; }
  .pal-hero { padding: 48px 0 28px; }
  .pal-hero h1 { font-size: 34px; }
  .pal-list { padding: 36px 0; }
  .pal-row-link { gap: 12px; padding: 12px 8px; }
  .pal-rank { width: 20px; font-size: 17px; }
  .pal-logo { width: 36px; height: 36px; }
}
