/* research.css — left tab layout (matches your glass theme) */

.rsh-shell {
  padding: 0;
  overflow: hidden;
  display: grid;
  grid-template-columns: 330px 1fr;
  min-height: min(78vh, 920px);
}

/* LEFT: force top alignment */
.rsh-side {
  padding: 18px;
  border-right: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);

  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start; /* top aligned */
  gap: 14px;
}

.rsh-title {
  margin: 10px 0 6px;
  font-size: 22px;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.rsh-sub {
  margin: 0;
}

.rsh-tabs {
  display: grid;
  gap: 8px;
  margin-top: 8px;
}

.rsh-tab {
  width: 100%;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 10px;

  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);

  color: var(--muted);
  cursor: pointer;
  font-size: 15px;
  font-weight: 750;
  letter-spacing: -0.01em;

  transition:
    transform 0.15s ease,
    background 0.15s ease,
    border-color 0.15s ease;
}

.rsh-tab:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
}

.rsh-tab.active {
  color: var(--text);
  border-color: rgba(139, 92, 246, 0.45);
  background: rgba(139, 92, 246, 0.12);
}

.rsh-ic {
  width: 22px;
  display: inline-flex;
  justify-content: center;
  opacity: 0.9;
}

.rsh-side-foot {
  font-size: 12px;
  line-height: 1.5;
  border-top: 1px dashed rgba(255, 255, 255, 0.08);
  padding-top: 12px;
}
:root[data-theme="light"] .rsh-side-foot {
  border-top-color: rgba(11, 16, 32, 0.1);
}

/* RIGHT */
.rsh-main {
  padding: 18px;
  display: flex; /* switch from grid to flex */
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start; /* important */
  gap: 14px;
}

.rsh-top {
  padding-bottom: 16px;
  margin-top: 18px;
  margin-bottom: 4px;
  font-size: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
:root[data-theme="light"] .rsh-top {
  border-bottom-color: rgba(11, 16, 32, 0.1);
}

.rsh-top-h {
  font-size: 22px;
  font-weight: 850;
  letter-spacing: -0.01em;
}

.rsh-pane {
  display: none;
}
.rsh-pane.active {
  display: block;
}

.rsh-pane-head h2 {
  margin: 0;
  font-size: 22px;
  letter-spacing: -0.02em;
}
.rsh-pane-head p {
  margin: 6px 0 0;
}

.rsh-grid2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 12px;
}
@media (max-width: 980px) {
  .rsh-grid2 {
    grid-template-columns: 1fr;
  }
}

.rsh-card {
  padding: 14px;
}

.rsh-h3 {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 850;
  letter-spacing: -0.01em;
}

.rsh-list {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 8px;
  color: rgba(234, 240, 255, 0.82);
}
:root[data-theme="light"] .rsh-list {
  color: rgba(11, 16, 32, 0.82);
}

.rsh-next {
  display: grid;
  gap: 10px;
  align-content: start;
}

.rsh-side-title {
  font-size: 18px;
  font-weight: 850;
  letter-spacing: -0.01em;
  margin-top: 8px;
}

@media (max-width: 980px) {
  .rsh-shell {
    grid-template-columns: 1fr;
  }
  .rsh-side {
    border-right: none;
    border-bottom: 1px solid var(--border);
  }
}

.rsh-top-sub {
  margin-top: 6px; /* adjust 6–14px to taste */
}
