/* ----------------------------------------------------
   Firm vs Firm Comparison Table
   Dark theme tuned to deep-navy + #2596be brand
---------------------------------------------------- */

.pf-compare-wrap{
  max-width:1200px;
  margin:32px auto 80px;
  padding:0 20px;
}

.pf-compare-title{
  font-size:28px;
  font-weight:700;
  margin:0 0 6px;
  color:var(--text);
  text-align:center;
}

.pf-compare-sub{
  margin:0 auto 24px;
  font-size:14px;
  line-height:1.5;
  color:var(--muted);
  max-width:760px;
  text-align:center;
}

.pf-compare-scroller{
  overflow-x:auto;
  padding-bottom:10px;
}

/* ----------------------------------------------------
   Table shell
---------------------------------------------------- */
.pf-compare-table{
  width:100%;
  min-width:640px;
  border-collapse:separate;
  border-spacing:0;
  background:#050b1e;
  border:1px solid var(--bd, rgba(148,163,184,0.32));
  border-radius:16px;
}

/* Screen-reader-only caption */
.pf-compare-caption{
  position:absolute;
  width:1px;
  height:1px;
  padding:0;
  margin:-1px;
  overflow:hidden;
  clip:rect(0,0,0,0);
  border:0;
}

/* First & last row rounding */
.pf-compare-table thead tr:first-child th:first-child{
  border-top-left-radius:16px;
}
.pf-compare-table thead tr:first-child th:last-child{
  border-top-right-radius:16px;
}
.pf-compare-table tbody tr:last-child th:first-child{
  border-bottom-left-radius:16px;
}
.pf-compare-table tbody tr:last-child td:last-child{
  border-bottom-right-radius:16px;
}

.pf-compare-table th,
.pf-compare-table td{
  padding:10px 12px;
  font-size:13px;
  line-height:1.5;
  border-bottom:1px solid rgba(148,163,184,0.28);
  border-right:1px solid rgba(148,163,184,0.2);
  vertical-align:top;
}

.pf-compare-table tr:last-child th,
.pf-compare-table tr:last-child td{
  border-bottom:0;
}
.pf-compare-table th:last-child,
.pf-compare-table td:last-child{
  border-right:0;
}

/* Tidy paragraphs inside cells (if any sneaks in) */
.pf-compare-table td p{
  margin:0 0 6px;
  font-size:13px;
}
.pf-compare-table td p:last-child{
  margin-bottom:0;
}

/* Completely hide visual appearance of the metric header cell */
.pf-compare-metric{
  width:0 !important;
  min-width:0 !important;
  padding:0 !important;
  border:0 !important;
  background:transparent !important;
  text-indent:-9999px; /* hide text if any */
  border-right:none !important;
}

/* Remove left sticky gutter shadow from data rows so it blends */
.pf-compare-metric-cell{
  box-shadow:none !important;
}

/* Metric cells in <tbody> – sticky left label column */
.pf-compare-metric-cell{
  width:190px;
  background:#050b1e;
  color:var(--text);
  text-align:left;
  font-size:12px;
  font-weight:600;
  text-transform:uppercase;
  letter-spacing:0.08em;
  position:sticky;
  left:0;
  z-index:3;
  box-shadow:6px 0 16px rgba(5,8,22,0.85);
}

/* Firm header cells */
.pf-compare-firm{
  min-width:220px;
  background:#050b1e;
}

/* Make whole header area clickable */
.pf-compare-firm-link{
  display:block;
  height:100%;
  text-decoration:none;
  color:inherit;
}

.pf-compare-firm-link:focus-visible{
  outline:2px solid var(--accent, #2596be);
  outline-offset:2px;
  border-radius:16px;
}

/* Vertical layout: name → logo → tagline */
.pf-compare-firm-header{
  display:flex;
  flex-direction:column;
  align-items:center;
  text-align:center;
  gap:6px;
  padding:10px 8px;
  height:100%;
}

/* Logo under name, larger and not squeezed */
.pf-compare-logo{
  width:72px;
  height:72px;
  border-radius:16px;
  background:#020617;
  border:1px solid rgba(148,163,184,0.45);
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:hidden;
}

.pf-compare-logo img{
  width:100%;
  height:100%;
  object-fit:contain;
}

.pf-compare-logo-fallback{
  font-weight:700;
  font-size:20px;
}

.pf-compare-firm-name{
  font-size:15px;
  font-weight:600;
}

/* Tagline: fixed height so columns align */
.pf-compare-firm-tagline{
  font-size:12px;
  color:var(--muted);
  margin-top:4px;
  line-height:1.5;
  max-width:260px;
  min-height:3.6em; /* ~2–3 lines */
}

/* Section rows (Overview, Leverage, etc.) */
.pf-compare-section-row th{
  padding:18px 16px 12px;
  font-size:14px;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:0.16em;
  background:#050b1e;
  color:var(--accent, #2596be);
  border-bottom:1px solid rgba(148,163,184,0.45);
}

/* Legacy link style (kept for backwards-compat, though not used now) */
.pf-compare-link{
  font-size:11px;
  color:var(--accent, #2596be);
  text-transform:uppercase;
  letter-spacing:0.08em;
  margin-top:auto;
}

/* Body cells */
.pf-compare-table td{
  background:#050816;
  color:var(--text);
}

/* Alternate row shading – stronger contrast on dark theme */
.pf-compare-table tbody tr:nth-child(odd) td{
  background:#030712;
}

/* Pills for list-like values (Platforms, Assets, etc.) */
.pf-compare-pill{
  display:inline-block;
  padding:4px 8px;
  margin:2px 4px 2px 0;
  border-radius:999px;
  border:1px solid var(--bd, rgba(148,163,184,0.4));
  background:rgba(15,23,42,0.92);
  font-size:11px;
}

/* slightly soften text inside pills on dark bg */
.pf-compare-pill,
.pf-compare-pill span{
  color:var(--text);
}

.pf-compare-empty-value{
  opacity:0.5;
}

/* Empty state */
.pf-compare-empty{
  max-width:600px;
  margin:32px auto;
  padding:12px 14px;
  border-radius:10px;
  border:1px solid var(--bd, rgba(148,163,184,0.35));
  background:#050b1e;
  font-size:14px;
  color:var(--muted);
}

/* Small screens */
@media (max-width:900px){
  .pf-compare-wrap{
    padding:0 14px;
  }
  .pf-compare-title{
    font-size:24px;
  }
  .pf-compare-metric,
  .pf-compare-metric-cell{
    width:150px;
    font-size:11px;
  }
}

/* Extra-small screens */
@media (max-width:600px){
  .pf-compare-title{
    font-size:22px;
  }
  .pf-compare-sub{
    font-size:13px;
  }
}
