/* Segmented direction tabs — a view switch, deliberately not a .btn so it
   never reads as an action next to the page-header buttons. */
.tabs {
  display: inline-flex;
  gap: var(--space-xs);
  padding: var(--space-xs);
  background: var(--color-gray-10);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-md);
}

.tabs__tab {
  padding: var(--space-xs) var(--space-lg);
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text-secondary);
  text-decoration: none;
}

.tabs__tab:hover {
  color: var(--color-text-primary);
}

.tabs__tab--active {
  background: var(--color-surface);
  color: var(--color-text-primary);
  border: var(--border-hand-drawn);
  box-shadow: var(--shadow-hand-drawn-sm);
}

/* The closed-archive toggle sits across from the tabs — same row, quieter
   voice, so it never competes with the direction switch. */
.tabs-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
}

.tabs-row__closed {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text-muted);
  text-decoration: none;
  margin-bottom: var(--space-md);
}

.tabs-row__closed:hover {
  color: var(--color-text-primary);
}

/* Replaces the tabs while searching: results span both directions, so there is
   no direction to be on. */
.tabs-row__results {
  font-size: 13px;
  color: var(--color-text-secondary);
  margin-bottom: var(--space-md);
}

/* The right-hand end of the row — archive toggle and the lookup box, mirroring
   the unfiled toolbar. The group carries the bottom margin the links had. */
.tabs-row__end {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
  margin-left: auto;
}

.tabs-row__end .tabs-row__closed {
  margin-bottom: 0;
}
