/* ── Search input ────────────────────────────────────────────── */

.form-control {
  display: block;
  width: 100%;
  padding: 0.6rem 0.9rem;
  font-size: 1rem;
  font-family: inherit;
  border: 1.5px solid var(--border);
  border-radius: 6px;
  background-color: var(--surface);
  color: var(--text);
  outline: none;
  margin-bottom: 1.5rem;
}

.form-control:focus {
  border-color: var(--input-focus);
}

/* ── Results table ───────────────────────────────────────────── */

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.table thead tr {
  border-bottom: 2px solid var(--border-strong);
}

.table th {
  text-align: left;
  padding: 0.4rem 0.6rem;
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

.table td {
  padding: 0.55rem 0.6rem;
  border-bottom: 1px solid var(--border-row);
}

.table tbody tr:last-child td {
  border-bottom: none;
}

.table tbody tr:hover td {
  background-color: var(--row-hover);
}

.table a {
  color: var(--link);
  text-decoration: none;
}

.table a:hover {
  text-decoration: underline;
}

/* ── Sort indicators ─────────────────────────────────────────── */

.table th {
  cursor: pointer;
  user-select: none;
}

.table th::after {
  content: '';
  display: inline-block;
  width: 1em;
  margin-left: 0.3em;
  font-size: 0.8em;
  text-align: center;
  line-height: 1;
  vertical-align: baseline;
}

.table th.sort-asc::after {
  content: '\25B2'; /* ▲ */
  color: var(--text-muted);
}

.table th.sort-desc::after {
  content: '\25BC'; /* ▼ */
  color: var(--text-muted);
}

/* Year column: de-emphasised */
.table td:last-child,
.table th:last-child {
  color: var(--text-subtle);
  font-size: 0.9em;
}
