/* ── РИД page ────────────────────────────────────────────────────── */

.rid-wrap {
  border: 1px solid var(--c-border);
  border-radius: 12px;
  overflow: hidden;
}

.rid-table {
  width: 100%;
  border-collapse: collapse;
}

/* Column header row */
.rid-table thead tr {
  border-bottom: 1px solid var(--c-border);
}
.rid-table thead th {
  padding: 1rem 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--c-muted);
  font-weight: 400;
  text-align: left;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--c-surface);
}
.rid-table thead th:nth-child(1) {
  width: 52%;
}
.rid-table thead th:nth-child(2) {
  width: 36%;
}
.rid-table thead th:nth-child(3) {
  width: 12%;
}

/* Category group header */
.rid-cat td {
  padding: 0.65rem 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--c-accent);
  background: color-mix(in srgb, var(--c-accent) 6%, var(--c-surface));
  border-top: 1px solid var(--c-border);
  border-bottom: 1px solid var(--c-border);
  letter-spacing: 0.05em;
}

/* Data rows */
.rid-row {
  border-bottom: 1px solid var(--c-border);
  transition: background 0.15s;
}
.rid-row:last-child {
  border-bottom: none;
}
.rid-row:hover {
  background: var(--c-surface);
}
.rid-row td {
  padding: 1.1rem 1.5rem;
  vertical-align: top;
}

/* Title cell */
.rid-title {
  font-size: 1rem;
  color: var(--c-muted);
  line-height: 1.55;
}
.rid-title a {
  color: var(--c-text);
  text-decoration: none;
  transition: color 0.15s;
}
.rid-title a:hover {
  color: var(--c-highlight);
  text-decoration: underline;
}

/* Authors cell */
.rid-authors {
  font-size: 0.92rem;
  color: var(--c-muted);
  line-height: 1.55;
}

/* Year cell */
.rid-year {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--c-muted);
  white-space: nowrap;
}

/* ── Responsive ──────────────────────────────────────────────────── */
@media (max-width: 640px) {
  .rid-wrap {
    border-radius: 8px;
  }
  .rid-row td,
  .rid-table thead th {
    padding: 0.85rem 1rem;
  }
  .rid-authors {
    display: none;
  }
  .rid-table thead th:nth-child(1) {
    width: auto;
  }
  .rid-table thead th:nth-child(3) {
    width: 5rem;
  }
}
