
/* ══════════════════════════════════════════
   RESEARCH PAGE
   ══════════════════════════════════════════ */

.research-page {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
}

.research-eyebrow {
  font-size: 11px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--nbnf-muted, #888);
  margin: 0 0 .5rem;
}

.research-hero {
  margin-bottom: 2.5rem;
}

.research-hero h1 {
  font-size: 2rem;
  font-weight: 700;
  margin: 0 0 .5rem;
  color: inherit;
}

.research-sub {
  font-size: 1rem;
  color: var(--nbnf-muted, #888);
  margin: 0;
}

/* Tabs */
.research-tabs {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--nbnf-border, rgba(128,128,128,0.2));
  padding-bottom: 0;
}

.rtab {
  font-size: 13px;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 6px 6px 0 0;
  border: 1px solid transparent;
  border-bottom: none;
  color: var(--nbnf-muted, #888);
  text-decoration: none;
  cursor: pointer;
  margin-bottom: -1px;
  transition: color .15s, background .15s;
}





/* Sections */
.research-section--hidden { display: none; }

/* Stats grid */
.research-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
  margin-bottom: 2.5rem;
}

.research-stat {
  background: var(--nbnf-bg-subtle, rgba(128,128,128,0.08));
  border-radius: 10px;
  padding: 1rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.rs-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: rgba(180,180,180,0.7);
}

.rs-value {
  font-size: 1.6rem;
  font-weight: 700;
  color: inherit;
  line-height: 1.1;
}

/* Blocks */
.research-block {
  margin-bottom: 2.5rem;
}

.research-block-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 1rem;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(245,197,24,0.2);
}

.research-block-header h2 {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0;
  color: inherit;
}

.research-more {
  font-size: 12px;
  color: var(--nbnf-muted, #888);
  text-decoration: none;
  cursor: pointer;
}

.research-more:hover { color: inherit; }

.research-count {
  font-size: 12px;
  color: var(--nbnf-muted, #888);
}

.research-desc {
  font-size: 14px;
  color: var(--nbnf-muted, #888);
  margin: 0 0 1.25rem;
}

.research-note {
  font-size: 11px;
  color: var(--nbnf-muted, #aaa);
  margin-top: 8px;
}

.research-empty {
  font-size: 14px;
  color: var(--nbnf-muted, #888);
  padding: 2rem 0;
  text-align: center;
}

/* Theme cards (overview) */
.research-theme-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 10px;
}

.rtc {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 14px;
  border: 1px solid var(--nbnf-border, rgba(128,128,128,0.2));
  border-radius: 10px;
  text-decoration: none;
  transition: border-color .15s, box-shadow .15s;
}

.rtc:hover {
  border-color: var(--nbnf-accent, #e31837);
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
}

.rtc-rank {
  font-size: 10px;
  font-weight: 700;
  color: var(--nbnf-accent, #e31837);
  letter-spacing: .05em;
}

.rtc-name {
  font-size: 13px;
  font-weight: 600;
  color: inherit;
  line-height: 1.3;
}

.rtc-ppt {
  font-size: 14px;
  font-weight: 700;
  color: inherit;
}

.rtc-sets {
  font-size: 11px;
  color: var(--nbnf-muted, #888);
}

/* Set list */
.research-set-list { display: flex; flex-direction: column; }

.rsl-row {
  display: grid;
  grid-template-columns: 28px 52px 1fr auto auto auto;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--nbnf-border, rgba(128,128,128,0.12));
  text-decoration: none;
  transition: background .1s;
}

.rsl-row:hover { background: var(--nbnf-bg-subtle, rgba(128,128,128,0.05)); }
.rsl-row:last-child { border-bottom: none; }

.rsl-rank {
  font-size: 11px;
  font-weight: 700;
  color: var(--nbnf-accent, #e31837);
  text-align: center;
}

.rsl-num {
  font-size: 11px;
  color: var(--nbnf-muted, #888);
  font-variant-numeric: tabular-nums;
}

.rsl-name {
  font-size: 13px;
  font-weight: 500;
  color: inherit;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rsl-theme {
  font-size: 11px;
  color: var(--nbnf-muted, #888);
  white-space: nowrap;
}

.rsl-price {
  font-size: 13px;
  color: inherit;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.rsl-ppt {
  font-size: 11px;
  color: var(--nbnf-muted, #888);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

/* Tables */
.research-table-wrap { overflow-x: auto; }

.research-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.research-table th {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: rgba(200,200,200,0.7);
  padding: 10px 12px;
  border-bottom: 1px solid rgba(245,197,24,0.3);
  white-space: nowrap;
  text-align: left;
}

.research-table th.r { text-align: right; }

.research-table th.sortable { cursor: pointer; user-select: none; }
.research-table th.sortable:hover { color: inherit; }
.research-table th.sort-asc::after  { content: ' ↑'; }
.research-table th.sort-desc::after { content: ' ↓'; }

.research-table td {
  padding: 11px 12px;
  border-bottom: 1px solid rgba(128,128,128,0.12);
  color: inherit;
  vertical-align: middle;
}

.research-table td.r {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.research-table tr:last-child td { border-bottom: none; }
.research-table tr:hover td { background: var(--nbnf-bg-subtle, rgba(128,128,128,0.05)); }

.rank-num {
  font-size: 12px;
  font-weight: 700;
  color: var(--nbnf-accent, #e31837);
  text-align: center;
}

.set-link {
  color: inherit;
  text-decoration: none;
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-weight: 500;
}

.set-link:hover { color: var(--nbnf-accent, #e31837); }

.set-num-small {
  font-size: 11px;
  color: var(--nbnf-muted, #888);
  white-space: nowrap;
  flex-shrink: 0;
}

.theme-link, .theme-link-sm {
  color: var(--nbnf-muted, #888);
  text-decoration: none;
  font-size: 12px;
}

.theme-link:hover, .theme-link-sm:hover { color: var(--nbnf-accent, #e31837); }

/* PPT bar */
.ppt-val {
  display: block;
  font-variant-numeric: tabular-nums;
  margin-bottom: 3px;
}

.ppt-bar-bg {
  height: 4px;
  background: rgba(128,128,128,0.15);
  border-radius: 2px;
  min-width: 70px;
}

.ppt-bar-fill {
  height: 4px;
  border-radius: 2px;
  background: var(--color-primary, #e31837);
  transition: width .3s;
}

/* Badges */
.badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 20px;
  white-space: nowrap;
}

.badge-good { background: rgba(76,175,125,0.15); color: #4caf7d; border: 1px solid rgba(76,175,125,0.3); }
.badge-mid  { background: rgba(245,197,24,0.12); color: #f5c518; border: 1px solid rgba(245,197,24,0.25); }
.badge-bad  { background: rgba(227,24,55,0.12); color: #e31837; border: 1px solid rgba(227,24,55,0.25); }

.ppt-highlight {
  font-weight: 600;
  color: #4caf7d;
}

.premium-pct {
  font-weight: 700;
  color: #4caf7d;
}

@media (max-width: 640px) {
  .research-page { padding: 1rem 1rem 3rem; }
  .research-hero h1 { font-size: 1.5rem; }
  .rsl-row { grid-template-columns: 24px 1fr auto; }
  .rsl-num, .rsl-theme, .rsl-ppt { display: none; }
  .research-tabs { gap: 2px; }
  .rtab { font-size: 12px; padding: 6px 10px; }
}



.rtab:hover {
  color: #f5c518;
  background: rgba(245,197,24,0.06);
}
.rtab--active {
  color: #f5c518;
  font-weight: 600;
  border: 1px solid rgba(245,197,24,0.4);
  border-bottom-color: transparent;
  background: transparent;
}
